maint: remove useless REPLACE_*_H macros
[gnulib.git] / ChangeLog
1 2011-05-05  Eric Blake  <eblake@redhat.com>
2
3         maint: remove useless REPLACE_*_H macros
4         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11         * m4/btowc.m4: Update callers.
12         * m4/dirfd.m4: Likewise.
13         * m4/duplocale.m4: Likewise.
14         * m4/fchdir.m4: Likewise.
15         * m4/fdopendir.m4: Likewise.
16         * m4/inet_ntop.m4: Likewise.
17         * m4/inet_pton.m4: Likewise.
18         * m4/ioctl.m4: Likewise.
19         * m4/mbrlen.m4: Likewise.
20         * m4/mbrtowc.m4: Likewise.
21         * m4/mbsinit.m4: Likewise.
22         * m4/mbsnrtowcs.m4: Likewise.
23         * m4/mbsrtowcs.m4: Likewise.
24         * m4/poll.m4: Likewise.
25         * m4/setlocale.m4: Likewise.
26         * m4/wcrtomb.m4: Likewise.
27         * m4/wcsnrtombs.m4: Likewise.
28         * m4/wcsrtombs.m4: Likewise.
29         * m4/wctob.m4: Likewise.
30         * m4/wcwidth.m4: Likewise.
31         * modules/posix_spawn: Likewise.
32         * modules/posix_spawn_file_actions_addclose: Likewise.
33         * modules/posix_spawn_file_actions_adddup2: Likewise.
34         * modules/posix_spawn_file_actions_addopen: Likewise.
35         * modules/posix_spawn_file_actions_destroy: Likewise.
36         * modules/posix_spawn_file_actions_init: Likewise.
37         * modules/posix_spawnattr_destroy: Likewise.
38         * modules/posix_spawnattr_getflags: Likewise.
39         * modules/posix_spawnattr_getpgroup: Likewise.
40         * modules/posix_spawnattr_getschedparam: Likewise.
41         * modules/posix_spawnattr_getschedpolicy: Likewise.
42         * modules/posix_spawnattr_getsigdefault: Likewise.
43         * modules/posix_spawnattr_getsigmask: Likewise.
44         * modules/posix_spawnattr_init: Likewise.
45         * modules/posix_spawnattr_setflags: Likewise.
46         * modules/posix_spawnattr_setpgroup: Likewise.
47         * modules/posix_spawnattr_setschedparam: Likewise.
48         * modules/posix_spawnattr_setschedpolicy: Likewise.
49         * modules/posix_spawnattr_setsigdefault: Likewise.
50         * modules/posix_spawnattr_setsigmask: Likewise.
51         * modules/posix_spawnp: Likewise.
52
53 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
54
55         Add option to do-release-commit-and-tag to specify branch.
56         * build-aux/do-release-commit-and-tag: Add --branch.
57
58 2011-05-03  Bruno Haible  <bruno@clisp.org>
59
60         Avoid unnecessary compilation units, through conditional dependencies.
61         * modules/accept (Depends-on): Add conditions to the dependencies.
62         * modules/acosl (Depends-on): Likewise.
63         * modules/argz (Depends-on): Likewise.
64         * modules/asinl (Depends-on): Likewise.
65         * modules/atanl (Depends-on): Likewise.
66         * modules/atoll (Depends-on): Likewise.
67         * modules/bind (Depends-on): Likewise.
68         * modules/btowc (Depends-on): Likewise.
69         * modules/canonicalize-lgpl (Depends-on): Likewise.
70         * modules/ceil (Depends-on): Likewise.
71         * modules/ceilf (Depends-on): Likewise.
72         * modules/ceill (Depends-on): Likewise.
73         * modules/chdir-long (Depends-on): Likewise.
74         * modules/chown (Depends-on): Likewise.
75         * modules/close (Depends-on): Likewise.
76         * modules/connect (Depends-on): Likewise.
77         * modules/cosl (Depends-on): Likewise.
78         * modules/dirfd (Depends-on): Likewise.
79         * modules/dprintf (Depends-on): Likewise.
80         * modules/dprintf-posix (Depends-on): Likewise.
81         * modules/error (Depends-on): Likewise.
82         * modules/euidaccess (Depends-on): Likewise.
83         * modules/expl (Depends-on): Likewise.
84         * modules/faccessat (Depends-on): Likewise.
85         * modules/fchdir (Depends-on): Likewise.
86         * modules/fclose (Depends-on): Likewise.
87         * modules/fcntl (Depends-on): Likewise.
88         * modules/fdopendir (Depends-on): Likewise.
89         * modules/fflush (Depends-on): Likewise.
90         * modules/floor (Depends-on): Likewise.
91         * modules/floorf (Depends-on): Likewise.
92         * modules/floorl (Depends-on): Likewise.
93         * modules/fnmatch (Depends-on): Likewise.
94         * modules/fopen (Depends-on): Likewise.
95         * modules/fprintf-posix (Depends-on): Likewise.
96         * modules/frexp (Depends-on): Likewise.
97         * modules/frexp-nolibm (Depends-on): Likewise.
98         * modules/frexpl (Depends-on): Likewise.
99         * modules/frexpl-nolibm (Depends-on): Likewise.
100         * modules/fseek (Depends-on): Likewise.
101         * modules/fsusage (Depends-on): Likewise.
102         * modules/ftell (Depends-on): Likewise.
103         * modules/ftello (Depends-on): Likewise.
104         * modules/futimens (Depends-on): Likewise.
105         * modules/getcwd (Depends-on): Likewise.
106         * modules/getcwd-lgpl (Depends-on): Likewise.
107         * modules/getdelim (Depends-on): Likewise.
108         * modules/getdomainname (Depends-on): Likewise.
109         * modules/getgroups (Depends-on): Likewise.
110         * modules/gethostname (Depends-on): Likewise.
111         * modules/getline (Depends-on): Likewise.
112         * modules/getlogin_r (Depends-on): Likewise.
113         * modules/getopt-posix (Depends-on): Likewise.
114         * modules/getpeername (Depends-on): Likewise.
115         * modules/getsockname (Depends-on): Likewise.
116         * modules/getsockopt (Depends-on): Likewise.
117         * modules/getsubopt (Depends-on): Likewise.
118         * modules/getusershell (Depends-on): Likewise.
119         * modules/glob (Depends-on): Likewise.
120         * modules/grantpt (Depends-on): Likewise.
121         * modules/iconv_open (Depends-on): Likewise.
122         * modules/iconv_open-utf (Depends-on): Likewise.
123         * modules/inet_ntop (Depends-on): Likewise.
124         * modules/inet_pton (Depends-on): Likewise.
125         * modules/ioctl (Depends-on): Likewise.
126         * modules/isapipe (Depends-on): Likewise.
127         * modules/isfinite (Depends-on): Likewise.
128         * modules/isinf (Depends-on): Likewise.
129         * modules/lchown (Depends-on): Likewise.
130         * modules/ldexpl (Depends-on): Likewise.
131         * modules/link (Depends-on): Likewise.
132         * modules/linkat (Depends-on): Likewise.
133         * modules/listen (Depends-on): Likewise.
134         * modules/logl (Depends-on): Likewise.
135         * modules/lstat (Depends-on): Likewise.
136         * modules/mbrlen (Depends-on): Likewise.
137         * modules/mbrtowc (Depends-on): Likewise.
138         * modules/mbsinit (Depends-on): Likewise.
139         * modules/mbsnrtowcs (Depends-on): Likewise.
140         * modules/mbsrtowcs (Depends-on): Likewise.
141         * modules/mbtowc (Depends-on): Likewise.
142         * modules/memcmp (Depends-on): Likewise.
143         * modules/mkdir (Depends-on): Likewise.
144         * modules/mkdtemp (Depends-on): Likewise.
145         * modules/mkfifo (Depends-on): Likewise.
146         * modules/mkfifoat (Depends-on): Likewise.
147         * modules/mknod (Depends-on): Likewise.
148         * modules/mkostemp (Depends-on): Likewise.
149         * modules/mkostemps (Depends-on): Likewise.
150         * modules/mkstemp (Depends-on): Likewise.
151         * modules/mkstemps (Depends-on): Likewise.
152         * modules/mktime (Depends-on): Likewise.
153         * modules/nanosleep (Depends-on): Likewise.
154         * modules/open (Depends-on): Likewise.
155         * modules/openat (Depends-on): Likewise.
156         * modules/perror (Depends-on): Likewise.
157         * modules/poll (Depends-on): Likewise.
158         * modules/popen (Depends-on): Likewise.
159         * modules/posix_spawn (Depends-on): Likewise.
160         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
161         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
162         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
163         * modules/posix_spawnp (Depends-on): Likewise.
164         * modules/pread (Depends-on): Likewise.
165         * modules/printf-posix (Depends-on): Likewise.
166         * modules/ptsname (Depends-on): Likewise.
167         * modules/putenv (Depends-on): Likewise.
168         * modules/pwrite (Depends-on): Likewise.
169         * modules/readline (Depends-on): Likewise.
170         * modules/readlink (Depends-on): Likewise.
171         * modules/readlinkat (Depends-on): Likewise.
172         * modules/recv (Depends-on): Likewise.
173         * modules/recvfrom (Depends-on): Likewise.
174         * modules/regex (Depends-on): Likewise.
175         * modules/remove (Depends-on): Likewise.
176         * modules/rename (Depends-on): Likewise.
177         * modules/renameat (Depends-on): Likewise.
178         * modules/rmdir (Depends-on): Likewise.
179         * modules/round (Depends-on): Likewise.
180         * modules/roundf (Depends-on): Likewise.
181         * modules/roundl (Depends-on): Likewise.
182         * modules/rpmatch (Depends-on): Likewise.
183         * modules/select (Depends-on): Likewise.
184         * modules/send (Depends-on): Likewise.
185         * modules/sendto (Depends-on): Likewise.
186         * modules/setenv (Depends-on): Likewise.
187         * modules/setlocale (Depends-on): Likewise.
188         * modules/setsockopt (Depends-on): Likewise.
189         * modules/shutdown (Depends-on): Likewise.
190         * modules/sigaction (Depends-on): Likewise.
191         * modules/signbit (Depends-on): Likewise.
192         * modules/sigprocmask (Depends-on): Likewise.
193         * modules/sinl (Depends-on): Likewise.
194         * modules/sleep (Depends-on): Likewise.
195         * modules/snprintf (Depends-on): Likewise.
196         * modules/snprintf-posix (Depends-on): Likewise.
197         * modules/socket (Depends-on): Likewise.
198         * modules/sprintf-posix (Depends-on): Likewise.
199         * modules/sqrtl (Depends-on): Likewise.
200         * modules/stat (Depends-on): Likewise.
201         * modules/strchrnul (Depends-on): Likewise.
202         * modules/strdup-posix (Depends-on): Likewise.
203         * modules/strerror (Depends-on): Likewise.
204         * modules/strerror_r-posix (Depends-on): Likewise.
205         * modules/strndup (Depends-on): Likewise.
206         * modules/strnlen (Depends-on): Likewise.
207         * modules/strptime (Depends-on): Likewise.
208         * modules/strsep (Depends-on): Likewise.
209         * modules/strsignal (Depends-on): Likewise.
210         * modules/strstr-simple (Depends-on): Likewise.
211         * modules/strtod (Depends-on): Likewise.
212         * modules/strtoimax (Depends-on): Likewise.
213         * modules/strtok_r (Depends-on): Likewise.
214         * modules/strtoumax (Depends-on): Likewise.
215         * modules/symlink (Depends-on): Likewise.
216         * modules/symlinkat (Depends-on): Likewise.
217         * modules/tanl (Depends-on): Likewise.
218         * modules/tcgetsid (Depends-on): Likewise.
219         * modules/tmpfile (Depends-on): Likewise.
220         * modules/trunc (Depends-on): Likewise.
221         * modules/truncf (Depends-on): Likewise.
222         * modules/truncl (Depends-on): Likewise.
223         * modules/uname (Depends-on): Likewise.
224         * modules/unlink (Depends-on): Likewise.
225         * modules/unlockpt (Depends-on): Likewise.
226         * modules/unsetenv (Depends-on): Likewise.
227         * modules/usleep (Depends-on): Likewise.
228         * modules/utimensat (Depends-on): Likewise.
229         * modules/vasprintf (Depends-on): Likewise.
230         * modules/vdprintf (Depends-on): Likewise.
231         * modules/vdprintf-posix (Depends-on): Likewise.
232         * modules/vfprintf-posix (Depends-on): Likewise.
233         * modules/vprintf-posix (Depends-on): Likewise.
234         * modules/vsnprintf (Depends-on): Likewise.
235         * modules/vsnprintf-posix (Depends-on): Likewise.
236         * modules/vsprintf-posix (Depends-on): Likewise.
237         * modules/wcrtomb (Depends-on): Likewise.
238         * modules/wcscasecmp (Depends-on): Likewise.
239         * modules/wcscspn (Depends-on): Likewise.
240         * modules/wcsdup (Depends-on): Likewise.
241         * modules/wcsncasecmp (Depends-on): Likewise.
242         * modules/wcsnrtombs (Depends-on): Likewise.
243         * modules/wcspbrk (Depends-on): Likewise.
244         * modules/wcsrtombs (Depends-on): Likewise.
245         * modules/wcsspn (Depends-on): Likewise.
246         * modules/wcsstr (Depends-on): Likewise.
247         * modules/wcstok (Depends-on): Likewise.
248         * modules/wcswidth (Depends-on): Likewise.
249         * modules/wctob (Depends-on): Likewise.
250         * modules/wctomb (Depends-on): Likewise.
251         * modules/wctype (Depends-on): Likewise.
252         * modules/wcwidth (Depends-on): Likewise.
253         * modules/write (Depends-on): Likewise.
254
255 2011-05-03  Bruno Haible  <bruno@clisp.org>
256
257         Support for conditional dependencies.
258         * doc/gnulib.texi (Module description): Document the syntax of
259         conditional dependencies.
260         * gnulib-tool: New option --conditional-dependencies.
261         (func_usage): Document it.
262         (cond_dependencies): New variable.
263         (func_get_automake_snippet_conditional,
264         func_get_automake_snippet_unconditional): New functions, extracted from
265         func_get_automake_snippet.
266         (func_get_automake_snippet): Use them.
267         (sed_first_32_chars): New variable.
268         (func_module_shellfunc_name): New function.
269         (func_module_shellvar_name): New function.
270         (func_module_conditional_name): New function.
271         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
272         func_cond_module_condition): New functions.
273         (func_modules_transitive_closure): Add support for conditional
274         dependencies.
275         (func_emit_lib_Makefile_am): For a conditional module, enclose the
276         conditional automake snippet in an automake conditional.
277         (func_emit_autoconf_snippets): Emit shell functions that contain the
278         code for conditional modules.
279         (func_import, func_create_testdir): Update specification.
280
281 2011-05-03  Eric Blake  <eblake@redhat.com>
282
283         test-getaddrinfo: report error information
284         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
285
286 2011-05-03  Jim Meyering  <meyering@redhat.com>
287
288         bootstrap: avoid build failure when $GZIP is set
289         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
290         program name.  If defined at all, it is supposed to list gzip options.
291         Reported by Alan Curry in http://debbugs.gnu.org/8609
292
293 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
294
295         readme-release: new module with release instructions
296         * modules/readme-release: New module.
297         * top/README-release: New file, from coreutils, grep, diffutils.
298         * MODULES.html.sh (Support for maintaining and releasing): Add it.
299
300 2011-05-02  Eric Blake  <eblake@redhat.com>
301
302         fflush: also replace fclose when fixing fflush
303         * modules/fflush (Depends-on): Add fclose.
304         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
305         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
306         memstreams with no backing fd.
307         * doc/posix-functions/fclose.texi (fclose): Document the use of
308         fflush module to fix the bug.
309         * tests/test-fclose.c (main): Relax test when fclose is used in
310         isolation.
311
312         fclose: add some tests
313         * modules/fclose-tests: New test module.
314         * tests/test-fclose.c: New file.
315         * doc/posix-functions/fclose.texi (fclose): Document the bug.
316
317         fclose: reduced dependencies
318         * modules/fclose (Depends-on): Switch from fflush/fseeko to
319         simpler lseek.
320         * lib/fclose.c (rpl_fclose): Likewise.
321         Reported by Simon Josefsson.
322
323         exit: drop remaining clients
324         * modules/argmatch (Depends-on): Replace exit with stdlib.
325         * modules/copy-file (Depends-on): Likewise.
326         * modules/execute (Depends-on): Likewise.
327         * modules/exitfail (Depends-on): Likewise.
328         * modules/obstack (Depends-on): Likewise.
329         * modules/pagealign_alloc (Depends-on): Likewise.
330         * modules/pipe-filter-gi (Depends-on): Likewise.
331         * modules/pipe-filter-ii (Depends-on): Likewise.
332         * modules/savewd (Depends-on): Likewise.
333         * modules/spawn-pipe (Depends-on): Likewise.
334         * modules/wait-process (Depends-on): Likewise.
335         * modules/xsetenv (Depends-on): Likewise.
336         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
337         * modules/git-merge-changelog (Depends-on): Likewise.
338         * modules/long-options (Depends-on): Likewise.
339         * modules/pt_chown (Depends-on): Likewise.
340         * modules/sysexits (Depends-on): Likewise.
341
342         freading: relax license from LGPLv3+ to LGPLv2+
343         * modules/freading (License): Relax LGPL version.
344
345 2011-05-02  Bruno Haible  <bruno@clisp.org>
346
347         fchdir: Remove unused dependencies.
348         * modules/fchdir (Depends-on): Remove include_next.
349
350 2011-05-02  Bruno Haible  <bruno@clisp.org>
351
352         gnulib-tool: Refactor.
353         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
354         from func_emit_autoconf_snippets.
355         (func_emit_autoconf_snippets): Use it.
356
357 2011-05-02  Simon Josefsson  <simon@josefsson.org>
358
359         * NEWS: Document removal of 'exit'.
360         * modules/exit: Remove file.
361
362 2011-05-01  Bruno Haible  <bruno@clisp.org>
363
364         Update DEPENDENCIES.
365         * DEPENDENCIES (gettext): Recommend the newest release.
366         Reported by Simon Josefsson.
367
368 2011-05-01  Bruno Haible  <bruno@clisp.org>
369
370         gnulib-tool: Reduce code duplication.
371         * gnulib-tool (func_emit_autoconf_snippets): New function.
372         (func_import, func_create_testdir): Use it.
373
374 2011-04-30  Eric Blake  <eblake@redhat.com>
375
376         fclose: don't fail on non-seekable input stream
377         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
378         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
379         since fflush is allowed to fail in that case.
380
381 2011-04-30  Bruno Haible  <bruno@clisp.org>
382
383         dup3: cleanup
384         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
385
386 2011-04-30  Bruno Haible  <bruno@clisp.org>
387
388         netdb: Make it work in C++ mode.
389         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
390         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
391         module.
392         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
393         gl_MODULE_INDICATOR_FOR_TESTS.
394         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
395         * modules/netdb-c++-tests: New file.
396         * tests/test-netdb-c++.cc: New file.
397
398 2011-04-30  Bruno Haible  <bruno@clisp.org>
399
400         New modules 'vfscanf', 'vscanf'.
401         * modules/vfscanf: New file.
402         * modules/vscanf: New file.
403         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
404         here.
405         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
406         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
407
408 2011-04-30  Bruno Haible  <bruno@clisp.org>
409
410         passfd: Add comments.
411         * lib/passfd.c: Add comments about platforms.
412
413 2011-04-30  Bruno Haible  <bruno@clisp.org>
414
415         sys_uio: Make <sys/uio.h> self-contained.
416         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
417         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
418
419 2011-04-30  Bruno Haible  <bruno@clisp.org>
420
421         sys_socket: Ensure 'struct iovec' definition.
422         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
423         <sys/socket.h>.
424         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
425
426 2011-04-30  Bruno Haible  <bruno@clisp.org>
427
428         sys_uio: Protect definition of 'struct iovec'.
429         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
430         it as a C struct.
431
432 2011-04-30  Bruno Haible  <bruno@clisp.org>
433
434         manywarnings: fix indentation
435         * m4/manywarnings.m4: Indent by 2 spaces consistently.
436
437 2011-04-30  Pádraig Brady <P@draigBrady.com>
438
439         manywarnings: add -Wno-missing-field-initializers if needed.
440         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
441         option if it's needed to allow initialization with { 0, }
442
443 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
444
445         announce-gen: cosmetic improvement
446         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
447
448 2011-04-29  Jim Meyering  <meyering@redhat.com>
449
450         vc-list-files: indent with spaces, not TABs
451         * build-aux/vc-list-files: Convert leading TABs to spaces,
452         to match the style of most other files in gnulib.
453
454         announce-gen: indent with spaces, not TABs
455         * build-aux/announce-gen: Convert all TABs to spaces, to match
456         the style of most other files in gnulib.
457
458 2011-04-29  Eric Blake  <eblake@redhat.com>
459
460         quotearg: avoid uninitialized variable use
461         * lib/quotearg.c (quoting_options_from_style): Initialize
462         remaining fields, and ensure that custom styles are only used via
463         quoting_options rather than quoting_style.
464
465 2011-04-29  Jim Meyering  <meyering@redhat.com>
466
467         maint.mk: remove unused VC-tag variable
468         * top/maint.mk (VC-tag): Remove unused variable.
469
470 2011-04-29  Bruno Haible  <bruno@clisp.org>
471
472         netdb: fix gai_strerror replacements
473         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
474         * modules/netdb: Substitute it.
475
476 2011-04-29  Jim Meyering  <meyering@redhat.com>
477
478         test-getcwd.c: avoid new set-but-not-used warning
479         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
480         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
481         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
482         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
483
484         test-hash.c: avoid a new shadowing warning
485         * tests/test-hash.c (main): Don't shadow "dup".
486
487 2011-04-28  Eric Blake  <eblake@redhat.com>
488
489         getaddrinfo: fix gai_strerror signature
490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
491         and work around mingw with UNICODE defined.
492         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
493         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
494         * modules/netdb (Makefile.am): Substitute it.
495         * lib/netdb.in.h (gai_strerror): Declare replacement.
496         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
497         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
498         the fix.
499
500         getsockopt: avoid compiler warning
501         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
502         Reported by Matthias Bolte.
503
504         tests: drop unused link dependency
505         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
506         * modules/dirent-safer-tests (Makefile.am): Likewise.
507         * modules/fdopendir-tests (Makefile.am): Likewise.
508         * modules/mkfifoat-tests (Makefile.am): Likewise.
509         * modules/openat-safer-tests (Makefile.am): Likewise.
510         * modules/openat-tests (Makefile.am): Likewise.
511         * modules/readlinkat-tests (Makefile.am): Likewise.
512         * modules/symlinkat-tests (Makefile.am): Likewise.
513         * modules/linkat-tests (Makefile.am): Likewise.
514         (Depends-on): Switch to filenamecat-lgpl.
515         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
516         LIBINTL.
517         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
518         * tests/test-linkat.c (main): Don't require xalloc.
519
520         hash, mgetgroups: drop xalloc dependency
521         * lib/hash.c (includes): Adjust includes.
522         * lib/mgetgroups.c (includes): Likewise.
523         (xgetgroups): Move...
524         * lib/xgetgroups.c: ...to new file.
525         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
526         * modules/xgetgroups: New file, split from...
527         * modules/mgetgroups: ...here.
528         (Depends-on): Add xalloc-oversized.
529         * modules/hash (Depends-on): Likewise.
530         * modules/hash-tests (Depends-on): Drop xalloc.
531         (test_hash_LDADD): Drop unused library.
532         * tests/test-hash.c (main): Break xalloc dependency.
533         (includes): Drop unused include.
534
535         xalloc-oversized: new module
536         * modules/xalloc-oversized: New module.
537         * modules/xalloc (Depends-on): Add it.
538         * lib/xalloc.h (xalloc_oversized): Move...
539         * lib/xalloc-oversized.h: ...into new file.
540
541         utimecmp: drop dependency on xmalloc
542         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
543         due to memory pressure.
544         * modules/utimecmp (Depends-on): Drop xalloc.
545
546 2011-04-27  Eric Blake  <eblake@redhat.com>
547
548         getcwd: fix mingw bugs
549         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
550         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
551         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
552
553 2011-04-27  Bruno Haible  <bruno@clisp.org>
554
555         mkstemps: Ensure declaration on MacOS X 10.5.
556         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
557         * doc/glibc-functions/mkstemps.texi: Document header file problem on
558         MacOS X.
559
560 2011-04-27  Bruno Haible  <bruno@clisp.org>
561
562         mkstemp: More documentation.
563         * doc/posix-functions/mkstemp.texi: Document header file problem on
564         MacOS X.
565
566 2011-04-27  Bruno Haible  <bruno@clisp.org>
567
568         mkstemp: Tweak configure message when cross-compiling.
569         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
570         result as a guess.
571
572 2011-04-27  Bruno Haible  <bruno@clisp.org>
573
574         clean-temp: Clarify what it does.
575         * lib/clean-temp.h: Add more comments.
576         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
577         module.
578         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
579         * doc/glibc-functions/mkstemps.texi: Likewise.
580         * doc/glibc-functions/mkostemps.texi: Likewise.
581
582 2011-04-27  Eric Blake  <eblake@redhat.com>
583
584         fchdir: avoid extra chdir and fix test
585         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
586         getcwd-lgpl.
587         * lib/fchdir.c (get_name): Any absolute name will do; it does not
588         have to be canonical.
589         (canonicalize_file_name): Drop unused macro.
590         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
591
592         filenamecat-lgpl: fix licence
593         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
594         when it was first created.
595
596         linkat, renameat: add missing dependency
597         * modules/linkat (Depends-on): Require getcwd-lgpl.
598         * modules/renameat (Depends-on): Likewise.
599
600         tests: reduce dependencies
601         * tests/test-linkat.c (main): Use lighter-weight getcwd.
602         * tests/test-renameat.c (main): Likewise.
603         * modules/linkat-tests (Depends-on): Relax dependency.
604         * modules/renameat-tests (Depends-on): Likewise.
605         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
606         dependency explicit.
607
608         save-cwd: reduce default dependency
609         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
610         * lib/save-cwd.c: Update comments.
611         * NEWS: Document the semantic change.
612
613         getcwd: enhance tests
614         * tests/test-getcwd-lgpl.c: New file, taken from...
615         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
616         repeat long path stress tests from m4 probe.
617         * modules/getcwd-lgpl-tests: New module.
618         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
619         * m4/getcwd-abort-bug.m4: Update comment.
620         * m4/getcwd-path-max.m4: Likewise.
621
622         getcwd-lgpl: new module
623         * modules/getcwd-lgpl: New module.
624         * lib/getcwd-lgpl.c: New file.
625         * doc/posix-functions/getcwd.texi (getcwd): Document it.
626         * MODULES.html.sh (lacking POSIX:2008): Likewise.
627         * modules/getcwd (configure.ac): Set C witness.
628         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
629
630         getcwd: tweak comments
631         * m4/getcwd-abort-bug.m4: Fix comments.
632         * m4/getcwd-path-max.m4: Likewise.
633         * m4/getcwd.m4: Likewise.
634
635 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
636         and Eric Blake  <eblake@redhat.com>
637
638         mkstemp: replace if system version uses wrong permissions
639         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
640         read/write mode bits set in file created by mkstemp.
641         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
642
643 2011-04-27  Eric Blake  <eblake@redhat.com>
644
645         passfd: avoid compiler warning
646         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
647         Reported by Laine Stump.
648
649 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
650
651         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
652         required by the NetBSD (and perhaps other 4.4BSD derived) join.
653
654 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
655         and Eric Blake  <eblake@redhat.com>
656
657         mkstemp: mention clean-temp module
658         * lib/mkstemp.c: Add comment.
659         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
660
661 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
662
663         inttypes: also provide default values for 32-bit tests
664         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
665         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
666
667 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
668
669         strtoumax: remove dependency on strtoimax
670         This is like the strtoull change of yesterday.
671         * modules/strtoumax (Files): Add lib/strtoimax.c.
672         (Depends-on): Remove strtoimax and add verify.
673
674         inttypes-incomplete: new module
675         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
676         all but the PRI* and SCN* parts of gl_INTTYPES_H.
677         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
678         of gl_INTTYPES_H.
679         (gl_INTTYPES_H): Rewrite in terms of these new macros.
680         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
681         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
682         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
683         * modules/strtoumax, modules/xstrtol (Depends-on):
684         Depend on inttypes-incomplete, not inttypes.
685         * modules/inttypes-incomplete: New module, containing the contents
686         of the old modules/inttypes module, except that the Files: section
687         omits m4/inttypes-pri.m4, and the configure.ac section invokes
688         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
689         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
690         (Depends-on): Depend only on inttypes-incomplete.
691         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
692
693         inttypes: omit now-redundant strtoimax and strtoumax work
694         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
695         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
696
697         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
698         This supports apps that need pointers to strtoimax and strtoumax,
699         and ports to HP-UX 11.00 64.bit, which has macros that expand to
700         nonexistent functions.  See
701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
702         et seq.
703         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
704         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
705         a macro.
706         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
707
708 2011-04-25  Simon Josefsson  <simon@josefsson.org>
709
710         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
711
712 2011-04-25  Bruno Haible  <bruno@clisp.org>
713
714         strtol, strtoul: Mark modules as obsolete.
715         * modules/strtol (Status, Notice): New sections.
716         * modules/strtoul (Status, Notice): New sections.
717
718 2011-04-25  Bruno Haible  <bruno@clisp.org>
719
720         strtod: Remove check for strtod, unless supporting old platforms.
721         * modules/strtod-obsolete: New file.
722         * m4/strtod-obsolete.m4: New file.
723         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
724         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
725         * modules/strtod (Depends-on): Add strtod-obsolete.
726         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
727
728 2011-04-25  Bruno Haible  <bruno@clisp.org>
729
730         strcase: Make module obsolete.
731         * modules/strcase (Status, Notice): New sections.
732
733 2011-04-25  Bruno Haible  <bruno@clisp.org>
734
735         dup2: Remove check for dup2, unless supporting old obsolete platforms.
736         * modules/dup2-obsolete: New file.
737         * m4/dup2-obsolete.m4: New file.
738         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
739         gl_FUNC_DUP2_OBSOLETE is not also defined.
740         * modules/dup2 (Depends-on): Add dup2-obsolete.
741         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
742
743 2011-04-25  Bruno Haible  <bruno@clisp.org>
744
745         strnlen: Avoid memchr related link error on old obsolete platforms.
746         * modules/memchr-obsolete: New file.
747         * m4/memchr-obsolete.m4: New file.
748         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
749         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
750         * modules/memchr (Depends-on): Add memchr-obsolete.
751         * modules/strnlen (Depends-on): Likewise.
752         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
753
754 2011-04-25  Jim Meyering  <meyering@redhat.com>
755
756         maint.mk: makefile_at_at_check extend and clean up
757         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
758         in addition to */Makefile.am.
759         Exempt legitimate uses of @VAR@ notation, e.g.,
760         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
761         Remove obsolete coreutils-specific comment.
762         Prompted by discussion here:
763         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
764
765 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
766
767         strtoul: remove dependency on strtol
768         This is so that 'configure' need not check for strtol merely because
769         the application needs strtoul.
770         * modules/strtoul (Files): Add lib/strtol.c.
771         (Depends-on): Remove strtol.
772
773         strtoull: remove dependency on strtoul
774         This is like the strtoll change.
775         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
776         (Depends-on): Remove strtoul.
777
778         strtoll: remove dependency on strtol
779         This is so that 'configure' need not check for strtol merely because
780         the application needs strtoll.
781         * modules/strtoll (Files): Add lib/strtol.c.
782         (Depends-on): Remove strtol.
783
784 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
785
786         inttypes: Move some configure check to module 'imaxdiv'.
787         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
788         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
789         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
790
791 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
792
793         inttypes: Move some configure check to module 'imaxabs'.
794         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
795         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
796         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
797
798 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
799
800         inttypes: Remove configure tests that are not needed since 2009-12-31.
801         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
802         gl_cv_header_working_inttypes_h.
803
804 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
805
806         * modules/strnlen (Depends-on): Remove memchr.
807         The strnlen implementation doesn't need the memchr module's fixes; see
808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
809
810         strtol: remove dependency on wchar
811         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
812         * modules/strtol (Depends-on): Remove wchar.
813
814 2011-04-21  Eric Blake  <eblake@redhat.com>
815
816         passfd: fix test regression on Linux
817         * modules/passfd-tests (configure.ac): Correct socketpair check.
818
819         passfd: speed up configure and drop unused code
820         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
821         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
822         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
823         Instead of probing at configure for unix_scm_rights_bsd44_way,
824         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
825         check to a struct member probe.
826         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
827         (sendfd, recvfd): Update preprocessor checks.
828         * modules/passfd (Files): Reflect rename, and drop unused file.
829         (Depends-on): Drop unused dependency.
830
831         passfd: allow compilation on mingw
832         * modules/sys_socket (Depends-on): Add sys_uio.
833         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
834         iovec and a minimal struct msghdr.
835         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
836         * tests/test-sys_socket.c (main): Enhance test.
837         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
838         guaranteed to provide what we need.
839         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
840         * modules/passfd-tests (Depends-on): Add sys_wait.
841         * tests/test-passfd.c (main): Skip test on mingw, for now.
842         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
843         partial 'struct msghdr' implementation.
844
845         sys_uio: new module
846         * modules/sys_uio: New module.
847         * modules/sys_uio-tests: Likewise.
848         * lib/sys_uio.in.h: New file.
849         * m4/sys_uio_h.m4: Likewise.
850         * tests/test-sys_uio.c: Likewise.
851         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
852         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
853
854 2011-04-20  Jim Meyering  <meyering@redhat.com>
855
856         useless-if-before-free: avoid false-positive
857         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
858         disjunct so that it too requires a terminating ";".  Without that,
859         this script would identify as useless one statement from gcc that
860         was not:
861           if (aligned_ptr)
862             free (((void **) aligned_ptr) [-1]);
863
864 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
865
866         doc: update users.txt.
867         * users.txt: Add barcode.
868
869 2011-04-19  Bruno Haible  <bruno@clisp.org>
870
871         ioctl: Remove link dependency on native Windows.
872         * lib/fd-hook.h: Renamed from lib/close-hook.h.
873         (gl_close_fn, gl_ioctl_fn): New types.
874         (struct fd_hook): Renamed from struct close_hook. Change type of
875         private_close_fn field. Add private_ioctl_fn field.
876         (close_hook_fn): Add parameter for primary close method.
877         (execute_close_hooks, execute_all_close_hooks): Likewise.
878         (ioctl_hook_fn): New type.
879         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
880         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
881         argument.
882         (unregister_fd_hook): Renamed from unregister_close_hook.
883         * lib/fd-hook.c: Renamed from lib/close-hook.c.
884         Don't include <unistd.h>.
885         (close): Remove undef.
886         (anchor): Update.
887         (execute_close_hooks): Add argument for primary close method.
888         (execute_all_close_hooks): Likewise.
889         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
890         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
891         argument. Allow each argument to be NULL.
892         (unregister_fd_hook): Renamed from unregister_close_hook.
893         * lib/close.c (rpl_close): Pass 'close' function pointer to
894         execute_all_close_hooks.
895         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
896         (primary_ioctl): New function.
897         (ioctl): Don't call ioctlsocket here. Instead, call
898         execute_all_ioctl_hooks.
899         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
900         close method.
901         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
902         (fd_sockets_hook): Renamed from close_sockets_hook.
903         (gl_sockets_startup, gl_sockets_cleanup): Update.
904         * modules/fd-hook: Renamed from modules/close-hook. Update.
905         * modules/close (Depends-on): Add fd-hook, remove close-hook.
906         * modules/sockets (Depends-on): Likewise.
907         * modules/ioctl (Depends-on): Add fd-hook.
908         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
909         GNULIB_SOCKET.
910
911 2011-04-19  Bruno Haible  <bruno@clisp.org>
912
913         Move the support of O_NONBLOCK in open() to the 'open' module.
914         * modules/nonblocking (Depends-on): Remove 'open'.
915         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
916         gl_cv_have_open_O_NONBLOCK.
917         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
918         O_NONBLOCK support.
919         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
920
921 2011-04-17  Bruno Haible  <bruno@clisp.org>
922
923         pipe2: Simplify code.
924         * lib/pipe2.c (pipe2): Reduce code duplication.
925
926 2011-04-17  Bruno Haible  <bruno@clisp.org>
927
928         nonblocking: Add comment.
929         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
930
931 2011-04-17  Bruno Haible  <bruno@clisp.org>
932
933         nonblocking: Add tests for sockets.
934         * tests/test-nonblocking-socket.sh: New file.
935         * tests/test-nonblocking-socket-main.c: New file.
936         * tests/test-nonblocking-socket-child.c: New file.
937         * tests/test-nonblocking-socket.h: New file.
938         * tests/socket-server.h: New file.
939         * tests/socket-client.h: New file.
940         * modules/nonblocking-socket-tests: New file.
941         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
942
943 2011-04-17  Bruno Haible  <bruno@clisp.org>
944
945         nonblocking: Add tests for pipes.
946         * tests/test-nonblocking-pipe.sh: New file.
947         * tests/test-nonblocking-pipe-main.c: New file.
948         * tests/test-nonblocking-pipe-child.c: New file.
949         * tests/test-nonblocking-pipe.h: New file.
950         * tests/test-nonblocking-writer.h: New file.
951         * tests/test-nonblocking-reader.h: New file.
952         * tests/test-nonblocking-misc.h: New file.
953         * modules/nonblocking-pipe-tests: New file.
954         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
955
956 2011-04-16  Bruno Haible  <bruno@clisp.org>
957
958         gettext: Clarify the needed programmer actions.
959         * modules/gettext (Notice): New field.
960         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
961
962 2011-04-16  Bruno Haible  <bruno@clisp.org>
963
964         strchrnul: Tweak last commit.
965         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
966         bug.
967         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
968         as in _GL_FUNCDECL_SYS.
969         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
970         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
971
972 2011-04-15  Eric Blake  <eblake@redhat.com>
973
974         strchrnul: work around cygwin bug
975         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
976         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
978         * modules/string (Makefile.am): Substitute it.
979         * lib/string.in.h (strchrnul): Use it.
980
981 2011-04-15  Bruno Haible  <bruno@clisp.org>
982
983         Don't require lib/stdio-write.c when only module 'stdio' is used.
984         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
985         invocation.
986         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
987
988 2011-04-14  Bruno Haible  <bruno@clisp.org>
989
990         Support non-blocking pipe I/O in read() on native Windows.
991         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
992         (read): New declaration.
993         * lib/read.c: New file.
994         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
995         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
996         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
997         vscanf): New declarations.
998         * lib/stdio-read.c: New file.
999         * m4/read.m4: New file.
1000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1001         REPLACE_READ.
1002         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1003         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1004         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1005         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1006         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1007         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1008         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1009         * modules/read: New file.
1010         * modules/nonblocking (Files): Add lib/stdio-read.c.
1011         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1012         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1013         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1014         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1015         * modules/pread (Depends-on): Add read.
1016         * modules/safe-read (Depends-on): Likewise.
1017         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1018         gets, scanf, vfscanf, vscanf): Verify signatures.
1019         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1020         problem with non-blocking pipes.
1021         * doc/posix-functions/fgetc.texi: Likewise.
1022         * doc/posix-functions/fgets.texi: Likewise.
1023         * doc/posix-functions/fread.texi: Likewise.
1024         * doc/posix-functions/fscanf.texi: Likewise.
1025         * doc/posix-functions/getc.texi: Likewise.
1026         * doc/posix-functions/getchar.texi: Likewise.
1027         * doc/posix-functions/gets.texi: Likewise.
1028         * doc/posix-functions/scanf.texi: Likewise.
1029         * doc/posix-functions/vfscanf.texi: Likewise.
1030         * doc/posix-functions/vscanf.texi: Likewise.
1031
1032 2011-04-14  Bruno Haible  <bruno@clisp.org>
1033
1034         Support non-blocking pipe I/O in write() on native Windows.
1035         * lib/write.c (rpl_write): Split a write request that failed merely
1036         because the byte count was larger than the pipe buffer's size.
1037         * doc/posix-functions/write.texi: Mention the problem with large byte
1038         counts.
1039
1040 2011-04-14  Bruno Haible  <bruno@clisp.org>
1041
1042         wchar: Ensure that wchar_t gets defined on uClibc.
1043         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1044         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1045
1046 2011-04-13  Bruno Haible  <bruno@clisp.org>
1047
1048         safe-write, full-read: Avoid unnecessary compilation units.
1049         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1050         (Depends-on): Remove safe-read. Add ssize_t.
1051         * modules/full-read (Files): Add lib/full-write.c.
1052         (Depends-on): Add full-write.
1053
1054 2011-04-13  Bruno Haible  <bruno@clisp.org>
1055
1056         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1057         * modules/pwrite (Depends-on): Add 'write'.
1058
1059 2011-04-13  Bruno Haible  <bruno@clisp.org>
1060
1061         Support non-blocking pipe I/O in write() on native Windows.
1062         * lib/unistd.in.h (write): Enable replacement also if
1063         GNULIB_UNISTD_H_NONBLOCKING is 1.
1064         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1065         (rpl_write): When failing to write on a non-blocking pipe, change
1066         errno from ENOSPC to EAGAIN.
1067         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1068         putchar, puts, vfprintf, vprintf): Enable replacement also if
1069         GNULIB_STDIO_H_NONBLOCKING is 1.
1070         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1071         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1072         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1073         CALL_WITH_SIGPIPE_EMULATION.
1074         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1075         * m4/nonblocking.m4: New file.
1076         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1077         for non-blocking I/O support.
1078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1079         GNULIB_UNISTD_H_NONBLOCKING.
1080         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1081         required for non-blocking I/O support.
1082         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1083         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1084         lib/stdio-write.c, m4/asm-underscore.m4.
1085         (Depends-on): Add stdio, unistd.
1086         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1087         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1088         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1089         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1090         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1091         problem with non-blocking pipes.
1092         * doc/posix-functions/fputc.texi: Likewise.
1093         * doc/posix-functions/fputs.texi: Likewise.
1094         * doc/posix-functions/fwrite.texi: Likewise.
1095         * doc/posix-functions/printf.texi: Likewise.
1096         * doc/posix-functions/putc.texi: Likewise.
1097         * doc/posix-functions/putchar.texi: Likewise.
1098         * doc/posix-functions/puts.texi: Likewise.
1099         * doc/posix-functions/vfprintf.texi: Likewise.
1100         * doc/posix-functions/vprintf.texi: Likewise.
1101         * doc/posix-functions/write.texi: Likewise.
1102
1103 2011-04-10  Jim Meyering  <meyering@redhat.com>
1104
1105         maint.mk: prohibit doubled words
1106         Detect them also when they're separated by a newline.
1107         There are 3 ways to customize it:
1108           - disable the test on a per file basis, as usual with rules using
1109             $(VC_LIST_EXCEPT)
1110           - replace the default doubled-word-selecting regexp (affects all files)
1111           - ignore a particular file-vs-doubled-word match
1112         I nearly used that last one to ignore the "is is" match in
1113         coreutils' NEWS file, since the text was "ls -is is ..."
1114         To do that, I would have added this line to cfg.mk:
1115           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1116         but it would have ignored any "is is" match in NEWS.
1117         Low probability, but still...
1118         Instead, I changed the text, slightly:
1119           -  ls -is is now consistent with ls -lis in ignoring values returned
1120           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1121         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1122         (prohibit_doubled_word_): Define.
1123         (sc_prohibit_doubled_word): New rule.
1124         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1125
1126 2011-04-10  Jim Meyering  <meyering@redhat.com>
1127
1128         maint: fix doubled-word typo in comment
1129         * m4/gethostname.m4: s/is is/it is/
1130         * m4/getdomainname.m4: Likewise.
1131
1132 2011-04-10  Jim Meyering  <meyering@redhat.com>
1133
1134         maint: remove doubled word: s/it it/it/
1135         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1136
1137 2011-04-10  Jim Meyering  <meyering@redhat.com>
1138
1139         maint.mk: remove useless semicolon and backslash
1140         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1141         semicolon and backslash.
1142
1143 2011-04-10  Bruno Haible  <bruno@clisp.org>
1144
1145         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1146         * modules/stdint-tests (Depends-on): Add wchar.
1147
1148 2011-04-10  Jim Meyering  <meyering@redhat.com>
1149
1150         maint: remove doubled words in comments, e.g., s/a a/a/
1151         * lib/strptime.c (day_of_the_week): s/the the/the/
1152         * tests/test-chown.h (test_chown): s/a a/a/
1153
1154         test-chown.h: correct a cast
1155         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1156         when the destination is a stat.st_gid.
1157
1158 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1159
1160         getaddrinfo: Fix test for sa_len member.
1161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1162         include <sys/types.h> before <sys/socket.h>.
1163
1164 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1165
1166         maint: change "can not" to "cannot"
1167         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1168         boundaries.
1169
1170 2011-04-09  Jim Meyering  <meyering@redhat.com>
1171
1172         maint: change "a a" to "a"
1173         * tests/test-lchown.h (test_lchown): s/a a/a/
1174
1175         maint.mk: prohibit \<the the\>
1176         * top/maint.mk (sc_prohibit_the_the): New rule.
1177
1178         maint: fix "the the" in comment
1179         * lib/count-one-bits.h: s/the the/the/
1180
1181         maint: change "can not" to "cannot"
1182         But do not change the occurrences in maintain.texi or in
1183         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1184         * doc/gnulib-tool.texi: s/can not/cannot/
1185         * doc/posix-functions/accept.texi (accept): Likewise.
1186         * doc/posix-functions/socket.texi (socket): Likewise.
1187         * lib/mbrtowc.c: Likewise.
1188
1189         maint.mk: prohibit use of "can not"
1190         * top/maint.mk (sc_prohibit_can_not): New rule.
1191         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1192
1193 2011-04-09  Bruno Haible  <bruno@clisp.org>
1194
1195         careadlinkat: Guard against misuse of careadlinkatcwd.
1196         * lib/careadlinkat.c: Include <stdlib.h>.
1197         (careadlinkatcwd): Check that the fd argument is as expected.
1198
1199 2011-04-09  Bruno Haible  <bruno@clisp.org>
1200
1201         careadlinkat: Use common coding style.
1202         * lib/careadlinkat.c: Move gnulib includes after system includes.
1203
1204 2011-04-09  Bruno Haible  <bruno@clisp.org>
1205
1206         careadlinkat: Clarify specification.
1207         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1208         (careadlinkatcwd): Add comment.
1209         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1210
1211 2011-04-09  Bruno Haible  <bruno@clisp.org>
1212
1213         areadlinkat: Avoid link error on many platforms.
1214         * modules/areadlinkat (Depends-on): Add areadlink.
1215
1216 2011-04-09  Bruno Haible  <bruno@clisp.org>
1217
1218         allocator, careadlinkat: Fix double-inclusion guard.
1219         * lib/allocator.h: Fix double-inclusion guard.
1220         * lib/careadlinkat.h: Likewise.
1221
1222 2011-04-09  Bruno Haible  <bruno@clisp.org>
1223
1224         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1225         * lib/relocwrapper.c: Update dependencies hierarchy.
1226         * build-aux/install-reloc: Update list of files to be compiled.
1227         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1228         lib/allocator.[hc].
1229
1230 2011-04-08  Eric Blake  <eblake@redhat.com>
1231
1232         strftime: silence gnulib-tool warning
1233         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1234
1235 2011-04-08  Bruno Haible  <bruno@clisp.org>
1236
1237         verify: Fix syntax error with GCC 4.6 in C++ mode.
1238         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1239         (HAVE_STATIC_ASSERT): New macro.
1240         (verify_true, verify): Use 'static_assert' if it is supported and
1241         '_Static_assert' is not supported.
1242
1243 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1244
1245         allocator: New module.
1246         * modules/allocator, lib/allocator.c: New files.
1247         * lib/allocator.h (stdlib_allocator): New decl.
1248         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1249         Remove.  Do not include <stdlib.h>.
1250         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1251         * modules/careadlinkat (Files): Remove lib/allocator.h.
1252         (Depends-on): Add allocator.
1253
1254         stdlib: let modules use system malloc, realloc
1255         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1256         if !_GL_USE_STDLIB_ALLOC.
1257         (malloc, realloc): Limit this change to a smaller scope.
1258
1259         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1260         (malloc, realloc): Don't #undef; no longer needed.
1261         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1262         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1263         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1264         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1265         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1266         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1267         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1268         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1269
1270         careadlinkat: rename members to avoid problem
1271         * lib/allocator.h (struct allocator): Rename members from
1272         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1273         and realloc are #define'd.  Reported by Eric Blake in
1274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1275         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1276
1277 2011-04-08  Eric Blake  <eblake@redhat.com>
1278
1279         nonblocking: reduce dependency
1280         * tests/test-nonblocking.c: Only test sockets when in use.
1281         * modules/nonblocking-tests (Depends-on): Drop socket.
1282         (Makefile.am): Link even if sockets are not present.
1283         * modules/pipe2-tests (Makefile.am): Likewise.
1284         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1285
1286         pipe2: fix O_NONBLOCK support on mingw
1287         * modules/pipe2 (Depends-on): Add nonblocking.
1288         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1289         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1290         * tests/test-nonblocking.c (main): Likewise.
1291         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1292
1293         fcntl-h: fix O_ACCMODE on cygwin
1294         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1295         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1296
1297         pipe-filter: drop O_NONBLOCK workarounds
1298         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1299         * modules/pipe-filter-ii (Depends-on): Likewise.
1300         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1301
1302         nonblocking: provide O_NONBLOCK for mingw
1303         * modules/nonblocking (Depends-on): Add open.
1304         (configure.ac): Set new witness macro.
1305         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1306         * modules/fcntl-h (Makefile.am): Substitute it.
1307         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1308         nonblocking module is in use.
1309         * lib/nonblocking.c: Adjust portability test.
1310         * lib/open.c (open): Don't let native open see gnulib flag.
1311         * tests/test-fcntl-h.c (main): Enhance test.
1312         * tests/test-open.h (test_open): Likewise.
1313         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1314
1315         careadlinkat: fix compilation error on mingw
1316         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1317         within struct allocator.
1318
1319 2011-04-06  Eric Blake  <eblake@redhat.com>
1320
1321         binary-io: relicense under LGPLv2+
1322         * modules/binary-io (License): Relax to LGPLv2+.
1323         Requested for libvirt, and required by pipe2.
1324
1325 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1326
1327         verify: use _Static_assert if available
1328         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1329         (verify_true, verify): Use it if available.  This generates better
1330         diagnostics with GCC 4.6.0 and later.
1331
1332 2011-04-05  Bruno Haible  <bruno@clisp.org>
1333
1334         Remove leftover generated .h files after config.status changed.
1335
1336         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1337         GL_GENERATE_ALLOCA_H.
1338         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1339         GL_GENERATE_ALLOCA_H evaluates to false.
1340
1341         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1342         GL_GENERATE_ARGZ_H.
1343         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1344         evaluates to false.
1345
1346         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1347         GL_GENERATE_BYTESWAP_H.
1348         * modules/byteswap (Makefile.am): Remove byteswap.h if
1349         GL_GENERATE_BYTESWAP_H evaluates to false.
1350
1351         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1352         GL_GENERATE_ERRNO_H.
1353         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1354         evaluates to false.
1355
1356         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1357         GL_GENERATE_FLOAT_H.
1358         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1359         evaluates to false.
1360
1361         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1362         GL_GENERATE_FNMATCH_H.
1363         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1364         GL_GENERATE_FNMATCH_H evaluates to false.
1365
1366         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1367         GL_GENERATE_GLOB_H.
1368         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1369         evaluates to false.
1370
1371         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1372         automake conditional GL_GENERATE_ICONV_H.
1373         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1374         evaluates to false.
1375
1376         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1377         GL_GENERATE_NETINET_IN_H.
1378         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1379         GL_GENERATE_NETINET_IN_H evaluates to false.
1380
1381         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1382         conditional GL_GENERATE_PTHREAD_H.
1383         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1384         * modules/pthread (Makefile.am): Remove pthread.h if
1385         GL_GENERATE_PTHREAD_H evaluates to false.
1386
1387         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1388         GL_GENERATE_SCHED_H.
1389         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1390         evaluates to false.
1391
1392         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1393         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1394         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1395         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1396
1397         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1398         GL_GENERATE_STDARG_H.
1399         * modules/stdarg (Makefile.am): Remove stdarg.h if
1400         GL_GENERATE_STDARG_H evaluates to false.
1401
1402         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1403         GL_GENERATE_STDBOOL_H.
1404         * modules/stdbool (Makefile.am): Remove stdbool.h if
1405         GL_GENERATE_STDBOOL_H evaluates to false.
1406
1407         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1408         conditional GL_GENERATE_STDDEF_H.
1409         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1410         * modules/stddef (Makefile.am): Remove stddef.h if
1411         GL_GENERATE_STDDEF_H evaluates to false.
1412
1413         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1414         GL_GENERATE_STDINT_H.
1415         * modules/stdint (Makefile.am): Remove stdint.h if
1416         GL_GENERATE_STDINT_H evaluates to false.
1417
1418         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1419         GL_GENERATE_SYSEXITS_H.
1420         * modules/sysexits (Makefile.am): Remove sysexits.h if
1421         GL_GENERATE_SYSEXITS_H evaluates to false.
1422
1423         Reported by Karl Berry and Ralf Wildenhues.
1424
1425 2011-04-05  Bruno Haible  <bruno@clisp.org>
1426
1427         Ensure to rebuild generated .h files when config.status has changed.
1428         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1429         config.status.
1430         * modules/ctype (Makefile.am): Likewise.
1431         * modules/dirent (Makefile.am): Likewise.
1432         * modules/errno (Makefile.am): Likewise.
1433         * modules/fcntl-h (Makefile.am): Likewise.
1434         * modules/float (Makefile.am): Likewise.
1435         * modules/getopt-posix (Makefile.am): Likewise.
1436         * modules/glob (Makefile.am): Likewise.
1437         * modules/iconv-h (Makefile.am): Likewise.
1438         * modules/inttypes (Makefile.am): Likewise.
1439         * modules/langinfo (Makefile.am): Likewise.
1440         * modules/locale (Makefile.am): Likewise.
1441         * modules/math (Makefile.am): Likewise.
1442         * modules/netdb (Makefile.am): Likewise.
1443         * modules/netinet_in (Makefile.am): Likewise.
1444         * modules/poll-h (Makefile.am): Likewise.
1445         * modules/pthread (Makefile.am): Likewise.
1446         * modules/pty (Makefile.am): Likewise.
1447         * modules/sched (Makefile.am): Likewise.
1448         * modules/search (Makefile.am): Likewise.
1449         * modules/selinux-h (Makefile.am): Likewise.
1450         * modules/signal (Makefile.am): Likewise.
1451         * modules/spawn (Makefile.am): Likewise.
1452         * modules/stdarg (Makefile.am): Likewise.
1453         * modules/stdbool (Makefile.am): Likewise.
1454         * modules/stddef (Makefile.am): Likewise.
1455         * modules/stdint (Makefile.am): Likewise.
1456         * modules/stdio (Makefile.am): Likewise.
1457         * modules/stdlib (Makefile.am): Likewise.
1458         * modules/string (Makefile.am): Likewise.
1459         * modules/strings (Makefile.am): Likewise.
1460         * modules/sys_file (Makefile.am): Likewise.
1461         * modules/sys_ioctl (Makefile.am): Likewise.
1462         * modules/sys_select (Makefile.am): Likewise.
1463         * modules/sys_socket (Makefile.am): Likewise.
1464         * modules/sys_stat (Makefile.am): Likewise.
1465         * modules/sys_time (Makefile.am): Likewise.
1466         * modules/sys_times (Makefile.am): Likewise.
1467         * modules/sys_utsname (Makefile.am): Likewise.
1468         * modules/sys_wait (Makefile.am): Likewise.
1469         * modules/sysexits (Makefile.am): Likewise.
1470         * modules/termios (Makefile.am): Likewise.
1471         * modules/time (Makefile.am): Likewise.
1472         * modules/unistd (Makefile.am): Likewise.
1473         * modules/wchar (Makefile.am): Likewise.
1474         * modules/wctype-h (Makefile.am): Likewise.
1475         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1476
1477 2011-04-05  Bruno Haible  <bruno@clisp.org>
1478
1479         pipe2: Relicense under LGPLv2+.
1480         * modules/pipe2 (License): Change to LGPLv2+.
1481         Requested by Eric Blake, for libvirt.
1482
1483 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1484
1485         bootstrap: compute gnulib_extra_files after updating build_aux
1486         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1487         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1488
1489 2011-04-05  Eric Blake  <eblake@redhat.com>
1490
1491         bootstrap: preserve git whitelist item sorting
1492         * build-aux/bootstrap (sort_patterns): New function.
1493         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1494
1495 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1496
1497         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1498         sc_space_tab check.
1499
1500 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1501
1502         areadlink, areadlinkat: rewrite in terms of careadlinkat
1503         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1504         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1505         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1506         (malloc, realloc): Remove #undefs.
1507         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1508         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1509         readlink, ssize_t, stdint, unistd.
1510         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1511         areadlink, stdint.
1512
1513         careadlinkat: new module
1514         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1515         * modules/careadlinkat: New files, written by me with
1516         a review and feedback from Ben Pfaff in
1517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1518
1519 2011-04-01  Bruno Haible  <bruno@clisp.org>
1520
1521         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1522         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1523         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1524         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1525         Reported by Bruce Korb <bruce.korb@gmail.com>.
1526
1527 2011-04-01  Bruno Haible  <bruno@clisp.org>
1528
1529         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1530         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1531         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1532         * modules/wcpcpy (Depends-on): Add extensions.
1533         * modules/wcpncpy (Depends-on): Likewise.
1534         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1535         systems.
1536         * doc/posix-functions/wcpncpy.texi: Likewise.
1537         * doc/posix-functions/wcwidth.texi: Likewise.
1538
1539 2011-03-31  Eric Blake  <eblake@redhat.com>
1540
1541         nonblocking: fix mingw test failures
1542         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1543         non-blocking flag on regular file.
1544         (get_nonblocking_flag): Set errno on invalid fd.
1545         * tests/test-nonblocking.c (main): Avoid test failure on
1546         directories if fchdir is not active.
1547         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1548
1549 2011-03-31  Bruno Haible  <bruno@clisp.org>
1550
1551         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1552         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1553         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1554         Reported by Simon Josefsson <simon@josefsson.org>.
1555
1556 2011-03-31  Bruno Haible  <bruno@clisp.org>
1557         and Eric Blake  <eblake@redhat.com>
1558
1559         nonblocking: new module
1560         * modules/nonblocking: New module.
1561         * modules/nonblocking-tests: Likewise.
1562         * lib/nonblocking.h: New file.
1563         * lib/nonblocking.c: Likewise.
1564         * tests/test-nonblocking.c: New test.
1565         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1566
1567 2011-03-30  Bruno Haible  <bruno@clisp.org>
1568
1569         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1570         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1571         instead of 'printf' format for GCC >= 4.4.
1572         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1573         (fprintf, printf, vfprintf, vprintf): Declare with
1574         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1575         the system's vfprintf() function.
1576         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1577
1578 2011-03-30  Eric Blake  <eblake@redhat.com>
1579
1580         passfd: fix scoping bug
1581         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1582         before sendmsg/recvmsg.
1583
1584         passfd: standardize coding conventions
1585         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1586         can be learned at compile time.
1587         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1588         ifdefs.
1589         (sendfd, recvfd): Follow gnulib code conventions.
1590
1591         passfd: fix incorrect sendmsg arguments
1592         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1593         incorrect msg_controllen value.
1594         * modules/passfd-tests (Depends-on): Check for alarm.
1595         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1596         Reported by Bastien ROUCARIES.
1597
1598 2011-03-30  Bruno Haible  <bruno@clisp.org>
1599
1600         c-strcasestr: Relicense under LGPLv2+.
1601         * modules/c-strcasestr (License): Change to LGPLv2+.
1602         Requested by Eric Blake, for libvirt.
1603
1604 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1605
1606         * users.txt: Add libidn2.  Fix libtasn1 link.
1607
1608 2011-03-30  Jim Meyering  <meyering@redhat.com>
1609
1610         tests: readlink* ("",... fails with EINVAL on newer kernels
1611         readlink and readlinkat have typically failed with ENOENT for
1612         the invalid, empty file name,  "".  However, with the advent
1613         of linux-2.6.39, they fail with EINVAL.
1614         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1615         when operating on the empty file name.
1616         * tests/test-readlink.h (test_readlink): Likewise.
1617
1618 2011-03-29  Bruno Haible  <bruno@clisp.org>
1619
1620         Relicense some modules under LGPLv2+, for libidn2.
1621         * modules/array-mergesort (License): Change to LGPLv2+.
1622         * modules/c-strcaseeq (License): Likewise.
1623         * modules/striconveh (License): Likewise.
1624         * modules/striconveha (License): Likewise.
1625         * modules/uniconv/base (License): Likewise.
1626         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1627         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1628         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1629         * modules/unictype/base (License): Likewise.
1630         * modules/unictype/bidiclass-of (License): Likewise.
1631         * modules/unictype/category-M (License): Likewise.
1632         * modules/unictype/category-none (License): Likewise.
1633         * modules/unictype/category-of (License): Likewise.
1634         * modules/unictype/category-test (License): Likewise.
1635         * modules/unictype/category-test-withtable (License): Likewise.
1636         * modules/unictype/combining-class (License): Likewise.
1637         * modules/unictype/joiningtype-of (License): Likewise.
1638         * modules/unictype/scripts (License): Likewise.
1639         * modules/uninorm/base (License): Likewise.
1640         * modules/uninorm/canonical-decomposition (License): Likewise.
1641         * modules/uninorm/composition (License): Likewise.
1642         * modules/uninorm/decompose-internal (License): Likewise.
1643         * modules/uninorm/decomposition-table (License): Likewise.
1644         * modules/uninorm/nfc (License): Likewise.
1645         * modules/uninorm/nfd (License): Likewise.
1646         * modules/uninorm/u32-normalize (License): Likewise.
1647         * modules/unistr/base (License): Likewise.
1648         * modules/unistr/u32-cpy (License): Likewise.
1649         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1650         * modules/unistr/u32-to-u8 (License): Likewise.
1651         * modules/unistr/u32-uctomb (License): Likewise.
1652         * modules/unistr/u8-check (License): Likewise.
1653         * modules/unistr/u8-mblen (License): Likewise.
1654         * modules/unistr/u8-mbtouc (License): Likewise.
1655         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1656         * modules/unistr/u8-mbtoucr (License): Likewise.
1657         * modules/unistr/u8-prev (License): Likewise.
1658         * modules/unistr/u8-strlen (License): Likewise.
1659         * modules/unistr/u8-to-u32 (License): Likewise.
1660         * modules/unistr/u8-uctomb (License): Likewise.
1661         * modules/unitypes (License): Likewise.
1662         Requested by Simon Josefsson.
1663
1664 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1665
1666         lib-symbol-visibility: Add a notice.
1667         * modules/lib-symbol-visibility (Notice): New field.
1668
1669 2011-03-29  Bruno Haible  <bruno@clisp.org>
1670
1671         getaddrinfo: Doc fix.
1672         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1673         section "fixed in Gnulib".
1674
1675 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1676
1677         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1678         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1679
1680 2011-03-26  Bruno Haible  <bruno@clisp.org>
1681
1682         unictype/property-byname: Reduce the number of load-time relocations.
1683         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1684         (UC_PROPERTY_INDEX_*): New enumeration values.
1685         (uc_property_byname): Convert an index from the lookup table to an
1686         uc_property_t.
1687         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1688         values.
1689
1690 2011-03-26  Bruno Haible  <bruno@clisp.org>
1691
1692         unictype/property-byname: Allow omitted word separators and aliases.
1693         * lib/unictype/pr_byname.gperf: Add property names without word
1694         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1695         for 'space'.
1696
1697 2011-03-26  Bruno Haible  <bruno@clisp.org>
1698
1699         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1700         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1701         also hyphens to space.
1702         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1703         without spaces.
1704         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1705
1706 2011-03-26  Bruno Haible  <bruno@clisp.org>
1707
1708         unictype/joiningtype-byname: Recognize long names as well.
1709         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1710         a long name.
1711         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1712         unictype/joiningtype_byname.h.
1713         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1714         * lib/unictype/joiningtype_byname.gperf: New file.
1715         * modules/unictype/joiningtype-byname (Files): Add
1716         lib/unictype/joiningtype_byname.gperf.
1717         (Depends-on): Add gperf.
1718         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1719         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1720         long names.
1721
1722         Tests for module 'unictype/joiningtype-longname'.
1723         * modules/unictype/joiningtype-longname-tests: New file.
1724         * tests/unictype/test-joiningtype_longname.c: New file.
1725
1726         New module 'unictype/joiningtype-longname'.
1727         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1728         * lib/unictype/joiningtype_longname.c: New file.
1729         * modules/unictype/joiningtype-longname: New file.
1730         * modules/unictype/joiningtype-all (Depends-on): Add
1731         unictype/joiningtype-longname.
1732
1733 2011-03-26  Bruno Haible  <bruno@clisp.org>
1734
1735         unictype/bidiclass-byname: Recognize long names as well.
1736         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1737         name.
1738         * lib/unictype/bidi_byname.c: Include <string.h>,
1739         unictype/bidi_byname.h.
1740         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1741         * lib/unictype/bidi_byname.gperf: New file.
1742         * modules/unictype/bidiclass-byname (Files): Add
1743         lib/unictype/bidi_byname.gperf.
1744         (Depends-on): Add gperf.
1745         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1746         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1747         long names.
1748
1749         Tests for module 'unictype/bidiclass-longname'.
1750         * modules/unictype/bidiclass-longname-tests: New file.
1751         * tests/unictype/test-bidi_longname.c: New file.
1752
1753         New module 'unictype/bidiclass-longname'.
1754         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1755         * lib/unictype/bidi_longname.c: New file.
1756         * modules/unictype/bidiclass-longname: New file.
1757         * modules/unictype/bidiclass-all (Depends-on): Add
1758         unictype/bidiclass-longname.
1759
1760 2011-03-26  Bruno Haible  <bruno@clisp.org>
1761
1762         unictype/bidi*: Rename modules.
1763         * modules/unictype/bidiclass-all: Renamed from
1764         modules/unictype/bidicategory-all.
1765         * modules/unictype/bidiclass-name: Renamed from
1766         modules/unictype/bidiclass-name.
1767         (Description): Update.
1768         * modules/unictype/bidiclass-name-tests: Renamed from
1769         modules/unictype/bidicategory-name-tests.
1770         * modules/unictype/bidiclass-byname: Renamed from
1771         modules/unictype/bidicategory-byname.
1772         (Description): Update.
1773         * modules/unictype/bidiclass-byname-tests: Renamed from
1774         modules/unictype/bidicategory-byname-tests.
1775         * modules/unictype/bidiclass-of: Renamed from
1776         modules/unictype/bidicategory-of.
1777         (Description): Update.
1778         * modules/unictype/bidiclass-of-tests: Renamed from
1779         modules/unictype/bidicategory-of-tests.
1780         * modules/unictype/bidiclass-test: Renamed from
1781         modules/unictype/bidicategory-test.
1782         (Description): Update.
1783         * modules/unictype/bidiclass-test-tests: Renamed from
1784         modules/unictype/bidicategory-test-tests.
1785         * modules/unictype/bidicategory-all: New file, a simple redirection.
1786         * modules/unictype/bidicategory-name: Likewise.
1787         * modules/unictype/bidicategory-byname: Likewise.
1788         * modules/unictype/bidicategory-of: Likewise.
1789         * modules/unictype/bidicategory-test: Likewise.
1790         * modules/unictype/property-bidi-* (Dependencies): Update.
1791         * lib/unictype/bidi_*.c: Update comment.
1792
1793 2011-03-26  Bruno Haible  <bruno@clisp.org>
1794
1795         unictype/bidi*: Rename functions, part 2.
1796         * modules/unictype/bidicategory-name (configure.ac): Update required
1797         libunistring version.
1798         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1799
1800 2011-03-25  Bruno Haible  <bruno@clisp.org>
1801
1802         New module 'unictype/combining-class-all'.
1803         * modules/unictype/combining-class-all: New file.
1804
1805         Tests for module 'unictype/combining-class-byname'.
1806         * modules/unictype/combining-class-byname-tests: New file.
1807         * tests/unictype/test-combiningclass_byname.c: New file.
1808
1809         New module 'unictype/combining-class-byname'.
1810         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1811         * lib/unictype/combiningclass_byname.c: New file.
1812         * lib/unictype/combiningclass_byname.gperf: New file.
1813         * modules/unictype/combining-class-byname: New file.
1814
1815         Tests for module 'unictype/combining-class-longname'.
1816         * modules/unictype/combining-class-longname-tests: New file.
1817         * tests/unictype/test-combiningclass_longname.c: New file.
1818
1819         New module 'unictype/combining-class-longname'.
1820         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1821         * lib/unictype/combiningclass_longname.c: New file.
1822         * modules/unictype/combining-class-longname: New file.
1823
1824         Tests for module 'unictype/combining-class-name'.
1825         * modules/unictype/combining-class-name-tests: New file.
1826         * tests/unictype/test-combiningclass_name.c: New file.
1827
1828         New module 'unictype/combining-class-name'.
1829         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1830         * lib/unictype/combiningclass_name.c: New file.
1831         * modules/unictype/combining-class-name: New file.
1832
1833 2011-03-25  Bruno Haible  <bruno@clisp.org>
1834
1835         unictype/combining-class: Rename source files.
1836         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1837         of unictype/combining.h.
1838         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1839         Update.
1840         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1841         * modules/unictype/combining-class (Description): Fix.
1842         (Files, Makefile.am): Update.
1843         * tests/unictype/test-combiningclass.c: Renamed from
1844         tests/unictype/test-combining.c.
1845         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1846
1847 2011-03-25  Bruno Haible  <bruno@clisp.org>
1848
1849         unictype: Update list of canonical combining classes.
1850         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1851
1852 2011-03-25  Bruno Haible  <bruno@clisp.org>
1853
1854         unictype/category-byname: Recognize long names as well.
1855         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1856         a long name.
1857         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1858         unictype/categ_byname.h.
1859         (UC_CATEGORY_INDEX_*): New enumeration values.
1860         (uc_general_category_byname): Use uc_general_category_lookup and
1861         convert from index to value.
1862         * lib/unictype/categ_byname.gperf: New file.
1863         * modules/unictype/category-byname (Files): Add
1864         lib/unictype/categ_byname.gperf.
1865         (Depends-on): Add gperf.
1866         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1867         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1868         long names.
1869
1870         Tests for module 'unictype/category-longname'.
1871         * modules/unictype/category-longname-tests: New file.
1872         * tests/unictype/test-categ_longname.c: New file.
1873
1874         New module 'unictype/category-longname'.
1875         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1876         * lib/unictype/categ_longname.c: New file.
1877         * modules/unictype/category-longname: New file.
1878         * modules/unictype/category-all (Depends-on): Add it.
1879
1880 2011-03-25  Bruno Haible  <bruno@clisp.org>
1881
1882         Tests for module 'unictype/category-LC'.
1883         * modules/unictype/category-LC-tests: New file.
1884         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1885
1886         New module 'unictype/category-LC'.
1887         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1888         (UC_CATEGORY_LC): New declaration.
1889         (UC_CASED_LETTER): New macro.
1890         * lib/gen-uni-tables.c (is_category_LC): New function.
1891         (output_categories): Also handle category LC.
1892         (UC_CATEGORY_MASK_LC): New enumeration value.
1893         (general_category_byname): Also handle category LC.
1894         * lib/unictype/categ_LC.c: New file.
1895         * lib/unictype/categ_LC.h: New file, automatically generated.
1896         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1897         category LC.
1898         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1899         * modules/unictype/category-LC: New file.
1900         * modules/unictype/category-byname (Depends-on): Add
1901         unictype/category-LC.
1902         * modules/unictype/category-all (Depends-on): Likewise.
1903
1904 2011-03-25  Eric Blake  <eblake@redhat.com>
1905
1906         xmalloc: revert yesterday's regression
1907         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1908         realloc's underlying behavior (allowing allocation of zero-size
1909         objects, especially if malloc-gnu is also in use).
1910
1911 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1912
1913         maint.mk: add missing version to VC-tag
1914         * top/maint.mk: git tag was missing actual tag name; add it.
1915
1916         valgrind: do leak checking, and exit with code 1 on error (not 0)
1917         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1918         to VALGRIND.
1919
1920 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1921
1922         posix-modules: say what it does.
1923         * posix-modules: Add a line to the --help output saying what it does.
1924
1925 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         xmalloc: Do not leak if underlying realloc is C99 compatible.
1928         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1929         This avoids a leak on C99-based systems.  See
1930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1931
1932 2011-03-24  Eric Blake  <eblake@redhat.com>
1933
1934         realloc: document portability problem
1935         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1936         passing 0 size to realloc.
1937
1938 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1939
1940         doc: update users.txt
1941         * users.txt: Add cvsps, tmpwatch
1942
1943 2011-03-23  Matt Rice  <ratmice@gmail.com>
1944
1945         doc: update users.txt
1946         * users.txt: Add gdb.
1947
1948 2011-03-23  Jim Meyering  <meyering@redhat.com>
1949
1950         doc: update users.txt
1951         Looking through matches up to the following URL (there are still
1952         several more pages), I found several projects that use gnulib:
1953         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1954         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1955         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1956
1957 2011-03-22  Bruno Haible  <bruno@clisp.org>
1958
1959         unictype/bidi*: Rename functions.
1960         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1961         uc_bidi_class, uc_is_bidi_class): New declarations.
1962         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1963         uc_bidi_category_byname.
1964         (uc_bidi_category_byname): New function.
1965         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1966         u_bidi_category_name.
1967         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1968         (uc_bidi_category_name): New function.
1969         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1970         uc_bidi_category.
1971         (uc_bidi_category): New function.
1972         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1973         uc_is_bidi_category. Invoke uc_bidi_class.
1974         (uc_is_bidi_category): New function.
1975         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1976         instead of uc_bidi_category_byname.
1977         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1978         instead of uc_bidi_category_name.
1979         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1980         uc_bidi_category.
1981         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1982         instead of uc_is_bidi_category.
1983
1984 2011-03-21  Bruno Haible  <bruno@clisp.org>
1985
1986         New module 'unictype/joininggroup-all'.
1987         * modules/unictype/joininggroup-all: New file.
1988
1989         Tests for module 'unictype/joininggroup-of'.
1990         * modules/unictype/joininggroup-of-tests: New file.
1991         * tests/unictype/test-joininggroup_of.c: New file.
1992         * tests/unictype/test-joininggroup_of.h: New file, automatically
1993         generated by gen-uni-tables.
1994
1995         New module 'unictype/joininggroup-of'.
1996         * modules/unictype/joininggroup-of: New file.
1997         * lib/unictype/joininggroup_of.c: New file.
1998         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1999         gen-uni-tables.
2000
2001         Tests for module 'unictype/joininggroup-byname'.
2002         * modules/unictype/joininggroup-byname-tests: New file.
2003         * tests/unictype/test-joininggroup_byname.c: New file.
2004
2005         New module 'unictype/joininggroup-byname'.
2006         * modules/unictype/joininggroup-byname: New file.
2007         * lib/unictype/joininggroup_byname.c: New file.
2008         * lib/unictype/joininggroup_byname.gperf: New file.
2009
2010         Tests for module 'unictype/joininggroup-name'.
2011         * modules/unictype/joininggroup-name-tests: New file.
2012         * tests/unictype/test-joininggroup_name.c: New file.
2013
2014         New module 'unictype/joininggroup-name'.
2015         * modules/unictype/joininggroup-name: New file.
2016         * lib/unictype/joininggroup_name.c: New file.
2017         * lib/unictype/joininggroup_name.h: New file.
2018
2019         New module 'unictype/joiningtype-all'.
2020         * modules/unictype/joiningtype-all: New file.
2021
2022         Tests for module 'unictype/joiningtype-of'.
2023         * modules/unictype/joiningtype-of-tests: New file.
2024         * tests/unictype/test-joiningtype_of.c: New file.
2025         * tests/unictype/test-joiningtype_of.h: New file, automatically
2026         generated by gen-uni-tables.
2027
2028         New module 'unictype/joiningtype-of'.
2029         * modules/unictype/joiningtype-of: New file.
2030         * lib/unictype/joiningtype_of.c: New file.
2031         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2032         gen-uni-tables.
2033
2034         Tests for module 'unictype/joiningtype-byname'.
2035         * modules/unictype/joiningtype-byname-tests: New file.
2036         * tests/unictype/test-joiningtype_byname.c: New file.
2037
2038         New module 'unictype/joiningtype-byname'.
2039         * modules/unictype/joiningtype-byname: New file.
2040         * lib/unictype/joiningtype_byname.c: New file.
2041
2042         Tests for module 'unictype/joiningtype-name'.
2043         * modules/unictype/joiningtype-name-tests: New file.
2044         * tests/unictype/test-joiningtype_name.c: New file.
2045
2046         New module 'unictype/joiningtype-name'.
2047         * modules/unictype/joiningtype-name: New file.
2048         * lib/unictype/joiningtype_name.c: New file.
2049
2050         unictype: Add support for Arabic shaping properties.
2051         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2052         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2053         declarations.
2054         (UC_JOINING_GROUP_*): New enumeration values.
2055         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2056         declarations.
2057         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2058         (unicode_joining_type): New variable.
2059         (UC_JOINING_GROUP_*): New enumeration values.
2060         (unicode_joining_group): New variable.
2061         (fill_arabicshaping, joining_type_as_c_identifier,
2062         output_joining_type_test, output_joining_type,
2063         joining_group_as_c_identifier, output_joining_group_test,
2064         output_joining_group): New functions.
2065         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2066         fill_arabicshaping and output_joining_type_test, output_joining_type,
2067         output_joining_group_test, output_joining_group.
2068         Reported by Simon Josefsson.
2069
2070 2011-03-21  Jim Meyering  <meyering@redhat.com>
2071
2072         strftime: fix a bug in yesterday's change
2073         * lib/strftime.c (add): Accommodate width's initial value of -1.
2074         Otherwise, nstrftime would copy uninitialized data into
2075         the result buffer.
2076
2077 2011-03-21  Jim Meyering  <meyering@redhat.com>
2078
2079         tests: add strftime-tests module
2080         * tests/test-strftime.c: New file.
2081         * modules/strftime-tests: New module.
2082
2083 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         strftime: don't assume a byte count fits in 'int'
2086         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2087         found this problem by static analysis, using gcc -Wstrict-overflow
2088         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2089         on an integer overflow having undefined behavior, but it turns out
2090         that the argument is a size, which might not fit in 'int' anyway,
2091
2092 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2093
2094         stdio: don't require ignore_value around fwrite
2095
2096         This patch works around libc bug 11959
2097         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2098         Without this patch, applications must often write
2099         ignore_value (fwrite (...)) even though the ignore_value is
2100         not helpful here.  It's common to write many objects, using
2101         fwrite/printf/etc., and then use ferror to detect output error.
2102
2103         I considered making this patch optional, but decided against it,
2104         because libc is obviously being inconsistent here: there is no
2105         reason libc should insist that user code must inspect fwrite
2106         return's value without also insisting that it inspect printf's,
2107         putchar's, etc.  If user code wants to have a strict style where
2108         all these functions' values are checked (so that ferror need not
2109         be checked), we could add support for that style in a new gnulib
2110         module, but in the meantime it's better to be consistent and to
2111         support common usage.
2112
2113         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2114         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2115         that we are compiling in checking mode, and if not C++, and
2116         if not already wrapping fwrite for some other reason.
2117         (fwrite): #define to rpl_fwrite if the latter is defined.
2118
2119 2011-03-20  Bruno Haible  <bruno@clisp.org>
2120
2121         verror: Fix compilation error introduced on 2011-02-13.
2122         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2123         instead of __attribute__.
2124         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2125
2126 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2127             Bruno Haible  <bruno@clisp.org>
2128
2129         socklen: do not depend on sys_socket
2130         While trying to modify Emacs to use gnulib's socklen module,
2131         I discovered a circular dependency: socklen depends on sys_socket
2132         and vice versa.  Emacs can use socklen, but it does not need
2133         sys_socket because it has its own substitute for sys/socket.h.
2134         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2135         gl_TYPE_SOCKLEN_T.
2136         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2137         gl_PREREQ_SYS_H_SOCKET.
2138         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2139         gl_PREREQ_SYS_H_SOCKET.
2140         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2141         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2142         * modules/socklen (Depends-on): Do not depend on sys_socket.
2143         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2144
2145 2011-03-20  Jim Meyering  <meyering@redhat.com>
2146
2147         maint.mk: sort file names *after* new transformation
2148         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2149         prefix would have led to an unwarranted failure in GNU parted.
2150         Sort after that transformation.
2151
2152 2011-03-19  Jim Meyering  <meyering@redhat.com>
2153
2154         maint.mk: fix po-file syntax-check rule
2155         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2156         Patch by Bruno Haible.
2157
2158 2011-03-19  Bruno Haible  <bruno@clisp.org>
2159
2160         socklen: Update comment.
2161         * m4/socklen.m4: Update comment about platforms.
2162
2163 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2164             Bruno Haible  <bruno@clisp.org>
2165
2166         inet_ntop, inet_pton: Simplify.
2167         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2168         documented to provide socklen_t and we already depend on sys_socket.
2169         * modules/inet_pton (Depends-on): Likewise.
2170         * lib/arpa_inet.in.h: Adjust comment.
2171
2172 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2173             Bruno Haible  <bruno@clisp.org>
2174
2175         netdb: Simplify.
2176         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2177         documented to provide socklen_t and we already depend on sys_socket.
2178         * lib/netdb.in.h: Adjust comment.
2179
2180 2011-03-19  Bruno Haible  <bruno@clisp.org>
2181
2182         sys_socket, netdb: Document problem with socklen_t.
2183         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2184         platforms.
2185         * doc/posix-headers/netdb.texi: Likewise.
2186
2187 2011-03-18  Eric Blake  <eblake@redhat.com>
2188
2189         maint.mk: let po check work in VPATH build
2190         * top/maint.mk (po_file): Allow cfg.mk override.
2191         (sc_po_check): Allow VPATH use.
2192         Reported by Jiri Denemark.
2193
2194 2011-03-16  Jim Meyering  <meyering@redhat.com>
2195
2196         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2197         Before, you would have had to create one .x-sc_ file per rule in order
2198         to exempt offending files.  Now, you may instead use a Make variable --
2199         usually defined in cfg.mk -- whose name identifies the affected rule.
2200         * top/maint.mk (_sc_excl): Define.
2201         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2202         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2203
2204 2011-03-13  Bruno Haible  <bruno@clisp.org>
2205
2206         ignore-value tests: Avoid warnings.
2207         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2208         empty for gcc < 3.4.
2209
2210 2011-03-13  Bruno Haible  <bruno@clisp.org>
2211
2212         passfd: Fix link error on Solaris.
2213         * modules/passfd (Description): Correct.
2214         (Depends-on): Add socketlib.
2215         (Link): New section.
2216         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2217
2218 2011-03-13  Bruno Haible  <bruno@clisp.org>
2219
2220         passfd: Fix link error on AIX 5.2.
2221         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2222
2223 2011-03-13  Bruno Haible  <bruno@clisp.org>
2224
2225         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2226         * lib/sys_socket.in.h: Include <stddef.h>.
2227         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2228         CMSG_FIRSTHDR. Remove unused variable.
2229
2230 2011-03-13  Bruno Haible  <bruno@clisp.org>
2231
2232         passfd: Fix compilation error on OpenBSD.
2233         * lib/passfd.c: Include <sys/uio.h>.
2234
2235 2011-03-13  Bruno Haible  <bruno@clisp.org>
2236
2237         passfd test: Fix warnings.
2238         * tests/test-passfd.c: Include <sys/wait.h>.
2239         (main): Fix typo.
2240
2241 2011-03-13  Bruno Haible  <bruno@clisp.org>
2242
2243         passfd module, part 4, tweaks.
2244         * tests/test-passfd.c: Reorder includes.
2245         (main): Fix perror and printf calls.
2246
2247 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2248
2249         passfd module, part 4.
2250         * modules/passfd-tests: New file.
2251         * tests/test-passfd.c: New file.
2252
2253 2011-03-13  Jim Meyering  <meyering@redhat.com>
2254
2255         Makefile: rely on GNU make; derive syntax-check rule names
2256         Rather than requiring that each sc_ rule be listed as a dependent
2257         of "check", use features of GNU make to derive the list.
2258         * Makefile (syntax-check-rules): Define.
2259         (check): Depend on the new variable, not the hard-coded list.
2260
2261 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2262             Bruno Haible  <bruno@clisp.org>
2263
2264         passfd module, part 3.
2265         * lib/passfd.h (recvfd): Add a flags argument.
2266         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2267         (recvfd): Add a flags argument.
2268         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2269         exists.
2270         * modules/passfd (Depends-on): Add cloexec.
2271         Suggested by Eric Blake.
2272
2273 2011-03-13  Bruno Haible  <bruno@clisp.org>
2274
2275         passfd module, part 2, tweaks.
2276         * modules/passfd (Files): Reorder.
2277         (Depends-on): Remove errno.
2278         (Include): Remove <sys/socket.h>, <sys/un.h>.
2279         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2280         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2281         specification header. Include <sys/socket.h> always. Don't include
2282         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2283         (sendfd): Clarify that it sets errno when it fails.
2284         (recvfd): Fix specification.
2285
2286 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2287
2288         passfd module, part 2.
2289         * modules/passfd: New file.
2290         * lib/passfd.h: New file.
2291         * lib/passfd.c: New file.
2292
2293 2011-03-12  Bruno Haible  <bruno@clisp.org>
2294
2295         wcswidth, mbswidth: Avoid integer overflow.
2296         * lib/wcswidth.c: Include <limits.h>.
2297         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2298         * lib/mbswidth.c: Include <limits.h>.
2299         (mbsnwidth): Avoid 'int' overflow.
2300         Reported by Jim Meyering.
2301
2302 2011-03-12  Bruno Haible  <bruno@clisp.org>
2303
2304         futimens, utimensat: Avoid endless recursion on Solaris 10.
2305         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2306         Solaris.
2307         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2308         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2309
2310 2011-03-11  Jim Meyering  <meyering@redhat.com>
2311
2312         maint.mk: relax a regexp to accommodate other formatting styles
2313         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2314         between "ngettext" and the following "(".
2315
2316 2011-03-11  Pádraig Brady <P@draigBrady.com>
2317
2318         maint.mk: suppress a false positive warning
2319         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2320         diagnostics are marked with ngettext.
2321
2322 2011-03-10  Eric Blake  <eblake@redhat.com>
2323
2324         wchar: add explicit dependencies, for Tru64
2325         * modules/mbmemcasecoll (Depends-on): Add wchar.
2326         * modules/mbtowc (Depends-on): Likewise.
2327         * modules/vasnprintf (Depends-on): Likewise.
2328         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2329         * modules/wctomb (Depends-on): Likewise.
2330         Reported by Peter O'Gorman.
2331
2332 2011-03-08  Bruno Haible  <bruno@clisp.org>
2333
2334         passfd module, part 1, tweaks.
2335         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2336         Improve indentation. Improve AC_MSG_CHECKING messages.
2337         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2338         gl_SOCKET_FAMILIES.
2339
2340 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2341
2342         passfd module, part 1.
2343         * m4/afunix.m4: New file.
2344         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2345         sockets.
2346
2347 2011-03-08  Bruno Haible  <bruno@clisp.org>
2348
2349         regex-quote: New API.
2350         * lib/regex-quote.h: Include <stdbool.h>.
2351         (struct regex_quote_spec): New type.
2352         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2353         New declarations.
2354         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2355         'const struct regex_quote_spec *' argument.
2356         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2357         (pcre_special): New constant.
2358         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2359         New functions.
2360         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2361         'const struct regex_quote_spec *' argument.
2362         * modules/regex-quote (Depends-on): Add stdbool.
2363         * tests/test-regex-quote.c (check): Update for new API. Add test for
2364         anchored results.
2365         * NEWS: Mention the API change.
2366         Reported by Reuben Thomas and Eric Blake.
2367
2368 2011-03-06  Bruno Haible  <bruno@clisp.org>
2369
2370         regex-quote: Fix creation of POSIX extended regular expressions.
2371         * lib/regex-quote.c (ere_special): Add grouping and alternation
2372         operators.
2373
2374 2011-03-05  Bruno Haible  <bruno@clisp.org>
2375
2376         doc: Improve doc regarding autopoint vs. gnulib.
2377         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2378         disable autopoint while running autoreconf.
2379         Suggested by Ralf Wildenhues.
2380
2381 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2382
2383         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2384         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2385
2386 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2387
2388         parse-duration: remove xalloc.h dependency
2389         * lib/parse-duration.c (parse_period): handle NULL return from
2390         strdup instead of calling xstrdup().
2391         * modules/parse-duration: remove "xalloc" dependency
2392
2393 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2394
2395         bootstrap: honor m4_base when running aclocal
2396         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2397
2398 2011-03-02  Jim Meyering  <meyering@redhat.com>
2399
2400         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2401         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2402         on request from Matt Booth.
2403
2404 2011-03-01  Eric Blake  <eblake@redhat.com>
2405
2406         test-link: work on Hurd
2407         * tests/test-link.h (test_link): Hurd rejects linking directories
2408         with EISDIR instead of the POSIX-mandated EPERM.
2409
2410 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2411
2412         stdio: simplify by moving files to printf-posix, sigpipe
2413         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2414         since this symbol is needed only if printf is replaced.
2415         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2416         Require gl_ASM_SYMBOL_PREFIX.
2417         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2418         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2419         (Depends-on): Add 'raise'.
2420         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2421         * modules/stdio (Files): Remove lib/stdio-write.c,
2422         m4/asm-underscore.m4.
2423         (Depends-on): Remove 'raise'.
2424
2425         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2426         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2427         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2428         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2429
2430 2011-02-28  Bruno Haible  <bruno@clisp.org>
2431
2432         localcharset: Assume ANSI C behaviour of free().
2433         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2434         calling free().
2435         Suggested by Simon Josefsson <simon@josefsson.org>.
2436
2437 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2438             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2439             Bruno Haible  <bruno@clisp.org>  (tiny change)
2440
2441         On Cygwin, use /proc file system instead of win32 API.
2442         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2443         Win32 file names.
2444         (DllMain): Simplify by removing Cygwin specific code.
2445         (find_shared_library_fullname): Use Linux specific implementation also
2446         for Cygwin.
2447         (get_shared_library_fullname): Update accordingly.
2448         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2449         Win32 file names.
2450         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2451         Cygwin specific code.
2452
2453 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2454             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2455
2456         Fix OpenMP flag detection for various Fortran compilers.
2457         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2458         OpenMP-conditional compilation construct, to force compile
2459         failure with missing OpenMP flag.
2460         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2461
2462 2011-02-25  Eric Blake  <eblake@redhat.com>
2463
2464         strstr: expand test coverage
2465         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2466         compilation.
2467         * tests/test-memmem.c (main): Duplicate tests.
2468         * tests/test-strcasestr.c (main): Likewise.
2469         * tests/test-c-strcasestr.c (main): Likewise.
2470
2471 2011-02-25  Jim Meyering  <meyering@redhat.com>
2472
2473         maint.mk: detect missing-NL-at-EOF, too
2474         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2475         it also detects when a file lacks a newline at EOF.
2476         (require_exactly_one_NL_at_EOF_): Renamed from
2477         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2478         since people may well have .x-sc_... file names tied to the
2479         existing name.  Suggested by Eric Blake.
2480
2481 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2482
2483         dirname: move m4/dos.m4 functionality into lib/dosname.h
2484
2485         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2486         extracts symbols from it, puts them into config.h; but it's much
2487         easier to use the symbols directly.  filename.h already does this,
2488         but it disagrees with dos.m4 in some respects.  This patch
2489         introduces a different include file dosname.h that packages up
2490         dos.m4, and then later we can work on merging filename.h and
2491         dosname.h.  Applications that need only the easy-to-configure
2492         symbols should consider including dosname.h rather than dirname.h.
2493         * NEWS: Mention incompatible changes.
2494         * m4/dos.m4: Remove.
2495         * lib/dosname.h, modules/dosname: New files.
2496         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2497         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2498         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2499         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2500         Include dosname.h, not dirname.h.
2501         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2502         Include dosname.h, for definitions of symbols like ISSLASH
2503         that used to be in config.h.
2504         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2505         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2506         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2507         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2508         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2509         * modules/rmdir (Files): Likewise.
2510         * modules/stat (Files): Likewise.
2511         * modules/unlink (Files): Likewise.
2512         * modules/dirname-lgpl (Depends-on): Add dosname.
2513         * modules/lstat (Depends-on): Likewise.
2514         * modules/openat (Depends-on): Likewise.
2515         * modules/rmdir (Depends-on): Likewise.
2516         * modules/savewd (Depends-on): Likewise.
2517         * modules/stat (Depends-on): Likewise.
2518         * modules/unlink (Depends-on): Likewise.
2519         * modules/openat (Depends-on): Remove dirname-lgpl.
2520         * modules/savewd (Depends-on): Likewise.
2521         * tests/test-dirname.c: Do not use removed symbols like
2522         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2523         the remaining symbols, e.g., ISSLASH ('\\').
2524
2525 2011-02-25  Eric Blake  <eblake@redhat.com>
2526
2527         strstr: revert patches that introduced bug and pessimization
2528         * lib/str-two-way.h: Add another reference.
2529         (two_way_short_needle, two_way_long_needle): Revert changes from
2530         2011-02-24; they pessimize search speed.
2531         (critical_factorization): Partially revert changes from
2532         2010-06-22; they violate the requirement that the left half of the
2533         needle be smaller than the period of the needle.
2534
2535 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2536
2537         filenamecat: remove unnecessary dependency on dirname-lgpl
2538         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2539         is no direct dependency, just an indirect one via filenamecat-lgpl.
2540
2541         remove: remove unnecessary use of m4/dos.m4
2542         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2543         * modules/remove (FILES): Remove m4/dos.m4.
2544
2545         * lib/openat-proc.c: Don't include dirname.h; not needed.
2546
2547         backupfile: remove unnecessary use of m4/dos.m4
2548         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2549         of its symbols are used by the backupfile code.  backupfile.c does
2550         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2551         for the rare case of programs that want all their backup file
2552         names to live within 8+3 limits, and dos.m4 doesn't address that.
2553         * modules/backupfile (Files): Remove m4/dos.m4.
2554
2555 2011-02-24  Jim Meyering  <meyering@redhat.com>
2556
2557         strstr: fix a bug whereby strstr would mistakenly return NULL
2558         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2559         in period calculation.
2560         (two_way_long_needle): Likewise.
2561         The original problem was reported by Mike Stump in
2562         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2563         Ralf Wildenhues provided the short needle and haystack.
2564         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2565         Add a more involved test to trigger the bug in two_way_long_needle.
2566
2567 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2568
2569         gnulib-tool: remove use of bold display in help screen
2570         * gnulib-tool (func_usage): Do not use bold display anymore in the
2571         help screen.  That was just meant to be a temporary emphasis for a
2572         backward-incompatible change.
2573
2574 2011-02-23  Bruno Haible  <bruno@clisp.org>
2575
2576         Fix misindentation of preprocessor directives.
2577         * lib/argp-namefrob.h: Reindent preprocessor directives.
2578         * lib/getopt_int.h (struct _getopt_data): Likewise.
2579         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2580         * lib/vasnprintf.c (decode_long_double): Likewise.
2581         * tests/test-argmatch.c: Insert blank lines, for clarity.
2582         * tests/test-exclude.c: Likewise.
2583
2584 2011-02-22  Bruno Haible  <bruno@clisp.org>
2585
2586         ioctl: Fix for MacOS X in 64-bit mode.
2587         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2588         value.
2589         Suggested by Eric Blake.
2590         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2591
2592 2011-02-22  Jim Meyering  <meyering@redhat.com>
2593
2594         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2595         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2596         in lib/.
2597
2598 2011-02-22  Eric Blake  <eblake@redhat.com>
2599
2600         maint: avoid any CDPATH issue
2601         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2602
2603         maint: adjust cpp indentation for my modules, as well
2604         * Makefile (sc_cpp_indent_check): Add my name.
2605         * lib/fbufmode.c: Filter through cppi.
2606         * lib/fpurge.c: Likewise.
2607         * lib/freadable.c: Likewise.
2608         * lib/freading.c: Likewise.
2609         * lib/fwritable.c: Likewise.
2610         * lib/fwriting.c: Likewise.
2611         * lib/sigaction.c: Likewise.
2612
2613 2011-02-22  Jim Meyering  <meyering@redhat.com>
2614
2615         maint: adjust cpp indentation to reflect nesting depth
2616         I.e., in a block of code that begins with an unnested "#if",
2617         put one space between the "#" in column 1 and following token.
2618         For example,
2619         -#include <sys/vfs.h>
2620         +# include <sys/vfs.h>
2621         Do this only in .c files that are part of a module I maintain.
2622         * lib/linkat.c: Filter through cppi.
2623         * lib/nanosleep.c: Likewise.
2624         * lib/openat.c: Likewise.
2625         * lib/openat-die.c: Likewise.
2626         * lib/dup3.c: Likewise.
2627         * lib/fchownat.c: Likewise.
2628         * lib/flock.c: Likewise.
2629         * lib/fsync.c: Likewise.
2630         * lib/fts.c: Likewise.
2631         * lib/getpass.c: Likewise.
2632         * lib/gettimeofday.c: Likewise.
2633         * lib/userspec.c: Likewise.
2634         * Makefile (sc_cpp_indent_check): New rule, to check this.
2635
2636 2011-02-22  Bruno Haible  <bruno@clisp.org>
2637
2638         New module 'wctomb'.
2639         * lib/stdlib.in.h (wctomb): New declaration.
2640         * lib/wctomb.c: New file.
2641         * lib/wctomb-impl.h: New file.
2642         * m4/wctomb.m4: New file.
2643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2644         REPLACE_WCTOMB.
2645         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2646         REPLACE_WCTOMB.
2647         * modules/wctomb: New file.
2648         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2649         * doc/posix-functions/wctomb.texi: Mention the new module.
2650         * modules/wctob (Depends-on): Add wctomb.
2651
2652 2011-02-22  Bruno Haible  <bruno@clisp.org>
2653
2654         New module 'mbtowc'.
2655         * lib/stdlib.in.h (mbtowc): New declaration.
2656         * lib/mbtowc.c: New file.
2657         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2658         * m4/mbtowc.m4: New file.
2659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2660         REPLACE_MBTOWC.
2661         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2662         REPLACE_MBTOWC.
2663         * modules/mbtowc: New file.
2664         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2665         * doc/posix-functions/mbtowc.texi: Mention the new module.
2666         * modules/btowc (Depends-on): Add mbtowc.
2667
2668 2011-02-22  Bruno Haible  <bruno@clisp.org>
2669
2670         wcrtomb: Add more tests for native Windows platforms.
2671         * tests/test-wcrtomb-w32-1.sh: New file.
2672         * tests/test-wcrtomb-w32-2.sh: New file.
2673         * tests/test-wcrtomb-w32-3.sh: New file.
2674         * tests/test-wcrtomb-w32-4.sh: New file.
2675         * tests/test-wcrtomb-w32-5.sh: New file.
2676         * tests/test-wcrtomb-w32.c: New file.
2677         * modules/wcrtomb-tests (Files): Add them.
2678         (Makefile.am): Arrange to run these tests.
2679         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2680         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2681
2682 2011-02-20  Bruno Haible  <bruno@clisp.org>
2683
2684         wcrtomb: Enhance test.
2685         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2686
2687 2011-02-20  Bruno Haible  <bruno@clisp.org>
2688
2689         mbrtowc: Tiny optimization.
2690         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2691
2692 2011-02-20  Jim Meyering  <meyering@redhat.com>
2693
2694         test-exclude.c: remove unmatched #endif
2695         * tests/test-exclude.c: Remove stray #endif, left over from
2696         the change of a week ago.
2697
2698 2011-02-19  Jim Meyering  <meyering@redhat.com>
2699
2700         git-version-gen: skip "-dirty" check when appropriate
2701         * build-aux/git-version-gen: Don't run any git commands when the
2702         version string comes from .tarball-version.  Prior to this, we
2703         would run git update-index --refresh even from a just-unpacked
2704         tarball directory, and that could affect a .git/ directory in a
2705         parent of the build directory.  Reported by Mike Frysinger.
2706
2707 2011-02-19  Bruno Haible  <bruno@clisp.org>
2708
2709         unictype/property-byname: Reduce the size of the 'data' segment.
2710         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2711
2712 2011-02-19  Bruno Haible  <bruno@clisp.org>
2713
2714         unictype/scripts: Reduce the size of the 'data' segment.
2715         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2716         '%pic'.
2717         * lib/unictype/scripts_byname.gperf: Regenerated.
2718
2719 2011-02-19  Bruno Haible  <bruno@clisp.org>
2720
2721         stdint: Update documentation.
2722         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2723
2724 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2725
2726         stdint: omit redundant check for wchar.h
2727         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2728         always tests whether wchar.h exists, so remove the now-redundant test.
2729
2730 2011-02-18  Bruno Haible  <bruno@clisp.org>
2731
2732         stdint: Cut dependency to module 'wchar'.
2733         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2734         include the necessary prerequisites.
2735         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2736         * modules/stdint (Depends-on): Remove wchar.
2737         (Makefile.am): Substitute HAVE_WCHAR_H.
2738         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2739
2740 2011-02-18  Eric Blake  <eblake@redhat.com>
2741
2742         longlong: skip, rather than fail, on cross-compilation
2743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2744         when cross-compiling; regression from 2011-02-16.
2745
2746 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2747
2748         * NEWS: Mention 2011-02-08 change to stdlib.
2749
2750 2011-02-17  Bruno Haible  <bruno@clisp.org>
2751
2752         getloadavg: Add comments about platforms.
2753         * m4/getloadavg.m4: Add comment.
2754         * lib/getloadavg.c: Likewise.
2755
2756 2011-02-17  Bruno Haible  <bruno@clisp.org>
2757
2758         getloadavg: Fix link error on Solaris 2.6.
2759         * modules/getloadavg (Link): New section.
2760         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2761         linking test-getloadavg.
2762         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2763         getloadavg.
2764
2765 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2766
2767         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2768         It was 'int', but this doesn't match the IRIX 6.5 manual.
2769         Suggested by Bruno Haible in
2770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2771
2772 2011-02-17  Bruno Haible  <bruno@clisp.org>
2773
2774         havelib: Fix comments.
2775         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2776         change.
2777
2778 2011-02-17  Bruno Haible  <bruno@clisp.org>
2779
2780         havelib: Update config.rpath.
2781         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2782
2783 2011-02-17  Bruno Haible  <bruno@clisp.org>
2784
2785         getloadavg test: Add some plausibility checks.
2786         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2787         is improbable.
2788
2789 2011-02-16  Eric Blake  <eblake@redhat.com>
2790
2791         maintainer-makefile: make syntax-check a no-op from tarballs
2792         * top/maint.mk (no-vc-detected): New rule.
2793         (local-checks-available): Use it to avoid hanging if someone tries
2794         'make syntax-check' from a tarball.  Also append to any non-syntax
2795         checks already defined in cfg.mk.
2796
2797 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2798
2799         longlong: tune, particularly for common case of c99
2800
2801         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2802         or running anything if c99, or if unsigned long long int does not
2803         work.  In either case, we know the answer without further tests.
2804         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2805         it at most once, and use its results for both long long int and
2806         unsigned long long int.  This is more likely to be efficient in
2807         the common case where the program wants to check for both long
2808         long int and unsigned long long int.
2809         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2810         since the answer is already known.
2811
2812 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2813
2814         getloadavg: set errno
2815         * lib/getloadavg.c: Set errno when returning -1.  If no other
2816         error number looks appropriate, set it to ENOSYS if the getloadavg
2817         looks like it can't possibly ever work, ENOTSUP otherwise.
2818         Suggested by Bruno Haible in
2819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2820
2821         getloadavg: trim unused parts and speed up 'configure'
2822         * NEWS: Document this.
2823         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2824         always compiled if getloadavg is absent.
2825         Move test code to ...
2826         * tests/test-getloadavg.c: New file, containing previous
2827         contents of test from lib/getloadavg.c.  It also contains
2828         suggestions by Bruno Haible in
2829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2830         * modules/getloadavg-tests: New file.
2831         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2832         Do tests in the same order as they're needed for getloadavg.c.
2833         Omit setgid-related tests that generate symbols KMEM_GROUP,
2834         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2835         Do only the tests that are needed to see whether the system has
2836         getloadavg, moving the other tests into ...
2837         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2838         NLIST_NAME_UNION; nobody should be using it.  Do not define
2839         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2840         relevant, as the user of this module shouldn't care how getloadavg
2841         is implemented.
2842
2843         getloadavg: omit unused var
2844         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2845
2846 2011-02-15  Jim Meyering  <meyering@redhat.com>
2847
2848         doc: update users.txt
2849         * users.txt: Update iwhd's URL.
2850
2851 2011-02-13  Bruno Haible  <bruno@clisp.org>
2852
2853         Consistent macro naming for macros that use GCC __attribute__.
2854         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2855         _ATTRIBUTE_NONNULL_.
2856         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2857         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2858         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2859         ATTRIBUTE_DEPRECATED.
2860         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2861         ATTRIBUTE_NORETURN.
2862         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2863         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2864         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2865         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2866         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2867         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2868         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2869         ATTRIBUTE_SENTINEL.
2870         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2871         ATTRIBUTE_RETURN_CHECK.
2872         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2873         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2874         ATTRIBUTE_NORETURN.
2875         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2876         Reported by Paul Eggert.
2877
2878 2011-02-13  Bruno Haible  <bruno@clisp.org>
2879
2880         Don't interfere with a program's definition of __attribute__.
2881         * lib/argp.h (__attribute__): Remove definition.
2882         (_GL_ATTRIBUTE_FORMAT): New macro.
2883         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2884         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2885         (_GL_ATTRIBUTE_FORMAT): New macro.
2886         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2887         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2888         GCC 3 or newer.
2889         * lib/error.h (__attribute__): Remove definition.
2890         (_GL_ATTRIBUTE_FORMAT): New macro.
2891         (error, error_at_line): Use it.
2892         * lib/hash.h (__attribute__): Remove definition.
2893         (ATTRIBUTE_WUR): Update definition. Define always.
2894         * lib/openat.h (__attribute__): Remove definition.
2895         (ATTRIBUTE_NORETURN): Update definition. Define always.
2896         * lib/sigpipe-die.h (__attribute__): Remove definition.
2897         (ATTRIBUTE_NORETURN): Update definition. Define always.
2898         * lib/vasnprintf.h (__attribute__): Remove definition.
2899         (_GL_ATTRIBUTE_FORMAT): New macro.
2900         (asnprintf, vasnprintf): Use it.
2901         * lib/xalloc.h (__attribute__): Remove definition.
2902         (ATTRIBUTE_NORETURN): Update definition. Define always.
2903         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2904         * lib/xmemdup0.h (__attribute__): Remove definition.
2905         (ATTRIBUTE_NORETURN): Update definition. Define always.
2906         * lib/xprintf.h (__attribute__): Remove definition.
2907         (_GL_ATTRIBUTE_FORMAT): New macro.
2908         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2909         * lib/xstrtol.h (__attribute__): Remove definition.
2910         (ATTRIBUTE_NORETURN): Update definition. Define always.
2911         * lib/xvasprintf.h (__attribute__): Remove definition.
2912         (_GL_ATTRIBUTE_FORMAT): New macro.
2913         (xasprintf, xvasprintf): Use it.
2914         * tests/test-argmatch.c (__attribute__): Remove definition.
2915         (ATTRIBUTE_NORETURN): Update definition. Define always.
2916         * tests/test-exclude.c (__attribute__): Remove definition.
2917         (ATTRIBUTE_NORETURN): Update definition. Define always.
2918         Reported by Paul Eggert.
2919
2920 2011-02-13  Bruno Haible  <bruno@clisp.org>
2921
2922         mbrtowc: Add more tests for native Windows platforms.
2923         * tests/test-mbrtowc-w32-1.sh: New file.
2924         * tests/test-mbrtowc-w32-2.sh: New file.
2925         * tests/test-mbrtowc-w32-3.sh: New file.
2926         * tests/test-mbrtowc-w32-4.sh: New file.
2927         * tests/test-mbrtowc-w32-5.sh: New file.
2928         * tests/test-mbrtowc-w32.c: New file.
2929         * modules/mbrtowc-tests (Files): Add them.
2930         (Makefile.am): Arrange to run these tests.
2931         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2932         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2933
2934 2011-02-13  Bruno Haible  <bruno@clisp.org>
2935
2936         mbrtowc: Work around native Windows bug.
2937         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2938         guess when no suitable locale for testing was found.
2939         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2940
2941 2011-02-13  Bruno Haible  <bruno@clisp.org>
2942
2943         mbsinit: Work around mingw bug.
2944         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2945         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2946         Windows.
2947         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2948
2949 2011-02-13  Bruno Haible  <bruno@clisp.org>
2950
2951         mbsinit: Don't crash for a NULL argument.
2952         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2953         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2954
2955 2011-02-13  Bruno Haible  <bruno@clisp.org>
2956
2957         Don't interfere with a program's definition of __attribute__.
2958         * lib/stdio.in.h (__attribute__): Remove definition.
2959         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2960         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2961         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2962         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2963         * lib/string.in.h (__attribute__): Remove definition.
2964         Reported by Paul Eggert.
2965
2966 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2967
2968         stdlib: don't get in the way of non-GCC __attribute__
2969         See thread starting at
2970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2971         Revert previous stdlib change, installing the following instead:
2972         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2973         to get in the way of a non-GCC compiler that supports __attribute__.
2974         (_GL_ATTRIBUTE_RETURN): New macro.
2975         (_Exit): Use it instead of __attribute__.
2976
2977 2011-02-12  Bruno Haible  <bruno@clisp.org>
2978
2979         quotearg test: Avoid test failure on mingw.
2980         * tests/test-quotearg.sh: Convert the locale identifier from native
2981         Windows syntax to Unix syntax.
2982
2983 2011-02-12  Bruno Haible  <bruno@clisp.org>
2984
2985         setlocale: Prefer gnulib's override over libintl's override.
2986         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2987         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2988         GNULIB_defined_setlocale is set.
2989
2990 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2991
2992         stdlib: support non-GCC __attribute__
2993
2994         Fix a serious and tricky problem encountered when attempting to
2995         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2996         5.5, but it crashed due to memory corruption on Solaris 10 with
2997         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2998         bits that are otherwise zero.  This tagging is optional inside
2999         Emacs but is preferred and is used when __attribute__ ((__aligned
3000         (8))) works, as it does with both recent-enough GCC and with Sun C
3001         5.11.  However, Sun C 5.11 is not GCC and does not #define
3002         __GNUC__ and __GNUC_MINOR__.
3003
3004         When I added the getloadavg module to Emacs, it brought in
3005         stdlib.in.h, which contained this fragment:
3006
3007            #ifndef __attribute__
3008            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3009            #  define __attribute__(Spec)   /* empty */
3010            # endif
3011            #endif
3012
3013         When files that include <stdlib.h> were compiled with Sun C 5.11,
3014         the above code disabled __attribute__ ((__aligned (8))), which
3015         caused variables to not be properly aligned, which eventually led
3016         to the pointer corruption mentioned above.  (This was a bit hard
3017         to diagnose, unfortunately.)
3018
3019         Several "#define __attribute__(X) /* empty */" code snippets need
3020         to be eradicated from Gnulib to work with non-GCC compilers that
3021         support __attribute__.  The Autoconf way to do this is to test for
3022         each kind of attribute that we want support for, and selectively
3023         enable that in source code.
3024
3025         Fix this problem just for stdlib.h, by adding a test for the
3026         __noreturn__ attribute, and change stdlib.in.h to use that test
3027         when needed.  This technique can be easily generalized to the
3028         other *.in.h files and attributes, and a similar technique can be
3029         used for *.h and *.c files.  This patch is enough to solve the
3030         problem for Emacs + getloadavg, and I thought I'd publish it for
3031         feedback before undertaking further, similar fixes in other
3032         modules.
3033
3034         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3035         because it's not needed for stdlib.h.  It merely substitutes the
3036         value directly into stdlib.h.  We may well need to #define it, or
3037         similar symbols, for other modules, but it's nice to also have an
3038         option to not #define it for applications like Emacs that do not
3039         need it.
3040
3041         * lib/stdlib.in.h (__attribute__): Do not #define.
3042         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3043         be defined only if the _Exit module is also used.
3044         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3046         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3047         platforms.
3048         * modules/_Exit (Files): Add m4/attribute.m4.
3049         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3050         * m4/attribute.m4: New file.
3051
3052 2011-02-12  Bruno Haible  <bruno@clisp.org>
3053
3054         wcsrtombs: Work around bug on native Windows.
3055         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3056         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3057         instead of len.
3058         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3059
3060 2011-02-12  Bruno Haible  <bruno@clisp.org>
3061
3062         mbsrtowcs: Work around bug on native Windows.
3063         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3064         against mingw bug.
3065         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3066
3067 2011-02-12  Bruno Haible  <bruno@clisp.org>
3068
3069         Avoid setlocale bugs in tests.
3070         * modules/btowc (Dependencies): Add setlocale.
3071         * modules/c-strcase (Dependencies): Likewise.
3072         * modules/mbmemcasecmp (Dependencies): Likewise.
3073         * modules/mbmemcasecoll (Dependencies): Likewise.
3074         * modules/mbrtowc (Dependencies): Likewise.
3075         * modules/mbscasecmp (Dependencies): Likewise.
3076         * modules/mbscasestr (Dependencies): Likewise.
3077         * modules/mbschr (Dependencies): Likewise.
3078         * modules/mbscspn (Dependencies): Likewise.
3079         * modules/mbsinit (Dependencies): Likewise.
3080         * modules/mbsncasecmp (Dependencies): Likewise.
3081         * modules/mbsnrtowcs (Dependencies): Likewise.
3082         * modules/mbspbrk (Dependencies): Likewise.
3083         * modules/mbspcasecmp (Dependencies): Likewise.
3084         * modules/mbsrchr (Dependencies): Likewise.
3085         * modules/mbsrtowcs (Dependencies): Likewise.
3086         * modules/mbsspn (Dependencies): Likewise.
3087         * modules/mbsstr (Dependencies): Likewise.
3088         * modules/nl_langinfo (Dependencies): Likewise.
3089         * modules/quotearg (Dependencies): Likewise.
3090         * modules/unicase/locale-language (Dependencies): Likewise.
3091         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3092         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3093         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3094         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3095         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3096         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3097         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3098         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3099         * modules/vasnprintf-posix (Dependencies): Likewise.
3100         * modules/wcrtomb (Dependencies): Likewise.
3101         * modules/wcsnrtombs (Dependencies): Likewise.
3102         * modules/wcsrtombs (Dependencies): Likewise.
3103
3104 2011-02-12  Bruno Haible  <bruno@clisp.org>
3105
3106         setlocale: Workaround native Windows bug.
3107         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3108         succeeds but sets LC_CTYPE to "C", report a failure.
3109         * tests/test-setlocale2.sh: New file.
3110         * tests/test-setlocale2.c: New file.
3111         * modules/setlocale-tests (Files): Add the new files.
3112         (Makefile.am): Enable test-setlocale2.sh test.
3113         * doc/posix-functions/setlocale.texi: Mention workaround.
3114
3115 2011-02-11  Bruno Haible  <bruno@clisp.org>
3116
3117         Tests for module 'setlocale'.
3118         * modules/setlocale-tests: New file.
3119         * tests/test-setlocale1.sh: New file.
3120         * tests/test-setlocale1.c: New file.
3121
3122         New module 'setlocale'.
3123         * lib/locale.in.h (setlocale): New declaration.
3124         * lib/setlocale.c: New file, based on
3125         gettext/gettext-runtime/intl/setlocale.c.
3126         * m4/setlocale.m4: New file.
3127         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3128         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3129         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3130         REPLACE_SETLOCALE.
3131         * modules/setlocale: New file.
3132         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3133         * doc/posix-functions/setlocale.texi: Mention the new module.
3134
3135 2011-02-11  Bruno Haible  <bruno@clisp.org>
3136
3137         Prepare for locale dependent tests on mingw.
3138         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3139         because it has the wrong locale encoding.
3140         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3141         French_France.1252 instead of "fr".
3142         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3143         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3144         because it has the wrong locale encoding.
3145         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3146         native Windows, try Turkish_Turkey.65001.
3147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3148         Chinese_China.54936.
3149
3150         Prepare for locale dependent tests on mingw.
3151         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3152         differently.
3153         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3154         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3155         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3156         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3157
3158 2011-02-11  Eric Blake  <eblake@redhat.com>
3159
3160         strptime: avoid compiler warnings
3161         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3162         compiler warnings about dead code.
3163         Reported by Daniel P. Berrange.
3164
3165 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3166
3167         doc: update users.txt
3168         * users.txt: Add rcs.
3169
3170 2011-02-10  John W. Eaton  <jwe@gnu.org>
3171
3172         doc: update users.txt
3173         * users.txt: Add octave.
3174
3175 2011-02-10  Jim Meyering  <meyering@redhat.com>
3176
3177         doc: update users.txt
3178         * users.txt: Add iwhd.
3179
3180 2011-02-09  Bruno Haible  <bruno@clisp.org>
3181
3182         gnulib-tool: Make copyright notice adjustment more robust.
3183         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3184         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3185         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3186         License".
3187         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3188
3189 2011-02-06  Bruno Haible  <bruno@clisp.org>
3190
3191         New module 'towctrans'.
3192         * modules/towctrans: New file.
3193         * lib/wctype.in.h (towctrans): New declaration.
3194         * lib/towctrans.c: New file.
3195         * lib/towctrans-impl.h: New file.
3196         * m4/towctrans.m4: New file.
3197         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3198         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3199         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3200         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3201         * doc/posix-functions/towctrans.texi: Mention the new module.
3202
3203 2011-02-06  Bruno Haible  <bruno@clisp.org>
3204
3205         New module 'wctrans'.
3206         * modules/wctrans: New file.
3207         * lib/wctype.in.h (wctrans): New declaration.
3208         * lib/wctrans.c: New file.
3209         * lib/wctrans-impl.h: New file.
3210         * m4/wctrans.m4: New file.
3211         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3212         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3213         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3214         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3215         * doc/posix-functions/wctrans.texi: Mention the new module.
3216
3217 2011-02-06  Bruno Haible  <bruno@clisp.org>
3218
3219         New module 'iswctype'.
3220         * modules/iswctype: New file.
3221         * lib/wctype.in.h (iswctype): New declaration.
3222         * lib/iswctype.c: New file.
3223         * lib/iswctype-impl.h: New file.
3224         * m4/iswctype.m4: New file.
3225         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3226         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3227         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3228         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3229         * doc/posix-functions/iswctype.texi: Mention the new module and the
3230         HP-UX 11.00 problem.
3231
3232 2011-02-06  Bruno Haible  <bruno@clisp.org>
3233
3234         New module 'wctype'.
3235         * modules/wctype: Change to represent the wctype() substitute.
3236         * lib/wctype.in.h (wctype): New declaration.
3237         * lib/wctype.c: New file.
3238         * lib/wctype-impl.h: New file.
3239         * m4/wctype.m4: New file.
3240         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3241         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3242         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3243         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3244         * doc/posix-functions/wctype.texi: Mention the new module and the
3245         HP-UX 11.00 problem.
3246
3247 2011-02-06  Bruno Haible  <bruno@clisp.org>
3248
3249         wctype-h: Ensure wctype_t and wctrans_t are defined.
3250         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3251         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3252         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3253         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3254         HAVE_WCTRANS_T.
3255         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3256
3257 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3258
3259         flock: fix license typo
3260
3261         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3262         omitted.
3263
3264 2011-02-08  Bruno Haible  <bruno@clisp.org>
3265
3266         Split large sed scripts, for HP-UX sed.
3267         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3268         to avoid HP-UX limit of 99 commands, in the near future.
3269         * modules/stdlib (Makefile.am): Likewise.
3270         * modules/unistd (Makefile.am): Likewise.
3271         * modules/wchar (Makefile.am): Likewise.
3272         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3273         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3274         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3275
3276 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3277             Bruno Haible  <bruno@clisp.org>
3278
3279         stdlib: improve random_r modularization
3280         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3281         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3282         you also need the random_r module to get this material right.
3283         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3284         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3285         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3286
3287 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3288
3289         stdlib: don't depend on stdint
3290         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3291         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3292         be independent of whether stdint.h is needed.
3293         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3294         here, instead of ...
3295         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3296         struct random_data should be using the random_r module, not just
3297         the stdlib module (which wouldn't make sense: what package needs
3298         just struct random_data without also needing random_r?).
3299         * modules/stdlib (Depends-on): Remove stdint.
3300
3301         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3302         See the thread rooted at
3303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3304         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3305         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3306         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3307         __VMS)); previously it was always included (via fcntl--.h).
3308         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3309         hand; this is good enough for load averages.  Also, do not use
3310         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3311         flags directly if available and don't bother otherwise.  (Packages
3312         that need the extra reliability should use the modules that define
3313         these flags on older platforms that lack them.)
3314         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3315         fcntl-safer.
3316
3317 2011-02-08  Jim Meyering  <meyering@redhat.com>
3318
3319         di-set.h, ino-map.h: add multiple-inclusion guard
3320         Technically, the guard is required only for ino-map.h, due to its
3321         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3322         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3323         * lib/ino-map.h: Likewise.
3324
3325 2011-02-06  Bruno Haible  <bruno@clisp.org>
3326
3327         iswblank: Ensure declaration on glibc systems.
3328         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3329         * modules/iswblank (Dependencies): Add 'extensions'.
3330         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3331
3332 2011-02-06  Bruno Haible  <bruno@clisp.org>
3333
3334         New module 'iswblank'.
3335         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3336         * modules/iswblank: New file.
3337         * modules/wctype-h (Files): Remove lib/iswblank.c.
3338         (Makefile.am): Substitute GNULIB_ISWBLANK.
3339         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3340         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3341         (gl_WCTYPE_H_DEFAULTS): New macro.
3342         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3343         * modules/iswblank-tests: New file.
3344         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3345         * tests/test-wctype-h.c (main): Remove iswblank tests.
3346         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3347         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3348         of 'wctype-h'.
3349         * NEWS: Mention the change.
3350         * modules/mbchar (Depends-on): Add iswblank.
3351
3352 2011-02-08  Bruno Haible  <bruno@clisp.org>
3353
3354         di-set tests: Refactor.
3355         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3356         unnecessary includes.
3357         (ASSERT): Remove macro.
3358         (main): Make C90 compliant by avoiding variable declaration after
3359         statement.
3360         * modules/di-set-tests (Files): Add tests/macros.h.
3361
3362 2011-02-08  Bruno Haible  <bruno@clisp.org>
3363
3364         ino-map tests: Refactor.
3365         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3366         unnecessary includes.
3367         (ASSERT): Remove macro.
3368         (main): Make C90 compliant by avoiding variable declaration after
3369         statement.
3370         * modules/ino-map-tests (Files): Add tests/macros.h.
3371
3372 2011-02-08  Jim Meyering  <meyering@redhat.com>
3373
3374         di-set: add "const" to a cast
3375         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3376         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3377
3378 2011-02-06  Bruno Haible  <bruno@clisp.org>
3379
3380         Rename module 'wctype' to 'wctype-h'.
3381         * modules/wctype-h: Renamed from modules/wctype.
3382         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3383         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3384         (Files, Depends-on, Makefile.am): Update.
3385         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3386         (Files, Makefile.am): Update.
3387         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3388         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3389         * doc/posix-headers/wctype.texi: Update.
3390         * doc/posix-functions/iswalnum.texi: Update.
3391         * doc/posix-functions/iswalpha.texi: Update.
3392         * doc/posix-functions/iswblank.texi: Update.
3393         * doc/posix-functions/iswcntrl.texi: Update.
3394         * doc/posix-functions/iswdigit.texi: Update.
3395         * doc/posix-functions/iswgraph.texi: Update.
3396         * doc/posix-functions/iswlower.texi: Update.
3397         * doc/posix-functions/iswprint.texi: Update.
3398         * doc/posix-functions/iswpunct.texi: Update.
3399         * doc/posix-functions/iswspace.texi: Update.
3400         * doc/posix-functions/iswupper.texi: Update.
3401         * doc/posix-functions/iswxdigit.texi: Update.
3402         * doc/posix-functions/towlower.texi: Update.
3403         * doc/posix-functions/towupper.texi: Update.
3404         * NEWS: Mention the change.
3405         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3406         * modules/mbchar (Dependencies): Likewise.
3407         * modules/mbswidth (Dependencies): Likewise.
3408         * modules/quotearg (Dependencies): Likewise.
3409         * modules/regex (Dependencies): Likewise.
3410         * modules/wcscasecmp (Dependencies): Likewise.
3411         * modules/wcsncasecmp (Dependencies): Likewise.
3412         * modules/wcwidth (Dependencies): Likewise.
3413
3414 2011-02-06  Bruno Haible  <bruno@clisp.org>
3415
3416         New module 'wcswidth'.
3417         * modules/wcswidth: New file.
3418         * lib/wchar.in.h (wcswidth): New declaration.
3419         * lib/wcswidth.c: New file.
3420         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3421         * m4/wcswidth.m4: New file.
3422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3424         REPLACE_WCSWIDTH.
3425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3426         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3427         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3428         * doc/posix-functions/wcswidth.texi: Mention the new module.
3429
3430 2011-02-06  Bruno Haible  <bruno@clisp.org>
3431
3432         New module 'wcstok'.
3433         * modules/wcstok: New file.
3434         * lib/wchar.in.h (wcstok): New declaration.
3435         * lib/wcstok.c: New file.
3436         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3437         * m4/wcstok.m4: New file.
3438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3441         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3442         * doc/posix-functions/wcstok.texi: Mention the new module.
3443
3444 2011-02-06  Bruno Haible  <bruno@clisp.org>
3445
3446         New module 'wcsstr'.
3447         * modules/wcsstr: New file.
3448         * lib/wchar.in.h (wcsstr): New declaration.
3449         * lib/wcsstr.c: New file.
3450         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3451         * m4/wcsstr.m4: New file.
3452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3455         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3456         * doc/posix-functions/wcsstr.texi: Mention the new module.
3457
3458 2011-02-06  Bruno Haible  <bruno@clisp.org>
3459
3460         New module 'wcspbrk'.
3461         * modules/wcspbrk: New file.
3462         * lib/wchar.in.h (wcspbrk): New declaration.
3463         * lib/wcspbrk.c: New file.
3464         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3465         * m4/wcspbrk.m4: New file.
3466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3469         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3470         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3471
3472 2011-02-06  Bruno Haible  <bruno@clisp.org>
3473
3474         New module 'wcsspn'.
3475         * modules/wcsspn: New file.
3476         * lib/wchar.in.h (wcsspn): New declaration.
3477         * lib/wcsspn.c: New file.
3478         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3479         * m4/wcsspn.m4: New file.
3480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3483         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3484         * doc/posix-functions/wcsspn.texi: Mention the new module.
3485
3486 2011-02-06  Bruno Haible  <bruno@clisp.org>
3487
3488         New module 'wcscspn'.
3489         * modules/wcscspn: New file.
3490         * lib/wchar.in.h (wcscspn): New declaration.
3491         * lib/wcscspn.c: New file.
3492         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3493         * m4/wcscspn.m4: New file.
3494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3497         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3498         * doc/posix-functions/wcscspn.texi: Mention the new module.
3499
3500 2011-02-06  Bruno Haible  <bruno@clisp.org>
3501
3502         New module 'wcsrchr'.
3503         * modules/wcsrchr: New file.
3504         * lib/wchar.in.h (wcsrchr): New declaration.
3505         * lib/wcsrchr.c: New file.
3506         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3507         * m4/wcsrchr.m4: New file.
3508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3511         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3512         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3513
3514 2011-02-06  Bruno Haible  <bruno@clisp.org>
3515
3516         New module 'wcschr'.
3517         * modules/wcschr: New file.
3518         * lib/wchar.in.h (wcschr): New declaration.
3519         * lib/wcschr.c: New file.
3520         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3521         * m4/wcschr.m4: New file.
3522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3525         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3526         * doc/posix-functions/wcschr.texi: Mention the new module.
3527
3528 2011-02-06  Bruno Haible  <bruno@clisp.org>
3529
3530         New module 'wcsdup'.
3531         * modules/wcsdup: New file.
3532         * lib/wchar.in.h (wcsdup): New declaration.
3533         * lib/wcsdup.c: New file.
3534         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3535         * m4/wcsdup.m4: New file.
3536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3539         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3540         * doc/posix-functions/wcsdup.texi: Mention the new module.
3541
3542 2011-02-06  Bruno Haible  <bruno@clisp.org>
3543
3544         New module 'wcsxfrm'.
3545         * modules/wcsxfrm: New file.
3546         * lib/wchar.in.h (wcsxfrm): New declaration.
3547         * lib/wcsxfrm.c: New file.
3548         * lib/wcsxfrm-impl.h: New file.
3549         * m4/wcsxfrm.m4: New file.
3550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3553         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3554         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3555
3556 2011-02-06  Bruno Haible  <bruno@clisp.org>
3557
3558         New module 'wcscoll'.
3559         * modules/wcscoll: New file.
3560         * lib/wchar.in.h (wcscoll): New declaration.
3561         * lib/wcscoll.c: New file.
3562         * lib/wcscoll-impl.h: New file.
3563         * m4/wcscoll.m4: New file.
3564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3567         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3568         * doc/posix-functions/wcscoll.texi: Mention the new module.
3569
3570 2011-02-06  Bruno Haible  <bruno@clisp.org>
3571
3572         New module 'wcsncasecmp'.
3573         * modules/wcsncasecmp: New file.
3574         * lib/wchar.in.h (wcsncasecmp): New declaration.
3575         * lib/wcsncasecmp.c: New file.
3576         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3577         * m4/wcsncasecmp.m4: New file.
3578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3581         HAVE_WCSNCASECMP.
3582         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3583         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3584
3585 2011-02-06  Bruno Haible  <bruno@clisp.org>
3586
3587         New module 'wcscasecmp'.
3588         * modules/wcscasecmp: New file.
3589         * lib/wchar.in.h (wcscasecmp): New declaration.
3590         * lib/wcscasecmp.c: New file.
3591         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3592         * m4/wcscasecmp.m4: New file.
3593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3596         HAVE_WCSCASECMP.
3597         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3598         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3599
3600 2011-02-05  Bruno Haible  <bruno@clisp.org>
3601
3602         New module 'wcsncmp'.
3603         * modules/wcsncmp: New file.
3604         * lib/wchar.in.h (wcsncmp): New declaration.
3605         * lib/wcsncmp.c: New file.
3606         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3607         * m4/wcsncmp.m4: New file.
3608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3611         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3612         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3613
3614 2011-02-05  Bruno Haible  <bruno@clisp.org>
3615
3616         New module 'wcscmp'.
3617         * modules/wcscmp: New file.
3618         * lib/wchar.in.h (wcscmp): New declaration.
3619         * lib/wcscmp.c: New file.
3620         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3621         * m4/wcscmp.m4: New file.
3622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3625         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3626         * doc/posix-functions/wcscmp.texi: Mention the new module.
3627
3628 2011-02-05  Bruno Haible  <bruno@clisp.org>
3629
3630         New module 'wcsncat'.
3631         * modules/wcsncat: New file.
3632         * lib/wchar.in.h (wcsncat): New declaration.
3633         * lib/wcsncat.c: New file.
3634         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3635         * m4/wcsncat.m4: New file.
3636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3639         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3640         * doc/posix-functions/wcsncat.texi: Mention the new module.
3641
3642 2011-02-05  Bruno Haible  <bruno@clisp.org>
3643
3644         New module 'wcscat'.
3645         * modules/wcscat: New file.
3646         * lib/wchar.in.h (wcscat): New declaration.
3647         * lib/wcscat.c: New file.
3648         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3649         * m4/wcscat.m4: New file.
3650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3653         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3654         * doc/posix-functions/wcscat.texi: Mention the new module.
3655
3656 2011-02-05  Bruno Haible  <bruno@clisp.org>
3657
3658         New module 'wcpncpy'.
3659         * modules/wcpncpy: New file.
3660         * lib/wchar.in.h (wcpncpy): New declaration.
3661         * lib/wcpncpy.c: New file.
3662         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3663         * m4/wcpncpy.m4: New file.
3664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3666         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3667         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3668         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3669
3670 2011-02-05  Bruno Haible  <bruno@clisp.org>
3671
3672         New module 'wcsncpy'.
3673         * modules/wcsncpy: New file.
3674         * lib/wchar.in.h (wcsncpy): New declaration.
3675         * lib/wcsncpy.c: New file.
3676         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3677         * m4/wcsncpy.m4: New file.
3678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3681         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3682         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3683
3684 2011-02-05  Bruno Haible  <bruno@clisp.org>
3685
3686         New module 'wcpcpy'.
3687         * modules/wcpcpy: New file.
3688         * lib/wchar.in.h (wcpcpy): New declaration.
3689         * lib/wcpcpy.c: New file.
3690         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3691         * m4/wcpcpy.m4: New file.
3692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3694         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3695         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3696         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3697
3698 2011-02-05  Bruno Haible  <bruno@clisp.org>
3699
3700         New module 'wcscpy'.
3701         * modules/wcscpy: New file.
3702         * lib/wchar.in.h (wcscpy): New declaration.
3703         * lib/wcscpy.c: New file.
3704         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3705         * m4/wcscpy.m4: New file.
3706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3709         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3710         * doc/posix-functions/wcscpy.texi: Mention the new module.
3711
3712 2011-02-05  Bruno Haible  <bruno@clisp.org>
3713
3714         New module 'wcsnlen'.
3715         * modules/wcsnlen: New file.
3716         * lib/wchar.in.h (wcsnlen): New declaration.
3717         * lib/wcsnlen.c: New file.
3718         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3719         * m4/wcsnlen.m4: New file.
3720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3723         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3724         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3725
3726 2011-02-05  Bruno Haible  <bruno@clisp.org>
3727
3728         New module 'wcslen'.
3729         * modules/wcslen: New file.
3730         * lib/wchar.in.h (wcslen): New declaration.
3731         * lib/wcslen.c: New file.
3732         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3733         * m4/wcslen.m4: New file.
3734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3737         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3738         * doc/posix-functions/wcslen.texi: Mention the new module.
3739
3740 2011-02-05  Bruno Haible  <bruno@clisp.org>
3741
3742         New module 'wmemset'.
3743         * modules/wmemset: New file.
3744         * lib/wchar.in.h (wmemset): New declaration.
3745         * lib/wmemset.c: New file.
3746         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3747         * m4/wmemset.m4: New file.
3748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3750         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3751         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3752         * doc/posix-functions/wmemset.texi: Mention the new module.
3753
3754 2011-02-05  Bruno Haible  <bruno@clisp.org>
3755
3756         New module 'wmemmove'.
3757         * modules/wmemmove: New file.
3758         * lib/wchar.in.h (wmemmove): New declaration.
3759         * lib/wmemmove.c: New file.
3760         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3761         * m4/wmemmove.m4: New file.
3762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3764         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3765         HAVE_WMEMMOVE.
3766         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3767         * doc/posix-functions/wmemmove.texi: Mention the new module.
3768
3769 2011-02-05  Bruno Haible  <bruno@clisp.org>
3770
3771         New module 'wmemcpy'.
3772         * modules/wmemcpy: New file.
3773         * lib/wchar.in.h (wmemcpy): New declaration.
3774         * lib/wmemcpy.c: New file.
3775         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3776         * m4/wmemcpy.m4: New file.
3777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3779         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3780         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3781         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3782
3783 2011-02-05  Bruno Haible  <bruno@clisp.org>
3784
3785         New module 'wmemcmp'.
3786         * modules/wmemcmp: New file.
3787         * lib/wchar.in.h (wmemcmp): New declaration.
3788         * lib/wmemcmp.c: New file.
3789         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3790         * m4/wmemcmp.m4: New file.
3791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3793         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3794         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3795         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3796
3797 2011-02-07  Jim Meyering  <meyering@redhat.com>
3798
3799         di-set, ino-map: new modules, from coreutils
3800         * lib/di-set.c: New file.
3801         * lib/di-set.h: Likewise.
3802         * lib/ino-map.c: Likewise.
3803         * lib/ino-map.h: Likewise.
3804         * modules/di-set: Likewise.
3805         * modules/di-set-tests: Likewise.
3806         * modules/ino-map: Likewise.
3807         * modules/ino-map-tests: Likewise.
3808         * tests/test-di-set.c: Likewise.
3809         * tests/test-ino-map.c: Likewise.
3810
3811 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3812
3813         getloadavg: merge minor changes from Emacs
3814
3815         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3816         (getloadavg): Use memset, not bzero.
3817
3818         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3819         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3820         clash (bug#86).
3821
3822 2010-11-14  Bruno Haible  <bruno@clisp.org>
3823
3824         Allow multiple gnulib generated replacements to coexist.
3825         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3826         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3827         * lib/langinfo.in.h (nl_item): Likewise.
3828         * lib/math.in.h (_NaN, NAN): Likewise.
3829         * lib/netdb.in.h (struct addrinfo): Likewise.
3830         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3831         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3832         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3833         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3834         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3835         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3836         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3837         pthread_mutexattr_init, pthread_mutexattr_settype,
3838         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3839         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3840         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3841         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3842         * lib/sched.in.h (struct sched_param): Likewise.
3843         * lib/se-selinux.in.h (security_class_t, security_context_t,
3844         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3845         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3846         lsetfilecon, fsetfilecon, security_check_context,
3847         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3848         Likewise.
3849         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3850         Likewise.
3851         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3852         _gl_function_taking_int_returning_void_t, union sigval,
3853         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3854         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3855         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3856         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3857         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3858         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3859         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3860         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3861         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3862         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3863         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3864         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3865         socklen_t, rpl_fd_isset): Likewise.
3866         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3867         * lib/sys_time.in.h (struct timeval): Likewise.
3868         * lib/sys_times.in.h (struct tms): Likewise.
3869         * lib/sys_utsname.in.h (struct utsname):
3870         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3871         * lib/unistd.in.h (getpagesize): Likewise.
3872         * lib/wchar.in.h (mbstate_t): Likewise.
3873         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3874         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3875         towlower, towupper): Likewise.
3876         Reported by Sam Steingold <sds@gnu.org>.
3877
3878 2011-02-05  Eric Blake  <eblake@redhat.com>
3879
3880         unsetenv: work around Haiku issues
3881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3882         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3883
3884 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3885
3886         libposix: avoid calling error() within libposix
3887         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3888         is defined.
3889
3890 2011-02-05  Eric Blake  <eblake@redhat.com>
3891
3892         strerror_r-posix: port to cygwin
3893         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3894         implementation.
3895         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3896         * tests/test-strerror_r.c (main): Fix test.
3897         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3898         issue.
3899
3900 2011-02-05  Bruno Haible  <bruno@clisp.org>
3901
3902         New module 'wmemchr'.
3903         * modules/wmemchr: New file.
3904         * lib/wchar.in.h (wmemchr): New declaration.
3905         * lib/wmemchr.c: New file.
3906         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3907         * m4/wmemchr.m4: New file.
3908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3910         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3911         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3912         * doc/posix-functions/wmemchr.texi: Mention the new module.
3913
3914 2011-02-04  Eric Blake  <eblake@redhat.com>
3915
3916         fdopendir: detect FreeBSD bug
3917         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3918         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3919
3920 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3921
3922         stdbool: do not define HAVE_STDBOOL_H
3923         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3924         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3925         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3926         imported from the latest Autoconf git.  It was motivated by Emacs,
3927         which uses gnulib but does not need HAVE_STDBOOL_H.
3928
3929 2011-02-04  Bruno Haible  <bruno@clisp.org>
3930
3931         wcsnrtombs: Prepare for new module wwcsnrtombs.
3932         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3933         * lib/wcsnrtombs.c: Include it.
3934         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3935
3936         wcsrtombs: Prepare for new module wwcsrtombs.
3937         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3938         * lib/wcsrtombs.c: Include it.
3939         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3940
3941         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3942         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3943         * lib/mbsnrtowcs.c: Include it.
3944         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3945
3946         mbsrtowcs: Prepare for new module mbsrtowwcs.
3947         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3948         * lib/mbsrtowcs.c: Include it.
3949         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3950
3951 2011-02-04  Bruno Haible  <bruno@clisp.org>
3952
3953         vasnprintf: Reduce use of malloc for small format strings.
3954         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3955         (arguments): Add room for the first 7 arguments.
3956         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3957         (char_directives, u8_directives, u16_directives, u32_directives): Add
3958         room for the first 7 directives.
3959         * lib/printf-parse.c: Include <string.h>.
3960         (PRINTF_PARSE): Change memory handling code so that it uses the first
3961         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3962         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3963         Reported by Pádraig Brady <P@draigbrady.com>.
3964
3965 2011-01-31  Eric Blake  <eblake@redhat.com>
3966
3967         dup2: work around Haiku bug
3968         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3969         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3970         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3971         * tests/test-dup2.c (main): Enhance test.
3972
3973 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3974
3975         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3976         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3977         declared by eglibc 2.11.2.
3978         * lib/stdio.in.h: Likewise.
3979
3980 2011-01-31  Eric Blake  <eblake@redhat.com>
3981
3982         ignore-value: add missing test dependency
3983         * tests/test-ignore-value.c: Revert previous change; stdio.h
3984         provides off_t.
3985         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3986
3987 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3988
3989         mktime: clarify long_int width checking
3990         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3991         the top level, to make it clearer that the assumption about
3992         long_int width is being checked.  See
3993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3994
3995 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3996
3997         ignore-value: Fix self-test.
3998         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3999
4000 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4001
4002         TYPE_MAXIMUM: avoid theoretically undefined behavior
4003         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4004         negative number, which the C Standard says has undefined behavior.
4005         In practice this is not a problem, but might as well do it by the book.
4006         Reported by Rich Felker and Eric Blake; see
4007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4008         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4009         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4011         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4012         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4013         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4014
4015         mktime: #undef mktime before #defining it
4016         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4017
4018         mktime: systematically normalize tm_isdst comparisons
4019         * lib/mktime.c (isdst_differ): New function.
4020         (__mktime_internal): Use it systematically for all isdst comparisons.
4021         This completes the fix for libc BZ #6723, and removes the need for
4022         normalizing tm_isdst.  See
4023         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4024         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4025
4026         mktime: fix some integer overflow issues and sidestep the rest
4027
4028         This was prompted by a bug report by Benjamin Lindner for MinGW
4029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4030         His bug is due to signed integer overflow (0 - INT_MIN), and I
4031         I scanned through mktime.c looking for other integer overflow
4032         problems, fixing all the bugs I found.
4033
4034         Although the C Standard says the resulting code is still not safe
4035         in the presence of integer overflow, in practice it should be good
4036         enough for all real-world two's-complement implementations, except
4037         for debugging environments that deliberately trap on integer
4038         overflow (e.g., gcc -ftrapv).
4039
4040         * lib/mktime.c (WRAPV): New macro.
4041         (SHR): Also check that long_int and time_t shift right in the
4042         usual way, before using the fast-but-unportable method.
4043         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4044         used.  The code already assumed two's complement, so there's
4045         no need to test for alternatives.  All uses removed.
4046         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4047         the C standard.  Problem reported by Rich Felker in
4048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4049         (twos_complement_arithmetic): Also check long_int and time_t.
4050         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4051         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4052         (__mktime_internal): Avoid integer overflow with unary subtraction
4053         in two instances where -1 - X is an adequate replacement for -X,
4054         since the calculations are approximate.
4055
4056 2011-01-29  Eric Blake  <eblake@redhat.com>
4057
4058         mktime: avoid infinite loop
4059         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4060         type; behavior is still undefined but portable to all known targets.
4061         Reported by Rich Felker.
4062
4063 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4064
4065         rename, unlink, same-inode: Relicense.
4066         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4067         * modules/unlink (License): Likewise.
4068         * modules/same-inode (License): Likewise.
4069
4070 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4071
4072         mktime: avoid problems on NetBSD 5 / i386
4073         * lib/mktime.c (long_int): New type.  This works around a problem
4074         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4075         but time_t is 64 bits, and where I expect the existing code is
4076         wrong in some cases.
4077         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4078         (ydhms_diff): Bring back the compile-time check for wide-enough
4079         year and yday.
4080
4081         mktime: fix misspelling in comment
4082         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4083         This merges all recent glibc changes of importance.
4084
4085 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4086
4087         move-if-change: cope with concurrent mv of identical file.
4088         * build-aux/move-if-change (CMPPROG): Accept environment
4089         variable as an override for `cmp'.
4090         (usage): Document CMPPROG.
4091         Adjust comparison to drop stdout.  Cope with failure of mv if
4092         the target file exists and is identical to the source, for
4093         parallel builds.
4094         Report from H.J. Lu against binutils in PR binutils/12283.
4095
4096 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4097
4098         * users.txt: Mention sharutils.
4099
4100 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4101
4102         * users.txt: Mention OATH Toolkit.
4103
4104 2011-01-27  Bruno Haible  <bruno@clisp.org>
4105
4106         Prepare for supporting FreeBSD 10.
4107         * build-aux/config.libpath: Remove handling of freebsd1*.
4108
4109 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4110
4111         Prepare for supporting FreeBSD 10.
4112         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4113         match FreeBSD 10.0.
4114
4115 2011-01-27  Bruno Haible  <bruno@clisp.org>
4116
4117         vma-iter, get-rusage-as: Add OpenBSD support.
4118         * modules/vma-iter (configure.ac): Test for mquery.
4119         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4120         * lib/vma-iter.c: Include <sys/mman.h>.
4121         (vma_iterate): Add an implementation based on mquery().
4122         * lib/resource-ext.h (get_rusage_as): Update comments.
4123         * lib/get-rusage-as.c: Likewise.
4124         * lib/get-rusage-data.c: Likewise.
4125
4126 2011-01-26  Karl Berry  <karl@gnu.org>
4127
4128         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4129         variables to make it easier to override the makeinfo program used.
4130
4131 2011-01-26  Eric Blake  <eblake@redhat.com>
4132
4133         fcntl: work around Haiku F_DUPFD bugs
4134         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4135         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4136         cloexec bit on duplication.
4137         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4138
4139 2011-01-26  Bruno Haible  <bruno@clisp.org>
4140
4141         Enable memory leak tests on AIX.
4142         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4143         * tests/test-fprintf-posix3.c (main): Likewise.
4144
4145 2011-01-26  Bruno Haible  <bruno@clisp.org>
4146
4147         Tests for module 'get-rusage-data'.
4148         * modules/get-rusage-data-tests: New file.
4149         * tests/test-get-rusage-data.c: New file.
4150
4151         New module 'get-rusage-data'.
4152         * lib/resource-ext.h (get_rusage_data): New declaration.
4153         * lib/get-rusage-data.c: New file.
4154         * modules/get-rusage-data: New file.
4155
4156 2011-01-25  Bruno Haible  <bruno@clisp.org>
4157
4158         get-rusage-as: Allow for easier testing.
4159         * lib/resource-ext.h (get_rusage_as): Add comment.
4160         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4161         (main): New function for interactive testing.
4162
4163 2011-01-25  Bruno Haible  <bruno@clisp.org>
4164
4165         vma-iter: Treat Haiku like BeOS.
4166         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4167         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4168
4169 2011-01-25  Eric Blake  <eblake@redhat.com>
4170
4171         c-stack: fix regression on cygwin when libsigsegv is present
4172         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4173
4174 2011-01-24  Bruno Haible  <bruno@clisp.org>
4175
4176         vma-iter: Avoid empty intervals.
4177         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4178         on an empty interval.
4179
4180 2011-01-24  Jim Meyering  <meyering@redhat.com>
4181
4182         u64: remove unnecessary #include
4183         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4184
4185 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4186
4187         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4188         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4189
4190 2011-01-23  Bruno Haible  <bruno@clisp.org>
4191
4192         New module 'vma-iter'.
4193         * lib/vma-iter.h: New file.
4194         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4195         * modules/vma-iter: New file.
4196         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4197         for get_rusage_as_via_iterator.
4198         (vma_iterate_callback): New function.
4199         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4200         * modules/get-rusage-as (Depends-on): Add vma-iter.
4201
4202 2011-01-23  Bruno Haible  <bruno@clisp.org>
4203
4204         uninorm: Tweak includes.
4205         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4206         Reported by Jim Meyering.
4207
4208 2011-01-23  Bruno Haible  <bruno@clisp.org>
4209
4210         get-rusage-as: Improve on NetBSD.
4211         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4212         /proc, like on FreeBSD.
4213
4214 2011-01-23  Jim Meyering  <meyering@redhat.com>
4215
4216         xreadlink.h: remove unnecessary #include
4217         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4218
4219         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4220         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4221
4222 2011-01-23  Bruno Haible  <bruno@clisp.org>
4223
4224         get-rusage-as: Fix bug.
4225         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4226         original limit when aborting the first loop.
4227
4228 2011-01-23  Bruno Haible  <bruno@clisp.org>
4229
4230         wctype: Ensure valid C syntax.
4231         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4232         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4233
4234 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4235
4236         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4238         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4239         as they are needed only for configure's test case.
4240         This removes two unnecessary symbols from config.h.
4241
4242         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4243         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4245         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4246         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4247         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4248         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4249         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4250         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4251         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4252         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4254         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4255         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4256         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4257         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4258         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4259         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4260
4261 2011-01-21  Eric Blake  <eblake@redhat.com>
4262
4263         maintainer-makefile: work with older git for submodule check
4264         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4265         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4266         Reported by Matthias Bolte.
4267
4268         bootstrap: minor portability fixes
4269         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4270         (usage): Omit leading capital and trailing . on help phrases, per
4271         GNU Coding Standards.
4272         (check_versions, top level): Prefix messages with script name.
4273
4274 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4275
4276         bootstrap: support --no-git option
4277         * build-aux/bootstrap: Add --no-git option, to be used when
4278         --gnulib-srcdir points to the exact desired checkout.
4279
4280 2011-01-21  Eric Blake  <eblake@redhat.com>
4281
4282         strerror_r-posix: work with glibc 2.13
4283         * lib/strerror_r.c (strerror_r): Fix return type.
4284
4285 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4286             Bruno Haible  <bruno@clisp.org>
4287
4288         uN_strstr: New unit tests.
4289         * modules/unistr/u8-strstr-tests: New file.
4290         * modules/unistr/u16-strstr-tests: New file.
4291         * modules/unistr/u32-strstr-tests: New file.
4292         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4293         * tests/unistr/test-u8-strstr.c: New file.
4294         * tests/unistr/test-u16-strstr.c: New file.
4295         * tests/unistr/test-u32-strstr.c: New file.
4296
4297 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4298             Bruno Haible  <bruno@clisp.org>
4299
4300         Make uN_strstr functions O(n) worst-case.
4301         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4302         16-bit and 32-bit unit cases, use the unibyte algorithm from
4303         lib/mbsstr.c.
4304         * lib/unistr/u8-strstr.c: Include <string.h>.
4305         (UNIT_IS_UINT8_T): New macro.
4306         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4307         (U_STRLEN, U_STRNLEN): New macros.
4308         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4309         (U_STRLEN, U_STRNLEN): New macros.
4310         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4311         (configure.ac): Update required libunistring version.
4312         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4313         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4314         malloca.
4315         (configure.ac): Update required libunistring version.
4316         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4317         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4318         malloca.
4319         (configure.ac): Update required libunistring version.
4320
4321 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4322             Bruno Haible  <bruno@clisp.org>
4323
4324         Prepare for faster uN_strstr functions.
4325         * lib/str-kmp.h: Support definable UNITs.
4326         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4327         needle_len argument.
4328         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4329         * lib/mbscasestr.c (mbscasestr): Likewise.
4330
4331 2011-01-21  Pádraig Brady <P@draigBrady.com>
4332
4333         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4334         * tests/test-malloca.c (main): Unset the environment variable
4335         to greatly speed up the test.
4336         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4337         * modules/malloca-tests: Depend on unsetenv.
4338
4339 2011-01-21  Pádraig Brady <P@draigBrady.com>
4340
4341         ignore-value: remove stdint dependency
4342         * lib/ignore-value.h: Remove <stdint.h>
4343         * modules/ignore-value: Remove stdint dependency.
4344
4345 2011-01-21  Jim Meyering  <meyering@redhat.com>
4346
4347         maint.mk: adjust variable name to be consistent with other gl_ vars
4348         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4349         to be lower case.
4350
4351 2011-01-20  Jim Meyering  <meyering@redhat.com>
4352
4353         maint.mk: make "check" depend on public-submodule-commit by default
4354         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4355
4356 2011-01-20  Bruno Haible  <bruno@clisp.org>
4357
4358         mbfile, mbiter: Complete change from 2008-12-21.
4359         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4360         * m4/mbiter.m4 (gl_MBITER): Likewise.
4361
4362 2011-01-20  Jim Meyering  <meyering@redhat.com>
4363
4364         init.sh: insert space between each function name and "()"
4365         * tests/init.sh: Make it a little easier to see that a function's
4366         name is "warn_", and not "warn" when looking at the first part of
4367         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4368
4369 2011-01-20  Jim Meyering  <meyering@redhat.com>
4370
4371         mountlist: clean up code formatting
4372         * lib/mountlist.c (read_file_system_list): Split a long line,
4373         correct bracing style, use NULL in place of "(struct statfs *)0",
4374         don't parenthesize return value, add spaces around "=" and after
4375         ";-in-for-stmt".
4376
4377 2011-01-14  Markus Duft <mduft@gentoo.org>
4378
4379         mountlist: add support for Interix
4380         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4381         Apply statvfs to all entries of /dev/fs.
4382         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4383         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4384
4385 2011-01-20  Jim Meyering  <meyering@redhat.com>
4386
4387         maint.mk: improve the public-submodule-commit rule
4388         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4389         to suppress printing of its commands... unless V=1.
4390         Add git submodule's --quiet option to suppress printing of e.g.,
4391         "Entering gnulib" output.
4392         "cd" into $(srcdir) before running git submodule.
4393
4394 2011-01-20  Bruno Haible  <bruno@clisp.org>
4395
4396         include_next: Fix bug introduced on 2011-01-18.
4397         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4398         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4399         ac_cv_header_... variable if the second argument is not 'check'.
4400         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4401         gl_NEXT_HEADERS_INTERNAL.
4402
4403 2011-01-20  Bruno Haible  <bruno@clisp.org>
4404
4405         Allow the user to avoid the GNULIB_TEST_* macros.
4406         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4407         Suggested by Paul Eggert.
4408
4409 2011-01-14  Jim Meyering  <meyering@redhat.com>
4410
4411         bootstrap: avoid failure when there is no .gitmodules file
4412         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4413         has been assigned to, even when its value is the empty string.
4414         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4415         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4416         Reported by John W. Eaton <jwe@gnu.org>.
4417
4418 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4419
4420         assume <ctype.h>, ..., <time.h> exist
4421         For years gnulib has been assuming the existence of the headers
4422         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4423         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4424         them, since they don't appear to be needed.
4425         * README (Portability guidelines): Document this.
4426         * lib/flock.c: Assume <fcntl.h> exists.
4427         * lib/regex_internal.h: Assume <locale.h> exists.
4428         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4429         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4430         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4431         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4432         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4433         * m4/regex.m4 (gl_REGEX): Likewise.
4434         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4435         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4436         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4437         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4438         * tests/test-argp.c: Likewise.
4439         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4440
4441         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4442         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4443         AA_APPLE_UNIVERSAL_BUILD.  See
4444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4445         * NEWS: Document this.
4446
4447 2011-01-19  Eric Blake  <eblake@redhat.com>
4448
4449         c-stack: assume stack overflow if SA_SIGINFO unsupported
4450         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4451         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4452         sigaction will work.
4453         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4454         behavior match Linux.
4455         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4456
4457         stdbool-tests: accomodate Haiku
4458         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4459
4460         binary-io: fix O_TEXT on Haiku
4461         * modules/binary-io (Depends-on): Add fcntl-h.
4462         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4463         than blindly undefining O_TEXT.
4464         Reported by Scott McCreary.
4465
4466 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4467
4468         include_next: do not check for standard headers like stddef.h
4469
4470         I found this problem when modifying Emacs to use gnulib.
4471         I noticed that it added HAVE_STDDEF_H to config.h, even though
4472         gnulib always assumes <stddef.h> exists as per README and this
4473         symbol is unnecessary.
4474         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4475         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4476         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4477         faster for headers like stddef.h that are known to exist.
4478         (gl_CHECK_NEXT_HEADERS): Use it.
4479         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4480         rather than gl_CHECK_NEXT_HEADERS.
4481         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4482         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4483
4484 2011-01-18  Eric Blake  <eblake@redhat.com>
4485
4486         ansi-c++-opt: skip C++ dependency style if C++ is unused
4487         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4488         tests when we know C++ compilation is not desired.
4489         Reported by Scott McCreary.
4490
4491 2011-01-18  Bruno Haible  <bruno@clisp.org>
4492
4493         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4494         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4495         (main): Perform test also when getrlimit and setrlimit don't exist or
4496         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4497         limiting the address space size using setrlimit, compare the address
4498         space size before and after the the test.
4499         * tests/test-dprintf-posix2.c: Likewise.
4500         * tests/test-fprintf-posix3.sh: Update skip messages.
4501         * tests/test-dprintf-posix2.sh: Likewise.
4502         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4503         * modules/dprintf-posix-tests (Depends-on): Likewise.
4504         Reported by Bruce Korb <bkorb@gnu.org> and
4505         Gary V. Vaughan <gary@gnu.org>.
4506
4507 2011-01-18  Bruno Haible  <bruno@clisp.org>
4508
4509         get-rusage-as: Improvement for Cygwin.
4510         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4511         areas that are merely reserved.
4512
4513 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4514
4515         strftime: remove dependencies on multibyte modules
4516
4517         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4518         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4519         only if __osf__ is defined, and I suspect OSF doesn't need these
4520         other modules.  If my guess is wrong, we'll need to come up with a
4521         variant of strftime that doesn't need the multibyte modules.
4522
4523         I discovered this problem when attempting modify Emacs to use the
4524         strftime module.  With the previous gnulib, this caused Emacs to
4525         need 31 new files, ranging from lib/config.charset to
4526         m4/wint_t.m4.  This was overkill and I expect would be offputting
4527         to the Emacs maintainers.  After this change, only 6 new files are
4528         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4529         stdbool.m4, and tm_gmtoff.m4.
4530
4531         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4532         Suggested by Bruno Haible in
4533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4534         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4535         and do not check for wchar.h.
4536         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4537         (Depends-on): Remove mbrlen, mbsinit, wchar.
4538
4539 2011-01-18  Bruno Haible  <bruno@clisp.org>
4540
4541         Tests for module 'get-rusage-as'.
4542         * modules/get-rusage-as-tests: New file.
4543         * tests/test-get-rusage-as.c: New file.
4544
4545         New module 'get-rusage-as'.
4546         * modules/get-rusage-as: New file.
4547         * lib/resource-ext.h: New file.
4548         * lib/get-rusage-as.c: New file.
4549
4550 2011-01-17  Eric Blake  <eblake@redhat.com>
4551
4552         sigaction: relax license from LGPLv3+ to LGPLv2+
4553         * modules/sigaction (License): Relax to LGPLv2+.
4554
4555 2011-01-14  Bruno Haible  <bruno@clisp.org>
4556
4557         filemode: Make function declarations usable in C++ mode.
4558         * lib/filemode.h: Enclose function declarations in extern "C" block.
4559         Reported by John W. Eaton <jwe@gnu.org>.
4560
4561 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4562
4563         save-cwd: no longer include "xgetcwd.h"
4564         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4565         This avoids a compilation failure in projects that use save-cwd
4566         without also using the xgetcwd module.
4567
4568 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4569
4570         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4571         This is so that a program like Emacs, which needs only dtoastr,
4572         does not have to bother with distributing and compiling ftoastr
4573         and ldtoastr.
4574         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4575         * modules/dtoastr, modules/ldtoastr: New files.
4576         * modules/ftoastr: Now works just for 'float'.
4577         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4578         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4579         dtoastr.c, ldtoastr.c.
4580
4581 2011-01-11  Jim Meyering  <meyering@redhat.com>
4582
4583         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4584         There is no need to work around the lack of the fchdir function,
4585         since gnulib can now provide a replacement when required.
4586         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4587         * modules/save-cwd (Depends-on): Add fchdir.
4588
4589 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4590
4591         openat, save-cwd: avoid xmalloc
4592
4593         This removes a direct (but undocumented) dependency of openat on
4594         xalloc, along with an indirect dependency via save-cwd.  It also
4595         removes a dependency of save-cwd on xgetcwd, and thereby
4596         indirectly on xalloc.  This change causes the openat substitute
4597         to fall back on save_cwd when memory is tight, and for save_cwd to
4598         fail instead of dying when memory is tight, but that's good enough.
4599         Problem and initial idea for fix reported by Bastien Roucaries in
4600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4601
4602         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4603         xalloc.h (for xmalloc).
4604         (openat_proc_name): Use malloc, not xmalloc.
4605         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4606         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4607
4608         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4609         This avoids heap allocation for file names whose lengths are in
4610         the range 512..1023, with the upper bound increasing to at most
4611         4031 depending on the platform's PATH_MAX.  (We do not want
4612         pathmax.h here as it might supply a non-constant PATH_MAX.)
4613         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4614         Perhaps they should be moved to malloca.h?
4615         (OPENAT_BUFFER_SIZE): Use them.
4616
4617 2011-01-10  Bruno Haible  <bruno@clisp.org>
4618
4619         doc: Update users.txt.
4620         * users.txt: Add recutils.
4621
4622 2011-01-09  Karl Berry  <karl@gnu.org>
4623
4624         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4625
4626         * doc/configmake.texi: New file.
4627         * doc/gnulib.texi: Include it.
4628         * modules/configmake: Move documentation from here.
4629
4630 2011-01-09  Bruno Haible  <bruno@clisp.org>
4631
4632         Update to Unicode 6.0.0.
4633         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4634         (get_lbp): Update for Unicode 6.0.0.
4635         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4636         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4637         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4638         U+11001, U+11038..U+11046. Remove U+06DE.
4639         (uc_width): Fix bounds of planes.
4640         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4641         lib/uniwidth/width.c.
4642         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4643         trailing whitespace removed.
4644         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4645         without comments, but with the original copyright notice.
4646         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4647         * lib/unicase/ignorable.h: Likewise.
4648         * lib/unicase/tocasefold.h: Likewise.
4649         * lib/unicase/tolower.h: Likewise.
4650         * lib/unicase/totitle.h: Likewise.
4651         * lib/unicase/toupper.h: Likewise.
4652         * lib/unictype/bidi_of.h: Likewise.
4653         * lib/unictype/blocks.h: Likewise.
4654         * lib/unictype/categ_C.h: Likewise.
4655         * lib/unictype/categ_Cn.h: Likewise.
4656         * lib/unictype/categ_L.h: Likewise.
4657         * lib/unictype/categ_Ll.h: Likewise.
4658         * lib/unictype/categ_Lm.h: Likewise.
4659         * lib/unictype/categ_Lo.h: Likewise.
4660         * lib/unictype/categ_Lu.h: Likewise.
4661         * lib/unictype/categ_M.h: Likewise.
4662         * lib/unictype/categ_Mc.h: Likewise.
4663         * lib/unictype/categ_Me.h: Likewise.
4664         * lib/unictype/categ_Mn.h: Likewise.
4665         * lib/unictype/categ_N.h: Likewise.
4666         * lib/unictype/categ_Nd.h: Likewise.
4667         * lib/unictype/categ_No.h: Likewise.
4668         * lib/unictype/categ_P.h: Likewise.
4669         * lib/unictype/categ_Po.h: Likewise.
4670         * lib/unictype/categ_S.h: Likewise.
4671         * lib/unictype/categ_Sc.h: Likewise.
4672         * lib/unictype/categ_Sk.h: Likewise.
4673         * lib/unictype/categ_Sm.h: Likewise.
4674         * lib/unictype/categ_So.h: Likewise.
4675         * lib/unictype/categ_of.h: Likewise.
4676         * lib/unictype/combining.h: Likewise.
4677         * lib/unictype/ctype_alnum.h: Likewise.
4678         * lib/unictype/ctype_alpha.h: Likewise.
4679         * lib/unictype/ctype_graph.h: Likewise.
4680         * lib/unictype/ctype_lower.h: Likewise.
4681         * lib/unictype/ctype_print.h: Likewise.
4682         * lib/unictype/ctype_punct.h: Likewise.
4683         * lib/unictype/ctype_upper.h: Likewise.
4684         * lib/unictype/decdigit.h: Likewise.
4685         * lib/unictype/digit.h: Likewise.
4686         * lib/unictype/numeric.h: Likewise.
4687         * lib/unictype/pr_alphabetic.h: Likewise.
4688         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4689         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4690         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4691         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4692         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4693         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4694         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4695         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4696         * lib/unictype/pr_case_ignorable.h: Likewise.
4697         * lib/unictype/pr_cased.h: Likewise.
4698         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4699         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4700         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4701         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4702         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4703         * lib/unictype/pr_combining.h: Likewise.
4704         * lib/unictype/pr_composite.h: Likewise.
4705         * lib/unictype/pr_currency_symbol.h: Likewise.
4706         * lib/unictype/pr_decimal_digit.h: Likewise.
4707         * lib/unictype/pr_deprecated.h: Likewise.
4708         * lib/unictype/pr_format_control.h: Likewise.
4709         * lib/unictype/pr_grapheme_base.h: Likewise.
4710         * lib/unictype/pr_grapheme_extend.h: Likewise.
4711         * lib/unictype/pr_grapheme_link.h: Likewise.
4712         * lib/unictype/pr_id_continue.h: Likewise.
4713         * lib/unictype/pr_id_start.h: Likewise.
4714         * lib/unictype/pr_ideographic.h: Likewise.
4715         * lib/unictype/pr_lowercase.h: Likewise.
4716         * lib/unictype/pr_math.h: Likewise.
4717         * lib/unictype/pr_numeric.h: Likewise.
4718         * lib/unictype/pr_other_alphabetic.h: Likewise.
4719         * lib/unictype/pr_other_id_continue.h: Likewise.
4720         * lib/unictype/pr_other_math.h: Likewise.
4721         * lib/unictype/pr_punctuation.h: Likewise.
4722         * lib/unictype/pr_sentence_terminal.h: Likewise.
4723         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4724         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4725         * lib/unictype/pr_unified_ideograph.h: Likewise.
4726         * lib/unictype/pr_uppercase.h: Likewise.
4727         * lib/unictype/pr_xid_continue.h: Likewise.
4728         * lib/unictype/pr_xid_start.h: Likewise.
4729         * lib/unictype/scripts.h: Likewise.
4730         * lib/unictype/scripts_byname.gperf: Likewise.
4731         * lib/unictype/sy_java_ident.h: Likewise.
4732         * lib/unigbrk/gbrkprop.h: Likewise.
4733         * lib/unilbrk/lbrkprop1.h: Likewise.
4734         * lib/unilbrk/lbrkprop2.h: Likewise.
4735         * lib/uninorm/decomposition-table2.h: Likewise.
4736         * lib/uniwbrk/wbrkprop.h: Likewise.
4737         * tests/unicase/test-cased.c: Likewise.
4738         * tests/unicase/test-ignorable.c: Likewise.
4739         * tests/unicase/test-uc_tolower.c: Likewise.
4740         * tests/unicase/test-uc_totitle.c: Likewise.
4741         * tests/unicase/test-uc_toupper.c: Likewise.
4742         * tests/unictype/test-categ_C.c: Likewise.
4743         * tests/unictype/test-categ_Cn.c: Likewise.
4744         * tests/unictype/test-categ_L.c: Likewise.
4745         * tests/unictype/test-categ_Ll.c: Likewise.
4746         * tests/unictype/test-categ_Lm.c: Likewise.
4747         * tests/unictype/test-categ_Lo.c: Likewise.
4748         * tests/unictype/test-categ_Lu.c: Likewise.
4749         * tests/unictype/test-categ_M.c: Likewise.
4750         * tests/unictype/test-categ_Mc.c: Likewise.
4751         * tests/unictype/test-categ_Me.c: Likewise.
4752         * tests/unictype/test-categ_Mn.c: Likewise.
4753         * tests/unictype/test-categ_N.c: Likewise.
4754         * tests/unictype/test-categ_Nd.c: Likewise.
4755         * tests/unictype/test-categ_No.c: Likewise.
4756         * tests/unictype/test-categ_P.c: Likewise.
4757         * tests/unictype/test-categ_Po.c: Likewise.
4758         * tests/unictype/test-categ_S.c: Likewise.
4759         * tests/unictype/test-categ_Sc.c: Likewise.
4760         * tests/unictype/test-categ_Sk.c: Likewise.
4761         * tests/unictype/test-categ_Sm.c: Likewise.
4762         * tests/unictype/test-categ_So.c: Likewise.
4763         * tests/unictype/test-ctype_alnum.c: Likewise.
4764         * tests/unictype/test-ctype_alpha.c: Likewise.
4765         * tests/unictype/test-ctype_graph.c: Likewise.
4766         * tests/unictype/test-ctype_lower.c: Likewise.
4767         * tests/unictype/test-ctype_print.c: Likewise.
4768         * tests/unictype/test-ctype_punct.c: Likewise.
4769         * tests/unictype/test-ctype_upper.c: Likewise.
4770         * tests/unictype/test-decdigit.h: Likewise.
4771         * tests/unictype/test-digit.h: Likewise.
4772         * tests/unictype/test-numeric.h: Likewise.
4773         * tests/unictype/test-pr_alphabetic.c: Likewise.
4774         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4775         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4776         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4777         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4778         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4779         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4780         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4781         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4782         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4783         * tests/unictype/test-pr_cased.c: Likewise.
4784         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4785         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4786         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4787         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4788         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4789         * tests/unictype/test-pr_combining.c: Likewise.
4790         * tests/unictype/test-pr_composite.c: Likewise.
4791         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4792         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4793         * tests/unictype/test-pr_deprecated.c: Likewise.
4794         * tests/unictype/test-pr_format_control.c: Likewise.
4795         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4796         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4797         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4798         * tests/unictype/test-pr_id_continue.c: Likewise.
4799         * tests/unictype/test-pr_id_start.c: Likewise.
4800         * tests/unictype/test-pr_ideographic.c: Likewise.
4801         * tests/unictype/test-pr_lowercase.c: Likewise.
4802         * tests/unictype/test-pr_math.c: Likewise.
4803         * tests/unictype/test-pr_numeric.c: Likewise.
4804         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4805         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4806         * tests/unictype/test-pr_other_math.c: Likewise.
4807         * tests/unictype/test-pr_punctuation.c: Likewise.
4808         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4809         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4810         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4811         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4812         * tests/unictype/test-pr_uppercase.c: Likewise.
4813         * tests/unictype/test-pr_xid_continue.c: Likewise.
4814         * tests/unictype/test-pr_xid_start.c: Likewise.
4815         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4816         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4817         changes.
4818         * lib/unictype/categ_Cc.h: Likewise.
4819         * lib/unictype/categ_Cf.h: Likewise.
4820         * lib/unictype/categ_Co.h: Likewise.
4821         * lib/unictype/categ_Cs.h: Likewise.
4822         * lib/unictype/categ_Lt.h: Likewise.
4823         * lib/unictype/categ_Nl.h: Likewise.
4824         * lib/unictype/categ_Pc.h: Likewise.
4825         * lib/unictype/categ_Pd.h: Likewise.
4826         * lib/unictype/categ_Pe.h: Likewise.
4827         * lib/unictype/categ_Pf.h: Likewise.
4828         * lib/unictype/categ_Pi.h: Likewise.
4829         * lib/unictype/categ_Ps.h: Likewise.
4830         * lib/unictype/categ_Z.h: Likewise.
4831         * lib/unictype/categ_Zl.h: Likewise.
4832         * lib/unictype/categ_Zp.h: Likewise.
4833         * lib/unictype/categ_Zs.h: Likewise.
4834         * lib/unictype/ctype_blank.h: Likewise.
4835         * lib/unictype/ctype_cntrl.h: Likewise.
4836         * lib/unictype/ctype_digit.h: Likewise.
4837         * lib/unictype/ctype_space.h: Likewise.
4838         * lib/unictype/ctype_xdigit.h: Likewise.
4839         * lib/unictype/mirror.h: Likewise.
4840         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4841         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4842         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4843         * lib/unictype/pr_bidi_control.h: Likewise.
4844         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4845         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4846         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4847         * lib/unictype/pr_bidi_pdf.h: Likewise.
4848         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4849         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4850         * lib/unictype/pr_dash.h: Likewise.
4851         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4852         * lib/unictype/pr_diacritic.h: Likewise.
4853         * lib/unictype/pr_extender.h: Likewise.
4854         * lib/unictype/pr_hex_digit.h: Likewise.
4855         * lib/unictype/pr_hyphen.h: Likewise.
4856         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4857         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4858         * lib/unictype/pr_ignorable_control.h: Likewise.
4859         * lib/unictype/pr_iso_control.h: Likewise.
4860         * lib/unictype/pr_join_control.h: Likewise.
4861         * lib/unictype/pr_left_of_pair.h: Likewise.
4862         * lib/unictype/pr_line_separator.h: Likewise.
4863         * lib/unictype/pr_logical_order_exception.h: Likewise.
4864         * lib/unictype/pr_non_break.h: Likewise.
4865         * lib/unictype/pr_not_a_character.h: Likewise.
4866         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4867         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4868         * lib/unictype/pr_other_id_start.h: Likewise.
4869         * lib/unictype/pr_other_lowercase.h: Likewise.
4870         * lib/unictype/pr_other_uppercase.h: Likewise.
4871         * lib/unictype/pr_paired_punctuation.h: Likewise.
4872         * lib/unictype/pr_paragraph_separator.h: Likewise.
4873         * lib/unictype/pr_pattern_syntax.h: Likewise.
4874         * lib/unictype/pr_pattern_white_space.h: Likewise.
4875         * lib/unictype/pr_private_use.h: Likewise.
4876         * lib/unictype/pr_quotation_mark.h: Likewise.
4877         * lib/unictype/pr_radical.h: Likewise.
4878         * lib/unictype/pr_soft_dotted.h: Likewise.
4879         * lib/unictype/pr_space.h: Likewise.
4880         * lib/unictype/pr_titlecase.h: Likewise.
4881         * lib/unictype/pr_variation_selector.h: Likewise.
4882         * lib/unictype/pr_white_space.h: Likewise.
4883         * lib/unictype/pr_zero_width.h: Likewise.
4884         * lib/unictype/sy_c_ident.h: Likewise.
4885         * lib/unictype/sy_c_whitespace.h: Likewise.
4886         * lib/unictype/sy_java_whitespace.h: Likewise.
4887         * lib/uninorm/composition-table.gperf: Likewise.
4888         * lib/uninorm/decomposition-table1.h: Likewise.
4889         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4890         LB8.
4891         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4892         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4893         * modules/unictype/*: Bump version number of expected libunistring
4894         version.
4895
4896 2011-01-09  Bruno Haible  <bruno@clisp.org>
4897
4898         Update to Unicode 5.2.0.
4899         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4900         trailing whitespace removed.
4901
4902 2011-01-09  Bruno Haible  <bruno@clisp.org>
4903
4904         New Unicode character properties, from Unicode 5.2.0.
4905         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4906         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4907         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4908         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4909         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4910         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4911         uc_is_property_cased, uc_is_property_case_ignorable,
4912         uc_is_property_changes_when_lowercased,
4913         uc_is_property_changes_when_uppercased,
4914         uc_is_property_changes_when_titlecased,
4915         uc_is_property_changes_when_casefolded,
4916         uc_is_property_changes_when_casemapped): New declarations.
4917         * lib/unictype/pr_byname.gperf: Add the new properties.
4918         * modules/unictype/property-byname (Depends-on): Depend on the new
4919         properties modules.
4920         * modules/unictype/property-all (Depends-on): Likewise.
4921         * MODULES.html.sh (Unicode string functions): Add
4922         unictype/property-case-ignorable, unictype/property-cased,
4923         unictype/property-changes-when-casefolded,
4924         unictype/property-changes-when-casemapped,
4925         unictype/property-changes-when-lowercased,
4926         unictype/property-changes-when-titlecased,
4927         unictype/property-changes-when-uppercased.
4928
4929         New module 'unictype/property-changes-when-casemapped'.
4930         * modules/unictype/property-changes-when-casemapped: New file.
4931         * lib/unictype/pr_changes_when_casemapped.c: New file.
4932         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4933         generated by gen-uni-tables.
4934         * modules/unictype/property-changes-when-casemapped-tests: New file.
4935         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4936         automatically generated by gen-uni-tables.
4937
4938         New module 'unictype/property-changes-when-casefolded'.
4939         * modules/unictype/property-changes-when-casefolded: New file.
4940         * lib/unictype/pr_changes_when_casefolded.c: New file.
4941         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4942         generated by gen-uni-tables.
4943         * modules/unictype/property-changes-when-casefolded-tests: New file.
4944         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4945         automatically generated by gen-uni-tables.
4946
4947         New module 'unictype/property-changes-when-titlecased'.
4948         * modules/unictype/property-changes-when-titlecased: New file.
4949         * lib/unictype/pr_changes_when_titlecased.c: New file.
4950         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4951         generated by gen-uni-tables.
4952         * modules/unictype/property-changes-when-titlecased-tests: New file.
4953         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4954         automatically generated by gen-uni-tables.
4955
4956         New module 'unictype/property-changes-when-uppercased'.
4957         * modules/unictype/property-changes-when-uppercased: New file.
4958         * lib/unictype/pr_changes_when_uppercased.c: New file.
4959         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4960         generated by gen-uni-tables.
4961         * modules/unictype/property-changes-when-uppercased-tests: New file.
4962         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4963         automatically generated by gen-uni-tables.
4964
4965         New module 'unictype/property-changes-when-lowercased'.
4966         * modules/unictype/property-changes-when-lowercased: New file.
4967         * lib/unictype/pr_changes_when_lowercased.c: New file.
4968         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4969         generated by gen-uni-tables.
4970         * modules/unictype/property-changes-when-lowercased-tests: New file.
4971         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4972         automatically generated by gen-uni-tables.
4973
4974         New module 'unictype/property-case-ignorable'.
4975         * modules/unictype/property-case-ignorable: New file.
4976         * lib/unictype/pr_case_ignorable.c: New file.
4977         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4978         by gen-uni-tables.
4979         * modules/unictype/property-case-ignorable-tests: New file.
4980         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4981         generated by gen-uni-tables.
4982
4983         New module 'unictype/property-cased'.
4984         * modules/unictype/property-cased: New file.
4985         * lib/unictype/pr_cased.c: New file.
4986         * lib/unictype/pr_cased.h: New file, automatically generated by
4987         gen-uni-tables.
4988         * modules/unictype/property-cased-tests: New file.
4989         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4990         gen-uni-tables.
4991
4992 2011-01-09  Bruno Haible  <bruno@clisp.org>
4993
4994         Update to Unicode 5.2.0.
4995         * lib/gen-uni-tables.c (output_predicate, output_category,
4996         output_combclass, output_bidi_category, output_decimal_digit_test,
4997         output_decimal_digit, output_digit_test, output_digit,
4998         output_numeric_test, output_numeric, output_mirror, output_scripts,
4999         output_scripts_byname, output_blocks, output_ident_category): Fix
5000         comment header.
5001         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5002         get_wbp.
5003         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5004         items.
5005         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5006         Changes_When_Lowercased, Changes_When_Uppercased,
5007         Changes_When_Titlecased, Changes_When_Casefolded,
5008         Changes_When_Casemapped.
5009         (is_property_alphabetic, is_property_default_ignorable_code_point):
5010         Update for Unicode 5.2.0.
5011         (is_property_cased, is_property_case_ignorable,
5012         is_property_changes_when_lowercased,
5013         is_property_changes_when_uppercased,
5014         is_property_changes_when_titlecased,
5015         is_property_changes_when_casefolded,
5016         is_property_changes_when_casemapped): New functions.
5017         (output_properties): Output also the properties cased, case_ignorable,
5018         changes_when_lowercased, changes_when_uppercased,
5019         changes_when_titlecased, changes_when_casefolded,
5020         changes_when_casemapped.
5021         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5022         Unicode TR#11 revision 17 -> 19.
5023         (LBP_CP): New enumeration value.
5024         (LBP_*): Adjust values accordingly.
5025         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5026         TR#14 revision 22 -> 24.
5027         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5028         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5029         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5030         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5031         is_WBP_MIDLETTER.
5032         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5033         the code1 and code2 of each composition rule.
5034         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5035         * lib/unicase/ignorable.h: Likewise.
5036         * lib/unicase/tocasefold.h: Likewise.
5037         * lib/unicase/tolower.h: Likewise.
5038         * lib/unicase/totitle.h: Likewise.
5039         * lib/unicase/toupper.h: Likewise.
5040         * lib/unictype/bidi_of.h: Likewise.
5041         * lib/unictype/blocks.h: Likewise.
5042         * lib/unictype/categ_C.h: Likewise.
5043         * lib/unictype/categ_Cf.h: Likewise.
5044         * lib/unictype/categ_Cn.h: Likewise.
5045         * lib/unictype/categ_L.h: Likewise.
5046         * lib/unictype/categ_Ll.h: Likewise.
5047         * lib/unictype/categ_Lm.h: Likewise.
5048         * lib/unictype/categ_Lo.h: Likewise.
5049         * lib/unictype/categ_Lu.h: Likewise.
5050         * lib/unictype/categ_M.h: Likewise.
5051         * lib/unictype/categ_Mc.h: Likewise.
5052         * lib/unictype/categ_Mn.h: Likewise.
5053         * lib/unictype/categ_N.h: Likewise.
5054         * lib/unictype/categ_Nd.h: Likewise.
5055         * lib/unictype/categ_Nl.h: Likewise.
5056         * lib/unictype/categ_No.h: Likewise.
5057         * lib/unictype/categ_P.h: Likewise.
5058         * lib/unictype/categ_Pd.h: Likewise.
5059         * lib/unictype/categ_Po.h: Likewise.
5060         * lib/unictype/categ_S.h: Likewise.
5061         * lib/unictype/categ_Sc.h: Likewise.
5062         * lib/unictype/categ_So.h: Likewise.
5063         * lib/unictype/categ_of.h: Likewise.
5064         * lib/unictype/combining.h: Likewise.
5065         * lib/unictype/ctype_alnum.h: Likewise.
5066         * lib/unictype/ctype_alpha.h: Likewise.
5067         * lib/unictype/ctype_graph.h: Likewise.
5068         * lib/unictype/ctype_lower.h: Likewise.
5069         * lib/unictype/ctype_print.h: Likewise.
5070         * lib/unictype/ctype_punct.h: Likewise.
5071         * lib/unictype/ctype_upper.h: Likewise.
5072         * lib/unictype/decdigit.h: Likewise.
5073         * lib/unictype/digit.h: Likewise.
5074         * lib/unictype/numeric.h: Likewise.
5075         * lib/unictype/pr_alphabetic.h: Likewise.
5076         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5077         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5078         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5079         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5080         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5081         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5082         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5083         * lib/unictype/pr_combining.h: Likewise.
5084         * lib/unictype/pr_composite.h: Likewise.
5085         * lib/unictype/pr_currency_symbol.h: Likewise.
5086         * lib/unictype/pr_dash.h: Likewise.
5087         * lib/unictype/pr_decimal_digit.h: Likewise.
5088         * lib/unictype/pr_deprecated.h: Likewise.
5089         * lib/unictype/pr_diacritic.h: Likewise.
5090         * lib/unictype/pr_extender.h: Likewise.
5091         * lib/unictype/pr_grapheme_base.h: Likewise.
5092         * lib/unictype/pr_grapheme_extend.h: Likewise.
5093         * lib/unictype/pr_grapheme_link.h: Likewise.
5094         * lib/unictype/pr_id_continue.h: Likewise.
5095         * lib/unictype/pr_id_start.h: Likewise.
5096         * lib/unictype/pr_ideographic.h: Likewise.
5097         * lib/unictype/pr_ignorable_control.h: Likewise.
5098         * lib/unictype/pr_logical_order_exception.h: Likewise.
5099         * lib/unictype/pr_lowercase.h: Likewise.
5100         * lib/unictype/pr_numeric.h: Likewise.
5101         * lib/unictype/pr_other_alphabetic.h: Likewise.
5102         * lib/unictype/pr_punctuation.h: Likewise.
5103         * lib/unictype/pr_sentence_terminal.h: Likewise.
5104         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5105         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5106         * lib/unictype/pr_unified_ideograph.h: Likewise.
5107         * lib/unictype/pr_uppercase.h: Likewise.
5108         * lib/unictype/pr_xid_continue.h: Likewise.
5109         * lib/unictype/pr_xid_start.h: Likewise.
5110         * lib/unictype/pr_zero_width.h: Likewise.
5111         * lib/unictype/scripts.h: Likewise.
5112         * lib/unictype/scripts_byname.gperf: Likewise.
5113         * lib/unictype/sy_java_ident.h: Likewise.
5114         * lib/unigbrk/gbrkprop.h: Likewise.
5115         * lib/unilbrk/lbrkprop1.h: Likewise.
5116         * lib/unilbrk/lbrkprop2.h: Likewise.
5117         * lib/unilbrk/lbrktables.h: Likewise.
5118         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5119         LBP_CP. Implement rule LB30.
5120         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5121         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5122         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5123         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5124         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5125         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5126         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5127         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5128         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5129         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5130         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5131         bits instead of 16 bits in the code1 and code2 of each composition
5132         rule.
5133         (uc_composition): Update for Unicode 5.2.0.
5134         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5135         * lib/uninorm/decomposition-table2.h: Likewise.
5136         * lib/uniwbrk/wbrkprop.h: Likewise.
5137         * tests/unicase/test-cased.c: Likewise.
5138         * tests/unicase/test-ignorable.c: Likewise.
5139         * tests/unicase/test-uc_tolower.c: Likewise.
5140         * tests/unicase/test-uc_totitle.c: Likewise.
5141         * tests/unicase/test-uc_toupper.c: Likewise.
5142         * tests/unictype/test-categ_C.c: Likewise.
5143         * tests/unictype/test-categ_Cf.c: Likewise.
5144         * tests/unictype/test-categ_Cn.c: Likewise.
5145         * tests/unictype/test-categ_L.c: Likewise.
5146         * tests/unictype/test-categ_Ll.c: Likewise.
5147         * tests/unictype/test-categ_Lm.c: Likewise.
5148         * tests/unictype/test-categ_Lo.c: Likewise.
5149         * tests/unictype/test-categ_Lu.c: Likewise.
5150         * tests/unictype/test-categ_M.c: Likewise.
5151         * tests/unictype/test-categ_Mc.c: Likewise.
5152         * tests/unictype/test-categ_Mn.c: Likewise.
5153         * tests/unictype/test-categ_N.c: Likewise.
5154         * tests/unictype/test-categ_Nd.c: Likewise.
5155         * tests/unictype/test-categ_Nl.c: Likewise.
5156         * tests/unictype/test-categ_No.c: Likewise.
5157         * tests/unictype/test-categ_P.c: Likewise.
5158         * tests/unictype/test-categ_Pd.c: Likewise.
5159         * tests/unictype/test-categ_Po.c: Likewise.
5160         * tests/unictype/test-categ_S.c: Likewise.
5161         * tests/unictype/test-categ_Sc.c: Likewise.
5162         * tests/unictype/test-categ_So.c: Likewise.
5163         * tests/unictype/test-ctype_alnum.c: Likewise.
5164         * tests/unictype/test-ctype_alpha.c: Likewise.
5165         * tests/unictype/test-ctype_graph.c: Likewise.
5166         * tests/unictype/test-ctype_lower.c: Likewise.
5167         * tests/unictype/test-ctype_print.c: Likewise.
5168         * tests/unictype/test-ctype_punct.c: Likewise.
5169         * tests/unictype/test-ctype_upper.c: Likewise.
5170         * tests/unictype/test-decdigit.h: Likewise.
5171         * tests/unictype/test-digit.h: Likewise.
5172         * tests/unictype/test-numeric.h: Likewise.
5173         * tests/unictype/test-pr_alphabetic.c: Likewise.
5174         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5175         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5176         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5177         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5178         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5179         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5180         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5181         * tests/unictype/test-pr_combining.c: Likewise.
5182         * tests/unictype/test-pr_composite.c: Likewise.
5183         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5184         * tests/unictype/test-pr_dash.c: Likewise.
5185         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5186         * tests/unictype/test-pr_deprecated.c: Likewise.
5187         * tests/unictype/test-pr_diacritic.c: Likewise.
5188         * tests/unictype/test-pr_extender.c: Likewise.
5189         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5190         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5191         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5192         * tests/unictype/test-pr_id_continue.c: Likewise.
5193         * tests/unictype/test-pr_id_start.c: Likewise.
5194         * tests/unictype/test-pr_ideographic.c: Likewise.
5195         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5196         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5197         * tests/unictype/test-pr_lowercase.c: Likewise.
5198         * tests/unictype/test-pr_numeric.c: Likewise.
5199         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5200         * tests/unictype/test-pr_punctuation.c: Likewise.
5201         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5202         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5203         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5204         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5205         * tests/unictype/test-pr_uppercase.c: Likewise.
5206         * tests/unictype/test-pr_xid_continue.c: Likewise.
5207         * tests/unictype/test-pr_xid_start.c: Likewise.
5208         * tests/unictype/test-pr_zero_width.c: Likewise.
5209         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5210         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5211         changed behaviour: line breaking is now disallowed between a letter
5212         or '=' and '('.
5213         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5214         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5215         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5216         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5217         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5218         lib/uniwidth/width.c.
5219         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5220         without comments, but with the original copyright notice.
5221         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5222         changes.
5223         * lib/unictype/categ_Cc.h: Likewise.
5224         * lib/unictype/categ_Co.h: Likewise.
5225         * lib/unictype/categ_Cs.h: Likewise.
5226         * lib/unictype/categ_Lt.h: Likewise.
5227         * lib/unictype/categ_Me.h: Likewise.
5228         * lib/unictype/categ_Pc.h: Likewise.
5229         * lib/unictype/categ_Pe.h: Likewise.
5230         * lib/unictype/categ_Pf.h: Likewise.
5231         * lib/unictype/categ_Pi.h: Likewise.
5232         * lib/unictype/categ_Ps.h: Likewise.
5233         * lib/unictype/categ_Sk.h: Likewise.
5234         * lib/unictype/categ_Sm.h: Likewise.
5235         * lib/unictype/categ_Z.h: Likewise.
5236         * lib/unictype/categ_Zl.h: Likewise.
5237         * lib/unictype/categ_Zp.h: Likewise.
5238         * lib/unictype/categ_Zs.h: Likewise.
5239         * lib/unictype/ctype_blank.h: Likewise.
5240         * lib/unictype/ctype_cntrl.h: Likewise.
5241         * lib/unictype/ctype_digit.h: Likewise.
5242         * lib/unictype/ctype_space.h: Likewise.
5243         * lib/unictype/ctype_xdigit.h: Likewise.
5244         * lib/unictype/mirror.h: Likewise.
5245         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5246         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5247         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5248         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5249         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5250         * lib/unictype/pr_bidi_control.h: Likewise.
5251         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5252         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5253         * lib/unictype/pr_bidi_pdf.h: Likewise.
5254         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5255         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5256         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5257         * lib/unictype/pr_format_control.h: Likewise.
5258         * lib/unictype/pr_hex_digit.h: Likewise.
5259         * lib/unictype/pr_hyphen.h: Likewise.
5260         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5261         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5262         * lib/unictype/pr_iso_control.h: Likewise.
5263         * lib/unictype/pr_join_control.h: Likewise.
5264         * lib/unictype/pr_left_of_pair.h: Likewise.
5265         * lib/unictype/pr_line_separator.h: Likewise.
5266         * lib/unictype/pr_math.h: Likewise.
5267         * lib/unictype/pr_non_break.h: Likewise.
5268         * lib/unictype/pr_not_a_character.h: Likewise.
5269         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5270         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5271         * lib/unictype/pr_other_id_continue.h: Likewise.
5272         * lib/unictype/pr_other_id_start.h: Likewise.
5273         * lib/unictype/pr_other_lowercase.h: Likewise.
5274         * lib/unictype/pr_other_math.h: Likewise.
5275         * lib/unictype/pr_other_uppercase.h: Likewise.
5276         * lib/unictype/pr_paired_punctuation.h: Likewise.
5277         * lib/unictype/pr_paragraph_separator.h: Likewise.
5278         * lib/unictype/pr_pattern_syntax.h: Likewise.
5279         * lib/unictype/pr_pattern_white_space.h: Likewise.
5280         * lib/unictype/pr_private_use.h: Likewise.
5281         * lib/unictype/pr_quotation_mark.h: Likewise.
5282         * lib/unictype/pr_radical.h: Likewise.
5283         * lib/unictype/pr_soft_dotted.h: Likewise.
5284         * lib/unictype/pr_space.h: Likewise.
5285         * lib/unictype/pr_titlecase.h: Likewise.
5286         * lib/unictype/pr_variation_selector.h: Likewise.
5287         * lib/unictype/pr_white_space.h: Likewise.
5288         * lib/unictype/sy_c_ident.h: Likewise.
5289         * lib/unictype/sy_c_whitespace.h: Likewise.
5290         * lib/unictype/sy_java_whitespace.h: Likewise.
5291         * modules/uni*/*: Bump version number of expected libunistring version.
5292         Reported by Simon Josefsson.
5293
5294 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5295
5296         useless-if-before-free: fix typo in --help and make the internal,
5297         automatic version date update process work once again.
5298         --help output contained a NUL character instead of the
5299         backslash-zero that was intended.  Also, the "must lie within
5300         the first 8 lines" line is on line 9, and hence not getting
5301         automatically updated.
5302         * build-aux/useless-if-before-free: Fix the former by adding a
5303         backslash, and the latter by condensing the three lines of what-it-does
5304         to a single line, leaving one line of slack for the future.
5305
5306 2011-01-09  Bruno Haible  <bruno@clisp.org>
5307
5308         uniwidth/width: Fix width of U+1D173..U+1D17A.
5309         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5310         symbolic_width, output_width_property_test): New functions.
5311         (main): Invoke output_nonspacing_property, output_width_property_test.
5312         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5313         U+1D173..U+1D17A.
5314         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5315         1.
5316         * modules/uniwidth/*: Bump version number of expected libunistring
5317         version.
5318         * modules/unilbrk/*: Likewise.
5319
5320 2011-01-08  Bruno Haible  <bruno@clisp.org>
5321
5322         uninorm tests: Preserve copyright of Unicode data file.
5323         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5324         Mention modifications.
5325
5326 2011-01-08  Bruno Haible  <bruno@clisp.org>
5327
5328         gen-uni-tables: Prepare for Unicode 5.2.0.
5329         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5330         (debug_output_lbp, output_lbp): Update.
5331
5332 2011-01-08  Bruno Haible  <bruno@clisp.org>
5333
5334         unilbrk: Clarify gen-uni-tables.c code.
5335         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5336         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5337         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5338
5339 2011-01-07  Bruno Haible  <bruno@clisp.org>
5340
5341         strtod: Restore errno when successfully parsing Infinity or NaN.
5342         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5343         restore the original errno.
5344
5345 2011-01-07  Bruno Haible  <bruno@clisp.org>
5346
5347         remove test: Avoid failure on HP-UX 11.
5348         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5349
5350 2011-01-07  Bruno Haible  <bruno@clisp.org>
5351
5352         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5353         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5354         error code.
5355
5356 2011-01-07  Pádraig Brady <P@draigBrady.com>
5357
5358         ignore-value: fixup comments, and add Eric Blake
5359         as an author since he rewrote the macros.
5360         * lib/ignore-value.h (ignore_value):  State that
5361         we now support aggregates.  Also specify exactly
5362         when the GCC warn_unused_result feature was added.
5363
5364 2011-01-06  Eric Blake  <eblake@redhat.com>
5365
5366         ignore-value: support aggregate types
5367         * lib/ignore-value.h (ignore_value): Provide separate gcc
5368         definition.
5369         * modules/ignore-value-tests: New test module.
5370         * tests/test-ignore-value.c: New test.
5371
5372         maint.mk: improve sc_prohibit_strcmp regex
5373         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5374         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5375         definition of STRNEQ.
5376
5377         signal: work around Haiku issue with SIGBUS
5378         * lib/siglist.h: Add comment.
5379         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5380         strsignal's favoring of SIGSEGV.
5381         * tests/test-signal.c (main): Avoid test failure.
5382         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5383         Reported by Scott McCreary.
5384
5385         maint.mk: add pre-release check to ensure submodule commits are public
5386         * top/maint.mk (public-submodule-commit): New rule.
5387         (submodule-checks): New variable.
5388         (alpha beta stable): Depend on the variable.
5389
5390 2011-01-05  Pádraig Brady <P@draigBrady.com>
5391         and Jim Meyering  <meyering@redhat.com>
5392
5393         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5394         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5395         (ATTRIBUTE_DEPRECATED): Define.
5396         (_ignore_case): New function.
5397         (ignore_value): New macro, to replace the old function.
5398         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5399         * modules/ignore-value (Depends-on): Add stdint.
5400
5401 2011-01-04  Eric Blake  <eblake@redhat.com>
5402
5403         doc: regenerate INSTALL
5404         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5405         @firstparagraphindent support, now that autoconf dropped it.
5406         (INSTALL_PRELUDE): Reinstate old macro.
5407         * doc/install.texi: Resync from autoconf.
5408         * doc/INSTALL: Reflect recent autoconf update.
5409         * doc/INSTALL.ISO: Likewise.
5410         * doc/INSTALL.UTF-8: Likewise.
5411         Reported by Karl Berry.
5412
5413 2011-01-04  Bruce Korb  <address@hidden>
5414
5415         git-version-gen: avoid a sub-shell
5416         * build-aux/git-version-gen: Redirect stderr in `...` via
5417         "exec 2>...", rather than via an added sub-shell.
5418
5419 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5420
5421         git-version-gen: use (...) rather than sh -c '...'
5422         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5423         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5424
5425 2011-01-03  Jim Meyering  <meyering@redhat.com>
5426
5427         git-version-gen: convert leading TABs to spaces
5428         * build-aux/git-version-gen: Expand leading TABs.
5429
5430         git-version-gen: handle failed "git rev-list"
5431         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5432         from git and proceeding as if it had succeeded but printed no SHA1
5433         checksums, suppress the diagnostic and handle the failure.
5434         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5435
5436         git-version-gen: include command name in one more diagnostic
5437         * build-aux/git-version-gen: When the required .tarball-version file
5438         was missing or unreadable, you might see the diagnostic from "cat",
5439         but no trace of the name of the invoking script.  Now, you still see
5440         the diagnostic from cat, but also get one from "git-version-gen: ".
5441         Inspired by a patch from Bruce Korb.
5442
5443         update-copyright: adjust test to match changed code
5444         * tests/test-update-copyright.sh: Change test's expected output
5445         to match new actual output.
5446
5447 2011-01-02  Bruno Haible  <bruno@clisp.org>
5448
5449         getlogin_r: Avoid test failure on HP-UX 11.
5450         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5451         ERANGE when the second argument is zero.
5452         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5453         portability problem.
5454
5455 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5456
5457         * build-aux/update-copyright: doc Simon's changes
5458
5459 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5460
5461         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5462         environment variable.
5463
5464 2011-01-02  Bruno Haible  <bruno@clisp.org>
5465
5466         unigbrk: Avoid gcc warnings.
5467         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5468         unused variable.
5469         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5470         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5471         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5472         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5473         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5474         Change type of first argument to 'const char *'.
5475         (main): Remove unused variable.
5476         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5477         type of first argument to 'const char *'.
5478         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5479         Likewise.
5480         (main): Change type of variable 's'.
5481         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5482         to 'int'.
5483
5484 2011-01-02  Bruno Haible  <bruno@clisp.org>
5485
5486         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5487         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5488         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5489         bug.
5490         * lib/pwrite.c: Undo 2010-12-31 patch.
5491         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5492
5493 2011-01-02  Bruno Haible  <bruno@clisp.org>
5494
5495         pread: Fix test whether it works.
5496         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5497
5498 2011-01-02  Bruno Haible  <bruno@clisp.org>
5499
5500         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5501         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5502         ends in "6". Don't require a specific month name. Try also the locale
5503         names found on HP-UX 11 and Solaris 7.
5504
5505 2011-01-02  Bruno Haible  <bruno@clisp.org>
5506
5507         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5508         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5509         C linkage.
5510         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5511
5512 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5513
5514         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5515         for consistency, since the "cluster" term is not used elsewhere.
5516         * lib/unigbrk.in.h: Update name.
5517         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5518         * lib/unigbrk/u16-grapheme-next.c: Update name.
5519         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5520         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5521         * lib/unigbrk/u32-grapheme-next.c: Update name.
5522         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5523         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5524         * lib/unigbrk/u8-grapheme-next.c: Update name.
5525         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5526         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5527         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5528         Suggested by Bruno Haible.
5529
5530 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5531
5532         Remove module 'u8-grapheme-len' as too redundant with
5533         'u8-grapheme-next'.
5534         * modules/unigbrk/u8-grapheme-len: Delete file.
5535         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5536         * lib/unigbrk.in.h: Remove prototype for deleted function.
5537         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5538         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5539
5540         Remove module 'u16-grapheme-len' as too redundant with
5541         'u16-grapheme-next'.
5542         * modules/unigbrk/u16-grapheme-len: Delete file.
5543         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5544         * lib/unigbrk.in.h: Remove prototype for deleted function.
5545         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5546         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5547
5548         Remove module 'u32-grapheme-len' as too redundant with
5549         'u32-grapheme-next'.
5550         * modules/unigbrk/u32-grapheme-len: Delete file.
5551         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5552         * lib/unigbrk.in.h: Remove prototype for deleted function.
5553         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5554         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5555
5556         Suggested by Bruno Haible.
5557
5558 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5559
5560         * unigbrk.in.h: Fix typo: "ben" => "been".
5561         Reported by Bruno Haible.
5562
5563 2011-01-01  Jim Meyering  <meyering@redhat.com>
5564
5565         maint: update almost all copyright ranges to include 2011
5566         Run the new "make update-copyright" rule.
5567
5568 2011-01-01  Jim Meyering  <meyering@redhat.com>
5569
5570         maint: update-copyright: exempt doc/INSTALL*
5571         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5572         since they are generated.  Suggested by Bruno Haible.
5573
5574 2011-01-01  Jim Meyering  <meyering@redhat.com>
5575
5576         maint: refine the update-copyright rule
5577         * Makefile (update-copyright): Also exclude any file that includes
5578         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5579         code that merely generates the comment.
5580
5581 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5582
5583         New module 'u8-grapheme-len'.
5584         * modules/unigbrk/u8-grapheme-len: New file.
5585         * modules/unigbrk/u8-grapheme-len-tests: New file.
5586         * lib/unigbrk.in.h: Add prototype for new function.
5587         * lib/unigbrk/u8-grapheme-len.c: New file.
5588         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5589
5590         New module 'u16-grapheme-len'.
5591         * modules/unigbrk/u16-grapheme-len: New file.
5592         * modules/unigbrk/u16-grapheme-len-tests: New file.
5593         * lib/unigbrk.in.h: Add prototype for new function.
5594         * lib/unigbrk/u16-grapheme-len.c: New file.
5595         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5596
5597         New module 'u32-grapheme-len'.
5598         * modules/unigbrk/u32-grapheme-len: New file.
5599         * modules/unigbrk/u32-grapheme-len-tests: New file.
5600         * lib/unigbrk.in.h: Add prototype for new function.
5601         * lib/unigbrk/u32-grapheme-len.c: New file.
5602         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5603
5604         New module 'u8-grapheme-next'.
5605         * modules/unigbrk/u8-grapheme-next: New file.
5606         * modules/unigbrk/u8-grapheme-next-tests: New file.
5607         * lib/unigbrk.in.h: Add prototype for new function.
5608         * lib/unigbrk/u8-grapheme-next.c: New file.
5609         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5610
5611         New module 'u16-grapheme-next'.
5612         * modules/unigbrk/u16-grapheme-next: New file.
5613         * modules/unigbrk/u16-grapheme-next-tests: New file.
5614         * lib/unigbrk.in.h: Add prototype for new function.
5615         * lib/unigbrk/u16-grapheme-next.c: New file.
5616         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5617
5618         New module 'u32-grapheme-next'.
5619         * modules/unigbrk/u32-grapheme-next: New file.
5620         * modules/unigbrk/u32-grapheme-next-tests: New file.
5621         * lib/unigbrk.in.h: Add prototype for new function.
5622         * lib/unigbrk/u32-grapheme-next.c: New file.
5623         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5624
5625         New module 'u8-grapheme-prev'.
5626         * modules/unigbrk/u8-grapheme-prev: New file.
5627         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5628         * lib/unigbrk.in.h: Add prototype for new function.
5629         * lib/unigbrk/u8-grapheme-prev.c: New file.
5630         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5631
5632         New module 'u16-grapheme-prev'.
5633         * modules/unigbrk/u16-grapheme-prev: New file.
5634         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5635         * lib/unigbrk.in.h: Add prototype for new function.
5636         * lib/unigbrk/u16-grapheme-prev.c: New file.
5637         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5638
5639         New module 'u32-grapheme-prev'.
5640         * modules/unigbrk/u32-grapheme-prev: New file.
5641         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5642         * lib/unigbrk.in.h: Add prototype for new function.
5643         * lib/unigbrk/u32-grapheme-prev.c: New file.
5644         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5645
5646         New module 'u8-grapheme-breaks'.
5647         * modules/unigbrk/u8-grapheme-breaks: New file.
5648         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5649         * lib/unigbrk.in.h: Add prototype for new function.
5650         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5651         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5652
5653         New module 'u16-grapheme-breaks'.
5654         * modules/unigbrk/u16-grapheme-breaks: New file.
5655         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5656         * lib/unigbrk.in.h: Add prototype for new function.
5657         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5658         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5659
5660         New module 'u32-grapheme-breaks'.
5661         * modules/unigbrk/u32-grapheme-breaks: New file.
5662         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5663         * lib/unigbrk.in.h: Add prototype for new function.
5664         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5665         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5666
5667         New module 'ulc-grapheme-breaks'.
5668         * modules/unigbrk/ulc-grapheme-breaks: New file.
5669         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5670         * m4/locale-ar.m4: New file.
5671         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5672         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5673         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5674
5675 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5676
5677         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5678         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5679         modified how this file was generated before I initially submitted
5680         the module, but failed to regenerate it.  This meant that several
5681         of the level2 entries were wrong.
5682         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5683         Remove the division-by-2 that is folded into the table now that
5684         gbrkprop.h has been regenerated properly.  Now -1 entries are
5685         handled correctly.
5686
5687         New module 'unigbrk/uc-gbrk-prop-tests'.
5688         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5689         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5690         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5691         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5692
5693 2011-01-01  Bruno Haible  <bruno@clisp.org>
5694
5695         Avoid use of hexadecimal escapes.
5696         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5697         instead of hexadecimal escapes.
5698
5699 2011-01-01  Jim Meyering  <meyering@redhat.com>
5700
5701         maint: new rule to update copyright year ranges
5702         * Makefile (update-copyright): New rule.
5703
5704         maint: indent with TABs in Makefile
5705         * Makefile: Expand leading sequences of spaces to TABs
5706
5707         version-etc: update the copyright year it reports
5708         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5709
5710 2010-12-31  Bruno Haible  <bruno@clisp.org>
5711
5712         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5713         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5714         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5715         zero.
5716
5717 2010-12-31  Bruno Haible  <bruno@clisp.org>
5718
5719         pwrite: Work around HP-UX 11.11 bug.
5720         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5721         works and set REPLACE_PWRITE if not.
5722         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5723         function.
5724         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5725
5726 2010-12-31  Bruno Haible  <bruno@clisp.org>
5727
5728         pread: Work around HP-UX 11 bugs.
5729         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5730         and set REPLACE_PREAD if not.
5731         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5732
5733 2010-12-31  Eric Blake  <eblake@redhat.com>
5734
5735         nl_langinfo: fix YESEXPR on Irix 6.5
5736         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5737         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5738         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5739         it.
5740
5741 2010-12-31  Bruno Haible  <bruno@clisp.org>
5742
5743         iconv: Document HP-UX 11 bug.
5744         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5745
5746 2010-12-31  Bruno Haible  <bruno@clisp.org>
5747
5748         ldexpl: Fix link error on HP-UX 11.
5749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5750         LDEXPL_LIBM, using $ISNANL_LIBM.
5751
5752 2010-12-31  Eric Blake  <eblake@redhat.com>
5753
5754         ftello: avoid compilation failure with SunStudio c89
5755         * lib/ftello.c (ftello): Use lseek, not llseek.
5756
5757         tests: avoid failing coreutils tests on cygwin
5758         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5759         (create_exe_shims_): Return 0 when skipping.
5760
5761 2010-12-31  Bruno Haible  <bruno@clisp.org>
5762
5763         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5764         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5765
5766 2010-12-31  Bruno Haible  <bruno@clisp.org>
5767
5768         waitpid: Fix link error in C++ mode.
5769         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5770
5771 2010-12-31  Bruno Haible  <bruno@clisp.org>
5772
5773         isnan: Use GCC built-ins when possible.
5774         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5775         __builtin_isnan.
5776         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5777         (isnan): Define using GCC built-ins for GCC >= 4.0.
5778
5779 2010-12-31  Bruno Haible  <bruno@clisp.org>
5780
5781         isnand: Fix mistake.
5782         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5783         __builtin_isnand.
5784
5785 2010-12-31  Bruno Haible  <bruno@clisp.org>
5786
5787         open: Avoid C++ error on HP-UX 11.
5788         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5789
5790 2010-12-31  Bruno Haible  <bruno@clisp.org>
5791
5792         time_r: Add missing declarations on HP-UX 11.
5793         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5794         instead of HAVE_LOCALTIME_R.
5795         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5796         HAVE_LOCALTIME_R always.
5797         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5798         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5799         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5800         HAVE_LOCALTIME_R.
5801         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5802         * doc/posix-functions/localtime_r.texi: Likewise.
5803
5804 2010-12-29  Eric Blake  <eblake@redhat.com>
5805
5806         mountlist: tweak previous commit
5807         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5808         Reported by Paul Eggert.
5809
5810         mountlist: fix local drive detection on cygwin
5811         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5812         that works for cygwin.
5813
5814 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5815
5816         ftoastr, snprintf: ftoastr + snprintf module
5817         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5818         since the snprintf module now should be good enough here.
5819         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5820         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5821         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5822         GNULIB_SNPRINTF only for the test directory, and the latter
5823         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5824         seems to suffice by itself.
5825
5826 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5827
5828         alloca: one step towards thread-safety
5829         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5830         need for a static variable.  All callers changed.  This does not
5831         make the alloca replacement thread-safe, but it's one step.
5832
5833         tests: minor indenting change
5834         * tests/init.sh: Sync from coreutils housekeeping patch
5835         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5836         to keep lines within 80 columns.
5837
5838 2010-12-28  Jim Meyering  <meyering@redhat.com>
5839
5840         regex: don't infloop on persistent failing calloc
5841         * lib/regexec.c (build_trtable): Return failure indication upon
5842         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5843         In glibc, this was fixed for version 2.13:
5844         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5845
5846 2010-12-28  Bruno Haible  <bruno@clisp.org>
5847             Paul Eggert <eggert@cs.ucla.edu>
5848
5849         linkat: Make implementation robust against system behaviour variations.
5850         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5851         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5852         way, and to -2 if it needs a generic runtime test.
5853         * lib/linkat.c (solaris_optimized_link_immediate,
5854         solaris_optimized_link_follow): New functions.
5855         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5856         (check_same_link): Use it.
5857
5858 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5859
5860         New module 'unigbrk/base'.
5861         * modules/unigbrk/base: New file.
5862         * lib/unigbrk.in.h: New file.
5863
5864         New module 'unigbrk/uc-gbrk-prop'.
5865         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5866         * modules/unigbrk/uc-gbrk-prop: New file.
5867         * lib/unigbrk/gbrkprop.h: New file.
5868         * lib/unigbrk/uc-gbrk-prop.c: New file.
5869
5870         New module 'unigbrk/uc-is-grapheme-break'.
5871         * modules/unigbrk/uc-is-grapheme-break: New file.
5872         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5873         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5874         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5875         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5876         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5877
5878         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5879
5880 2010-12-27  Bruno Haible  <bruno@clisp.org>
5881
5882         linkat test: Avoid failure on Solaris 11 2010-11.
5883         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5884
5885 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5886
5887         utimens: work around glibc rounding bug on more platforms
5888         * lib/utimens.c (fdutimens): Work around rounding bug even if
5889         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5890         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5891
5892 2010-12-27  Bruno Haible  <bruno@clisp.org>
5893
5894         select tests: Improve comments.
5895         * tests/test-select.c (do_select): Add comments.
5896
5897 2010-12-27  Bruno Haible  <bruno@clisp.org>
5898
5899         select tests: Safer way of handling timeout.
5900         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5901         at every invocation.
5902
5903 2010-12-27  Bruno Haible  <bruno@clisp.org>
5904
5905         select tests: Use 'bool' where appropriate.
5906         * tests/test-select.c (connect_to_socket): Change argument type to
5907         'bool'.
5908
5909 2010-12-27  Bruno Haible  <bruno@clisp.org>
5910
5911         select tests: Use existing modules.
5912         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5913         (configure.ac): Don't test for unistd.h.
5914         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5915         declared in <unistd.h>.
5916
5917 2010-12-27  Bruno Haible  <bruno@clisp.org>
5918
5919         mbrtowc: Work around a Solaris 7 bug.
5920         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5921         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5922         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5923         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5924         MBRTOWC_NULL_ARG1_BUG.
5925         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5926         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5927         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5928         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5929
5930 2010-12-27  Jim Meyering  <meyering@redhat.com>
5931
5932         read-file.c: tweak syntax
5933         * lib/read-file.c (fread_file): Remove space after "*" in function
5934         definitions.
5935
5936 2010-12-27  Bruno Haible  <bruno@clisp.org>
5937
5938         times test: Avoid gcc warnings on OSF/1.
5939         * tests/test-times.c (main): Cast printf arguments from clock_t to
5940         'long int'.
5941
5942 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5943
5944         utimens: work around glibc rounding bug on older Linux kernels
5945         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5946         on Linux with a glibc whose utimes might not work, then work
5947         around a longstanding glibc bug involving rounding rather than
5948         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5950
5951 2010-12-26  Bruno Haible  <bruno@clisp.org>
5952
5953         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5954         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5955         _GL_CXXALIAS_SYS.
5956         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5957
5958 2010-12-26  Bruno Haible  <bruno@clisp.org>
5959
5960         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5961         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5962         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5963         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5964         looking for the declaration.
5965         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5966         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5967         problem.
5968         * doc/posix-functions/inet_pton.texi: Likewise.
5969
5970 2010-12-26  Bruno Haible  <bruno@clisp.org>
5971
5972         arpa_inet: Use the common idioms with C++ support.
5973         * lib/arpa_inet.in.h: Include c++defs.h.
5974         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5975         support.
5976         * modules/arpa_inet (Depends-on): Add c++defs.
5977         (Makefile.am): Substitute the contents of c++defs.h.
5978         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5979         * modules/arpa_inet-c++-tests: New file.
5980         * tests/test-arpa_inet-c++.cc: New file.
5981
5982 2010-12-25  Bruno Haible  <bruno@clisp.org>
5983
5984         Fix more C++ link errors on Solaris 8.
5985         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5986         $(LIB_EACCESS).
5987         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5988         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5989         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5990         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5991         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5992
5993 2010-12-25  Bruno Haible  <bruno@clisp.org>
5994
5995         printf-posix: Fix link error when a non-GCC compiler is used.
5996         * lib/stdio.in.h (printf): When not using GCC, override printf
5997         correctly.
5998         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5999
6000 2010-12-25  Bruno Haible  <bruno@clisp.org>
6001
6002         strerror_r-posix: Update doc.
6003         * doc/posix-functions/strerror_r.texi: Update doc about the return
6004         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6005
6006 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6007
6008         utimens: simplify the logic of the previous change
6009         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6010         This should not affect whether the test succeeds or fails.
6011
6012         utimens: configure better on hosts with NFS clock skew
6013         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6014         uses the clock of the local host.  It might use the clock of the
6015         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6016         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6017
6018 2010-12-25  Bruno Haible  <bruno@clisp.org>
6019
6020         ptsname test: Avoid failure on Solaris.
6021         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6022         open a pseudo-terminal; don't use BSD-style ptys.
6023         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6024
6025 2010-12-25  Bruno Haible  <bruno@clisp.org>
6026
6027         ptsname: Avoid ERANGE failure on some systems.
6028         * lib/ptsname.c (buffer): Increase size.
6029
6030 2010-12-25  Bruno Haible  <bruno@clisp.org>
6031
6032         rename, renameat: Avoid test failures at NFS mounted locations.
6033         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6034         so that subsequent mkdir calls succeed.
6035
6036 2010-12-25  Bruno Haible  <bruno@clisp.org>
6037
6038         iswblank: Fix C++ link error on Solaris 8.
6039         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6040         _GL_FUNCDECL_SYS.
6041
6042 2010-12-25  Bruno Haible  <bruno@clisp.org>
6043
6044         unistd: Fix C++ link error on Solaris 8.
6045         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6046
6047 2010-12-25  Bruno Haible  <bruno@clisp.org>
6048
6049         readlink doc: Mention an old glibc bug.
6050         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6051
6052 2010-12-25  Bruno Haible  <bruno@clisp.org>
6053
6054         fcntl-h: Fix for use of C++ on glibc systems.
6055         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6056         also on glibc systems in C++ mode.
6057         Reported by Gary V. Vaughan <gary@gnu.org>.
6058
6059 2010-12-25  Bruno Haible  <bruno@clisp.org>
6060
6061         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6062         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6063
6064 2010-12-25  Bruno Haible  <bruno@clisp.org>
6065
6066         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6067         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6068         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6069         test whether truncl works according to ISO C 99 with IEC 60559.
6070         * m4/truncl-ieee.m4: New file.
6071         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6072         m4/signbit.m4.
6073         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6074
6075 2010-12-25  Bruno Haible  <bruno@clisp.org>
6076
6077         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6078         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6079         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6080         test whether ceill works according to ISO C 99 with IEC 60559.
6081         * m4/ceill-ieee.m4: New file.
6082         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6083         m4/signbit.m4.
6084         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6085
6086 2010-12-25  Bruno Haible  <bruno@clisp.org>
6087
6088         Ensure all prerequisites of <wchar.h> are included.
6089         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6090         before <wchar.h>.
6091         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6092         gl_MBRLEN_NUL_RETVAL): Likewise.
6093         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6094         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6095         AC_FUNC_MBRTOWC): Likewise.
6096         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6097         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6098         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6099         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6100         Likewise.
6101         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6102         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6103         (gl_WCHAR_H): Improve comments.
6104         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6105
6106 2010-12-25  Bruno Haible  <bruno@clisp.org>
6107
6108         strtok_r: Fix C syntax error in autoconf macro.
6109         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6110         characters in test program.
6111
6112 2010-12-24  Bruno Haible  <bruno@clisp.org>
6113
6114         ceil, trunc, round: Fix gcc warnings.
6115         * lib/ceil.c (MIN): Undefine before redefining.
6116         * lib/trunc.c (MIN): Likewise.
6117         * lib/round.c (MIN): Likewise.
6118         Include <math.h> first.
6119
6120 2010-12-24  Bruno Haible  <bruno@clisp.org>
6121
6122         select tests: Avoid failures on OSF/1 5.1.
6123         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6124         failure of closing the last socket; it may fail with ECONNRESET.
6125
6126 2010-12-24  Eric Blake  <eblake@redhat.com>
6127
6128         stdint: avoid HP-UX 10.20 preprocessor bug
6129         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6130         than #if.
6131         * tests/test-floor2.c (main): Likewise.
6132         Reported by Peter O'Gorman.
6133
6134         pipe: make obsoletion transition easier
6135         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6136         * modules/pipe (Files): Include revived file.
6137         (Include): Drop reference, to mirror getdate's behavior.
6138
6139 2010-12-24  Bruno Haible  <bruno@clisp.org>
6140
6141         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6142         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6143         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6144         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6145
6146 2010-12-24  Bruno Haible  <bruno@clisp.org>
6147
6148         gethostname: Ensure declaration on NonStop Kernel.
6149         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6150         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6151
6152 2010-12-24  Bruno Haible  <bruno@clisp.org>
6153
6154         sys_select: Ensure all necessary types on NonStop Kernel.
6155         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6156         include <sys/time.h>.
6157         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6158         NonStop Kernel.
6159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6160
6161 2010-12-24  Bruno Haible  <bruno@clisp.org>
6162
6163         sys_select: Remove unneeded include.
6164         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6165         have <sys/select.h>.
6166
6167 2010-12-24  Bruno Haible  <bruno@clisp.org>
6168
6169         gethostname: Provide a fallback for HOST_NAME_MAX.
6170         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6171         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6172         instead.
6173         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6174
6175 2010-12-24  Bruno Haible  <bruno@clisp.org>
6176
6177         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6178         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6179         (SA_RESTART): Likewise.
6180         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6181
6182 2010-12-24  Bruno Haible  <bruno@clisp.org>
6183
6184         signal: Define NSIG.
6185         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6186         * tests/test-signal.c (nsig): New variable.
6187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6188
6189 2010-12-24  Bruno Haible  <bruno@clisp.org>
6190
6191         rename, renameat: Avoid test failures on OSF/1 5.1.
6192         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6193         alternative error codes.
6194         * tests/test-renameat.c (main): Likewise.
6195
6196 2010-12-24  Bruno Haible  <bruno@clisp.org>
6197
6198         *printf: Detect large precisions bug on Solaris 10/SPARC.
6199         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6200         by Paul Eggert.
6201         * tests/test-snprintf-posix.h (test_function): Add this test code here
6202         too.
6203         * tests/test-sprintf-posix.h (test_function): Likewise.
6204         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6205         * tests/test-vasprintf-posix.c (test_function): Likewise.
6206         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6207         around by gnulib.
6208         * doc/posix-functions/printf.texi: Likewise.
6209         * doc/posix-functions/snprintf.texi: Likewise.
6210         * doc/posix-functions/sprintf.texi: Likewise.
6211         * doc/posix-functions/vfprintf.texi: Likewise.
6212         * doc/posix-functions/vprintf.texi: Likewise.
6213         * doc/posix-functions/vsnprintf.texi: Likewise.
6214         * doc/posix-functions/vsprintf.texi: Likewise.
6215         * doc/posix-functions/dprintf.texi: Undo last commit.
6216         * doc/posix-functions/vdprintf.texi: Likewise.
6217
6218 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6219
6220         tests: port test-fdutimensat.c to Solaris 8
6221         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6222         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6223         On Solaris 8, it fails with errno == ENOSYS, because there is no
6224         futimens (so it can't use the fd), and there is no lutimens (so it
6225         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6226
6227         vsnprintf: make more consistent with snprintf; doc fixes
6228
6229         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6230         the byte count return problem was promoted from the snprintf-posix
6231         to the snprintf module.
6232         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6233         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6234         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6235         * tests/test-snprintf.c (main): Check the byte count returned.
6236         * tests/test-vsnprintf.c (main): Likewise.
6237
6238 2010-12-23  Eric Blake  <eblake@redhat.com>
6239
6240         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6241         * modules/sigpipe (License): Relax license.
6242
6243 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6244
6245         doc: document Solaris printf bug with large float precisions
6246         * doc/posix-functions/dprintf.texi (dprintf):
6247         * doc/posix-functions/fprintf.texi (fprintf):
6248         * doc/posix-functions/printf.texi (printf):
6249         * doc/posix-functions/snprintf.texi (snprintf):
6250         * doc/posix-functions/sprintf.texi (sprintf):
6251         * doc/posix-functions/vdprintf.texi (vdprintf):
6252         * doc/posix-functions/vfprintf.texi (vfprintf):
6253         * doc/posix-functions/vprintf.texi (vprintf):
6254         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6255         * doc/posix-functions/vsprintf.texi (vsprintf):
6256         Mention that these functions mishandle large floating point
6257         precisions on Solaris 10.  The same bug is also present in Solaris
6258         8, and I assume earlier.  This causes "cd gnulib-tests; make
6259         check" to fail on Solaris 8 (and I assume, later) when building
6260         the latest coreutils, in test-vasprintf-posix's call to
6261         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6262         the wide flavors (e.g., wprintf) so this patch just updates the
6263         documentation for the narrow ones.
6264
6265         test-posixtm.c: add two tests
6266         * tests/test-posixtm.c: Add two tests, to highlight the
6267         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6268         around this bug; this is merely to document it.
6269
6270 2010-12-22  Bruno Haible  <bruno@clisp.org>
6271
6272         getlogin_r: Work around portability problem on OSF/1.
6273         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6274         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6275         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6276         test for a truncated result.
6277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6278         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6279         * modules/getlogin_r (Depends-on): Add memchr.
6280         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6281
6282 2010-12-22  Bruno Haible  <bruno@clisp.org>
6283
6284         ptsname: Avoid test failure on OSF/1 5.1.
6285         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6286         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6287         (same_slave): New function.
6288         (main): Use it to compare ptsname's result with the expected file name.
6289
6290 2010-12-22  Bruno Haible  <bruno@clisp.org>
6291
6292         Port extended stdio modules to HP NonStop Kernel.
6293         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6294         macros.
6295         * lib/fbufmode.c: Update comments.
6296         * lib/fflush.c: Likewise.
6297         * lib/fpurge.c: Likewise.
6298         * lib/freadable.c: Likewise.
6299         * lib/freadahead.c: Likewise.
6300         * lib/freading.c: Likewise.
6301         * lib/freadptr.c: Likewise.
6302         * lib/freadseek.c: Likewise.
6303         * lib/fseeko.c: Likewise.
6304         * lib/fseterr.c: Likewise.
6305         * lib/fwritable.c: Likewise.
6306         * lib/fwriting.c: Likewise.
6307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6308
6309 2010-12-22  Bruno Haible  <bruno@clisp.org>
6310
6311         ttyname_r: Work around bug on OSF/1 5.1.
6312         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6313         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6314         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6315         present.
6316         * lib/ttyname_r.c (ttyname_r): Update comments.
6317
6318 2010-12-22  Bruno Haible  <bruno@clisp.org>
6319
6320         round: Implement result sign according to IEEE 754.
6321         * lib/round.c (MIN, MINUS_ZERO): New macros.
6322         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6323         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6324         * tests/test-round-ieee.c (main): Likewise.
6325         * tests/test-roundl-ieee.c (main): Likewise.
6326
6327         trunc: Implement result sign according to IEEE 754.
6328         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6329         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6330         * tests/test-trunc2.c: Include minus-zero.h.
6331         (MINUS_ZERO): New macro.
6332         (trunc_reference): Keep in sync with lib/trunc.c.
6333         * tests/test-truncf2.c: Include minus-zero.h.
6334         (MINUS_ZERO): New macro.
6335         (truncf_reference): Keep in sync with lib/trunc.c.
6336         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6337         * tests/test-trunc-ieee.c (main): Likewise.
6338         * tests/test-truncl-ieee.c (main): Likewise.
6339
6340         ceil: Implement result sign according to IEEE 754.
6341         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6342         (FUNC): Return -0.0 for -1 < x < 0.
6343         * tests/test-ceil2.c: Include minus-zero.h.
6344         (MINUS_ZERO): New macro.
6345         (ceil_reference): Keep in sync with lib/ceil.c.
6346         * tests/test-ceilf2.c: Include minus-zero.h.
6347         (MINUS_ZERO): New macro.
6348         (ceilf_reference): Keep in sync with lib/ceil.c.
6349         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6350         * tests/test-ceil-ieee.c (main): Likewise.
6351         * tests/test-ceill-ieee.c (main): Likewise.
6352
6353         floor: Implement result sign according to IEEE 754.
6354         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6355         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6356         * tests/test-floorf2.c (floorf_reference): Likewise.
6357         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6358         * tests/test-floor-ieee.c (main): Likewise.
6359         * tests/test-floorl-ieee.c (main): Likewise.
6360
6361 2010-12-22  Bruno Haible  <bruno@clisp.org>
6362
6363         getaddrinfo: Update doc.
6364         * doc/posix-functions/gai_strerror.texi: Return type is also different
6365         on AIX and HP-UX.
6366
6367 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6368
6369         getaddrinfo, inet_ntop: Update doc for Solaris.
6370         * doc/posix-functions/gai_strerror.texi: Return type is also an
6371         issue on Solaris 9 and earlier.
6372         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6373         on Solaris 10 and earlier.
6374
6375 2010-12-21  Bruno Haible  <bruno@clisp.org>
6376
6377         New module 'roundl-ieee'.
6378         * modules/roundl-ieee: New file.
6379         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6380         test whether roundl works according to ISO C 99 with IEC 60559.
6381         * m4/roundl-ieee.m4: New file.
6382         * modules/roundl-ieee-tests: New file.
6383         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6384         * tests/test-roundl.c (main): Remove signbit tests.
6385         * modules/roundl-tests (Depends-on): Remove signbit.
6386         * doc/posix-functions/roundl.texi: Mention the new module.
6387
6388 2010-12-21  Bruno Haible  <bruno@clisp.org>
6389
6390         New module 'truncl-ieee'.
6391         * modules/truncl-ieee: New file.
6392         * modules/truncl-ieee-tests: New file.
6393         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6394         * tests/test-truncl.c (main): Remove signbit tests.
6395         * modules/truncl-tests (Depends-on): Remove signbit.
6396         * doc/posix-functions/truncl.texi: Mention the new module.
6397
6398 2010-12-21  Bruno Haible  <bruno@clisp.org>
6399
6400         New module 'ceill-ieee'.
6401         * modules/ceill-ieee: New file.
6402         * modules/ceill-ieee-tests: New file.
6403         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6404         * tests/test-ceill.c (main): Remove signbit tests.
6405         * modules/ceill-tests (Depends-on): Remove signbit.
6406         * doc/posix-functions/ceill.texi: Mention the new module.
6407
6408 2010-12-21  Bruno Haible  <bruno@clisp.org>
6409
6410         New module 'floorl-ieee'.
6411         * modules/floorl-ieee: New file.
6412         * modules/floorl-ieee-tests: New file.
6413         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6414         * tests/test-floorl.c (main): Remove signbit tests.
6415         * modules/floorl-tests (Depends-on): Remove signbit.
6416         * doc/posix-functions/floorl.texi: Mention the new module.
6417
6418 2010-12-21  Bruno Haible  <bruno@clisp.org>
6419
6420         New module 'round-ieee'.
6421         * modules/round-ieee: New file.
6422         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6423         whether round works according to ISO C 99 with IEC 60559.
6424         * m4/round-ieee.m4: New file.
6425         * modules/round-ieee-tests: New file.
6426         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6427         * tests/test-round1.c (main): Remove signbit tests.
6428         * modules/round-tests (Depends-on): Remove 'signbit'.
6429         * doc/posix-functions/round.texi: Mention the new module.
6430
6431 2010-12-21  Bruno Haible  <bruno@clisp.org>
6432
6433         New module 'trunc-ieee'.
6434         * modules/trunc-ieee: New file.
6435         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6436         whether trunc works according to ISO C 99 with IEC 60559.
6437         * m4/trunc-ieee.m4: New file.
6438         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6440         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6441         * modules/trunc-ieee-tests: New file.
6442         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6443         * tests/test-trunc1.c (main): Remove signbit tests.
6444         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6445         * doc/posix-functions/trunc.texi: Mention the new module.
6446
6447 2010-12-21  Bruno Haible  <bruno@clisp.org>
6448
6449         New module 'ceil-ieee'.
6450         * modules/ceil-ieee: New file.
6451         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6452         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6453         ISO C 99 with IEC 60559.
6454         * m4/ceil-ieee.m4: New file.
6455         * modules/ceil (Files): Add lib/ceil.c.
6456         (Depends-on): Add 'float'.
6457         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6458         * lib/math.in.h (ceil): New declaration.
6459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6460         REPLACE_CEIL.
6461         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6462         * modules/ceil-ieee-tests: New file.
6463         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6464         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6465         * doc/posix-functions/ceil.texi: Mention the new module.
6466
6467 2010-12-21  Bruno Haible  <bruno@clisp.org>
6468
6469         New module 'floor-ieee'.
6470         * modules/floor-ieee: New file.
6471         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6472         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6473         ISO C 99 with IEC 60559.
6474         * m4/floor-ieee.m4: New file.
6475         * modules/floor (Files): Add lib/floor.c.
6476         (Depends-on): Add 'float'.
6477         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6478         * lib/math.in.h (floor): New declaration.
6479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6480         REPLACE_FLOOR.
6481         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6482         * modules/floor-ieee-tests: New file.
6483         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6484         * tests/test-math-c++.cc: Check the signature of 'floor'.
6485         * doc/posix-functions/floor.texi: Mention the new module.
6486
6487 2010-12-21  Bruno Haible  <bruno@clisp.org>
6488
6489         New module 'roundf-ieee'.
6490         * modules/roundf-ieee: New file.
6491         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6492         test whether roundf works according to ISO C 99 with IEC 60559.
6493         * m4/roundf-ieee.m4: New file.
6494         * modules/roundf-ieee-tests: New file.
6495         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6496         * tests/test-roundf1.c (main): Remove signbit tests.
6497         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6498         * doc/posix-functions/roundf.texi: Mention the new module.
6499
6500 2010-12-21  Bruno Haible  <bruno@clisp.org>
6501
6502         New module 'truncf-ieee'.
6503         * modules/truncf-ieee: New file.
6504         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6505         test whether truncf works according to ISO C 99 with IEC 60559.
6506         * m4/truncf-ieee.m4: New file.
6507         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6509         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6510         * modules/truncf-ieee-tests: New file.
6511         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6512         * tests/test-truncf1.c (main): Remove signbit tests.
6513         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6514         * doc/posix-functions/truncf.texi: Mention the new module.
6515
6516 2010-12-21  Bruno Haible  <bruno@clisp.org>
6517
6518         New module 'ceilf-ieee'.
6519         * modules/ceilf-ieee: New file.
6520         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6521         test whether ceilf works according to ISO C 99 with IEC 60559.
6522         * m4/ceilf-ieee.m4: New file.
6523         * modules/ceilf-ieee-tests: New file.
6524         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6525         * tests/test-ceilf1.c (main): Remove signbit tests.
6526         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6527         * doc/posix-functions/ceilf.texi: Mention the new module.
6528
6529 2010-12-21  Bruno Haible  <bruno@clisp.org>
6530
6531         New module 'floorf-ieee'.
6532         * modules/floorf-ieee: New file.
6533         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6534         test whether floorf works according to ISO C 99 with IEC 60559.
6535         * m4/floorf-ieee.m4: New file.
6536         * modules/floorf-ieee-tests: New file.
6537         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6538         * tests/test-floorf1.c (main): Remove signbit tests.
6539         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6540         * doc/posix-functions/floorf.texi: Mention the new module.
6541
6542 2010-12-21  Bruno Haible  <bruno@clisp.org>
6543
6544         Support for minus zero in autoconf macros.
6545         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6546         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6547         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6548         * tests/minus-zero.h: Update comments.
6549
6550 2010-12-21  Bruno Haible  <bruno@clisp.org>
6551
6552         Tests for module 'ceil'.
6553         * modules/ceil-tests: New file.
6554         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6555         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6556
6557 2010-12-21  Bruno Haible  <bruno@clisp.org>
6558
6559         Tests for module 'floor'.
6560         * modules/floor-tests: New file.
6561         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6562         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6563
6564 2010-12-21  Bruno Haible  <bruno@clisp.org>
6565
6566         math: Fix indentation.
6567         * lib/math.in.h (floorf): Fix indentation.
6568
6569 2010-12-21  Bruno Haible  <bruno@clisp.org>
6570
6571         Fix cross-compilation guesses on Solaris.
6572         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6573         not match "solaris2.10".
6574         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6575         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6576         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6577
6578 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6579
6580         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6581         This fixes a problem observed with the latest coreutils snapshot
6582         that caused a test to fail on Solaris 8.  src/csplit.c's call
6583         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6584         earlier, instead of returning the number of bytes that would have
6585         been generated; this causes csplit to incorrectly report memory
6586         exhaustion.
6587         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6588         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6589         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6590         comments to match.
6591         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6592         Fix typo in matching older versions of Solaris: "solaris2.10"
6593         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6594         only for guessing while cross-compiling.
6595         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6596
6597 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6598
6599         ftoastr: fix comment again
6600         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6602         Also, simplify example a bit by using flags = 0.
6603
6604 2010-12-20  Bruno Haible  <bruno@clisp.org>
6605
6606         round*, trunc*: Update documentation regarding glibc.
6607         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6608         * doc/posix-functions/round.texi: Likewise.
6609         * doc/posix-functions/roundl.texi: Likewise.
6610         * doc/posix-functions/truncf.texi: Likewise.
6611         * doc/posix-functions/trunc.texi: Likewise.
6612         * doc/posix-functions/truncl.texi: Likewise.
6613
6614 2010-12-20  Bruno Haible  <bruno@clisp.org>
6615
6616         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6617         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6618         * doc/posix-functions/round.texi: Likewise.
6619         * doc/posix-functions/roundl.texi: Likewise.
6620
6621 2010-12-20  Bruno Haible  <bruno@clisp.org>
6622
6623         ttyname_r: Add missing declaration on HP-UX 11.
6624         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6625         HAVE_TTYNAME_R.
6626         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6627         declared. Set HAVE_TTYNAME_R always.
6628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6629         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6630         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6631         HAVE_TTYNAME_R.
6632         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6633
6634 2010-12-20  Bruno Haible  <bruno@clisp.org>
6635
6636         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6637         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6638         * doc/posix-functions/getlogin_r.texi: Likewise.
6639         * tests/test-getlogin.c: Include <errno.h>.
6640         (main): Avoid test failure on HP-UX 11.11.
6641         * tests/test-getlogin_r.c (main): Likewise.
6642
6643 2010-12-20  Bruno Haible  <bruno@clisp.org>
6644
6645         getlogin_r: Add missing declaration on HP-UX 11.
6646         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6647         declared also when it exists as a function.
6648         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6649
6650 2010-12-20  Bruno Haible  <bruno@clisp.org>
6651
6652         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6653         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6654         through wcrtomb.
6655
6656 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6657
6658         ftoastr: fix comment
6659         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6660         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6661
6662 2010-12-19  Bruno Haible  <bruno@clisp.org>
6663
6664         isnan: Ensure it is a macro.
6665         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6666         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6667         Solaris.
6668
6669 2010-12-19  Bruno Haible  <bruno@clisp.org>
6670
6671         ldexpl test: Fix link error on OSF/1 5.1.
6672         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6673
6674 2010-12-19  Bruno Haible  <bruno@clisp.org>
6675
6676         wctype: Make it work in C++ mode on OSF/1 5.1.
6677         * lib/wctype.in.h (iswblank): Declare but not define here.
6678         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6679         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6680         * modules/wctype (Files): Add lib/iswblank.c.
6681
6682 2010-12-19  Bruno Haible  <bruno@clisp.org>
6683
6684         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6685         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6686         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6687
6688 2010-12-19  Bruno Haible  <bruno@clisp.org>
6689
6690         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6692         _POSIX_PII_SOCKET.
6693         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6694         * doc/posix-functions/recvfrom.texi: Likewise.
6695         * doc/posix-functions/send.texi: Likewise.
6696         * doc/posix-functions/sendto.texi: Likewise.
6697
6698 2010-12-19  Bruno Haible  <bruno@clisp.org>
6699
6700         tcgetsid: Add missing declaration on OSF/1 5.1.
6701         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6702         HAVE_TCGETSID.
6703         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6704         Don't set HAVE_TCGETSID.
6705         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6706         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6707         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6708         HAVE_TCGETSID.
6709         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6710
6711 2010-12-19  Bruno Haible  <bruno@clisp.org>
6712
6713         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6714         * lib/stdio.in.h: During the include_next statement, let recursive
6715         includes of this file include only the system header file.
6716
6717 2010-12-19  Bruno Haible  <bruno@clisp.org>
6718
6719         iconv_open: Fix regression from 2010-12-04.
6720         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6721         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6722
6723 2010-12-19  Bruno Haible  <bruno@clisp.org>
6724
6725         stdbool test: Avoid a gcc warning.
6726         * tests/test-stdbool.c (main): Fail if e1 is false.
6727         Reported by Jim Meyering.
6728
6729 2010-12-19  Jim Meyering  <meyering@redhat.com>
6730
6731         setenv: restore to working order
6732         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6733         mistakenly removed.
6734         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6735         HAVE_SETENV.
6736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6737         HAVE_SETENV.
6738
6739 2010-12-19  Bruno Haible  <bruno@clisp.org>
6740
6741         Document some different function declarations on OSF/1 5.1.
6742         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6743         * doc/posix-functions/inet_ntop.texi: Likewise.
6744         * doc/posix-functions/gethostname.texi: Likewise.
6745         * lib/unistd.in.h (gethostname): Update comment.
6746
6747 2010-12-19  Bruno Haible  <bruno@clisp.org>
6748
6749         doc: Mention vasprintf-posix module.
6750         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6751         the 'vasprintf-posix' module.
6752         * doc/glibc-functions/vasprintf.texi: Likewise.
6753
6754 2010-12-19  Bruno Haible  <bruno@clisp.org>
6755
6756         unsetenv: Add missing declaration on OSF/1 5.1.
6757         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6758         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6759         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6761         not HAVE_UNSETENV.
6762         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6763         HAVE_UNSETENV.
6764         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6765
6766 2010-12-19  Bruno Haible  <bruno@clisp.org>
6767
6768         setenv: Add missing declaration on OSF/1 5.1.
6769         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6770         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6771         declared. Don't set HAVE_SETENV.
6772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6773         not HAVE_SETENV.
6774         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6775         HAVE_SETENV.
6776         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6777
6778 2010-12-19  Bruno Haible  <bruno@clisp.org>
6779
6780         nl_langinfo tests: Avoid gcc warning.
6781         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6782
6783 2010-12-19  Bruno Haible  <bruno@clisp.org>
6784
6785         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6786         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6787         _GL_CXXALIAS_SYS.
6788
6789 2010-12-19  Bruno Haible  <bruno@clisp.org>
6790
6791         stdbool: Relax test.
6792         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6793         address to 'bool' work in static initializer, for compilers other than
6794         GCC.
6795
6796 2010-12-19  Bruno Haible  <bruno@clisp.org>
6797
6798         ftello: Add missing declaration on OSF/1 5.1.
6799         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6800         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6802         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6803         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6804
6805 2010-12-19  Bruno Haible  <bruno@clisp.org>
6806
6807         fseeko: Add missing declaration on OSF/1 5.1.
6808         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6809         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6811         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6812         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6813
6814 2010-12-19  Bruno Haible  <bruno@clisp.org>
6815
6816         fchdir: Add missing declaration on OSF/1 5.1.
6817         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6820         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6821         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6822
6823 2010-12-19  Bruno Haible  <bruno@clisp.org>
6824
6825         relocatable-prog-wrapper: Separate from relocatable-prog.
6826         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6827         uninstall-relocwrapper rule here.
6828         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6829         Reported by Ian Beckwith <ianb@erislabs.net>.
6830
6831 2010-12-19  Bruno Haible  <bruno@clisp.org>
6832
6833         unistr/u8-mbsnlen: Add missing dependency.
6834         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6835         Reported by Ian Beckwith <ianb@erislabs.net>.
6836
6837 2010-12-19  Bruno Haible  <bruno@clisp.org>
6838
6839         iconv: Make it possible again to use this module without 'iconv-h'.
6840         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6841         if it is not defined.
6842         Reported by Ian Beckwith <ianb@erislabs.net>.
6843
6844 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6845
6846         acl: port to Solaris 8 when copying from tmpfs to ufs
6847         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6848         error number.  Problem observed on Solaris 8 with latest
6849         coreutils, with "mv A B", where A is on a tmpfs file system and B
6850         is on a ufs file system.  This caused coreutils' mv/part-symlink
6851         test to fail.
6852
6853         tests: set fail=0 at start
6854         * tests/init.sh (setup_): Move fail=0 initialization here ...
6855         (mktempd_): ... from here, so that tests can rely on fail being
6856         set to 0 initially.  This fixes a problem in coreutils; see:
6857         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6858
6859 2010-12-18  Bruno Haible  <bruno@clisp.org>
6860
6861         memmem-simple: Stylistic changes.
6862         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6863         Fix preprocessor directive indentation.
6864
6865 2010-12-15  Pádraig Brady <P@draigBrady.com>
6866
6867         memmem, memmem-simple: reorganize and expand empty needle check
6868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6869         functional checks to memmem-simple so that one has a fully functional
6870         memmem by using just this module.
6871         Restrict the performance only check to the memmem module.
6872         Also expand the empty needle check to ensure the correct
6873         pointer is returned, not just a non NULL pointer.
6874         * doc/glibc-functions/memmem.texi: Rearrange the portability
6875         documentation to correlate with the rearranged checks.
6876         Clarify exactly how the memmem and memmem-simple modules
6877         relate to each other.
6878
6879 2010-12-15  Pádraig Brady <P@draigBrady.com>
6880             Bruno Haible  <bruno@clisp.org>
6881
6882         Improve cross-compilation guesses for uClibc.
6883         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6884         that uClibc does not have the glibc bug.
6885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6886         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6887
6888 2010-12-14  Eric Blake  <eblake@redhat.com>
6889
6890         configmake: provide fallbacks for oldest supported autotools
6891         * m4/configmake.m4: New file.
6892         * modules/configmake (Files): Ship it.
6893         (configure.ac): Use it to guarantee fallbacks.
6894
6895 2010-12-13  Pádraig Brady <P@draigBrady.com>
6896
6897         read-file: Improve handling of large files
6898         * lib/read-file.c (fread_file): Minimize realloc()s
6899         for regular files, and better manage sizes around SIZE_MAX.
6900
6901 2010-12-13  Eric Blake  <eblake@redhat.com>
6902
6903         cloexec, fcntl: relax license
6904         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6905         consent from all contributors.
6906         * modules/fcntl (License): Likewise.
6907
6908 2010-12-10  Bruno Haible  <bruno@clisp.org>
6909
6910         Tests for module 'pipe-posix'.
6911         * modules/pipe-posix-tests: New file.
6912         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6913
6914 2010-12-10  Bruno Haible  <bruno@clisp.org>
6915
6916         pipe-posix: Make it work in C++ mode.
6917         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6918         (pipe): Use common idiom, not a macro definition.
6919         * lib/pipe.c: New file.
6920         * m4/pipe.m4: New file.
6921         * modules/pipe-posix (Description): Enhance.
6922         (Files): Add lib/pipe.c, m4/pipe.m4.
6923         (configure.ac): Invoke gl_FUNC_PIPE.
6924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6925         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6926         * tests/test-unistd-c++.cc: Check the signature of pipe.
6927
6928 2010-12-10  Bruno Haible  <bruno@clisp.org>
6929
6930         Rename module 'pipe' to 'spawn-pipe'.
6931         * modules/spawn-pipe: New file, renamed from modules/pipe.
6932         (Files, configure.ac, Makefile.am): Update.
6933         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6934         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6935         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6936         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6937         "spawn-pipe.h" instead of "pipe.h".
6938         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6939         to gl_SPAWN_PIPE.
6940         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6941         (Files, Makefile.am): Update.
6942         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6943         Update.
6944         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6945         Include "spawn-pipe.h" instead of "pipe.h".
6946         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6947         * lib/javacomp.c: Likewise.
6948         * lib/javaversion.c: Likewise.
6949         * lib/pipe-filter-gi.c: Likewise.
6950         * lib/pipe-filter-ii.c: Likewise.
6951         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6952         * modules/javacomp (Depends-on): Likewise.
6953         * modules/javaversion (Depends-on): Likewise.
6954         * modules/pipe-filter-gi (Depends-on): Likewise.
6955         * modules/pipe-filter-ii (Depends-on): Likewise.
6956         * MODULES.html.sh (Executing programs): Update.
6957         * NEWS: Mention the change.
6958
6959 2010-12-10  Eric Blake  <eblake@redhat.com>
6960
6961         pipe-posix: new module
6962         * modules/pipe-posix: New file.
6963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6964         (gl_UNISTD_H): Check for declaration.
6965         * modules/unistd (Makefile.am): Substitute it.
6966         * lib/unistd.in.h (pipe): Provide it for mingw.
6967         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6968         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6969
6970 2010-12-07  Bruno Haible  <bruno@clisp.org>
6971
6972         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6973         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6974         u8_strcmp_gnu.
6975         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6976
6977 2010-12-06  Bruno Haible  <bruno@clisp.org>
6978
6979         Update internal documentation.
6980         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6981
6982 2010-12-04  Bruno Haible  <bruno@clisp.org>
6983
6984         Put more information about failed tests into the test return codes.
6985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6986         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6987         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6988         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6989         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6990         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6991         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6992         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6993         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6995         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6996         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6997         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6998         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6999         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7000         returns a bit mask.
7001         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7002         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7003         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7004         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7005         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7006         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7009         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7010         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7011         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7012         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7013         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7014         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7015         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7016         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7017         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7018         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7020         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7021         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7022         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7023         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7024         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7025         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7026         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7027         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7028         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7029         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7030         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7031         gl_PRINTF_PRECISION): Likewise.
7032         * m4/regex.m4 (gl_REGEX): Likewise.
7033         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7034         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7035         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7036         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7039         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7040         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7041         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7042         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7043         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7044         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7045         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7046         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7047         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7048         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7049         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7050         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7052         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7053         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7054         enumerated value.
7055         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7056
7057 2010-12-04  Bruno Haible  <bruno@clisp.org>
7058
7059         Update for Solaris 11 2010-11.
7060         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7061         Express, released in November 2010.
7062
7063 2010-12-04  Bruno Haible  <bruno@clisp.org>
7064
7065         nproc: Relax license.
7066         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7067         and Paul Eggert.
7068         Requested by Ludovic Courtès <ludo@gnu.org>.
7069
7070 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7071
7072         utimecmp: fine-grained src to nearby coarse-grained dest
7073
7074         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7075         and the source is on a file system with higher-resolution time
7076         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7077         not work, and the time stamps are close together, the algorithm to
7078         determine the exact resolution from the read-back mtime was buggy:
7079         it had a "!=" where it should have had an "==".  This bug has been
7080         in the code ever since it was introduced to gnulib.
7081         Problem reported by Dan Jacobson in
7082         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7083
7084 2010-11-30  Bruno Haible  <bruno@clisp.org>
7085
7086         strerror_r-posix: Fix autoconf test.
7087         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7088
7089 2010-11-28  Bruno Haible  <bruno@clisp.org>
7090             Paul Eggert  <eggert@cs.ucla.edu>
7091
7092         Tests for module 'getdomainname'.
7093         * modules/getdomainname-tests: New file.
7094         * tests/test-getdomainname.c: New file, based on
7095         tests/test-gethostname.c.
7096
7097 2010-11-28  Bruno Haible  <bruno@clisp.org>
7098             Paul Eggert  <eggert@cs.ucla.edu>
7099
7100         getdomainname: Use the system function when possible.
7101         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7102         (getdomainname): Replace if needed. Provide the declaration if it is
7103         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7104         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7105         (getdomainname): When the system has getdomainname, call the system
7106         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7107         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7108         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7109         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7110         the function if its second argument is of type 'int' or if it is found
7111         in libnsl.
7112         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7113         <sys/systeminfo.h> and sysinfo().
7114         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7116         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7117         HAVE_GETDOMAINNAME.
7118         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7119         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7120         * doc/glibc-functions/getdomainname.texi: Document the problems with
7121         the getdomainname declaration.
7122
7123 2010-11-28  Bruno Haible  <bruno@clisp.org>
7124
7125         sys_socket: Ensure ss_family field on AIX.
7126         * lib/sys_socket.in.h (ss_family): New macro definition.
7127         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7128         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7129         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7130         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7131         * modules/sys_socket (Makefile.am): Substitute
7132         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7133         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7134
7135 2010-11-27  Bruno Haible  <bruno@clisp.org>
7136
7137         readline: Improve configure output.
7138         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7139         "checking for readline..." result understandable.
7140
7141 2010-11-27  Bruno Haible  <bruno@clisp.org>
7142
7143         *printf-posix: Detect a bug on Solaris 10/x86.
7144         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7145         for floating-point output.
7146         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7147         directive.
7148         * tests/test-snprintf-posix.h (test_function): Likewise.
7149         * tests/test-sprintf-posix.h (test_function): Likewise.
7150         * tests/test-vasprintf-posix.c (test_function): Likewise.
7151         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7152         * doc/posix-functions/printf.texi: Likewise.
7153         * doc/posix-functions/snprintf.texi: Likewise.
7154         * doc/posix-functions/sprintf.texi: Likewise.
7155         * doc/posix-functions/vfprintf.texi: Likewise.
7156         * doc/posix-functions/vprintf.texi: Likewise.
7157         * doc/posix-functions/vsnprintf.texi: Likewise.
7158         * doc/posix-functions/vsprintf.texi: Likewise.
7159         * doc/glibc-functions/obstack_printf.texi: Likewise.
7160         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7161
7162 2010-11-27  Bruno Haible  <bruno@clisp.org>
7163
7164         Fix link error when module libunistring-optional is in use.
7165         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7166         * modules/striconveha-tests (Makefile.am): Likewise.
7167
7168 2010-11-27  Bruno Haible  <bruno@clisp.org>
7169
7170         regex: Mention link dependencies.
7171         * modules/regex (Link): New section.
7172         * modules/rpmatch (Link): Likewise.
7173         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7174
7175 2010-11-27  Bruno Haible  <bruno@clisp.org>
7176
7177         ftoastr: Fix compilation error on Solaris.
7178         * lib/ftoastr.c: Include <config.h>.
7179
7180 2010-11-27  Bruno Haible  <bruno@clisp.org>
7181
7182         getloadavg: Update documentation.
7183         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7184
7185 2010-11-27  Bruno Haible  <bruno@clisp.org>
7186
7187         sys_socket: Fix test whether the functions are declared.
7188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7189         not <sys/select.h>.
7190
7191 2010-11-27  Bruno Haible  <bruno@clisp.org>
7192
7193         getpass: Make sure to get system declaration on some platforms.
7194         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7195         gl_USE_SYSTEM_EXTENSIONS.
7196         * modules/getpass (Depends-on): Add extensions.
7197
7198 2010-11-26  Bruno Haible  <bruno@clisp.org>
7199
7200         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7201         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7202         'iconv' module is present.
7203         (ICONV_CONST): New macro.
7204         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7205         ICONV_CONST.
7206         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7207         set ICONV_CONST.
7208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7209         here.
7210         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7211         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7212         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7213         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7214         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7215         present.
7216
7217 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7218
7219         ftoastr: comment fix
7220         * lib/ftoastr.c: "little" -> "little or no" in comment
7221
7222 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7223
7224         stdint: port to GCC 4.3 + OSX + Octave
7225         On this platform, stdint.h is buggy and defines int64_t to long
7226         long int.  The replacement defined it to long int, causing
7227         problems with C++ style name mangling.  Instead, trust the system
7228         definition if INT64_MAX is defined, and likewise for the unsigned
7229         variant.   Problem reported by Jarno Rajahalme in
7230         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7231         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7232         and don't mess with int64_t and INT64_MAX in this case.
7233         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7234
7235 2010-11-24  Bruno Haible  <bruno@clisp.org>
7236
7237         doc: Corrections regarding MacOS X 10.4 and 10.5.
7238         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7239         MacOS X.
7240         Reported by Simon Josefsson.
7241
7242 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7243
7244         Uninstall ".bin" files installed by relocwrapper.
7245         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7246         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7247         unless it is already there.
7248
7249 2010-11-21  Bruno Haible  <bruno@clisp.org>
7250
7251         Update for NetBSD 5.0.
7252         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7253         NetBSD; the test fails on NetBSD 5.0.
7254         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7255         about NetBSD.
7256
7257 2010-11-21  Bruno Haible  <bruno@clisp.org>
7258
7259         Update for HP-UX 11.23 and HP-UX 11.31.
7260         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7261         HP-UX.
7262
7263 2010-11-21  Bruno Haible  <bruno@clisp.org>
7264
7265         Update for MacOS X 10.5.
7266         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7267         MacOS X; the test fails on MacOS X 10.5.8.
7268         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7269         about MacOS X.
7270
7271 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7272
7273         bootstrap: add bootstrap_sync option.
7274         See discussion at
7275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7277         * build-aux/bootstrap: Accept --bootstrap-sync to update
7278         bootstrap if it is not identical to the local gnulib's
7279         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7280         enable this by default.  Accept --no-bootstrap-sync to disable
7281         it.
7282
7283 2010-11-20  Bruno Haible  <bruno@clisp.org>
7284
7285         Ensure that <features.h> is included before __GLIBC__ is tested.
7286         * lib/printf-parse.h: Include <features.h>.
7287         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7288         Reported by Mike Frysinger <vapier@gentoo.org>.
7289
7290         Ensure that <features.h> is included before __GLIBC__ is tested.
7291         * lib/wchar.in.h: Include <features.h>.
7292         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7293         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7294         Reported by Mike Frysinger <vapier@gentoo.org>.
7295
7296         Ensure that <features.h> is included before __GLIBC__ is tested.
7297         * lib/arpa_inet.in.h: Include <features.h>.
7298         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7299         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7300         Reported by Mike Frysinger <vapier@gentoo.org>.
7301
7302         Ensure that <features.h> is included before __GLIBC__ is tested.
7303         * build-aux/link-warning.h: Include <features.h>.
7304         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7305         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7306         Reported by Mike Frysinger <vapier@gentoo.org>.
7307
7308         Ensure that <features.h> is included before __GLIBC__ is tested.
7309         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7310         Reported by Mike Frysinger <vapier@gentoo.org>.
7311
7312 2010-11-20  Bruno Haible  <bruno@clisp.org>
7313
7314         memmem: Fix autoconf test.
7315         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7316
7317 2010-11-20  Bruno Haible  <bruno@clisp.org>
7318
7319         Port to uClibc.
7320         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7321         * lib/fcntl.in.h: Likewise.
7322         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7323         * lib/mbrtowc.c (mbrtowc): Likewise.
7324         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7325         * lib/strerror_r.c: Likewise.
7326         * lib/unistr/u8-strnlen.c: Likewise.
7327         * lib/vasnprintf.c (decimal_point_char): Likewise.
7328         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7329         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7331         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7332         * tests/test-sigaction.c (handler, main): Likewise.
7333         * lib/freading.h: Treat uClibc like a non-glibc platform.
7334         * lib/freading.c: Likewise.
7335         * lib/gettext.h: Likewise.
7336         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7337         Likewise.
7338         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7339         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7340         * lib/propername.c (proper_name_utf8): Likewise.
7341         * lib/spawn.in.h: Likewise.
7342         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7343         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7344         mem_cd_iconveh_internal): Likewise.
7345         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7346         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7347         strstr, strcasestr): Likewise.
7348         * lib/unicodeio.c (unicode_to_mb): Likewise.
7349         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7350         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7351         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7352         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7353         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7354         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7355         * lib/unistr/u8-stpncpy.c: Likewise.
7356         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7357         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7359         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7360         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7361         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7362         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7363         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7365         Likewise.
7366         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7367         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7368         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7369         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7370         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7371         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7372         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7373         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7374         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7375         * tests/test-striconveha.c (main): Likewise.
7376         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7377         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7378         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7379         * doc/posix-functions/getline.texi: Likewise.
7380         Reported by Mike Frysinger <vapier@gentoo.org>.
7381
7382 2010-11-20  Bruno Haible  <bruno@clisp.org>
7383
7384         nproc: Fix condition.
7385         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7386         HAVE_PTHREAD_AFFINITY_NP.
7387
7388 2010-11-20  Bruno Haible  <bruno@clisp.org>
7389
7390         Fix a comment.
7391         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7392
7393 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7394
7395         ftoastr: don't assume snprintf
7396         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7397         Implement a subset of snprintf here, by using sprintf safely.
7398         * modules/ftoastr (Depends-on): Remove snprintf.
7399
7400 2010-11-19  Jim Meyering  <meyering@redhat.com>
7401
7402         test-rename.h: fix compilation failure
7403         * tests/test-rename.h (test_rename): Add omitted "}".
7404
7405 2010-11-17  Jim Meyering  <meyering@redhat.com>
7406
7407         maint.mk: add a URL discussing the no-@acronym policy
7408         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7409
7410 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7411
7412         ftoastr: depend on snprintf, improve comments
7413         * lib/ftoastr.c: Also mention Loitsch's draft.
7414         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7415         needed in the current implementation, but it might simplify
7416         speeding up the code later.
7417         * modules/ftoastr: Depend on snprintf; this improves portability.
7418         Suggested by Bruno Haible in the same email.
7419
7420         ftoastr: port to hosts lacking strtof and strtold
7421         Problem reported by Bruno Haible in
7422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7423         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7424         environment and strtold (and presumably strtof) are not available.
7425         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7426         (configure.ac): Require gl_C99_STRTOLD.
7427
7428 2010-11-18  Bruno Haible  <bruno@clisp.org>
7429
7430         c-strtold: Avoid link error on AIX 7.
7431         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7432         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7433         (gl_C_STRTOLD): Test whether strtold_l exists.
7434         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7435
7436 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7437
7438         intprops: new macro INT_BITS_STRLEN_BOUND
7439         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7440         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7441         not exposed.  Also, it uses a slightly tighter bound than before;
7442         though this makes no practical difference, we might as well be as
7443         tight as we easily can.
7444
7445         ftoastr: new module, for lossless conversion of floats to short strings
7446         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7447         * modules/ftoastr: New files.
7448
7449 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7450
7451         bootstrap: port to Solaris sed
7452         * build-aux/bootstrap (get_version): Port to Solaris sed.
7453         See Ralf Wildenhues's note in
7454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7455
7456 2010-11-14  Jim Meyering  <meyering@redhat.com>
7457
7458         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7459         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7460         and move definition closer to sole use.
7461
7462 2010-11-13  Jim Meyering  <meyering@redhat.com>
7463
7464         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7465         Now we require at least autoconf-2.59, which means the work-around
7466         is no longer needed.
7467         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7469         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7470         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7471         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7472
7473 2010-11-13  Bruno Haible  <bruno@clisp.org>
7474
7475         rename, renameat: Avoid test failures at NFS mounted locations.
7476         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7477         functions.
7478         (test_rename): Use assert_nonexistent.
7479         * tests/test-rename.c: Include <dirent.h>.
7480         * tests/test-renameat.c: Likewise.
7481         Reported by Gary V. Vaughan <gary@gnu.org>.
7482
7483         rename, renameat: Document Linux bug with NFS
7484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7485         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7486         * doc/posix-functions/renameat.texi: Likewise.
7487         Suggested by Eric Blake.
7488
7489 2010-11-13  Bruno Haible  <bruno@clisp.org>
7490
7491         rename test: Add comments.
7492         * tests/test-rename.h (test_rename): Add structure and comments.
7493
7494 2010-11-13  Eric Blake  <eblake@redhat.com>
7495
7496         maintainer-makefile: cover a few more files
7497         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7498         scripts generated within C files, for libvirt.
7499
7500 2010-11-13  Bruno Haible  <bruno@clisp.org>
7501
7502         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7503         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7504         character, return the number of bytes that belong together, not always
7505         1.
7506         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7507         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7508         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7509         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7510         number of bytes of an invalid character.
7511         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7512         (main): Invoke it.
7513         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7514         results.
7515         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7516         malformed byte sequences.
7517         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7518         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7519         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7520         Reported by Ben Pfaff and Paolo Bonzini.
7521
7522 2010-11-13  Bruno Haible  <bruno@clisp.org>
7523
7524         openat: Work around glibc bug with fchownat() and empty file names.
7525         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7526         (gl_FUNC_FCHOWNAT): Invoke it.
7527         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7528         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7529         Reported by Gary V. Vaughan <gary@gnu.org>.
7530
7531 2010-11-13  Bruno Haible  <bruno@clisp.org>
7532
7533         openat: Ensure autoconf macro ordering.
7534         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7535         gl_USE_SYSTEM_EXTENSIONS.
7536         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7537
7538 2010-11-13  Bruno Haible  <bruno@clisp.org>
7539
7540         Update comments.
7541         * lib/unistr/u8-check.c: Update file name in comments.
7542         * lib/unistr/u8-mblen.c: Likewise.
7543         * lib/unistr/u8-prev.c: Likewise.
7544         * lib/unistr/u8-strmblen.c: Likewise.
7545         * lib/unistr/u8-strmbtouc.c: Likewise.
7546
7547 2010-11-13  Jim Meyering  <meyering@redhat.com>
7548
7549         tests: avoid test failure on Solaris 10 due to lack of PATH export
7550         * tests/test-update-copyright.sh: Don't forget to export PATH.
7551
7552         init.sh: ensure that IFS is defined, just in case...
7553         * tests/init.sh (setup_): Ensure that IFS is defined,
7554         so that saving and restoring it works as expected.  This
7555         appears to be useful at least for an old version of dash
7556         from a long time ago (RH 6).  See here for details:
7557         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7558
7559         maint.mk: tighten "test a == b" check
7560         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7561         test to files that contain something like #!/bin/sh.
7562         Without this, coreutils would get two false positives in
7563         the comments of C source files.
7564
7565 2010-11-12  Eric Blake  <eblake@redhat.com>
7566
7567         bootstrap: fix typo in previous attempt
7568         * build-aux/bootstrap (buildreq): Correct the grouping.
7569         Reported by Paul Eggert.
7570
7571         maintainer-makefile: prohibit test x == x
7572         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7573         Based on a report by Matthias Bolte.
7574
7575         bootstrap: allow FreeBSD gzip
7576         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7577         which has no '.' and goes to stderr.
7578         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7579         Reported by Matthias Bolte.
7580
7581         maintainer-makefile: check for i18n setup
7582         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7583         will likely work.
7584
7585 2010-11-12  Bruno Haible  <bruno@clisp.org>
7586
7587         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7588         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7589         * lib/nanosleep.c (nanosleep): Likewise.
7590
7591 2010-11-11  Bruno Haible  <bruno@clisp.org>
7592
7593         fcntl-h: Fix for use of C++ on glibc systems.
7594         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7595         also on glibc systems in C++ mode.
7596         Reported by Gary V. Vaughan <gary@gnu.org>.
7597
7598 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7599
7600         mknod: avoid false failure with dash
7601         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7602
7603 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7604
7605         unlink: Fix "is it should" typo in diagnostic.
7606         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7608
7609 2010-11-11  Bruno Haible  <bruno@clisp.org>
7610
7611         Tests for module 'strerror_r-posix'.
7612         * modules/strerror_r-posix-tests: New file.
7613         * tests/test-strerror_r.c: New file.
7614         * tests/test-string-c++.cc: Check the signature of strerror_r.
7615
7616         New module 'strerror_r-posix'.
7617         * lib/string.in.h (strerror_r): New declaration.
7618         * lib/strerror_r.c: New file.
7619         * m4/strerror_r.m4: New file.
7620         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7621         of strerror_r.
7622         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7623         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7624         * modules/strerror_r-posix: New file.
7625         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7626         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7627         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7628         portability problems.
7629
7630 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7631
7632         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7633         line is also considered for output. Quoted function name in shell
7634         command, so temporary files for functions like MyClass::operator()
7635         are removed correctly without errors.
7636
7637 2010-11-09  Bruno Haible  <bruno@clisp.org>
7638
7639         * doc/posix-functions/strerror.texi: List more failing platforms.
7640
7641         * doc/posix-functions/strerror.texi: Add a comment.
7642
7643 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7644
7645         fdopendir: fix bug on MacOS X when low on file descriptors
7646
7647         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7648         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7649         All callers changed.
7650         (fdopendir): Invoke save_cwd at the top level, not after using
7651         multiple dup() calls to use up file descriptors.  Then retry
7652         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7653         less than the maximum number of open file descriptors, because
7654         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7655         on Mac OS X 10.6.4 for tar 1.24
7656         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7657         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7658         and for tar 1.25
7659         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7660
7661 2010-11-07  Bruno Haible  <bruno@clisp.org>
7662
7663         vasnprintf: Support I flag on glibc systems.
7664         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7665         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7666         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7667         snprintf function.
7668         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7669         glibc systems.
7670         * tests/test-vasnprintf-posix3.c: New file.
7671         * modules/vasnprintf-posix-tests (Files): Add it.
7672         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7673
7674 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7675
7676         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7677         * MODULES.html.sh: For compiler warnings, use name
7678         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7679
7680 2010-11-05  Eric Blake  <eblake@redhat.com>
7681
7682         ceil, floor: avoid spurious failure with icc
7683         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7684         [denormals-as-zero] when optimizing without -mieee-fp option.
7685         * tests/test-floorf2.c (floorf_reference): Likewise.
7686         * tests/test-ceilf1.c (dummy): New function.
7687         (main): Use it to outsmart icc's optimization.
7688         * tests/test-floorf1.c (dummy, main): Likewise.
7689
7690         tests: require working signbit
7691         * modules/ceilf-tests (Depends-on): Add signbit.
7692         * modules/ceill-tests (Depends-on): Likewise.
7693         * modules/floorf-tests (Depends-on): Likewise.
7694         * modules/floorl-tests (Depends-on): Likewise.
7695         * modules/round-tests (Depends-on): Likewise.
7696         * modules/roundf-tests (Depends-on): Likewise.
7697         * modules/roundl-tests (Depends-on): Likewise.
7698         * modules/trunc-tests (Depends-on): Likewise.
7699         * modules/truncf-tests (Depends-on): Likewise.
7700         * modules/truncl-tests (Depends-on): Likewise.
7701
7702         strtod: work around icc bug
7703         * lib/strtod.c (minus_zero): Define to working value.
7704         (strtod): Use it to avoid icc bug.
7705
7706         copysign: enhance tests
7707         * modules/copysign-tests (Files): Add minus-zero.h.
7708         * tests/test-copysign.c (main): Also test zeros.
7709
7710 2010-11-04  Eric Blake  <eblake@redhat.com>
7711
7712         ceil, floor, round, trunc: enhance tests of -0
7713         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7714         * tests/test-ceill.c (main): Likewise.
7715         * tests/test-floorf1.c (main): Likewise.
7716         * tests/test-floorl.c (main): Likewise.
7717         * tests/test-round1.c (main): Likewise.
7718         * tests/test-roundf1.c (main): Likewise.
7719         * tests/test-roundl.c (main): Likewise.
7720         * tests/test-trunc1.c (main): Likewise.
7721         * tests/test-truncf1.c (main): Likewise.
7722         * tests/test-truncl.c (main): Likewise.
7723
7724 2010-11-04  Eric Blake  <eblake@redhat.com>
7725
7726         frexp, tests: work around ICC bug with -zero
7727         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7728         works with more compilers.
7729         * tests/minus-zero.h: New file.
7730         * modules/ceilf-tests (Files): Include it.
7731         * modules/ceill-tests (Files): Likewise.
7732         * modules/floorf-tests (Files): Likewise.
7733         * modules/floorl-tests (Files): Likewise.
7734         * modules/frexp-nolibm-tests (Files): Likewise.
7735         * modules/frexp-tests (Files): Likewise.
7736         * modules/frexpl-nolibm-tests (Files): Likewise.
7737         * modules/frexpl-tests (Files): Likewise.
7738         * modules/isnan-tests (Files): Likewise.
7739         * modules/isnand-nolibm-tests (Files): Likewise.
7740         * modules/isnand-tests (Files): Likewise.
7741         * modules/isnanf-nolibm-tests (Files): Likewise.
7742         * modules/isnanf-tests (Files): Likewise.
7743         * modules/isnanl-nolibm-tests (Files): Likewise.
7744         * modules/isnanl-tests (Files): Likewise.
7745         * modules/round-tests (Files): Likewise.
7746         * modules/roundf-tests (Files): Likewise.
7747         * modules/roundl-tests (Files): Likewise.
7748         * modules/ldexpl-tests (Files): Likewise.
7749         * modules/signbit-tests (Files): Likewise.
7750         * modules/snprintf-posix-tests (Files): Likewise.
7751         * modules/sprintf-posix-tests (Files): Likewise.
7752         * modules/strtod-tests (Files): Likewise.
7753         * modules/trunc-tests (Files): Likewise.
7754         * modules/truncf-tests (Files): Likewise.
7755         * modules/truncl-tests (Files): Likewise.
7756         * modules/vsnprintf-posix-tests (Files): Likewise.
7757         * modules/vsprintf-posix-tests (Files): Likewise.
7758         * modules/vasnprintf-posix-tests (Files): Likewise.
7759         * modules/vasprintf-posix-tests (Files): Likewise.
7760         * tests/test-ceilf1.c (main): Use it.
7761         * tests/test-ceill.c (main): Likewise.
7762         * tests/test-floorf1.c (main): Likewise.
7763         * tests/test-floorl.c (main): Likewise.
7764         * tests/test-frexp.c (main): Likewise.
7765         * tests/test-frexpl.c (main): Likewise.
7766         * tests/test-isnan.c (main): Likewise.
7767         * tests/test-isnand.h (main): Likewise.
7768         * tests/test-isnanf.h (main): Likewise.
7769         * tests/test-isnanl.h (main): Likewise.
7770         * tests/test-ldexpl.c (main): Likewise.
7771         * tests/test-round.c (main): Likewise.
7772         * tests/test-roundf.c (main): Likewise.
7773         * tests/test-roundl.c (main): Likewise.
7774         * tests/test-signbit.c (test_signbitf, test_signbitd)
7775         (test_signbitl): Likewise.
7776         * tests/test-snprintf-posix.h (test_function): Likewise.
7777         * tests/test-sprintf-posix.h (test_function): Likewise.
7778         * tests/test-strtod.c (main): Likewise.
7779         * tests/test-trunc1.c (main): Likewise.
7780         * tests/test-truncf1.c (main): Likewise.
7781         * tests/test-truncl.c (main): Likewise.
7782
7783         isnanl: work around icc bug
7784         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7785
7786 2010-11-03  Eric Blake  <eblake@redhat.com>
7787
7788         tests: fix compiler warnings
7789         * tests/test-getopt.h (test_getopt): Fix condition.
7790         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7791         * tests/test-pipe2.c (main): Likewise.
7792         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7793
7794         utimens: fix broken m4 test
7795         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7796
7797 2010-10-28  Bruno Haible  <bruno@clisp.org>
7798
7799         posix_spawn*, getdtablesize: Relax license.
7800         * modules/posix_spawn (License): Change to LGPLv2+.
7801         * modules/posix_spawnp (License): Likewise.
7802         * modules/posix_spawn-internal (License): Likewise.
7803         * modules/posix_spawnattr_init (License): Likewise.
7804         * modules/posix_spawnattr_getflags (License): Likewise.
7805         * modules/posix_spawnattr_setflags (License): Likewise.
7806         * modules/posix_spawnattr_getpgroup (License): Likewise.
7807         * modules/posix_spawnattr_setpgroup (License): Likewise.
7808         * modules/posix_spawnattr_getschedparam (License): Likewise.
7809         * modules/posix_spawnattr_setschedparam (License): Likewise.
7810         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7811         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7812         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7813         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7814         * modules/posix_spawnattr_getsigmask (License): Likewise.
7815         * modules/posix_spawnattr_setsigmask (License): Likewise.
7816         * modules/posix_spawnattr_destroy (License): Likewise.
7817         * modules/posix_spawn_file_actions_init (License): Likewise.
7818         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7819         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7820         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7821         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7822         * modules/getdtablesize (License): Likewise.
7823         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7824
7825 2010-10-26  Bruno Haible  <bruno@clisp.org>
7826
7827         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7828         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7829         Cygwin and mingw.
7830         Suggested by Eric Blake.
7831
7832 2010-10-26  Bruno Haible  <bruno@clisp.org>
7833
7834         stdio: Work around compilation error due to renameat() on Solaris 10.
7835         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7836         * lib/renameat.c: Don't include <unistd.h> here.
7837         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7838         Reported by Paul Eggert and Eric Blake.
7839
7840 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7841
7842         renameat: port to Solaris 10, which declares renameat in unistd.h
7843
7844         * lib/renameat.c: Include unistd.h before stdio.h, because
7845         Solaris 10 declares renameat in unistd.h.  Problem encountered
7846         when building GNU tar 1.24 on Solaris 10.
7847
7848 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7849
7850         fdopendir: fix C89 compilation
7851         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7852         compilers.
7853
7854 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7855
7856         inttostr: simplify by removing unnecessary redundancy
7857         * lib/anytostr.c: Don't include verify.h.
7858         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7859         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7860         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7861         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7862         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7863         Likewise.
7864         * modules/inttostr (Depends-on): Remove 'verify'.
7865
7866 2010-10-23  Bruno Haible  <bruno@clisp.org>
7867
7868         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7869         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7870         Reported by Eric Blake.
7871
7872 2010-10-23  Bruno Haible  <bruno@clisp.org>
7873
7874         Tests: Fix LOCALE_JA on MirBSD 10.
7875         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7876         to an UTF-8 locale.
7877         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7878         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7879         Reported by Eric Blake.
7880
7881 2010-10-21  Bruno Haible  <bruno@clisp.org>
7882
7883         nl_langinfo test: Avoid test failure on NetBSD 5.
7884         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7885         Reported by Eric Blake.
7886
7887 2010-10-21  Eric Blake  <eblake@redhat.com>
7888
7889         c-stack: work around libsigsegv 2.8 bug
7890         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7891         overflow on at least PowerPC64.
7892
7893 2010-10-17  Bruno Haible  <bruno@clisp.org>
7894
7895         userspec: Drop redundant file.
7896         * modules/userspec (Files): Remove lib/inttostr.h.
7897
7898 2010-10-17  Bruno Haible  <bruno@clisp.org>
7899
7900         nl_langinfo tests: Silence some warnings.
7901         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7902         Reported by Jim Meyering.
7903
7904 2010-10-17  Bruno Haible  <bruno@clisp.org>
7905
7906         Make use of GCC's attribute __alloc_size__.
7907         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7908         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7909         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7910         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7911         __alloc_size__.
7912         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7913         Suggested by Jim Meyering.
7914
7915 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7916
7917         bootstrap: anchor .gitignore entries.
7918         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7919         with...
7920         (insert_vc_ignore): ... this new function, which prepends `/' to
7921         all .gitignore entries before passing them to
7922         insert_sorted_if_absent.
7923
7924 2010-10-16  Bruno Haible  <bruno@clisp.org>
7925
7926         nextafter: Fix configure check.
7927         * modules/nextafter (configure.ac): Correct expected prototype.
7928
7929 2010-10-16  Bruno Haible  <bruno@clisp.org>
7930
7931         termios: Update documentation.
7932         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7933
7934 2010-10-16  Bruno Haible  <bruno@clisp.org>
7935
7936         tests: Make them compile with TinyCC.
7937         * tests/test-strstr.c (main): Remove parentheses around array
7938         initializer.
7939
7940 2010-10-15  Eric Blake  <eblake@redhat.com>
7941
7942         ignore-value: make header idempotent
7943         * lib/ignore-value.h: Add double-inclusion guards.
7944         Reported by Stefan Berger.
7945
7946 2010-10-15  Jim Meyering  <meyering@redhat.com>
7947
7948         GNUmakefile: handle "stable" target, not "major"
7949         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7950         lists in maint.mk and announce-gen.  Without this, "make stable"
7951         would fail to ensure that $(VERSION) is up to date.
7952
7953 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7954
7955         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7956         & co.
7957
7958 2010-10-14  Bruno Haible  <bruno@clisp.org>
7959
7960         vasnprintf: Don't set errno to 0.
7961         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7962         block that sets it to 0.
7963         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7964
7965 2010-10-14  Bruno Haible  <bruno@clisp.org>
7966
7967         socketlib: Fix.
7968         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7969         gl_PREREQ_SYS_H_WINSOCK2.
7970         Reported by Ian Beckwith <ianb@erislabs.net>.
7971
7972 2010-10-13  Jim Meyering  <meyering@redhat.com>
7973
7974         test-select-stdin.c: avoid warn_unused_result warnings
7975         * tests/test-select-stdin.c: Include "macros.h".
7976         ASSERT that read and fflush succeed.
7977
7978 2010-10-13  Jim Meyering  <meyering@redhat.com>
7979
7980         git-version-gen: do require git-VC'd files in cwd
7981         * build-aux/git-version-gen: Reject a git version string
7982         if there are no commits associated with the current directory.
7983         This avoids an unlikely false-positive (unrelated dir whose parent
7984         repository also contains a tag matching v*), as pointed out
7985         by Giuseppe Scrivano in
7986         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7987
7988 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7989
7990         argv-iter: omit nonconforming declaration
7991         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7992         enum arg_iter_err declaration, which doesn't conform to C99.
7993         Solaris 10 cc warns about this.
7994
7995 2010-10-13  Eric Blake  <eblake@redhat.com>
7996
7997         termios: fix compilation on mingw
7998         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7999         (gl_TERMIOS_H): Adjust it on mingw.
8000         * modules/termios (Makefile.am): Substitute new key.
8001         * lib/termios.in.h (includes): Make include_next conditional.
8002         * doc/posix-headers/termios.texi (termios.h): Update
8003         documentation.
8004         Reported by Daniel P. Berrange.
8005
8006 2010-10-13  Jim Meyering  <meyering@redhat.com>
8007
8008         git-version-gen: don't require that .git/ be in the current dir
8009         * build-aux/git-version-gen: Adjust this script so that it works
8010         when run from any working directory beneath the top-level .git/-
8011         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8012         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8013
8014         test-select: avoid warn_unused_result warnings
8015         * tests/test-select.c: Include "macros.h".
8016         ASSERT that each call to read, write, and pipe succeeds.
8017         While not technically required, also check each "close".
8018         * modules/select-tests (Files): Add tests/macros.h.
8019
8020         test-symlinkat: remove declaration of unused local
8021         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8022
8023         test-inttostr: avoid shadowing warnings
8024         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8025         and use malloc rather than the stack for the same reason as
8026         mentioned in the comment justifying the other allocation.
8027
8028 2010-10-11  Bruno Haible  <bruno@clisp.org>
8029
8030         stdlib: Allow multiple gnulib generated replacements to coexist.
8031         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8032         Reported by Sam Steingold <sds@gnu.org>.
8033
8034 2010-10-11  Jim Meyering  <meyering@redhat.com>
8035
8036         fix a documentation typo
8037         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8038
8039 2010-10-11  Eric Blake  <eblake@redhat.com>
8040
8041         futimens: work around Solaris 11 bug
8042         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8043         * tests/test-futimens.h (test_futimens): Enhance, rather than
8044         weaken test.
8045         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8046
8047 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8048
8049         Indentation.
8050         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8051         higher-level operators more to the left.
8052
8053 2010-10-11  Jim Meyering  <meyering@redhat.com>
8054
8055         test-futimens: avoid unwarranted test failure on Solaris 5.11
8056         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8057         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8058         because it tries to dereference the NULL name argument.
8059
8060 2010-10-11  Bruno Haible  <bruno@clisp.org>
8061
8062         Indentation.
8063         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8064         indentation.
8065
8066 2010-10-11  Jim Meyering  <meyering@redhat.com>
8067
8068         spawn.in.h: make indentation consistent with parentheses
8069         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8070         Make indentation consistent with parentheses.
8071
8072 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8073
8074         Fix mismatched parens in previous commit
8075         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8076         parens.
8077
8078 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8079
8080         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8081
8082         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8083         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8084         * lib/malloca.c: Include "verify.h".
8085         (verify1): Remove, replacing with a verify call.
8086         * lib/relocwrapper.c (verify1): Likewise.
8087         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8088         Likewise.
8089         * modules/malloca (Depends-on): Add 'verify'.
8090         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8091         * modules/vasnprintf (Depends-on): Add 'verify'.
8092         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8093         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8094         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8095         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8096         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8097         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8098         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8099
8100         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8101
8102         Formerly the style was sometimes 2*X - 1, because the C standard
8103         was wrongly thought to disallow ?: in integral constant expressions.
8104         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8105         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8106         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8107         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8108         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8109         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8110         verify that time_t cannot be floating.
8111
8112 2010-10-08  Eric Blake  <eblake@redhat.com>
8113
8114         time: enforce recent POSIX ruling that time_t is integral
8115         * lib/time.in.h (__time_t_must_be_integral): Detect any
8116         problematic systems, allowing the rest of gnulib to assume POSIX.
8117
8118 2010-10-08  Jim Meyering  <meyering@redhat.com>
8119
8120         fdopendir: fix a bug on systems lacking openat and /proc support
8121         OpenBSD 4.7 is one such system.  The most noticeable effect was
8122         failure of any application making nontrivial use of fts: rm, du,
8123         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8124           ./rm: traversal failed: `a': Bad file descriptor
8125         Debugging that, you see that even though FD 6 was closed just
8126         prior to the opendir call in fd_clone_opendir, its resulting
8127         dir->dd_fd was 8, rather than the expected value of 6:
8128
8129         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8130         93                close (fd);
8131         (gdb) n
8132         94                dir = fd_clone_opendir (dupfd);
8133         (gdb) n
8134         95                saved_errno = errno;
8135         (gdb) p dir->dd_fd
8136         $11 = 8
8137
8138         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8139         The problem is that on OpenBSD, fd_clone_opendir has to resort
8140         to using the old-style save/restore CWD mechanism, due to its
8141         lack of openat/proc support, and *that* would steal the FD (6)
8142         that opendir was supposed to use.
8143
8144         The fix is to squirrel away the desired FD so that save_cwd uses a
8145         different one, and then free the dest FD right before calling opendir.
8146         That guarantees opendir will use the required file descriptor.
8147
8148         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8149
8150 2010-10-08  Bruno Haible  <bruno@clisp.org>
8151
8152         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8153         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8154
8155 2010-10-08  Bruno Haible  <bruno@clisp.org>
8156
8157         nanosleep: Make replacement POSIX compliant.
8158         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8159         is out of range.
8160         Reported by Jim Meyering.
8161
8162 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8163
8164         bootstrap: add hook for altering gnulib.mk, for Bison
8165         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8166         the Bison bootstrapping process can rewrite file names and variables
8167         in this file before later parts of 'bootstrap' use the file.
8168         Bison wants to include lib/gnulib.mk from the top-level makefile,
8169         so it needs the file names in this file to be relative to the top
8170         level, not relative to lib; plus it needs variable names to be
8171         rewritten.
8172         (slurp): Use the new function.
8173
8174         bootstrap: reformat for readability
8175         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8176
8177 2010-10-08  Eric Blake  <eblake@redhat.com>
8178
8179         docs: update cygwin progress
8180         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8181         1.7.7.
8182         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8183         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8184         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8185         * doc/posix-functions/carg.texi (carg): Likewise.
8186         * doc/posix-functions/cargf.texi (cargf): Likewise.
8187         * doc/posix-functions/casin.texi (casin): Likewise.
8188         * doc/posix-functions/casinf.texi (casinf): Likewise.
8189         * doc/posix-functions/casinh.texi (casinh): Likewise.
8190         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8191         * doc/posix-functions/catan.texi (catan): Likewise.
8192         * doc/posix-functions/catanf.texi (catanf): Likewise.
8193         * doc/posix-functions/catanh.texi (catanh): Likewise.
8194         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8195         * doc/posix-functions/ccos.texi (ccos): Likewise.
8196         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8197         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8198         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8199         * doc/posix-functions/cexp.texi (cexp): Likewise.
8200         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8201         * doc/posix-functions/cimag.texi (cimag): Likewise.
8202         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8203         * doc/posix-functions/clog.texi (clog): Likewise.
8204         * doc/posix-functions/clogf.texi (clogf): Likewise.
8205         * doc/posix-functions/conj.texi (conj): Likewise.
8206         * doc/posix-functions/conjf.texi (conjf): Likewise.
8207         * doc/posix-functions/cpow.texi (cpow): Likewise.
8208         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8209         * doc/posix-functions/cproj.texi (cproj): Likewise.
8210         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8211         * doc/posix-functions/creal.texi (creal): Likewise.
8212         * doc/posix-functions/crealf.texi (crealf): Likewise.
8213         * doc/posix-functions/csin.texi (csin): Likewise.
8214         * doc/posix-functions/csinf.texi (csinf): Likewise.
8215         * doc/posix-functions/csinh.texi (csinh): Likewise.
8216         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8217         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8218         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8219         * doc/posix-functions/ctan.texi (ctan): Likewise.
8220         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8221         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8222         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8223         * doc/posix-headers/complex.texi (complex.h): Likewise.
8224
8225 2010-10-07  Jim Meyering  <meyering@redhat.com>
8226
8227         parse-datetime: avoid compilation failure on OpenBSD 4.7
8228         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8229         This works around a compilation failure on OpenBSD 4.7:
8230         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8231
8232 2010-10-07  Eric Blake  <eblake@redhat.com>
8233
8234         docs: update cygwin progress
8235         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8236         1.7.6.
8237         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8238         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8239         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8240         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8241         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8242         Likewise.
8243         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8244         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8245         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8246         Likewise.
8247         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8248         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8249         Likewise.
8250         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8251         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8252         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8253         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8254         Likewise.
8255         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8256         Likewise.
8257         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8258
8259         docs: update parse-datetime history
8260         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8261         documentation of this function's history and alternatives.
8262
8263         cygwin: use more robust version check
8264         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8265         exclude an eventual cygwin 1.9.1.
8266         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8267         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8268         (gl_FUNC_STRCASESTR): Likewise.
8269         Reported by Bruno Haible.
8270
8271 2010-10-06  Bruno Haible  <bruno@clisp.org>
8272
8273         string, sys_select: Avoid #including large headers unless necessary.
8274         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8275         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8276         OSF/1, BeOS, Haiku.
8277         Reported by Jim Meyering.
8278
8279 2010-10-05  Eric Blake  <eblake@redhat.com>
8280
8281         memmem, strstr, strcasestr: fix bug with long periodic needle
8282         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8283         periodic needle having false positive.
8284         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8285         and cygwin 1.7.7.
8286         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8288         (gl_FUNC_STRCASESTR): Likewise.
8289         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8290         * tests/test-memmem.c (main): Expose the bug.
8291         * tests/test-strcasestr.c (main): Likewise.
8292         * tests/test-strstr.c (main): Likewise.
8293         * tests/test-c-strcasestr.c (main): Likewise.
8294         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8295         * doc/posix-functions/strstr.texi (strstr): Likewise.
8296         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8297         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8298
8299 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8300
8301         parse-datetime: do some more renaming
8302         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8303         parse_datetime, not get_date.  Mention the renaming.
8304         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8305         in comments.
8306         * m4/bison.m4: Likewise.
8307
8308 2010-10-05  Eric Blake  <eblake@redhat.com>
8309
8310         parse-datetime: better name than get_date
8311         * NEWS: Reword the deprecation notice.
8312         * modules/get_date: Rename to modules/parse-datetime.
8313         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8314         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8315         * lib/get_date.y: Rename to lib/parse-datetime.y.
8316         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8317         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8318         * doc/getdate.texi: Provide fallback wrapper.
8319         * lib/getdate.h: Move guts, and wrap...
8320         * lib/parse-datetime.h: ...new file.
8321         * lib/parse-datetime.y (get_date): Rename...
8322         (parse_datetime): ...to this.
8323         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8324         (gl_PARSE_DATETIME): ...to this.
8325         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8326         documentation.
8327         * modules/getdate (Files): Provide fallback docs and header.
8328         (Notice, Depends-on): Update references.
8329         * tests/test-parse-datetime.c: Likewise.
8330         * DEPENDENCIES: Likewise.
8331         * MODULES.html.sh (Date and time <time.h>): Likewise.
8332         * doc/parse-datetime.texi (Date input formats)
8333         (Authors of parse_datetime): Likewise.
8334         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8335         (Include): Likewise.
8336         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8337         * gnulib-tool: Likewise.
8338         * m4/bison.m4 (gl_BISON): Likewise.
8339         Suggested by Bruno Haible.
8340
8341 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8342
8343         more ports to Solaris tr, which needs [] around ranges
8344         * gnulib-tool: Solaris tr needs [] around ranges.
8345         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8346         * tests/test-pipe-filter-gi1.c (main): Likewise.
8347         * tests/test-pipe-filter-ii1.c (main): Likewise.
8348
8349 2010-10-05  Eric Blake  <eblake@redhat.com>
8350
8351         bootstrap: fix Solaris regression
8352         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8353         around ranges.
8354         Reported by Pádraig Brady.
8355
8356         bootstrap: work with pkg-config
8357         * build-aux/bootstrap (check_versions): Also transliterate - in
8358         prerequisite name.
8359         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8360         prerequisites that were already found, to avoid confusion.
8361         Reported by Justin Clift.
8362
8363         faccessat: remove unused wrappers
8364         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8365         presence of these wrappers dragged in -lgen on Solaris.
8366         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8367
8368 2010-10-05  Jim Meyering  <meyering@redhat.com>
8369
8370         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8371         * Makefile (sc_pragma_columns): New syntax-check rule.
8372
8373 2010-10-04  Bruno Haible  <bruno@clisp.org>
8374
8375         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8376         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8377         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8378         Reported by Bruce Korb and Eric Blake.
8379
8380 2010-10-04  Bruno Haible  <bruno@clisp.org>
8381
8382         threadlib: Make option --with-libpth-prefix work.
8383         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8384         use $LIBPTH, not just -lpth.
8385
8386 2010-10-04  Bruno Haible  <bruno@clisp.org>
8387
8388         Avoid line length limitation from HP NonStop system header files.
8389         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8390         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8391         * lib/ctype.in.h: Likewise.
8392         * lib/dirent.in.h: Likewise.
8393         * lib/errno.in.h: Likewise.
8394         * lib/fcntl.in.h: Likewise.
8395         * lib/float.in.h: Likewise.
8396         * lib/getopt.in.h: Likewise.
8397         * lib/iconv.in.h: Likewise.
8398         * lib/inttypes.in.h: Likewise.
8399         * lib/langinfo.in.h: Likewise.
8400         * lib/locale.in.h: Likewise.
8401         * lib/math.in.h: Likewise.
8402         * lib/netdb.in.h: Likewise.
8403         * lib/netinet_in.in.h: Likewise.
8404         * lib/poll.in.h: Likewise.
8405         * lib/pthread.in.h: Likewise.
8406         * lib/pty.in.h: Likewise.
8407         * lib/sched.in.h: Likewise.
8408         * lib/se-selinux.in.h: Likewise.
8409         * lib/search.in.h: Likewise.
8410         * lib/signal.in.h: Likewise.
8411         * lib/spawn.in.h: Likewise.
8412         * lib/stdarg.in.h: Likewise.
8413         * lib/stddef.in.h: Likewise.
8414         * lib/stdint.in.h: Likewise.
8415         * lib/stdio.in.h: Likewise.
8416         * lib/stdlib.in.h: Likewise.
8417         * lib/string.in.h: Likewise.
8418         * lib/strings.in.h: Likewise.
8419         * lib/sys_file.in.h: Likewise.
8420         * lib/sys_ioctl.in.h: Likewise.
8421         * lib/sys_select.in.h: Likewise.
8422         * lib/sys_socket.in.h: Likewise.
8423         * lib/sys_stat.in.h: Likewise.
8424         * lib/sys_time.in.h: Likewise.
8425         * lib/sys_times.in.h: Likewise.
8426         * lib/sys_utsname.in.h: Likewise.
8427         * lib/sys_wait.in.h: Likewise.
8428         * lib/sysexits.in.h: Likewise.
8429         * lib/termios.in.h: Likewise.
8430         * lib/time.in.h: Likewise.
8431         * lib/unistd.in.h: Likewise.
8432         * lib/wchar.in.h: Likewise.
8433         * lib/wctype.in.h: Likewise.
8434         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8435         * modules/ctype (Makefile.am): Likewise.
8436         * modules/dirent (Makefile.am): Likewise.
8437         * modules/errno (Makefile.am): Likewise.
8438         * modules/fcntl-h (Makefile.am): Likewise.
8439         * modules/float (Makefile.am): Likewise.
8440         * modules/getopt-posix (Makefile.am): Likewise.
8441         * modules/iconv-h (Makefile.am): Likewise.
8442         * modules/inttypes (Makefile.am): Likewise.
8443         * modules/langinfo (Makefile.am): Likewise.
8444         * modules/locale (Makefile.am): Likewise.
8445         * modules/math (Makefile.am): Likewise.
8446         * modules/netdb (Makefile.am): Likewise.
8447         * modules/netinet_in (Makefile.am): Likewise.
8448         * modules/poll-h (Makefile.am): Likewise.
8449         * modules/pthread (Makefile.am): Likewise.
8450         * modules/pty (Makefile.am): Likewise.
8451         * modules/sched (Makefile.am): Likewise.
8452         * modules/search (Makefile.am): Likewise.
8453         * modules/selinux-h (Makefile.am): Likewise.
8454         * modules/signal (Makefile.am): Likewise.
8455         * modules/spawn (Makefile.am): Likewise.
8456         * modules/stdarg (Makefile.am): Likewise.
8457         * modules/stddef (Makefile.am): Likewise.
8458         * modules/stdint (Makefile.am): Likewise.
8459         * modules/stdio (Makefile.am): Likewise.
8460         * modules/stdlib (Makefile.am): Likewise.
8461         * modules/string (Makefile.am): Likewise.
8462         * modules/strings (Makefile.am): Likewise.
8463         * modules/sys_file (Makefile.am): Likewise.
8464         * modules/sys_ioctl (Makefile.am): Likewise.
8465         * modules/sys_select (Makefile.am): Likewise.
8466         * modules/sys_socket (Makefile.am): Likewise.
8467         * modules/sys_stat (Makefile.am): Likewise.
8468         * modules/sys_time (Makefile.am): Likewise.
8469         * modules/sys_times (Makefile.am): Likewise.
8470         * modules/sys_utsname (Makefile.am): Likewise.
8471         * modules/sys_wait (Makefile.am): Likewise.
8472         * modules/sysexits (Makefile.am): Likewise.
8473         * modules/termios (Makefile.am): Likewise.
8474         * modules/time (Makefile.am): Likewise.
8475         * modules/unistd (Makefile.am): Likewise.
8476         * modules/wchar (Makefile.am): Likewise.
8477         * modules/wctype (Makefile.am): Likewise.
8478
8479 2010-10-04  Bruno Haible  <bruno@clisp.org>
8480
8481         read-file tests: Avoid a test failure on NonStop Kernel.
8482         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8483         a regular file.
8484         Reported by Joachim Schmitz <schmitz@hp.com>.
8485
8486 2010-10-03  Bruno Haible  <bruno@clisp.org>
8487
8488         gnulib-tool: Fixes for --create-testdir with --libtool.
8489         * gnulib-tool (func_get_automake_snippet): Don't augment
8490         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8491         an executable.
8492         (func_create_testdir): Handle module 'alloca' like func_import.
8493         Reported by Bruce Korb <bruce.korb@gmail.com>.
8494
8495 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8496
8497         Avoid some lines longer than 80 characters.
8498         * lib/stdint.in.h: Break long comment lines.
8499         * lib/math.in.h: Likewise.
8500         (_GL_NUM_UINT_WORDS): New macro, for readability.
8501         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8502         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8503         * lib/stdlib.in.h: Likewise.
8504         * lib/spawn.in.h: Likewise.
8505         * lib/sys_socket.in.h: Update an URL.
8506         * lib/sys_stat.in.h: Break long line.
8507
8508 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8509
8510         Improve pmccabe2html.
8511         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8512         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8513         when the sources change. Remove the line in the HTML about "Used
8514         ranges" (which implied that there might be other unused ranges),
8515         rename "Resume" to "Summary" (easier to understand for more users).
8516         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8517         styles, and some unnecessary blank lines.
8518
8519 2010-10-03  Bruno Haible  <bruno@clisp.org>
8520             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8521
8522         acl: Add support for ACLs on NonStop Kernel.
8523         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8524         Check whether the function aclsort() exists.
8525         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8526         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8527         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8528         (acl_nontrivial [HAVE_ACLSORT]: New function.
8529         (file_has_acl): Implement for NonStop Kernel.
8530         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8531         (qset_acl): Implement for NonStop Kernel.
8532         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8533         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8534         (main): Implement for NonStop Kernel.
8535         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8536         Kernel. Handle this flavor.
8537         * tests/test-set-mode-acl.sh: Likewise.
8538         * tests/test-copy-acl.sh: Likewise.
8539         * tests/test-copy-file.sh: Likewise.
8540
8541 2010-10-03  Bruno Haible  <bruno@clisp.org>
8542
8543         Info about ACLs on NonStop Kernel.
8544         * doc/acl-resources.txt: Add info about NonStop Kernel.
8545         References by Joachim Schmitz <schmitz@hp.com>.
8546
8547 2010-10-02  Bruno Haible  <bruno@clisp.org>
8548
8549         Define missing EDQUOT on NonStop Kernel.
8550         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8551         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8553         missing.
8554         * doc/posix-headers/errno.texi: Mention the NSK bug.
8555         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8556         Reported by Joachim Schmitz <schmitz@hp.com>.
8557
8558 2010-10-02  Bruno Haible  <bruno@clisp.org>
8559
8560         Update doc for POSIX:2008.
8561         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8562         Update URL of POSIX specification.
8563
8564 2010-10-02  Bruno Haible  <bruno@clisp.org>
8565
8566         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8567         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8568         from gnulib, not from Automake.
8569
8570 2010-10-02  Bruno Haible  <bruno@clisp.org>
8571
8572         New module 'system-posix'.
8573         * modules/system-posix: New file.
8574         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8575         module is present.
8576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8577         GNULIB_SYSTEM_POSIX.
8578         * modules/stdlib (Depends-on): Remove sys_wait.
8579         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8580         * doc/posix-functions/system.texi: Mention the new module.
8581         * doc/posix-headers/stdlib.texi: Likewise.
8582         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8583         define test_sys_wait_macros to a no-op.
8584         Reported by Sam Steingold <sds@gnu.org>.
8585
8586 2010-09-30  Bruno Haible  <bruno@clisp.org>
8587
8588         More renaming from 'getdate' to 'get_date'.
8589         * doc/get_date.texi: Renamed from doc/getdate.texi.
8590         * modules/get_date (Files): Update.
8591         * MODULES.html.sh (Date and time <time.h>): Update.
8592         * DEPENDENCIES: Update.
8593         * gnulib-tool: Update comment.
8594         * m4/bison.m4 (gl_BISON): Likewise.
8595         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8596
8597 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8598
8599         bootstrap: support ACLOCAL_FLAGS during aclocal
8600         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8601         can add additional -I dir for third-party .m4 files.
8602
8603 2010-09-30  Eric Blake  <eblake@redhat.com>
8604
8605         bootstrap: use glibtoolize on MacOS
8606         * build-aux/bootstrap (check_versions): Convert libtool into
8607         libtoolize.
8608         (tool search): Move libtool check earlier, and look for
8609         glibtoolize for MacOS.
8610         (gnulib_tool_options): Auto-add --libtool when appropriate.
8611         Reported by Justin Clift.
8612
8613         poll: fix typo that broke test on MacOS
8614         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8615         Reported by Justin Clift.
8616
8617         getdate: rename to get_date
8618         Note: getdate.h is not renamed, to minimize client impact.
8619         * modules/getdate: Mark obsolete.  Move old contents...
8620         * modules/get_date: ...to new module name.
8621         * modules/getdate-tests: Move...
8622         * modules/get_date-tests: ...here.
8623         * m4/getdate.m4: Move...
8624         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8625         * lib/getdate.y: Move...
8626         * lib/get_date.y: ...here.
8627         * tests/test-getdate.c: Move...
8628         * tests/test-get_date.c: ...here.
8629         * doc/posix-functions/getdate.texi (getdate): Update name.
8630         * NEWS: Mention the change.
8631
8632 2010-09-29  Bruno Haible  <bruno@clisp.org>
8633
8634         Separate the module 'waitpid' from the module 'sys_wait'.
8635         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8636         present.
8637         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8638         gl_MODULE_INDICATOR_FOR_TESTS.
8639         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8640         * modules/sys_wait (Depends-on): Remove waitpid.
8641         (Makefile.am): Substitute GNULIB_WAITPID.
8642         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8643         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8644         signature only if the 'waitpid' module is present.
8645         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8646         * NEWS: Mention the change.
8647         * modules/grantpt (Depends-on): Add waitpid.
8648         * modules/wait-process (Depends-on): Likewise.
8649
8650 2010-09-29  Bruno Haible  <bruno@clisp.org>
8651
8652         More tests for module 'sys_wait'.
8653         * modules/sys_wait-c++-tests: New file.
8654         * tests/test-sys_wait-c++.cc: New file.
8655         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8656         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8657
8658 2010-09-29  Bruno Haible  <bruno@clisp.org>
8659
8660         New module 'waitpid'.
8661         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8662         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8663         Don't include <process.h>.
8664         (waitpid): Declare only, using modern idiom.
8665         * m4/waitpid.m4: New file.
8666         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8667         * modules/waitpid: New file.
8668         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8669         (Makefile.am): Update.
8670         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8671
8672 2010-09-28  Bruno Haible  <bruno@clisp.org>
8673
8674         poll: Assume ANSI C.
8675         * lib/poll.c (poll): Use an ANSI C declaration.
8676
8677 2010-09-28  Bruno Haible  <bruno@clisp.org>
8678
8679         poll-h: Create poll.h on all platforms.
8680         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8681         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8682         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8683         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8684         (gl_REPLACE_POLL_H): Don't set POLL_H.
8685         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8686         * modules/poll-h (Depends-on): Add include_next.
8687         (Makefile.am): Create poll.h unconditionally. Substitute also
8688         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8689
8690 2010-09-28  Bruno Haible  <bruno@clisp.org>
8691
8692         Tests for module 'poll-h'.
8693         * modules/poll-h-c++-tests: New file.
8694         * tests/test-poll-h-c++.cc: New file.
8695
8696         Tests for module 'poll-h'.
8697         * modules/poll-h-tests: New file.
8698         * tests/test-poll-h.c: New file.
8699
8700 2010-09-28  Bruno Haible  <bruno@clisp.org>
8701
8702         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8703         * modules/poll-h (Depends-on): Add 'extensions'.
8704
8705 2010-09-28  Bruno Haible  <bruno@clisp.org>
8706
8707         New module 'poll-h'.
8708         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8709         (poll): Use modern idiom.
8710         * modules/poll-h: New file.
8711         * modules/poll (Files): Remove lib/poll.in.h.
8712         (Depends-on): Add poll-h.
8713         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8714         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8715         * m4/poll_h.m4: New file.
8716         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8717         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8718         and invoke gl_REPLACE_POLL_H.
8719         * lib/poll.c: Use common idiom.
8720         * tests/test-poll.c: Likewise.
8721         * doc/posix-headers/poll.texi: Mention the poll-h module.
8722         Suggested by Eric Blake.
8723
8724 2010-09-26  Bruno Haible  <bruno@clisp.org>
8725
8726         sys_wait: Implement WSTOPSIG.
8727         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8728         Reported by Simon Josefsson.
8729
8730 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8731
8732         stdlib, sys_wait: Avoid compilation error on mingw.
8733         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8734
8735 2010-09-26  Bruno Haible  <bruno@clisp.org>
8736
8737         stdlib tests: Avoid code duplication.
8738         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8739         * modules/sys_wait-tests (Files): Likewise.
8740         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8741         * tests/test-stdlib.c: Include test-sys_wait.h.
8742         (main): Invoke test_sys_wait_macros.
8743         * tests/test-sys_wait.c: Include test-sys_wait.h.
8744         (main): Invoke test_sys_wait_macros.
8745
8746 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8747
8748         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8749         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8750         sure Windows sockets are working before calling getaddrinfo.
8751         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8752         * doc/gnulib.texi (Windows sockets): Fix typo.
8753
8754 2010-09-25  Bruno Haible  <bruno@clisp.org>
8755
8756         Tests for module 'regex-quote'.
8757         * modules/regex-quote-tests: New file.
8758         * tests/test-regex-quote.c: New file.
8759
8760         New module 'regex-quote'.
8761         * lib/regex-quote.h: New file.
8762         * lib/regex-quote.c: New file.
8763         * modules/regex-quote: New file.
8764         Suggested by Reuben Thomas <rrt@sc3d.org>.
8765
8766 2010-09-24  Bruno Haible  <bruno@clisp.org>
8767
8768         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8769         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8770
8771 2010-09-23  Bruno Haible  <bruno@clisp.org>
8772
8773         setenv: Relax license.
8774         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8775         Blake.
8776         Requested by Eric Blake.
8777
8778 2010-09-22  Bruno Haible  <bruno@clisp.org>
8779
8780         termios: Relax license.
8781         * modules/termios (License): Change to LGPLv2+.
8782         Requested by Eric Blake.
8783
8784 2010-09-22  Bruno Haible  <bruno@clisp.org>
8785
8786         threadlib: Allow the package to change the default to 'no'.
8787         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8788         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8789         Reported by Paul Eggert.
8790
8791 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8792             Bruno Haible  <bruno@clisp.org>
8793
8794         Fix endless loop in mbmemcasecoll.
8795         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8796         byte.
8797         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8798
8799 2010-09-22  Bruno Haible  <bruno@clisp.org>
8800
8801         Tests for module 'memcoll'.
8802         * modules/memcoll-tests: New file.
8803         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8804
8805         memcoll, xmemcoll: Clarify size vs. length.
8806         * modules/memcoll.c (memcoll0): Clarify specification.
8807         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8808         passed to collate_error.
8809
8810 2010-09-22  Bruno Haible  <bruno@clisp.org>
8811
8812         Tests for module 'memcasecmp'.
8813         * modules/memcasecmp-tests: New file.
8814         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8815
8816 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8817
8818         * lib/pthread.in.h: Add split double-inclusion guard, and include
8819         system <pthread.h> if there is one.  Use @@-style as in other
8820         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8821         pthread.h doesn't.
8822         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8823         (pthread_mutexattr_settype, pthread_mutex_trylock):
8824         New static inline functions, if there's no system <pthread.h>.
8825         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8826         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8827         Approximate with mutexes if the system lacks spinlocks, as in
8828         MacOS.
8829         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8830         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8831         @@-style.  Check for spinlocks separately.
8832         (gl_PTHREAD_DEFAULTS): New macro.
8833         * modules/pthread: Redo to use a more typical style for in.h files.
8834
8835 2010-09-21  Eric Blake  <eblake@redhat.com>
8836
8837         net_if: enhance tests
8838         * tests/test-net_if.c (main): Move signature checks earlier.
8839         Print failures to stderr.
8840         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8841         Document the bug that we do not yet fix.
8842
8843 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8844
8845         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8846         about gnulib, not GSS.
8847
8848 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8849
8850         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8851         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8852         for Emacs.
8853         * build-aux/pmccabe2html: Make Makefile.am example code more
8854         cut-and-paste friendly.
8855
8856 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8857
8858         * tests/test-net_if.c: New file.
8859         * modules/net_if-tests: New file.
8860
8861 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8862
8863         pthread: add pthread_spin_destroy
8864         * lib/pthread.in.h (pthread_spin_destroy): New function.
8865
8866 2010-09-19  Bruno Haible  <bruno@clisp.org>
8867
8868         gnulib-tool: Fix --help output.
8869         * gnulib-tool (func_usage): Fix help message.
8870         Reported by Reuben Thomas <rrt@sc3d.org>.
8871
8872 2010-09-18  Jim Meyering  <meyering@redhat.com>
8873
8874         maint.mk: avoid unexpanded \n in two diagnostics
8875         * top/maint.mk (sc_prohibit_always_true_header_tests):
8876         Don't use a literal \n in a halt=... assignment.  It would not be
8877         expanded, and the two \n bytes would appear in the diagnostic output
8878         rather than the desired newline.  Use halt=$$(printf ... instead.
8879         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8880
8881 2010-09-18  Bruno Haible  <bruno@clisp.org>
8882
8883         netinet_in: Doc tweak.
8884         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8885         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8886
8887 2010-09-18  Jim Meyering  <meyering@redhat.com>
8888
8889         init.sh: correct an outdated comment
8890         * tests/init.sh (create_exe_shims_):  s/function/alias/
8891
8892         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8893         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8894         a file named "*.exe" is removed between the glob expansion and the
8895         processing of that oddly named file.
8896
8897 2010-09-17  Eric Blake  <eblake@redhat.com>
8898
8899         mirbsd: add some more support
8900         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8901         in BSD family.
8902         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8903         devices as OpenBSD.
8904         * m4/host-os.m4 (mirbsd): Add MirBSD.
8905
8906         tests: fix unportable assumption on sys/wait.h
8907         * tests/test-sys_wait.c (main): Relax test.
8908         * tests/test-stdlib.c (main): Likewise.
8909
8910         init.sh: accomodate directory with no .exes
8911         * tests/init.sh: Accomodate directory containing only scripts.
8912
8913         tests: avoid compiler warning
8914         * tests/test-stdlib.c (main): Use the variable.
8915
8916         fdutimens, fdutimensat: update signature, again
8917         * lib/utimens.h (gl_futimens): Delete, and move signature...
8918         (fdutimens): ...here.
8919         (fdutimensat): Rearrange signature.
8920         (lutimensat): Rename variable for clarity.
8921         * lib/fdutimensat.c (fdutimensat): Update signature.
8922         * lib/utimens.c (fdutimens): Likewise.
8923         (gl_futimens): Delete.
8924         (utimens, lutimens): Update callers.
8925         * lib/futimens.c (futimens): Likewise.
8926         * tests/test-fdutimensat.c: Likewise.
8927         * tests/test-utimens.c: Likewise.
8928         * tests/test-futimens.h: Update comment.
8929         * NEWS: Mention this.
8930         Suggested by Paul Eggert.
8931
8932 2010-09-17  Bruno Haible  <bruno@clisp.org>
8933
8934         Take over the maintenance of some older macros from Autoconf.
8935         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8936         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8937         GNU Autoconf.
8938         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8939         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8940
8941 2010-09-17  Eric Blake  <eblake@redhat.com>
8942
8943         fdutimensat: drop atflag validation
8944         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8945         with valid fd, to close a race scenario where futimens is
8946         unsupported and FILE was replaced by a symlink.
8947         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8948         accordingly.
8949         Suggested by Paul Eggert.
8950
8951 2010-09-16  Bruno Haible  <bruno@clisp.org>
8952
8953         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8954         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8955
8956 2010-09-16  Bruno Haible  <bruno@clisp.org>
8957
8958         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8959         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8960         login_tty exists.
8961         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8962
8963 2010-09-16  Bruno Haible  <bruno@clisp.org>
8964
8965         login_tty: Make the replacement code work on BSD systems.
8966         * lib/login_tty.c: Include <sys/ioctl.h>.
8967         (login_tty): Use ioctl TIOCSCTTY when available.
8968         * modules/login_tty (Depends-on): Add sys_ioctl.
8969         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8970
8971 2010-09-16  Bruno Haible  <bruno@clisp.org>
8972
8973         login_tty: Stricter unit test.
8974         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8975         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8976         and tcgetsid() after login_tty.
8977         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8978
8979 2010-09-16  Bruno Haible  <bruno@clisp.org>
8980
8981         New module 'tcgetsid'.
8982         * lib/tcgetsid.c: New file.
8983         * m4/tcgetsid.m4: New file.
8984         * modules/tcgetsid: New file.
8985         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8986         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8987         GNULIB_TCGETSID, HAVE_TCGETSID.
8988         * lib/termios.in.h: Include <sys/types.h>.
8989         (tcgetsid): New declaration.
8990         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8991         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8992         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8993         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8994
8995 2010-09-16  Bruno Haible  <bruno@clisp.org>
8996
8997         Tests for module 'termios'.
8998         * modules/termios-c++-tests: New file.
8999         * modules/termios-tests: New file.
9000         * tests/test-termios-c++.cc: New file.
9001         * tests/test-termios.c: New file.
9002
9003         New module 'termios'.
9004         * modules/termios: New file.
9005         * lib/termios.in.h: New file.
9006         * m4/termios_h.m4: New file.
9007         * doc/posix-headers/termios.texi: Mention the new module.
9008
9009 2010-09-16  Eric Blake  <eblake@redhat.com>
9010
9011         fdutimensat: add an atflag parameter
9012         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9013         * lib/utimens.h (fdutimensat): Update prototype.
9014         * tests/test-fdutimensat.c: Adjust test to match.
9015         * NEWS: Document the change.
9016         Suggested by Paul Eggert.
9017
9018 2010-09-16  Bruno Haible  <bruno@clisp.org>
9019
9020         Fix typos in comments.
9021         * lib/striconveh.h: Fix typo in comment.
9022         * lib/login_tty.c (login_tty): Likewise.
9023
9024 2010-09-15  Bruno Haible  <bruno@clisp.org>
9025
9026         stdlib: clarify MirBSD WEXITSTATUS bug
9027         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9028         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9029
9030 2010-09-15  Eric Blake  <eblake@redhat.com>
9031
9032         stdlib: work around MirBSD WEXITSTATUS bug
9033         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9034         * modules/stdlib (Depends-on): Add sys_wait.
9035         * tests/test-sys_wait.c (main): Enhance test.
9036         * tests/test-stdlib.c (main): Likewise.
9037         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9038
9039         docs: mention MacOS issue with WEXITSTATUS(constant)
9040         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9041         issue.
9042         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9043
9044         strnlen: add tests
9045         * modules/strnlen-tests: New file.
9046         * tests/test-strnlen.c: Likewise.
9047
9048 2010-09-14  Bruno Haible  <bruno@clisp.org>
9049
9050         unistr/base: Avoid link errors when module 'libunistring' is also used.
9051         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9052         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9053         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9054         Declare also when HAVE_LIBUNISTRING is set.
9055         Reported by Pádraig Brady <P@draigbrady.com>.
9056
9057 2010-09-14  Eric Blake  <eblake@redhat.com>
9058
9059         test-rawmemchr: make more robust
9060         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9061         (Depends-on, configure.ac): Add needed prerequisites to use it.
9062         * modules/memchr-tests (Files, Depends-on, configure.ac):
9063         Likewise, to avoid implicit reliance on memchr module prereqs.
9064         * tests/test-memchr.c (main): Ensure proper masking.
9065         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9066         reads.
9067
9068         memchr: detect glibc Alpha bug
9069         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9070         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9071         Alpha.
9072         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9073         * tests/test-memchr.c (main): Enhance test.
9074         Reported by Nelson H. F. Beebe.
9075
9076 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9077
9078         fts, getcwd, glob: audit for dirfd returning -1
9079         * lib/fts.c (opendir): Remove #define; no longer used.
9080         (opendirat): New arg PDIR_FD.  All callers changed.
9081         (fts_build, _opendir2): Use new opendirat to avoid the need for
9082         dirfd, or for checking whether dirfd returns a negative value.
9083         Don't use opendir; always use openat followed by fdopendir.
9084         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9085         it.
9086         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9087         returns -1 here.
9088         * modules/fts (Depends-on): Remove dirfd.
9089         * modules/getcwd (Depends-on): Likewise.
9090
9091 2010-09-13  Eric Blake  <eblake@redhat.com>
9092
9093         float: fix broken MirBSD header
9094         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9095         * doc/posix-headers/float.texi (float.h): Document it.
9096
9097 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9098
9099         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9100         * lib/fts.c (opendirat): New arg extra_flags.
9101         (__opendir2): Use it to avoid following symlinks when opening
9102         a directory, if symlinks are not supposed to be followed.  See
9103         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9104
9105         fdopendir: preserve argument fd before returning
9106         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9107         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9108         (fdopendir): Use them, arranging for FD to be open to the same
9109         directory that it was when it started.  (It might be temporarily
9110         closed while fdopendir is running, so this not thread- or
9111         signal-safe.)  Be careful to do the right thing even when file
9112         descriptors are scarce and dup fails with errno == EMFILE.  See
9113         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9114
9115 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9116
9117         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9118         * NEWS: Document change.
9119         * m4/regex.m4: Disable test for regoff_t size.
9120
9121 2010-09-13  Jim Meyering  <meyering@redhat.com>
9122
9123         fts: don't operate on an invalid file descriptor after failed dup
9124         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9125         negative file descriptor.
9126
9127 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9128
9129         savedir: add streamsavedir, deprecate fdsavedir
9130         * NEWS: Mention deprecation of fdsavedir.
9131         * lib/savedir.c (streamsavedir): New extern function, whose name
9132         ends in "savedir" to be consistent with the others.  This differs
9133         from savedirstream in that it doesn't close its argument.  The
9134         next version of GNU tar will use this instead of fdsavedir, to
9135         avoid some race conditions and conserve file descriptors.
9136         (savedirstream): Reimplement as a wrapper around streamsavedir.
9137         (fdsavedir): Add a comment deprecating this function.  As far as
9138         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9139         * lib/savedir.h (streamsavedir): New decl.
9140         (fdsavedir): Add a comment deprecating this.
9141
9142 2010-09-10  Bruno Haible  <bruno@clisp.org>
9143
9144         langinfo: Fix last commit.
9145         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9146         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9148
9149 2010-09-10  Bruno Haible  <bruno@clisp.org>
9150
9151         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9152         * lib/progreloc.c (O_EXEC): Define fallback.
9153
9154 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9155
9156         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9157         * NEWS: Document recent changes to fcntl-h.
9158         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9159         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9160         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9161         Similarly for O_SEARCH; this last was already true, but not documented.
9162         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9163         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9164         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9165         Likewise.
9166         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9167         is zero, not whether it is defined.
9168         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9169         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9170         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9171
9172 2010-09-10  Bruno Haible  <bruno@clisp.org>
9173
9174         langinfo, nl_langinfo: Fix for IRIX 5.3.
9175         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9176         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9177         HAVE_LANGINFO_YESEXPR.
9178         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9179         HAVE_LANGINFO_YESEXPR.
9180         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9181         HAVE_LANGINFO_T_FMT_AMPM is 0.
9182         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9183         HAVE_LANGINFO_YESEXPR is 0.
9184         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9185         NOEXPR.
9186         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9187         * doc/posix-functions/nl_langinfo.texi: Likewise.
9188         Reported by Eric Blake.
9189
9190 2010-09-10  Bruno Haible  <bruno@clisp.org>
9191
9192         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9193         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9194         on FreeBSD 8.0 and OpenBSD 4.6.
9195         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9196         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9197         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9198         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9199         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9200         ac_includes_default.
9201         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9202
9203 2010-09-09  Eric Blake  <eblake@redhat.com>
9204
9205         strsignal: work around NetBSD bug
9206         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9207         * lib/string.in.h (includes): Likewise.
9208         * doc/posix-functions/strsignal.texi (strsignal): Document the
9209         bug.
9210         Reported by Nelson H. F. Beebe.
9211
9212         gnulib-tool: work with NetBSD /bin/sh
9213         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9214         (func_get_description, func_get_comment, func_get_status)
9215         (func_get_notice, func_get_applicability, func_get_filelist)
9216         (func_get_dependencies, func_get_autoconf_early_snippet)
9217         (func_get_autoconf_snippet, func_get_automake_snippet)
9218         (func_get_include_directive, func_get_link_directive)
9219         (func_get_license, func_get_maintainer, func_import): Avoid
9220         shell syntax errors from parsing syntax extensions.
9221
9222 2010-09-09  Bruno Haible  <bruno@clisp.org>
9223
9224         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9225         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9226         a reliable way to determine whether the 'alias' command works.
9227
9228 2010-09-08  Jim Meyering  <meyering@redhat.com>
9229
9230         init.sh: penalize a set-x-impaired shell; don't disqualify it
9231         * tests/init.sh: Too many shells corrupt application stderr when
9232         you set -x, so we can't afford to disqualify them, since at least
9233         on Irix-6.5, that would disqualify all bourne shells.
9234         Instead, use a two-pass approach.
9235         On the first pass, try to find a shell that meets the stricter
9236         condition that set -x does not corrupt stderr.
9237         If no shell meets the stricter condition, retest each candidate
9238         shell, but without that extra condition.  Finally, when
9239         VERBOSE=yes is requested and set -x might cause trouble, simply
9240         issue a warning and refrain from enabling debug output.
9241
9242 2010-09-08  Eric Blake  <eblake@redhat.com>
9243
9244         unsetenv: fix OpenBSD bug
9245         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9246         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9247         documentation.
9248         Reported by Jim Meyering.
9249
9250         strtod: work around IRIX 6.5 bug
9251         * lib/strtod.c (strtod): Reparse number on shorter string if
9252         exponent parse was invalid.
9253         * tests/test-strtod.c (main): Add check for "0x1p 2".
9254         Reported by Tom G. Christensen.
9255
9256         getopt: optimize previous patch
9257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9258         empty variable.  Speed up awk script.
9259         Reported by Paolo Bonzini.
9260
9261 2010-09-08  Jim Meyering  <meyering@redhat.com>
9262
9263         test.sh: disqualify shells for which set -x corrupts stderr
9264         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9265         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9266         appear in stderr output.  For example, this command:
9267             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9268         prints "P=1" on those two systems:
9269
9270 2010-09-08  Bruno Haible  <bruno@clisp.org>
9271
9272         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9273         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9274         commands, because some shells ignore redirections when there is an
9275         error in the command lookup.
9276         Reported by Eric Blake.
9277
9278 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9279
9280         * lib/regex.h: Fix a mention of `regex_compile' (should be
9281         `re_compile_pattern').
9282         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9283         (re_set_registers): Correct name of parameter in comment.
9284
9285         * doc/regex.texi: Add documentation for missing syntax flags.
9286         Remove commented-out documentation of defunct syntax option
9287         RE_NO_EMPTY_ALTS.
9288         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9289         Add documentation of re_set_registers.
9290         Document trick to re-use a pattern buffer by setting fastmap manually.
9291         Update documentation of struct re_pattern_buffer per public members.
9292         Uncomment documentation of equivalence class operators and
9293         collating symbol operators, since they are now implemented,
9294         Explain leftmost-longest matching in relation to alternatives.
9295         Tidy documentation of substring matching.
9296         Remove POSIX documentation, which is done better in
9297         glibc, and refer the reader there. Keep BSD API documentation, as
9298         that is not readily available elsewhere.
9299
9300 2010-09-07  Eric Blake  <eblake@redhat.com>
9301
9302         getopt: handle POSIXLY_CORRECT set but not exported
9303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9304         export state of POSIXLY_CORRECT, due to bash set -o posix.
9305         Reported by Dustin J. Mitchell.
9306
9307 2010-09-05  Bruno Haible  <bruno@clisp.org>
9308
9309         gnulib-tool: Highlight the changed options.
9310         * gnulib-tool (func_usage): Display the --import, --add-import,
9311         --remove-import explanations in bold font.
9312
9313 2010-09-06  Karl Berry  <karl@gnu.org>
9314
9315         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9316
9317 2010-09-05  Bruno Haible  <bruno@clisp.org>
9318
9319         uniwidth/width: Update comment.
9320         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9321         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9322
9323 2010-09-05  Bruno Haible  <bruno@clisp.org>
9324
9325         isinf, isnan: Relax license.
9326         * modules/isinf (License): Change from GPL to LGPL, with consent from
9327         Ben Pfaff.
9328         * modules/isnan (License): Likewise.
9329         Requested by Ludovic Courtès.
9330
9331 2010-09-04  Bruno Haible  <bruno@clisp.org>
9332
9333         gnulib-tool: Help migration from --import to --add-import or --update.
9334         * gnulib-tool: Emit a verbose error message when --import is used
9335         without any module name.
9336
9337 2010-09-04  Bruno Haible  <bruno@clisp.org>
9338
9339         Update doc about gnulib-tool.
9340         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9341         'gnulib-tool --update' in more detail.
9342         Reported by Eric Blake.
9343
9344 2010-09-04  Bruno Haible  <bruno@clisp.org>
9345
9346         gnulib-tool: Change --import. New options --add/remove-import.
9347         * gnulib-tool: New options --add-import, --remove-import.
9348         (func_usage): Document them.
9349         (have_associative): Define always.
9350         (func_import): In import mode, don't merge the specified settings with
9351         the cached settings. Implement remove-import mode.
9352         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9353         Explain when to use them versus --import.
9354         (Simple update): Use --add-import instead of --import.
9355         * NEWS: Mention the change.
9356
9357 2010-09-04  Bruno Haible  <bruno@clisp.org>
9358
9359         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9360         separate gnulib.mk.
9361
9362 2010-09-04  Bruno Haible  <bruno@clisp.org>
9363
9364         gnulib-tool: Don't talk about CVS any more.
9365         * gnulib-tool (func_usage, func_import): Write "version control"
9366         instead of CVS.
9367
9368 2010-09-04  Jim Meyering  <meyering@redhat.com>
9369
9370         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9371         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9372         false positives (whose names may be ill-chosen) when searching
9373         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9374         would cause a false-positive.
9375
9376         avoid coreutils "make distcheck" failure
9377         Coreutils tests with an absolute build directory name that contains
9378         a space.  Not quoting this directory name caused a failure.
9379         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9380         * tests/test-vc-list-files-cvs.sh: Likewise.
9381
9382 2010-09-04  Bruno Haible  <bruno@clisp.org>
9383
9384         gnulib-tool: Avoid error when run in a package without Makefile.am.
9385         * gnulib-tool: When collecting the m4dirs in a package that does not
9386         have a Makefile.am, eliminate those directories that contain no
9387         gnulib-cache.m4. Fix expression that counts these directories.
9388
9389 2010-09-04  Bruno Haible  <bruno@clisp.org>
9390
9391         update-copyright test: Improve output when perl is missing or too old.
9392         * tests/test-update-copyright.sh: Move test of Perl version down after
9393         the test whether Perl exists. Provide an explanation relating Perl's
9394         error message to Automake's SKIP: message.
9395
9396 2010-09-04  Bruno Haible  <bruno@clisp.org>
9397
9398         Don't augment PATH in TESTS_ENVIRONMENT.
9399         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9400         set abs_aux_dir instead of augmenting PATH.
9401         * modules/vc-list-files-tests (Makefile.am): Likewise.
9402         * tests/test-update-copyright.sh: Augment PATH here.
9403         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9404         path_prepend_.
9405         * tests/test-vc-list-files-git.sh: Likewise.
9406
9407 2010-09-04  Jim Meyering  <meyering@redhat.com>
9408
9409         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9410         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9411
9412 2010-09-04  Bruno Haible  <bruno@clisp.org>
9413
9414         strdup: Fix compilation error in C++ mode.
9415         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9416         the macro.
9417
9418 2010-09-04  Bruno Haible  <bruno@clisp.org>
9419
9420         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9421         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9422         macro into a function.
9423         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9424
9425 2010-09-04  Bruno Haible  <bruno@clisp.org>
9426
9427         Set PATH_SEPARATOR the same way autoconf does.
9428         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9429         the value of PATH_SEPARATOR the same way autoconf-generated configure
9430         scripts do.
9431         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9432         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9433
9434 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9435
9436         Set PATH_SEPARATOR the same way autoconf does.
9437         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9438         the same way autoconf-generated configure scripts do.
9439         * posix-modules: Likewise.
9440
9441 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9442
9443         hash: fix safe_hasher const typo
9444         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9445         const; otherwise, there is a type error later.
9446
9447 2010-09-02  Jim Meyering  <meyering@redhat.com>
9448
9449         test-update-copyright.sh: require perl 5.8.0
9450         * tests/test-update-copyright.sh: Require 5.8.0,
9451         which Tom G. Christensen has confirmed is adequate,
9452         while 5.6.1 is not.
9453
9454 2010-09-02  Eric Blake  <eblake@redhat.com>
9455
9456         tests: init.sh improvements for re-exec'ing with zsh
9457         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9458         -vx through shell re-exec.
9459         Reported by Tom G. Christensen.
9460
9461         wctype: fix typo in previous commit
9462         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9463         Reported by Ludovic Courtès.
9464
9465 2010-09-02  Jim Meyering  <meyering@redhat.com>
9466
9467         test-update-copyright.sh: skip test if Perl is too old
9468         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9469         Reported by Tom G. Christensen.
9470
9471 2010-09-02  Bruno Haible  <bruno@clisp.org>
9472
9473         wctype: Avoid compilation error on IRIX 6.5.30.
9474         * lib/wctype.in.h (iswblank): Declare with a replacement if
9475         REPLACE_ISWBLANK is set.
9476         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9477         declared. Set REPLACE_ISWBLANK.
9478         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9479         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9480         * doc/posix-headers/wctype.texi: Likewise.
9481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9482
9483 2010-09-01  Bruno Haible  <bruno@clisp.org>
9484
9485         New module 'socketlib'.
9486         * modules/socketlib: New file.
9487         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9488         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9489         * modules/sockets (Depends-on): Add socketlib.
9490         Suggested by Sam Steingold <sds@gnu.org>.
9491
9492 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9493
9494         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9495
9496         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9497         when one needs search access to a directory but not read access.
9498         On systems where it is available, it works in some cases where
9499         O_RDONLY does not, namely on directories that are searchable but
9500         not readable, and which need only to be searchable.  If O_SEARCH
9501         is not available, fall back to the traditional method of using
9502         O_RDONLY.
9503
9504         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9505         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9506         when opening a directory that needs only to be searchable.
9507         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9508         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9509         * lib/openat-proc.c (openat_proc_name): Likewise.
9510         * lib/openat.c (openat_needs_fchdir): Likewise.
9511         * lib/save-cwd.c (save_cwd): Likewise.
9512         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9513
9514 2010-08-28  Bruno Haible  <bruno@clisp.org>
9515
9516         New module 'host-cpu-c-abi'.
9517         * modules/host-cpu-c-abi: New file.
9518         * m4/host-cpu-c-abi.m4: New file, based on part of
9519         clisp/src/m4/general.m4.
9520         Requested by Sam Steingold <sds@gnu.org>.
9521
9522 2010-08-31  Eric Blake  <eblake@redhat.com>
9523         and Jim Meyering  <meyering@redhat.com>
9524
9525         hash: factor, and guard against misbehaving hasher function
9526         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9527         of table->hasher's return value.  Also protect against a hash value
9528         so large that adding it to table->bucket results in a NULL pointer.
9529         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9530         Use it in place of open-coded check-and-abort.
9531
9532 2010-08-30  Bruno Haible  <bruno@clisp.org>
9533
9534         hash: silence spurious clang warning
9535         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9536         Reported by Eric Blake.
9537
9538 2010-08-30  Eric Blake  <eblake@redhat.com>
9539
9540         strstr, memmem, strcasestr: avoid leaked shell message
9541         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9542         FreeBSD.
9543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9545
9546         tests: silence clang warning
9547         * tests/test-malloca.c (do_allocation): Avoid dead store.
9548
9549 2010-08-29  Bruno Haible  <bruno@clisp.org>
9550
9551         gettext: Fix recent mistake.
9552         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9553
9554 2010-08-29  Bruno Haible  <bruno@clisp.org>
9555
9556         selinux-h: Offer a --without-selinux option.
9557         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9558         --without-selinux was specified, skip all tests and define
9559         HAVE_SELINUX_SELINUX_H to 0.
9560         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9561         set LIB_SELINUX to empty.
9562         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9563         gl_LIBSELINUX. If --without-selinux was specified, replace
9564         selinux/context.h.
9565         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9566
9567 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9568             Bruno Haible  <bruno@clisp.org>
9569
9570         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9571         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9572         of HAVE_REALLOC.
9573         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9574         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9575         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9576         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9577
9578 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9579             Bruno Haible  <bruno@clisp.org>
9580
9581         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9582         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9583         HAVE_CALLOC.
9584         * lib/xmalloc.c: Update accordingly.
9585         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9586         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9587         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9588
9589 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9590             Bruno Haible  <bruno@clisp.org>
9591
9592         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9593         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9594         HAVE_MALLOC.
9595         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9596         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9597         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9598
9599 2010-08-29  Bruno Haible  <bruno@clisp.org>
9600
9601         Update modules list.
9602         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9603         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9604         (String handling <string.h>): Add astrxfrm.
9605         (File system functions): Add readlinkat.
9606
9607 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9608
9609         Tests for module 'realloc-gnu'.
9610         * modules/realloc-gnu-tests: New file.
9611         * tests/test-realloc-gnu.c: New file.
9612
9613         Tests for module 'calloc-gnu'.
9614         * modules/calloc-gnu-tests: New file.
9615         * tests/test-calloc-gnu.c: New file.
9616
9617         Tests for module 'malloc-gnu'.
9618         * modules/malloc-gnu-tests: New file.
9619         * tests/test-malloc-gnu.c: New file.
9620
9621 2010-08-28  Bruno Haible  <bruno@clisp.org>
9622
9623         Rename module 'realloc' -> 'realloc-gnu'.
9624         * modules/realloc-gnu: New file, copied from modules/realloc.
9625         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9626         obsolete.
9627         * modules/mgetgroups (Depends-on): Update.
9628         * doc/posix-functions/realloc.texi: Update.
9629         * NEWS: Mention the change.
9630
9631         Rename module 'calloc' -> 'calloc-gnu'.
9632         * modules/calloc-gnu: New file, copied from modules/calloc.
9633         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9634         obsolete.
9635         * doc/posix-functions/calloc.texi: Update.
9636         * NEWS: Mention the change.
9637
9638         Rename module 'malloc' -> 'malloc-gnu'.
9639         * modules/malloc-gnu: New file, copied from modules/malloc.
9640         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9641         obsolete.
9642         * modules/argp (Depends-on): Update.
9643         * modules/regex (Depends-on): Update.
9644         * doc/posix-functions/malloc.texi: Update.
9645         * NEWS: Mention the change.
9646
9647 2010-08-28  Eric Blake  <eblake@redhat.com>
9648
9649         pread, pwrite: add missing dependency
9650         * modules/pread (Depends-on): Add extensions.
9651         * modules/pwrite (Depends-on): Likewise.
9652
9653 2010-08-28  Bruno Haible  <bruno@clisp.org>
9654
9655         unistr/u*-strchr: Fix tests dependencies.
9656         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9657         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9658         Reported by Ian Beckwith <ianb@erislabs.net>.
9659
9660 2010-08-28  Bruno Haible  <bruno@clisp.org>
9661
9662         read-file: Don't occupy too much unused memory.
9663         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9664
9665 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9666             Eric Blake  <eblake@redhat.com>
9667             Bruno Haible  <bruno@clisp.org>
9668
9669         read-file: Avoid memory reallocations with regular files.
9670         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9671         (fread_file): With regular files, use the remaining length as the
9672         initial buffer size.  Check against overflow.
9673         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9674         sys_stat.
9675
9676 2010-08-28  Bruno Haible  <bruno@clisp.org>
9677
9678         ftello: Relax license.
9679         * modules/ftello (License): Relax to LGPLv2+.
9680         Reported by Eric Blake.
9681
9682 2010-08-28  Bruno Haible  <bruno@clisp.org>
9683
9684         Avoid relocwrapper link errors due to gnulib replacement functions.
9685         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9686         function.
9687         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9688
9689 2010-08-28  Bruno Haible  <bruno@clisp.org>
9690
9691         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9692         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9693         defined.
9694         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9695         Suggested by Eric Blake.
9696
9697 2010-08-28  Bruno Haible  <bruno@clisp.org>
9698
9699         sys_socket, netdb: Ensure socklen_t gets defined.
9700         * modules/sys_socket (Depends-on): Add socklen.
9701         * modules/netdb (Depends-on): Likewise.
9702         * modules/getaddrinfo (Depends-on): Remove socklen.
9703         * modules/getsockopt (Depends-on): Likewise.
9704         * modules/setsockopt (Depends-on): Likewise.
9705         * tests/test-sys_socket.c: Check that socklen_t is defined.
9706         * tests/test-netdb.c: Likewise.
9707         * m4/socklen.m4: Update comments.
9708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9709
9710 2010-08-27  Eric Blake  <eblake@redhat.com>
9711
9712         login_tty: add missing dependency
9713         * modules/login_tty (Depends-on): Add pty.
9714
9715 2010-08-26  Eric Blake  <eblake@redhat.com>
9716
9717         lib-symbol-versions: fix m4 quoting
9718         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9719         format for AC_LINK_IFELSE.
9720
9721         glob: fix compile test
9722         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9723
9724         btowc: fix missing file
9725         * modules/btowc (Files): Also ship locale-fr.m4.
9726
9727         lseek: fix link test
9728         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9729         AC_LINK_IFELSE.
9730
9731         include_next: silence autoconf 2.68 warning
9732         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9733         AC_COMPILE_IFELSE as special.
9734         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9735         autoconf < 2.68.
9736
9737         acl: fix compilation test
9738         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9739         AC_COMPILE_IFELSE.
9740
9741 2010-08-26  Bruno Haible  <bruno@clisp.org>
9742
9743         Modernize AC_TRY_RUN invocations.
9744         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9745         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9746         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9747         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9748         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9749         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9750         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9751         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9752         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9753         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9754         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9755         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9756         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9757         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9759         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9760         gl_MBRLEN_NUL_RETVAL): Likewise.
9761         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9762         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9763         Likewise.
9764         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9765         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9766         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9767         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9768         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9769         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9770         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9771         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9772         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9773         Likewise.
9774         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9775         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9776         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9777         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9778         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9779         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9780         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9781         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9782         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9784
9785 2010-08-26  Bruno Haible  <bruno@clisp.org>
9786
9787         Modernize AC_TRY_LINK invocations.
9788         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9789         AC_TRY_LINK.
9790         * m4/argp.m4 (gl_ARGP): Likewise.
9791         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9792         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9793         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9794         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9795         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9796         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9797         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9798         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9799         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9800         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9801         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9802         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9803         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9804         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9805         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9806         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9807         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9808         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9809         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9810         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9811         Likewise.
9812         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9813         Likewise.
9814         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9815         Likewise.
9816         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9817         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9818         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9819         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9820         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9821         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9822         * m4/servent.m4 (gl_SERVENT): Likewise.
9823         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9824         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9825         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9826         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9827         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9828         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9829         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9831         * modules/tsearch-tests (configure.ac): Likewise.
9832
9833 2010-08-26  Bruno Haible  <bruno@clisp.org>
9834
9835         Modernize AC_TRY_COMPILE invocations.
9836         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9837         AC_TRY_COMPILE.
9838         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9839         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9840         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9841         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9842         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9843         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9844         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9845         * m4/lock.m4 (gl_LOCK): Likewise.
9846         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9847         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9848         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9849         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9850         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9851         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9852         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9853         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9854         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9855         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9856         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9857         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9858         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9859         extraneous semicolon.
9860
9861 2010-08-26  Jim Meyering  <meyering@redhat.com>
9862
9863         stat-time: relax license LGPL
9864         * modules/stat-time (License): Change from GPL to LGPL,
9865         with consent from all contributors, for use in libguile.
9866         Requested by Ludovic Courtès.
9867
9868 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9869
9870         poll: return immediately on POLLHUP.
9871         * lib/poll.c (poll): Always set timeout before wait_timeout is
9872         computed.
9873
9874 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9875
9876         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9877         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9878         rmdir ("dir/.//"), unlinkat.
9879
9880 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9881
9882         stdbool: avoid spurious failure with modern xlc
9883         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9884
9885 2010-08-24  Bruno Haible  <bruno@clisp.org>
9886
9887         getloadavg: simplify code
9888         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9889         gl_have_func. Update comments.
9890
9891 2010-08-24  Eric Blake  <eblake@redhat.com>
9892
9893         getloadavg: don't define SVR4 on cygwin
9894         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9895         only define SVR4 when -lkvm is required.
9896         Reported by Yaakov Selkowitz.
9897
9898 2010-08-24  Bruno Haible  <bruno@clisp.org>
9899
9900         priv-set: fix comment
9901         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9902
9903 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9904
9905         priv-set: fix comments
9906         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9907         to match code, as suggested by David Bartley in:
9908         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9909
9910 2010-08-23  Eric Blake  <eblake@redhat.com>
9911
9912         stdbool: avoid rejecting clang
9913         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9914         * tests/test-stdbool.c: Enable more tests if using the system
9915         <stdbool.h> instead of the gnulib replacement.
9916         (main): Move xlc bug test to a runtime test for all compilers.
9917         Reported by Anders Kaseorg.
9918
9919         argz: fix shell quoting issue
9920         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9921         Reported by Charles Wilson.
9922
9923 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9924             Erik Faye-Lund <kusmabite@gmail.com>
9925
9926         poll, select: handle ERROR_BROKEN_PIPE.
9927         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9928         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9929         * lib/select.c (win32_compute_revents): Do not mark a pipe
9930         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9931
9932 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9933
9934         fts: allow compilation with C++
9935         * lib/fts_.h: Specify extern "C" linkage with C++.
9936
9937 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9938
9939         Fix gnulib-tool sed script de-commentation for AIX sed.
9940         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9941         sed.
9942
9943 2010-08-17  Eric Blake  <eblake@redhat.com>
9944
9945         test-stddef: test for (some) offsetof bugs
9946         * tests/test-stddef.c: Enhance test to ensure correct type of
9947         offsetof.
9948         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9949         that we are not fixing at this time.
9950
9951 2010-08-15  Bruno Haible  <bruno@clisp.org>
9952
9953         stpncpy: Allow stpncpy to be defined as a macro.
9954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9955         if it's already correctly declared.
9956         * lib/string.in.h (stpncpy): Undefine before redefining.
9957         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9958
9959 2010-08-14  Bruno Haible  <bruno@clisp.org>
9960
9961         Rename module 'memxfrm' to 'amemxfrm'.
9962         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9963         (amemxfrm): Renamed from memxfrm.
9964         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9965         (amemxfrm): Renamed from memxfrm.
9966         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9967         * NEWS: Mention the change.
9968         * MODULES.html.sh (String handling <string.h>): Update.
9969         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9970         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9971         * lib/unicase/u16-casexfrm.c: Likewise.
9972         * lib/unicase/u32-casexfrm.c: Likewise.
9973         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9974         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9975         * lib/uninorm/u16-normxfrm.c: Likewise.
9976         * lib/uninorm/u32-normxfrm.c: Likewise.
9977         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9978         memxfrm.
9979         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9980         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9981         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9982         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9983         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9984         Suggested by Paul Eggert.
9985
9986 2010-08-14  Bruno Haible  <bruno@clisp.org>
9987
9988         Tests for module 'astrxfrm'.
9989         * modules/astrxfrm-tests: New file.
9990         * tests/test-astrxfrm.c: New file.
9991
9992         New module 'astrxfrm'.
9993         * lib/astrxfrm.h: New file.
9994         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9995         * modules/astrxfrm: New file.
9996
9997 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9998
9999         regex: Tweak doc.
10000         * doc/regex.texi (Overview): Don't mention regex.c.
10001         (GNU Regular Expression Compiling): Likewise.
10002         (Match-end-of-line Operator): Mention 'not_eol'.
10003
10004 2010-08-14  Brian Gough  <bjg@gnu.org>
10005             Bruno Haible  <bruno@clisp.org>
10006
10007         git-merge-changelog: add doc relating to use with bzr and hg.
10008         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10009
10010 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10011
10012         pthread: fix pthread.h creation for srcdir != builddir
10013         * modules/pthread (Makefile.am): Fix the rule to work also in a
10014         non-srcdir build.
10015
10016 2010-08-13  Karl Berry  <karl@gnu.org>
10017
10018         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10019         * doc/posix-*/*: force line break before @url of POSIX
10020         specifications.
10021         Suggested by Werner Lemberg.
10022
10023 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10024
10025         strtod: fix const diagnostic
10026         * lib/strtod.c (strtod): Don't assign const char * to char *,
10027         as this elicits a warning from GCC when warnings are enabled.
10028
10029 2010-08-10  Pádraig Brady <P@draigbrady.com>
10030         and Eric Blake  <eblake@redhat.com>
10031
10032         copy-acl: ignore ENOTSUP on HP-UX
10033         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10034         so that it is available for HP-UX.
10035         * lib/copy-acl.c (qcopy_acl): Use it.
10036         Reported by Patrick M. Callahan.
10037
10038 2010-08-10  Eric Blake  <eblake@redhat.com>
10039
10040         open, chown: relax license
10041         * modules/open (License): Change to LGPLv2+, with consent by all
10042         authors, for use in augeas.
10043         * modules/chown (License): Likewise.
10044         * modules/lchown (Likewise): Likewise.
10045         Requested by Adam Stokes.
10046
10047 2010-08-09  Karl Berry  <karl@gnu.org>
10048
10049         * build-aux/ar-lib: new file, import from Automake.
10050         * config/srclist.txt: autocheck for updates.
10051
10052 2010-08-09  Eric Blake  <eblake@redhat.com>
10053
10054         readlinkat: adjust client modules
10055         * modules/areadlinkat (Depends-on): Use readlinkat, not
10056         symlinkat.
10057         * modules/areadlinkat-with-size (Depends-on): Likewise.
10058
10059         mknod: be more vocal about danger of running tests as root
10060         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10061         root, since that is just asking for problems.
10062         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10063
10064         readlinkat: split into its own module
10065         * modules/symlinkat: Split readlinkat...
10066         * modules/readlinkat: ...into separate module.
10067         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10068         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10069         * lib/symlinkat.c (readlinkat): Move...
10070         * lib/readlinkat.c: ...into new file.
10071         * modules/symlinkat-tests: Split readlinkat test...
10072         * modules/readlinkat-tests: ...into separate module.
10073         * tests/test-symlinkat.c: Split...
10074         * tests/test-readlinkat.c: ...into new file.
10075         * NEWS: Document the split.
10076         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10077         * lib/unistd.in.h (readlinkat): Likewise.
10078         Suggested by Bruno Haible.
10079
10080 2010-08-08  Bruno Haible  <bruno@clisp.org>
10081
10082         memxfrm: Speed up.
10083         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10084         that usually only one call to strxfrm is necessary for each string
10085         part.
10086         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10087
10088 2010-08-07  Karl Berry  <karl@gnu.org>
10089
10090         * doc/posix-headers/limits.texi,
10091         * doc/posix-functions/malloc.texi,
10092         * doc/posix-functions/strsignal.texi: missing @item.
10093         * doc/ld-version-script.texi: spurious leading i.
10094         * doc/regex.texi (Interval Operators): no commas inside @var.
10095
10096 2010-08-01  Bruno Haible  <bruno@clisp.org>
10097
10098         Integrate the regex documentation.
10099         * doc/gnulib.texi: Define 'cn' index.
10100         (Regular expressions): New a chapter that includes regex.texi and
10101         regexprops-generic.texi.
10102         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10103         syntax.
10104
10105         Whitespace cleanup.
10106         * doc/regex.texi: Remove trailing spaces.
10107
10108         Add regex documentation.
10109         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10110         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10111         Written by Kathy A. Hargreaves and Karl Berry.
10112
10113 2010-08-01  Bruno Haible  <bruno@clisp.org>
10114
10115         link: Update documentation.
10116         * doc/posix-functions/link.texi: Update regarding Solaris.
10117
10118 2010-07-31  Bruno Haible  <bruno@clisp.org>
10119
10120         Update modules list.
10121         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10122         (String handling <string.h>): Add memcmp2, memxfrm.
10123         (Container data structures): Add xlist, xsublist, xoset.
10124         (Core language properties): Add alignof, unused-parameter.
10125         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10126         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10127         (Unibyte characters <ctype.h>): New section.
10128         (String handling <string.h>): New section.
10129         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10130         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10131         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10132         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10133         tan, tanh, tanl, y0, y1, yn.
10134         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10135         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10136         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10137         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10138         unlockpt, vdprintf, vdprintf-posix.
10139         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10140         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10141         xconcat-filename.
10142         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10143         getdtablesize, pipe2, pipe2-safer.
10144         (Security): New section.
10145         (Networking functions): Add accept4.
10146         (Signal handling): Add sigpipe.
10147         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10148         mbmemcasecoll.
10149         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10150         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10151         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10152         pipe-filter-ii.
10153         (Misc): Add argp-version-etc, login_tty, parse-duration.
10154
10155 2010-07-31  Bruno Haible  <bruno@clisp.org>
10156
10157         Improve doc in MODULES.html.
10158         * modules/linkat (Description): Add the word "function".
10159         * modules/mkfifo (Description): Likewise.
10160         * modules/mknod (Description): Likewise.
10161         * modules/remove (Description): Likewise.
10162         * modules/renameat (Description): Likewise.
10163         * modules/stat (Description): Likewise.
10164         * modules/symlink (Description): Likewise.
10165         * modules/unlink (Description): Likewise.
10166
10167 2010-07-31  Bruno Haible  <bruno@clisp.org>
10168
10169         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10170         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10171         option --enable/disable-c++ instead of --enable/disable-cxx.
10172         * NEWS: Mention the change.
10173
10174 2010-07-31  Bruno Haible  <bruno@clisp.org>
10175
10176         readlink, areadlink: Relax test a bit.
10177         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10178         alternative to ENOTDIR.
10179         * tests/test-areadlink.h (test_areadlink): Likewise.
10180         Reported by Rainer Tammer.
10181
10182 2010-07-31  Bruno Haible  <bruno@clisp.org>
10183
10184         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10185         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10186         character, perform the search using U_STRCHR.
10187         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10188         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10189         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10190         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10191         Suggested by Paolo Bonzini.
10192
10193 2010-07-31  Bruno Haible  <bruno@clisp.org>
10194
10195         unistr/u*-strstr: Fix dependencies.
10196         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10197         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10198         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10199
10200 2010-07-31  Bruno Haible  <bruno@clisp.org>
10201
10202         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10203         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10204         the beginning of the loop.
10205         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10206         cases in 'switch' statement.
10207
10208         unistr/u8-strchr: Fix several bugs.
10209         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10210         the string. When not found, return NULL, not a pointer near the end.
10211
10212         More tests for unistr/u8-strchr.
10213         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10214         that the function does not read past the first occurrence of the byte
10215         being searched.
10216         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10217         * tests/unistr/test-u16-strchr.c (main): New function.
10218         * tests/unistr/test-u32-strchr.c (main): New function.
10219
10220 2010-07-31  Bruno Haible  <bruno@clisp.org>
10221
10222         posix-modules: Ignore backup files of documentation files.
10223         * posix-modules: grep only through files named *.texi.
10224
10225 2010-07-31  Bruno Haible  <bruno@clisp.org>
10226
10227         symlinkat: Fix documentation.
10228         * doc/posix-functions/readlinkat.texi: Fix module name.
10229
10230 2010-07-31  Bruno Haible  <bruno@clisp.org>
10231
10232         fchownat: Replace also when chown has the trailing slash bug.
10233         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10234         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10235         introduced on 2010-04-10.
10236         Reported by Rainer Tammer.
10237
10238 2010-07-31  Bruno Haible  <bruno@clisp.org>
10239
10240         linkat: Work around AIX 7.1 bug.
10241         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10242         whether linkat handles trailing slash correctly. If not, replace linkat
10243         and define LINKAT_TRAILING_SLASH_BUG.
10244         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10245         check whether (fd1,file1) points to a directory if file1 or file2 ends
10246         in a slash. Code taken from lib/link.c.
10247         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10248         Reported by Rainer Tammer.
10249
10250 2010-07-31  Bruno Haible  <bruno@clisp.org>
10251
10252         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10253         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10254         This disables an xlc optimization that was causing wrong test results.
10255         Reported by Rainer Tammer.
10256
10257 2010-07-31  Bruno Haible  <bruno@clisp.org>
10258
10259         iconv: Work around AIX 6.1..7.1 bug.
10260         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10261         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10262         cross-compiling, guess no on all versions of AIX.
10263         Reported by Rainer Tammer.
10264
10265 2010-07-31  Bruno Haible  <bruno@clisp.org>
10266
10267         readlink: Relax test a bit.
10268         * tests/test-readlink.h (test_readlink): Allow different errno value
10269         when readlink is called with a file name that ends in / and refers to
10270         a file.
10271         Suggested by Eric Blake.
10272         Reported by Rainer Tammer.
10273
10274 2010-07-31  Bruno Haible  <bruno@clisp.org>
10275
10276         copysign: Does not require -lm on glibc systems.
10277         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10278         gl_COMMON_DOUBLE_MATHFUNC.
10279         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10280
10281 2010-07-31  Bruno Haible  <bruno@clisp.org>
10282
10283         duplocale: Work around AIX 7.1 bug.
10284         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10285         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10286         * lib/duplocale.c (rpl_duplocale): Update comment.
10287         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10288         Reported by Rainer Tammer.
10289
10290 2010-07-30  Bruno Haible  <bruno@clisp.org>
10291
10292         dirfd: Avoid link error on AIX 7.1.
10293         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10294         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10295         exist, set REPLACE_DIRFD.
10296         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10297         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10298         * doc/posix-functions/dirfd.texi: Update.
10299         Reported by Rainer Tammer.
10300
10301 2010-07-30  Eric Blake  <eblake@redhat.com>
10302
10303         strtod: next round of AIX fixes
10304         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10305         exponent.
10306         * tests/test-strtod.c (main): Enhance tests.
10307         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10308         Reported by Rainer Tammer.
10309
10310         futimens: fix configure check
10311         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10312         Reported by Bruno Haible.
10313
10314 2010-07-30  Bruno Haible  <bruno@clisp.org>
10315
10316         getline: Update regarding AIX.
10317         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10318         Reported by Rainer Tammer.
10319
10320 2010-07-30  Bruno Haible  <bruno@clisp.org>
10321
10322         wcwidth: Drop replacement on AIX 7.
10323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10324         AIX 7.
10325         Reported by Rainer Tammer.
10326
10327 2010-07-30  Bruno Haible  <bruno@clisp.org>
10328
10329         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10330         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10331         a 'char *'.
10332         Reported by Rainer Tammer.
10333
10334 2010-07-30  Bruno Haible  <bruno@clisp.org>
10335
10336         unlink: Update regarding AIX.
10337         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10338         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10339         Reported by Rainer Tammer.
10340
10341 2010-07-30  Bruno Haible  <bruno@clisp.org>
10342
10343         symlink: Update regarding AIX.
10344         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10345         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10346         Reported by Rainer Tammer.
10347
10348 2010-07-30  Bruno Haible  <bruno@clisp.org>
10349
10350         strndup: Update regarding AIX.
10351         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10352         AIX 7.
10353         Reported by Rainer Tammer.
10354
10355 2010-07-30  Bruno Haible  <bruno@clisp.org>
10356
10357         stat: Update regarding AIX.
10358         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10359         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10360         Reported by Rainer Tammer.
10361
10362 2010-07-30  Bruno Haible  <bruno@clisp.org>
10363
10364         truncl: Fix autoconf test.
10365         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10366         whether truncl works.
10367         Reported by Rainer Tammer.
10368
10369 2010-07-30  Bruno Haible  <bruno@clisp.org>
10370
10371         round: Update regarding AIX.
10372         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10373         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10374         Reported by Rainer Tammer.
10375
10376 2010-07-30  Bruno Haible  <bruno@clisp.org>
10377
10378         rename: Update regarding AIX.
10379         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10380         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10381         Reported by Rainer Tammer.
10382
10383 2010-07-30  Bruno Haible  <bruno@clisp.org>
10384
10385         printf.m4: Update regarding AIX.
10386         * m4/printf.m4: Update comments regarding AIX.
10387         Reported by Rainer Tammer.
10388
10389 2010-07-30  Bruno Haible  <bruno@clisp.org>
10390
10391         iconv: Update regarding AIX.
10392         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10393         AIX 7.
10394         Reported by Rainer Tammer.
10395
10396 2010-07-30  Bruno Haible  <bruno@clisp.org>
10397
10398         getopt: Update regarding AIX.
10399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10400         no on AIX.
10401         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10402         Reported by Rainer Tammer.
10403
10404 2010-07-30  Bruno Haible  <bruno@clisp.org>
10405
10406         ldexpl; Update regarding AIX.
10407         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10408         on AIX 7.
10409         Reported by Rainer Tammer.
10410
10411 2010-07-30  Bruno Haible  <bruno@clisp.org>
10412
10413         frexpl: Update regarding AIX.
10414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10415         on AIX 7.
10416         Reported by Rainer Tammer.
10417
10418 2010-07-30  Bruno Haible  <bruno@clisp.org>
10419
10420         open, fopen: Update regarding AIX.
10421         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10422         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10423         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10424         * doc/posix-functions/fopen.texi: Likewise.
10425         Reported by Rainer Tammer.
10426
10427 2010-07-30  Bruno Haible  <bruno@clisp.org>
10428
10429         chown: Update doc regarding AIX.
10430         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10431         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10432         Reported by Rainer Tammer.
10433
10434 2010-07-30  Eric Blake  <eblake@redhat.com>
10435
10436         strtod: fix bug in replacement function on AIX
10437         * lib/strtod.c (strtod): Special case broken "0x" parse in
10438         underlying strtod.
10439         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10440         * doc/posix-functions/strtod.texi (strtod): Likewise.
10441         Reported by Rainer Tammer.
10442
10443 2010-07-30  Bruno Haible  <bruno@clisp.org>
10444
10445         mbrlen: Fix cross-compilation guess for AIX.
10446         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10447         guess. Leftover from 2008-12-22.
10448
10449 2010-07-30  Bruno Haible  <bruno@clisp.org>
10450
10451         mbrtowc: Fix cross-compilation guess for AIX.
10452         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10453         guess. Leftover from 2008-12-21.
10454
10455 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10456
10457         init.sh: work around trap limitation of some shells
10458         * tests/init.sh (setup_): Move exit trap outside of shell function.
10459
10460 2010-07-29  Eric Blake  <eblake@redhat.com>
10461
10462         strtod: aid debugging
10463         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10464         understanding why strtod is rejected.
10465
10466 2010-07-28  Bruno Haible  <bruno@clisp.org>
10467
10468         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10469         * lib/unistr/u8-chr.c: Include <string.h>.
10470         * tests/unistr/test-u8-chr.c: Likewise.
10471         * tests/unistr/test-u16-chr.c: Likewise.
10472         * tests/unistr/test-u32-chr.c: Likewise.
10473         * tests/unistr/test-u8-strchr.c: Likewise.
10474         * tests/unistr/test-u16-strchr.c: Likewise.
10475         * tests/unistr/test-u32-strchr.c: Likewise.
10476         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10477         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10478         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10479         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10480
10481 2010-07-28  Bruno Haible  <bruno@clisp.org>
10482
10483         Use spaces for indentation, not tabs.
10484         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10485
10486 2010-07-27  Bruno Haible  <bruno@clisp.org>
10487
10488         mbspcasecmp: Fix function specification.
10489         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10490         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10491         Reported by Eric Blake <eblake@redhat.com>.
10492
10493 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10494
10495         timespec: use cast and not conditional, as truncation isn't possible
10496         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10497         instead of a conditional.  Comment about the situation in more detail.
10498         This undoes most of the 2009-10-29 patch.
10499
10500 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10501
10502         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10503         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10504         * lib/unistr/u8-strchr.c: Likewise.
10505         * modules/unistr/u8-chr: Depend on memchr.
10506
10507         unistr/u*-strchr: add tests
10508         * modules/unistr/u8-strchr-tests: New file.
10509         * modules/unistr/u16-strchr-tests: New file.
10510         * modules/unistr/u32-strchr-tests: New file.
10511         * tests/unistr/test-strchr.h: New file.
10512         * tests/unistr/test-u8-strchr.c: New file.
10513         * tests/unistr/test-u16-strchr.c: New file.
10514         * tests/unistr/test-u32-strchr.c: New file.
10515
10516         unistr/u*-chr: test multibyte sequences more
10517         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10518         test vector.
10519         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10520         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10521         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10522
10523         unistr/u*-chr: test multibyte sequences
10524         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10525
10526         unistr/u*-chr: prepare for multibyte tests
10527         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10528         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10529         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10530         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10531         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10532         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10533
10534 2010-07-18  Bruno Haible  <bruno@clisp.org>
10535
10536         unistr/u8-strchr: Optimize non-ASCII argument case.
10537         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10538         because the first byte often matches anyway.
10539         Reported by Pádraig Brady <P@draigbrady.com>.
10540
10541 2010-07-15  Karl Berry  <karl@gnu.org>
10542
10543         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10544
10545 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10546
10547         getcwd: on Solaris, work better if ancestors are inaccessible
10548         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10549         buffer and size, try again with a large buffer.  This works better
10550         on Solaris, since its getcwd succeeds even if the path to the root
10551         is inaccessible, and this is helpful in common cases such as .zfs
10552         hidden directories.  Problem reported by J Chapman Flack in
10553         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10554         Use system getcwd if it's declared, not merely if it's partly
10555         working; use the partly-working test only to avoid needless effort
10556         if the system getcwd fails.
10557         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10558         comment that was already obsolete and is now even more obsolete.
10559         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10560         now might call strdup.
10561
10562 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10563
10564         pthread: Add enough so that coreutils/src/sort.c compiles.
10565         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10566         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10567         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10568         Include <sys/types.h>, in case it defines pthread_t.
10569         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10570         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10571         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10572         (pthread_rwlockattr_t, pthread_spinlock_t):
10573         New typedefs, if HAVE_PTHREAD_T is not defined.
10574         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10575         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10576         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10577         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10578         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10579         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10580         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10581         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10582         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10583         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10584         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10585         New macros.
10586         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10587         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10588         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10589         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10590         (pthread_spin_unlock): New dummy functions.
10591         (pthread_create): Return EAGAIN; don't set errno.
10592         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10593         require AC_C_INLINE.
10594         * modules/pthread (Depends-on): Add sched, time.
10595         (pthread.h): Use AM_V_GEN.
10596
10597 2010-07-13  Bruno Haible  <bruno@clisp.org>
10598
10599         striconveh: Don't malloc memory if the result buffer is sufficient.
10600         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10601         buffer if its size is sufficient.
10602         Reported by Ludovic Courtès <ludo@gnu.org>.
10603
10604 2010-07-13  Bruno Haible  <bruno@clisp.org>
10605
10606         strtod: Add safety check.
10607         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10608
10609 2010-07-12  Bruno Haible  <bruno@clisp.org>
10610
10611         Unify tests that set gl_cv_func_ldexpl_no_libm.
10612         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10613         gl_FUNC_LDEXPL.
10614         (gl_FUNC_LDEXPL): Invoke it.
10615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10616
10617 2010-07-12  Bruno Haible  <bruno@clisp.org>
10618
10619         Unify tests that set gl_cv_func_ldexp_no_libm.
10620         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10621         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10622         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10623         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10624         * modules/strtod (Files): Add m4/ldexp.m4.
10625
10626 2010-07-12  Bruno Haible  <bruno@clisp.org>
10627
10628         Unify tests that set gl_cv_func_frexpl_no_libm.
10629         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10630         gl_FUNC_FREXPL_NO_LIBM.
10631         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10632         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10633
10634 2010-07-12  Bruno Haible  <bruno@clisp.org>
10635
10636         Unify tests that set gl_cv_func_frexp_no_libm.
10637         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10638         gl_FUNC_FREXP_NO_LIBM.
10639         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10640         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10641
10642 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10643
10644         memcoll: clarify sizes versus lengths, document better, and tweak perf
10645         * lib/memcoll.c (strcoll_loop, memcoll0):
10646         Improve quality of descriptive comments.  Name variables
10647         consistently as to whether they are lengths (which do not include
10648         terminating null) versus sizes (which do).
10649         * lib/xmemcoll.c (xmemcoll0): Likewise.
10650         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10651         returned when s1size == 0; this is easier to compile and saves
10652         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10653
10654 2010-07-12  Bruno Haible  <bruno@clisp.org>
10655
10656         Tests for module '_Exit'.
10657         * modules/_Exit-tests: New file.
10658         * tests/test-_Exit.sh: New file.
10659         * tests/test-_Exit.c: New file.
10660
10661         New module '_Exit'.
10662         * lib/stdlib.in.h (__attribute__): New macro.
10663         (_Exit): New declaration.
10664         * lib/_Exit.c: New file.
10665         * m4/_Exit.m4: New file.
10666         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10667         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10668         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10669         * modules/_Exit: New file.
10670         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10671         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10672
10673 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10674
10675         strtod: make it more-accurate typically, and don't require libm
10676         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10677         Include limits.h.  Don't include string.h.
10678         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10679         (locale_isspace): New function, so that no casts are needed to
10680         check whether *s is a space.
10681         (ldexp): Provide an unused dummy if not available.
10682         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10683         (strtod): Use them.  This implementation prefers to use the
10684         underlying strtod if available, falling back on our own code
10685         only to fix known bugs.  This is more likely to produce an
10686         accurate result.  Also, it avoids the use of libm functions.
10687         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10688         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10689         was absent, but it caused a test failure with coreutils.
10690         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10691         with libm.
10692         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10693         * modules/strtod-tests (Makefile.am): Likewise.
10694
10695 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10696             Bruno Haible  <bruno@clisp.org>
10697
10698         unistr/u8-strchr: Optimize ASCII argument case.
10699         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10700
10701 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10702
10703         (x)memcoll: minor tweaks
10704         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10705         is after the type that it qualifies.
10706         (memcoll0): Likewise.
10707         * lib/memcoll.h (memcoll0): Likewise.
10708         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10709         * lib/xmemcoll.h (xmemcoll0): Likewise.
10710         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10711         differs from memcoll in that the NUL byte is part of the argument.
10712         Omit the abort-checks, as performance is a real issue here.  Plus,
10713         the checks were wrong anyway (an off-by-one error).  Omit local
10714         variable 'diff', as it's a bit clearer that way.
10715         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10716         no longer needed.
10717
10718 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10719
10720         (x)memcoll: speedup when input is known to be NUL delimited
10721         * lib/memcoll.c: Include stdlib.
10722         (memcoll0) New function.
10723         (strcoll_loop) New function, refactored for use in both memcoll
10724         and memcoll0.
10725         * lib/memcoll.h: Add prototype for memcoll0.
10726         * lib/xmemcoll.c: (xmemcoll0) New function.
10727         (collate_error) New function, refactored for use in both xmemcoll
10728         and xmemcoll0.
10729         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10730         * m4/memcoll.m4: add inline invocation.
10731
10732 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10733
10734         * build-aux/bootstrap: Remove any local translations
10735         from the translation project synchronization directory,
10736         so that local only translations are not distributed.
10737
10738 2010-07-04  Bruno Haible  <bruno@clisp.org>
10739
10740         fsusage: Clarify which code applies to which platforms.
10741         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10742         platform.
10743         * lib/fsusage.c (get_fs_usage): Likewise.
10744
10745 2010-07-04  Bruno Haible  <bruno@clisp.org>
10746
10747         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10748         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10749         Reported by Martin Lambers <marlam@marlam.de>.
10750
10751 2010-07-04  Jim Meyering  <meyering@redhat.com>
10752
10753         hash: once again explicitly disallow insertion of NULL
10754         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10755         inserting a NULL pointer cannot work with these functions.
10756         Add a comment with details.
10757         This reverts part of the 2010-07-01 commit, 5bef1a35
10758         "hash: extend module to deal with non-pointer keys".
10759
10760 2010-07-01  Bruno Haible  <bruno@clisp.org>
10761
10762         stdbool: Update doc.
10763         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10764         Info from Christian Weisgerber <naddy@mips.inka.de>.
10765
10766 2010-07-01  Jim Meyering  <meyering@redhat.com>
10767
10768         hash: extend module to deal with non-pointer keys
10769         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10770         but that allows insertion of non-pointer entries.
10771         Do not disallow an ENTRY value of NULL.
10772         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10773         * lib/hash.h (hash_insert0): Declare.
10774
10775 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10776
10777         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10778         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10779         not present (i.e. with autoconf 2.59 and when using gettextize, not
10780         gnulib), require AC_GNU_SOURCE instead.
10781
10782 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10783
10784         idpriv-drop: Fix tests.
10785         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10786         not to the test-idpriv-droptemp program.
10787
10788 2010-06-29  Bruno Haible  <bruno@clisp.org>
10789
10790         string: Fix syntax error with g++ 2.96.
10791         * lib/string.in.h (__pure__): Remove definition.
10792         (_GL_ATTRIBUTE_PURE): New macro.
10793         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10794         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10795         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10796
10797 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10798
10799         unitypes: Fix bug introduced on 2010-05-18.
10800         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10801
10802 2010-06-22  Eric Blake  <eblake@redhat.com>
10803
10804         memmem: slight optimization
10805         * lib/str-two-way.h (critical_factorization): Update comments.
10806         Reduce work during factorization phase.
10807         Reported by Carlos Bueno <carlos@bueno.org>.
10808
10809 2010-06-21  Bruno Haible  <bruno@clisp.org>
10810
10811         Fix HAVE_CALLOC_POSIX misnomer.
10812         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10813         !HAVE_CALLOC_POSIX.
10814         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10815         HAVE_CALLOC_POSIX.
10816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10817         instead of HAVE_CALLOC_POSIX.
10818         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10819         HAVE_CALLOC_POSIX.
10820
10821         Use modern idiom for calloc() replacement.
10822         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10823         AC_FUNC_CALLOC.
10824         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10825         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10826         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10827         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10828         (gl_REPLACE_CALLOC): New macro.
10829
10830 2010-06-21  Bruno Haible  <bruno@clisp.org>
10831
10832         Fix HAVE_REALLOC_POSIX misnomer.
10833         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10834         !HAVE_REALLOC_POSIX.
10835         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10836         HAVE_REALLOC_POSIX.
10837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10838         instead of HAVE_REALLOC_POSIX.
10839         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10840         HAVE_REALLOC_POSIX.
10841
10842         Use modern idiom for realloc() replacement.
10843         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10844         AC_FUNC_REALLOC.
10845         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10846         Autoconf's AC_FUNC_REALLOC.
10847         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10848         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10849         (gl_REPLACE_REALLOC): New macro.
10850         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10851
10852 2010-06-21  Bruno Haible  <bruno@clisp.org>
10853
10854         Fix HAVE_MALLOC_POSIX misnomer.
10855         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10856         !HAVE_MALLOC_POSIX.
10857         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10858         HAVE_MALLOC_POSIX.
10859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10860         instead of HAVE_MALLOC_POSIX.
10861         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10862         HAVE_MALLOC_POSIX.
10863
10864         Use modern idiom for malloc() replacement.
10865         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10866         AC_FUNC_MALLOC.
10867         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10868         Autoconf's AC_FUNC_MALLOC.
10869         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10870         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10871         (gl_REPLACE_MALLOC): New macro.
10872         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10873
10874 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10875
10876         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10877         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10878         This macro takes 3 arguments, not 4.
10879
10880 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10881
10882         ipv6: fix detection under mingw
10883         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10884         in6_addr.
10885
10886 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10887
10888         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10889         that strtod() works when cross-compiling to a glibc version known
10890         to work.
10891
10892 2010-06-15  Bruno Haible  <bruno@clisp.org>
10893
10894         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10895
10896 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10897
10898         select: Correct timeout.
10899         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10900
10901 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10902
10903         git-version-gen: init shell var to avoid env var influence
10904         * build-aux/git-version-gen (v): Init shell var to empty.
10905
10906 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10907
10908         priv-set: Don't assume that priv.h exists merely because getppriv does.
10909         See Jan Andersen's bug report about AIX 5L in
10910         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10911         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10912         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10913         * lib/priv-set.h: Likewise.
10914         * tests/test-priv-set.c: Likewise.
10915
10916 2010-06-13  Bruno Haible  <bruno@clisp.org>
10917
10918         relocatable: Make it easier to test whether to install wrappers.
10919         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10920         RELOCATABLE_VIA_WRAPPER.
10921
10922 2010-06-13  Bruno Haible  <bruno@clisp.org>
10923
10924         gnulib-tool: Display specified modules and dependencies differently.
10925         * gnulib-tool (func_show_module_list): New function.
10926         (func_import, func_create_testdir): Invoke it.
10927         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10928
10929 2010-06-13  Bruno Haible  <bruno@clisp.org>
10930
10931         gnulib-tool: Align code of func_import and func_create_testdir.
10932         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10933         specified_modules.
10934
10935 2010-06-12  Jim Meyering  <meyering@redhat.com>
10936
10937         test-inttostr: avoid spurious failure on Solaris 9
10938         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10939         to accept "%ju".  Reported by Bruno Haible.
10940
10941 2010-06-11  Jim Meyering  <meyering@redhat.com>
10942
10943         test-sys_socket: mark variables as used more readably
10944         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10945         as "used" explicitly via (void) statement casts.  This is more
10946         readable than using them in an artificial return expression.
10947         Suggestion from Bruno Haible.
10948
10949 2010-06-11  Bruno Haible  <bruno@clisp.org>
10950
10951         Avoid some more warnings from "gcc -Wwrite-strings".
10952         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10953         to 'const char *'.
10954         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10955         * tests/test-c-strcasestr.c (main): Likewise.
10956         * tests/test-mbscasestr1.c (main): Likewise.
10957         * tests/test-mbscasestr2.c (main): Likewise.
10958         * tests/test-memmem.c (main): Likewise.
10959         * tests/test-strstr.c (main): Likewise.
10960         * tests/test-strcasestr.c (main): Likewise.
10961
10962 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10963
10964         init.sh: change framework_failure_ to fail with status 99, not 1
10965         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10966         automake's parallel-tests rule that this is an unexpected failure,
10967         even if the test is listed in XFAIL_TESTS.
10968
10969 2010-06-11  Jim Meyering  <meyering@redhat.com>
10970
10971         test-inttostr: avoid warnings about 4-6KB literal strings
10972         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10973         Include "macros.h", for its definition of ASSERT.
10974         (CK): s/assert/ASSERT/
10975         * modules/inttostr-tests (Files): Add macros.h.
10976
10977         init.sh: don't use $ME_ or skip_ before they are defined
10978         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10979         their first uses.  Also hoist their companions: warn_, fail_,
10980         framework_failure_, $stderr_fileno.  Prompted by a patch from
10981         Stefano Lattarini.
10982
10983         test-sys_socket: avoid set-but-not-used warnings from gcc
10984         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10985         avoid warning about set-but-not-used variables.
10986
10987         test-xvasprintf: avoid 'const' discard warnings
10988         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10989         "const" when assigning from literal strings.
10990         (test_xasprintf): Add "void" in function argument list to placate
10991         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10992
10993         tests: avoid compilation warnings in argmatch and exclude tests...
10994         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10995         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10996         Since it always exits, declare with the "noreturn" attribute.
10997         * tests/test-argmatch.c: Likewise.
10998
10999         tests: avoid 'const' discard warnings in mbsstr tests
11000         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11001         * tests/test-mbsstr2.c (main): Likewise.
11002
11003         test-verify: avoid warning from gcc's -Wmissing-declarations
11004         * tests/test-verify.c (function): Declare to be static.
11005
11006         test-inttostr.c: include <string.h> for use of strcmp
11007         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11008
11009         test-linkat: avoid failed assertion on "other" architectures
11010         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11011         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11012         sparc: https://bugs.launchpad.net/bugs/591968
11013
11014 2010-06-11  Jim Meyering  <meyering@redhat.com>
11015
11016         printf.m4: avoid autoconf's "Expanded Before Required" warning
11017         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11018         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11019         autoconf warning.
11020
11021 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11022
11023         Replacement header templates are now named with ".in", not "_".
11024         * doc/gnulib-intro.texi: Correct.
11025
11026 2010-06-10  Jim Meyering  <meyering@redhat.com>
11027
11028         inttostr-tests: depend on snprintf, not snprintf-posix
11029         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11030         snprintf-posix, to avoid this aclocal failure:
11031           missing file gnulib-tests/vasnprintf.c
11032           configure.ac:45: error: expected source file, required through \
11033           AC_LIBSOURCES, not found
11034
11035 2010-06-10  Jim Meyering  <meyering@redhat.com>
11036
11037         inttostr: add a new function, inttostr, and tests
11038         The namesake function was not available.  The existence of the
11039         template file, inttostr.c makes its addition nontrivial.
11040         * lib/anytostr.c: Rename from inttostr.c.
11041         (anytostr): Rename from inttostr.
11042         * lib/inttostr.c: New file.
11043         * modules/inttostr (Files): Add anytostr.c.
11044         (Makefile.am): Set lib_SOURCES instead of ...
11045         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11046         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11047         * lib/offtostr.c: Likewise.
11048         * lib/uinttostr.c: Likewise.
11049         * lib/umaxtostr.c: Likewise.
11050         * modules/inttostr-tests: New file.
11051         * tests/test-inttostr.c: New file.  Test these functions.
11052
11053 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11054             Bruno Haible  <bruno@clisp.org>
11055
11056         Add "Extending Gnulib" chapter to manual.
11057         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11058         chapter.
11059         (Extending Gnulib): New chapter.
11060         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11061         chapter.
11062
11063 2010-06-09  Bruno Haible  <bruno@clisp.org>
11064
11065         Avoid relocwrapper link errors due to gnulib replacement functions.
11066         * lib/areadlink.c: Use the system's malloc, realloc functions.
11067         (areadlink): Set errno to ENOMEM explicitly.
11068         * modules/areadlink (Depends-on): Remove malloc-posix.
11069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11070
11071 2010-06-09  Bruno Haible  <bruno@clisp.org>
11072
11073         Avoid relocwrapper link errors due to gnulib replacement functions.
11074         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11075         * lib/malloca.c: Likewise.
11076         * lib/relocatable.c: Likewise.
11077         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11078         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11079         * lib/setenv.c: Use the system's malloc, realloc functions.
11080         * lib/strerror.c: Use the system's sprintf function.
11081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11082
11083 2010-06-04  Bruno Haible  <bruno@clisp.org>
11084
11085         Prefer documented low-level autoconf macro names.
11086         * m4/lib-link.m4: Use m4_translit instead of translit.
11087         * m4/environ.m4: Likewise.
11088         * m4/mathfunc.m4: Likewise.
11089         * m4/onceonly.m4: Likewise.
11090         * m4/stdint.m4: Likewise.
11091         Suggested by Eric Blake.
11092
11093 2010-06-04  Martin Lambers  <marlam@marlam.de>
11094             Bruno Haible  <bruno@clisp.org>
11095
11096         havelib: Allow library names with '+' characters.
11097         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11098         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11099
11100 2010-06-09  Bruno Haible  <bruno@clisp.org>
11101
11102         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11103         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11104         realloc failed.
11105
11106 2010-06-08  Peter Simons  <simons@cryp.to>
11107
11108         maint.mk: make the news-check rule more configurable
11109         * top/maint.mk (news-check-lines-spec) New variable.
11110         (news-check): Use "sed -n 1,10p" in place of "head".
11111
11112 2010-06-07  Jim Meyering  <meyering@redhat.com>
11113
11114         do-release-commit-and-tag: fix typo in --help
11115         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11116
11117         regex: avoid new dead-code warning with gcc-4.6.0
11118         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11119         if-block containing a while-loop.  It's been unused for at least
11120         5 years.
11121
11122 2010-06-05  Bruno Haible  <bruno@clisp.org>
11123
11124         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11125         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11126
11127 2010-06-04  Bruno Haible  <bruno@clisp.org>
11128
11129         Update to GNU gettext 0.18.1.
11130         * modules/gettext (configure.ac): Require gettext infrastructure from
11131         version 0.18.1.
11132
11133 2010-06-03  Bruno Haible  <bruno@clisp.org>
11134
11135         Don't use AC_LIBOBJ with file names in subdirectories.
11136         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11137         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11138         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11139         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11140         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11141         gl_LIBUNISTRING_LIBSOURCE.
11142         (Makefile.am): Augment lib_SOURCES here, conditionally.
11143         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11144
11145 2010-06-03  Bruno Haible  <bruno@clisp.org>
11146
11147         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11148         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11149         expansion does not end with a newline.
11150         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11151         unnecessary newline.
11152
11153 2010-06-03  Bruno Haible  <bruno@clisp.org>
11154
11155         Reduce dependencies.
11156         * tests/test-quotearg.h: New file, extracted from
11157         tests/test-quotearg.c.
11158         * tests/test-quotearg-simple.c: New file, extracted from
11159         tests/test-quotearg.c.
11160         * tests/test-quotearg.c: Don't include <ctype.h>.
11161         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11162         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11163         use_quote_double_quotes, use_quotearg_colon): Moved to
11164         tests/test-quotearg.h.
11165         (results_g, flag_results, custom_quotes, custom_results): Moved
11166         to tests/test-quotearg-simple.c.
11167         (main): Moved the part that does not depend on gettext to
11168         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11169         performed.
11170         * modules/quotearg-simple: New file.
11171         * modules/quotearg-simple-tests: New file.
11172         * modules/quotearg (Depends-on): Add quotearg-simple.
11173         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11174         (Files): Add tests/test-quotearg.h.
11175         Reported by Paolo Bonzini.
11176
11177 2010-06-03  Bruno Haible  <bruno@clisp.org>
11178
11179         Reduce dependencies.
11180         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11181
11182 2010-06-03  Bruno Haible  <bruno@clisp.org>
11183
11184         time: Undefine more broken macros.
11185         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11186         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11187         Reported by Eric Blake.
11188
11189 2010-06-03  Bruno Haible  <bruno@clisp.org>
11190
11191         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11192         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11193         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11194         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11195         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11196         Reported by Ludovic Courtès <ludo@gnu.org>.
11197
11198 2010-06-02  Eric Blake  <eblake@redhat.com>
11199
11200         time: work with mingw + pthreads-win32 library
11201         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11202         if timespec is defined only in pthread.h.
11203         * modules/time (Makefile.am): Substitute it.
11204         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11205         <pthread.h>, when needed.
11206         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11207         from the library.
11208
11209 2010-05-31  Bruno Haible  <bruno@clisp.org>
11210
11211         Avoid expanding two macros in the wrong order.
11212         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11213         gl_LIBUNISTRING if it is defined.
11214         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11215         autoconf >= 2.64.
11216         Reported by Ludovic Courtès <ludo@gnu.org>.
11217
11218 2010-05-27  Jim Meyering  <meyering@redhat.com>
11219
11220         maint.mk: also prohibit "#undef" of always-defined symbols
11221         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11222         Allow more than one space before the symbol name.
11223         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11224         the regexp uses alternation.
11225
11226 2010-05-26  Eric Blake  <eblake@redhat.com>
11227
11228         maint.mk: avoid echo -e
11229         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11230         Convert all uses of echo -* to printf.
11231         Reported by Matthias Bolte.
11232
11233 2010-05-25  Bruno Haible  <bruno@clisp.org>
11234
11235         Update to GNU gettext 0.18, part 2.
11236         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11237         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11238
11239 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11240
11241         Add missing include in test-pwrite.c.
11242         * tests/test-pwrite.c: Include string.h, for strcmp.
11243
11244 2010-05-24  Bruno Haible  <bruno@clisp.org>
11245
11246         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11247
11248 2010-05-24  Bruno Haible  <bruno@clisp.org>
11249
11250         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11251         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11252         iconveh_error argument.
11253         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11254         U_STRCONV_TO_LOCALE.
11255         * lib/unistr/u16-strcoll.c: Likewise.
11256         * lib/unistr/u32-strcoll.c: Likewise.
11257         * modules/unistr/u8-strcoll (Depends-on): Add
11258         uniconv/u8-strconv-to-enc, localcharset. Remove
11259         uniconv/u8-strconv-to-locale.
11260         (configure.ac): Bump version number.
11261         * modules/unistr/u16-strcoll (Depends-on): Add
11262         uniconv/u16-strconv-to-enc, localcharset. Remove
11263         uniconv/u16-strconv-to-locale.
11264         (configure.ac): Bump version number.
11265         * modules/unistr/u32-strcoll (Depends-on): Add
11266         uniconv/u32-strconv-to-enc, localcharset. Remove
11267         uniconv/u32-strconv-to-locale.
11268         (configure.ac): Bump version number.
11269
11270 2010-05-24  Bruno Haible  <bruno@clisp.org>
11271
11272         Avoid a test failure on NetBSD 5.0.
11273         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11274         an iconv() bug.
11275
11276 2010-05-24  Bruno Haible  <bruno@clisp.org>
11277
11278         Adjust #include directive style.
11279         * modules/regex (Includes): Recommend to write <regex.h>.
11280
11281 2010-05-24  Bruno Haible  <bruno@clisp.org>
11282
11283         regex: Don't require alloca.
11284         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11285         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11286         only inside if (0).
11287
11288 2010-05-23  Jim Meyering  <meyering@redhat.com>
11289
11290         test-renameat.c: include <sys/stat.h>
11291         * tests/test-renameat.c: Include <sys/stat.h>; required for
11292         definition of S_IS* macros.
11293
11294 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11295
11296         Update maintainer documentation for 'relocatable-prog' module.
11297         * doc/relocatable-maint.texi: Update.
11298         Comments by Bruno Haible.
11299
11300 2010-05-23  Bruno Haible  <bruno@clisp.org>
11301
11302         git-merge-changelog: Enable --split-merged-entry by default.
11303         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11304         (usage): Don't mention this option any more.
11305         Reported by Ralf Wildenhues.
11306
11307 2010-05-23  Jim Meyering  <meyering@redhat.com>
11308
11309         test-pwrite: do not leave behind a test file named "out"
11310         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11311         The trivial-looking use of init.sh is really necessary.
11312         It ensures that the temporary file, "out", is created in
11313         a temporary directory, and removed upon termination.
11314         * tests/test-pwrite.sh: Re-add file.
11315         * modules/pwrite-tests: Reference it.
11316
11317 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11318
11319         Fix output redirection buglet in init.sh.
11320         * tests/init.sh: Fix redirection of stderr.
11321
11322 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11323
11324         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11325
11326 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11327
11328         * modules/valgrind-tests: New file.
11329         * m4/valgrind-tests.m4: New file.
11330         * doc/valgrind-tests.texi: New file.
11331         * doc/gnulib.texi (Running self-tests under valgrind): New
11332         section.
11333
11334 2010-05-19  Bruno Haible  <bruno@clisp.org>
11335
11336         Clean up dead code in recent commit.
11337         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11338         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11339         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11340         Suggested by Paolo Bonzini.
11341
11342 2010-05-19  Bruno Haible  <bruno@clisp.org>
11343
11344         Avoid valgrind error reports from libunistring.
11345         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11346         * modules/libunistring (Files): Add it.
11347         * modules/libunistring-optional (Files): Likewise.
11348
11349 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11350             Bruno Haible  <bruno@clisp.org>
11351
11352         New module 'libunistring-optional'.
11353         * modules/libunistring-optional: New file.
11354         * m4/libunistring-base.m4: New file.
11355         * m4/libunistring-optional.m4: New file.
11356         * lib/unicase.in.h: Renamed from lib/unicase.h.
11357         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11358         * lib/unictype.in.h: Renamed from lib/unictype.h.
11359         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11360         * lib/uniname.in.h: Renamed from lib/uniname.h.
11361         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11362         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11363         * lib/unistr.in.h: Renamed from lib/unistr.h.
11364         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11365         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11366         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11367         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11368         gl_LIBUNISTRING. If the library was found, determine the installed
11369         version and set LIBUNISTRING_VERSION.
11370         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11371         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11372         handle a configuration option --with-included-libunistring.
11373         * modules/libunistring (Files): Add m4/absolute-header.m4.
11374         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11375         Add m4/libunistring-base.m4.
11376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11377         (Makefile.am): Build unicase.h from unicase.in.h.
11378         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11379         Add m4/libunistring-base.m4.
11380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11381         (Makefile.am): Build uniconv.h from uniconv.in.h.
11382         * modules/unictype/base (Files): Use unictype.in.h instead of
11383         unictype.h. Add m4/libunistring-base.m4.
11384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11385         (Makefile.am): Build unictype.h from unictype.in.h.
11386         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11387         Add m4/libunistring-base.m4.
11388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11389         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11390         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11391         Add m4/libunistring-base.m4.
11392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11393         (Makefile.am): Build uniname.h from uniname.in.h.
11394         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11395         Add m4/libunistring-base.m4.
11396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11397         (Makefile.am): Build uninorm.h from uninorm.in.h.
11398         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11399         unistdio.h. Add m4/libunistring-base.m4.
11400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11401         (Makefile.am): Build unistdio.h from unistdio.in.h.
11402         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11403         Add m4/libunistring-base.m4.
11404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11405         (Makefile.am): Build unistr.h from unistr.in.h.
11406         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11407         Add m4/libunistring-base.m4.
11408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11409         (Makefile.am): Build unitypes.h from unitypes.in.h.
11410         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11411         Add m4/libunistring-base.m4.
11412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11413         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11414         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11415         uniwidth.h. Add m4/libunistring-base.m4.
11416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11417         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11418         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11419         instead of augmenting lib_SOURCES.
11420         * modules/unicase/empty-suffix-context: Likewise.
11421         * modules/unicase/locale-language: Likewise.
11422         * modules/unicase/tolower: Likewise.
11423         * modules/unicase/totitle: Likewise.
11424         * modules/unicase/toupper: Likewise.
11425         * modules/unicase/u8-casecmp: Likewise.
11426         * modules/unicase/u8-casecoll: Likewise.
11427         * modules/unicase/u8-casefold: Likewise.
11428         * modules/unicase/u8-casexfrm: Likewise.
11429         * modules/unicase/u8-ct-casefold: Likewise.
11430         * modules/unicase/u8-ct-tolower: Likewise.
11431         * modules/unicase/u8-ct-totitle: Likewise.
11432         * modules/unicase/u8-ct-toupper: Likewise.
11433         * modules/unicase/u8-is-cased: Likewise.
11434         * modules/unicase/u8-is-casefolded: Likewise.
11435         * modules/unicase/u8-is-lowercase: Likewise.
11436         * modules/unicase/u8-is-titlecase: Likewise.
11437         * modules/unicase/u8-is-uppercase: Likewise.
11438         * modules/unicase/u8-prefix-context: Likewise.
11439         * modules/unicase/u8-suffix-context: Likewise.
11440         * modules/unicase/u8-tolower: Likewise.
11441         * modules/unicase/u8-totitle: Likewise.
11442         * modules/unicase/u8-toupper: Likewise.
11443         * modules/unicase/u16-casecmp: Likewise.
11444         * modules/unicase/u16-casecoll: Likewise.
11445         * modules/unicase/u16-casefold: Likewise.
11446         * modules/unicase/u16-casexfrm: Likewise.
11447         * modules/unicase/u16-ct-casefold: Likewise.
11448         * modules/unicase/u16-ct-tolower: Likewise.
11449         * modules/unicase/u16-ct-totitle: Likewise.
11450         * modules/unicase/u16-ct-toupper: Likewise.
11451         * modules/unicase/u16-is-cased: Likewise.
11452         * modules/unicase/u16-is-casefolded: Likewise.
11453         * modules/unicase/u16-is-lowercase: Likewise.
11454         * modules/unicase/u16-is-titlecase: Likewise.
11455         * modules/unicase/u16-is-uppercase: Likewise.
11456         * modules/unicase/u16-prefix-context: Likewise.
11457         * modules/unicase/u16-suffix-context: Likewise.
11458         * modules/unicase/u16-tolower: Likewise.
11459         * modules/unicase/u16-totitle: Likewise.
11460         * modules/unicase/u16-toupper: Likewise.
11461         * modules/unicase/u32-casecmp: Likewise.
11462         * modules/unicase/u32-casecoll: Likewise.
11463         * modules/unicase/u32-casefold: Likewise.
11464         * modules/unicase/u32-casexfrm: Likewise.
11465         * modules/unicase/u32-ct-casefold: Likewise.
11466         * modules/unicase/u32-ct-tolower: Likewise.
11467         * modules/unicase/u32-ct-totitle: Likewise.
11468         * modules/unicase/u32-ct-toupper: Likewise.
11469         * modules/unicase/u32-is-cased: Likewise.
11470         * modules/unicase/u32-is-casefolded: Likewise.
11471         * modules/unicase/u32-is-lowercase: Likewise.
11472         * modules/unicase/u32-is-titlecase: Likewise.
11473         * modules/unicase/u32-is-uppercase: Likewise.
11474         * modules/unicase/u32-prefix-context: Likewise.
11475         * modules/unicase/u32-suffix-context: Likewise.
11476         * modules/unicase/u32-tolower: Likewise.
11477         * modules/unicase/u32-totitle: Likewise.
11478         * modules/unicase/u32-toupper: Likewise.
11479         * modules/unicase/ulc-casecmp: Likewise.
11480         * modules/unicase/ulc-casecoll: Likewise.
11481         * modules/unicase/ulc-casexfrm: Likewise.
11482         * modules/uniconv/u8-conv-from-enc: Likewise.
11483         * modules/uniconv/u8-conv-to-enc: Likewise.
11484         * modules/uniconv/u8-strconv-from-enc: Likewise.
11485         * modules/uniconv/u8-strconv-from-locale: Likewise.
11486         * modules/uniconv/u8-strconv-to-enc: Likewise.
11487         * modules/uniconv/u8-strconv-to-locale: Likewise.
11488         * modules/uniconv/u16-conv-from-enc: Likewise.
11489         * modules/uniconv/u16-conv-to-enc: Likewise.
11490         * modules/uniconv/u16-strconv-from-enc: Likewise.
11491         * modules/uniconv/u16-strconv-from-locale: Likewise.
11492         * modules/uniconv/u16-strconv-to-enc: Likewise.
11493         * modules/uniconv/u16-strconv-to-locale: Likewise.
11494         * modules/uniconv/u32-conv-from-enc: Likewise.
11495         * modules/uniconv/u32-conv-to-enc: Likewise.
11496         * modules/uniconv/u32-strconv-from-enc: Likewise.
11497         * modules/uniconv/u32-strconv-from-locale: Likewise.
11498         * modules/uniconv/u32-strconv-to-enc: Likewise.
11499         * modules/uniconv/u32-strconv-to-locale: Likewise.
11500         * modules/unictype/bidicategory-byname: Likewise.
11501         * modules/unictype/bidicategory-name: Likewise.
11502         * modules/unictype/bidicategory-of: Likewise.
11503         * modules/unictype/bidicategory-test: Likewise.
11504         * modules/unictype/block-list: Likewise.
11505         * modules/unictype/block-test: Likewise.
11506         * modules/unictype/category-C: Likewise.
11507         * modules/unictype/category-Cc: Likewise.
11508         * modules/unictype/category-Cf: Likewise.
11509         * modules/unictype/category-Cn: Likewise.
11510         * modules/unictype/category-Co: Likewise.
11511         * modules/unictype/category-Cs: Likewise.
11512         * modules/unictype/category-L: Likewise.
11513         * modules/unictype/category-Ll: Likewise.
11514         * modules/unictype/category-Lm: Likewise.
11515         * modules/unictype/category-Lo: Likewise.
11516         * modules/unictype/category-Lt: Likewise.
11517         * modules/unictype/category-Lu: Likewise.
11518         * modules/unictype/category-M: Likewise.
11519         * modules/unictype/category-Mc: Likewise.
11520         * modules/unictype/category-Me: Likewise.
11521         * modules/unictype/category-Mn: Likewise.
11522         * modules/unictype/category-N: Likewise.
11523         * modules/unictype/category-Nd: Likewise.
11524         * modules/unictype/category-Nl: Likewise.
11525         * modules/unictype/category-No: Likewise.
11526         * modules/unictype/category-P: Likewise.
11527         * modules/unictype/category-Pc: Likewise.
11528         * modules/unictype/category-Pd: Likewise.
11529         * modules/unictype/category-Pe: Likewise.
11530         * modules/unictype/category-Pf: Likewise.
11531         * modules/unictype/category-Pi: Likewise.
11532         * modules/unictype/category-Po: Likewise.
11533         * modules/unictype/category-Ps: Likewise.
11534         * modules/unictype/category-S: Likewise.
11535         * modules/unictype/category-Sc: Likewise.
11536         * modules/unictype/category-Sk: Likewise.
11537         * modules/unictype/category-Sm: Likewise.
11538         * modules/unictype/category-So: Likewise.
11539         * modules/unictype/category-Z: Likewise.
11540         * modules/unictype/category-Zl: Likewise.
11541         * modules/unictype/category-Zp: Likewise.
11542         * modules/unictype/category-Zs: Likewise.
11543         * modules/unictype/category-and: Likewise.
11544         * modules/unictype/category-and-not: Likewise.
11545         * modules/unictype/category-byname: Likewise.
11546         * modules/unictype/category-name: Likewise.
11547         * modules/unictype/category-none: Likewise.
11548         * modules/unictype/category-of: Likewise.
11549         * modules/unictype/category-or: Likewise.
11550         * modules/unictype/category-test: Likewise.
11551         * modules/unictype/combining-class: Likewise.
11552         * modules/unictype/ctype-alnum: Likewise.
11553         * modules/unictype/ctype-alpha: Likewise.
11554         * modules/unictype/ctype-blank: Likewise.
11555         * modules/unictype/ctype-cntrl: Likewise.
11556         * modules/unictype/ctype-digit: Likewise.
11557         * modules/unictype/ctype-graph: Likewise.
11558         * modules/unictype/ctype-lower: Likewise.
11559         * modules/unictype/ctype-print: Likewise.
11560         * modules/unictype/ctype-punct: Likewise.
11561         * modules/unictype/ctype-space: Likewise.
11562         * modules/unictype/ctype-upper: Likewise.
11563         * modules/unictype/ctype-xdigit: Likewise.
11564         * modules/unictype/decimal-digit: Likewise.
11565         * modules/unictype/digit: Likewise.
11566         * modules/unictype/mirror: Likewise.
11567         * modules/unictype/numeric: Likewise.
11568         * modules/unictype/property-alphabetic: Likewise.
11569         * modules/unictype/property-ascii-hex-digit: Likewise.
11570         * modules/unictype/property-bidi-arabic-digit: Likewise.
11571         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11572         * modules/unictype/property-bidi-block-separator: Likewise.
11573         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11574         * modules/unictype/property-bidi-common-separator: Likewise.
11575         * modules/unictype/property-bidi-control: Likewise.
11576         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11577         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11578         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11579         * modules/unictype/property-bidi-european-digit: Likewise.
11580         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11581         * modules/unictype/property-bidi-left-to-right: Likewise.
11582         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11583         * modules/unictype/property-bidi-other-neutral: Likewise.
11584         * modules/unictype/property-bidi-pdf: Likewise.
11585         * modules/unictype/property-bidi-segment-separator: Likewise.
11586         * modules/unictype/property-bidi-whitespace: Likewise.
11587         * modules/unictype/property-byname: Likewise.
11588         * modules/unictype/property-combining: Likewise.
11589         * modules/unictype/property-composite: Likewise.
11590         * modules/unictype/property-currency-symbol: Likewise.
11591         * modules/unictype/property-dash: Likewise.
11592         * modules/unictype/property-decimal-digit: Likewise.
11593         * modules/unictype/property-default-ignorable-code-point: Likewise.
11594         * modules/unictype/property-deprecated: Likewise.
11595         * modules/unictype/property-diacritic: Likewise.
11596         * modules/unictype/property-extender: Likewise.
11597         * modules/unictype/property-format-control: Likewise.
11598         * modules/unictype/property-grapheme-base: Likewise.
11599         * modules/unictype/property-grapheme-extend: Likewise.
11600         * modules/unictype/property-grapheme-link: Likewise.
11601         * modules/unictype/property-hex-digit: Likewise.
11602         * modules/unictype/property-hyphen: Likewise.
11603         * modules/unictype/property-id-continue: Likewise.
11604         * modules/unictype/property-id-start: Likewise.
11605         * modules/unictype/property-ideographic: Likewise.
11606         * modules/unictype/property-ids-binary-operator: Likewise.
11607         * modules/unictype/property-ids-trinary-operator: Likewise.
11608         * modules/unictype/property-ignorable-control: Likewise.
11609         * modules/unictype/property-iso-control: Likewise.
11610         * modules/unictype/property-join-control: Likewise.
11611         * modules/unictype/property-left-of-pair: Likewise.
11612         * modules/unictype/property-line-separator: Likewise.
11613         * modules/unictype/property-logical-order-exception: Likewise.
11614         * modules/unictype/property-lowercase: Likewise.
11615         * modules/unictype/property-math: Likewise.
11616         * modules/unictype/property-non-break: Likewise.
11617         * modules/unictype/property-not-a-character: Likewise.
11618         * modules/unictype/property-numeric: Likewise.
11619         * modules/unictype/property-other-alphabetic: Likewise.
11620         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11621         * modules/unictype/property-other-grapheme-extend: Likewise.
11622         * modules/unictype/property-other-id-continue: Likewise.
11623         * modules/unictype/property-other-id-start: Likewise.
11624         * modules/unictype/property-other-lowercase: Likewise.
11625         * modules/unictype/property-other-math: Likewise.
11626         * modules/unictype/property-other-uppercase: Likewise.
11627         * modules/unictype/property-paired-punctuation: Likewise.
11628         * modules/unictype/property-paragraph-separator: Likewise.
11629         * modules/unictype/property-pattern-syntax: Likewise.
11630         * modules/unictype/property-pattern-white-space: Likewise.
11631         * modules/unictype/property-private-use: Likewise.
11632         * modules/unictype/property-punctuation: Likewise.
11633         * modules/unictype/property-quotation-mark: Likewise.
11634         * modules/unictype/property-radical: Likewise.
11635         * modules/unictype/property-sentence-terminal: Likewise.
11636         * modules/unictype/property-soft-dotted: Likewise.
11637         * modules/unictype/property-space: Likewise.
11638         * modules/unictype/property-terminal-punctuation: Likewise.
11639         * modules/unictype/property-test: Likewise.
11640         * modules/unictype/property-titlecase: Likewise.
11641         * modules/unictype/property-unassigned-code-value: Likewise.
11642         * modules/unictype/property-unified-ideograph: Likewise.
11643         * modules/unictype/property-uppercase: Likewise.
11644         * modules/unictype/property-variation-selector: Likewise.
11645         * modules/unictype/property-white-space: Likewise.
11646         * modules/unictype/property-xid-continue: Likewise.
11647         * modules/unictype/property-xid-start: Likewise.
11648         * modules/unictype/property-zero-width: Likewise.
11649         * modules/unictype/scripts: Likewise.
11650         * modules/unictype/syntax-c-ident: Likewise.
11651         * modules/unictype/syntax-c-whitespace: Likewise.
11652         * modules/unictype/syntax-java-ident: Likewise.
11653         * modules/unictype/syntax-java-whitespace: Likewise.
11654         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11655         * modules/unilbrk/u8-width-linebreaks: Likewise.
11656         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11657         * modules/unilbrk/u16-width-linebreaks: Likewise.
11658         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11659         * modules/unilbrk/u32-width-linebreaks: Likewise.
11660         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11661         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11662         * modules/uniname/uniname: Likewise.
11663         * modules/uninorm/canonical-decomposition: Likewise.
11664         * modules/uninorm/composition: Likewise.
11665         * modules/uninorm/decomposing-form: Likewise.
11666         * modules/uninorm/decomposition: Likewise.
11667         * modules/uninorm/filter: Likewise.
11668         * modules/uninorm/nfc: Likewise.
11669         * modules/uninorm/nfd: Likewise.
11670         * modules/uninorm/nfkc: Likewise.
11671         * modules/uninorm/nfkd: Likewise.
11672         * modules/uninorm/u8-normalize: Likewise.
11673         * modules/uninorm/u8-normcmp: Likewise.
11674         * modules/uninorm/u8-normcoll: Likewise.
11675         * modules/uninorm/u8-normxfrm: Likewise.
11676         * modules/uninorm/u16-normalize: Likewise.
11677         * modules/uninorm/u16-normcmp: Likewise.
11678         * modules/uninorm/u16-normcoll: Likewise.
11679         * modules/uninorm/u16-normxfrm: Likewise.
11680         * modules/uninorm/u32-normalize: Likewise.
11681         * modules/uninorm/u32-normcmp: Likewise.
11682         * modules/uninorm/u32-normcoll: Likewise.
11683         * modules/uninorm/u32-normxfrm: Likewise.
11684         * modules/unistdio/u8-asnprintf: Likewise.
11685         * modules/unistdio/u8-asprintf: Likewise.
11686         * modules/unistdio/u8-snprintf: Likewise.
11687         * modules/unistdio/u8-sprintf: Likewise.
11688         * modules/unistdio/u8-u8-asnprintf: Likewise.
11689         * modules/unistdio/u8-u8-asprintf: Likewise.
11690         * modules/unistdio/u8-u8-snprintf: Likewise.
11691         * modules/unistdio/u8-u8-sprintf: Likewise.
11692         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11693         * modules/unistdio/u8-u8-vasprintf: Likewise.
11694         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11695         * modules/unistdio/u8-u8-vsprintf: Likewise.
11696         * modules/unistdio/u8-vasnprintf: Likewise.
11697         * modules/unistdio/u8-vasprintf: Likewise.
11698         * modules/unistdio/u8-vsnprintf: Likewise.
11699         * modules/unistdio/u8-vsprintf: Likewise.
11700         * modules/unistdio/u16-asnprintf: Likewise.
11701         * modules/unistdio/u16-asprintf: Likewise.
11702         * modules/unistdio/u16-snprintf: Likewise.
11703         * modules/unistdio/u16-sprintf: Likewise.
11704         * modules/unistdio/u16-u16-asnprintf: Likewise.
11705         * modules/unistdio/u16-u16-asprintf: Likewise.
11706         * modules/unistdio/u16-u16-snprintf: Likewise.
11707         * modules/unistdio/u16-u16-sprintf: Likewise.
11708         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11709         * modules/unistdio/u16-u16-vasprintf: Likewise.
11710         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11711         * modules/unistdio/u16-u16-vsprintf: Likewise.
11712         * modules/unistdio/u16-vasnprintf: Likewise.
11713         * modules/unistdio/u16-vasprintf: Likewise.
11714         * modules/unistdio/u16-vsnprintf: Likewise.
11715         * modules/unistdio/u16-vsprintf: Likewise.
11716         * modules/unistdio/u32-asnprintf: Likewise.
11717         * modules/unistdio/u32-asprintf: Likewise.
11718         * modules/unistdio/u32-snprintf: Likewise.
11719         * modules/unistdio/u32-sprintf: Likewise.
11720         * modules/unistdio/u32-u32-asnprintf: Likewise.
11721         * modules/unistdio/u32-u32-asprintf: Likewise.
11722         * modules/unistdio/u32-u32-snprintf: Likewise.
11723         * modules/unistdio/u32-u32-sprintf: Likewise.
11724         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11725         * modules/unistdio/u32-u32-vasprintf: Likewise.
11726         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11727         * modules/unistdio/u32-u32-vsprintf: Likewise.
11728         * modules/unistdio/u32-vasnprintf: Likewise.
11729         * modules/unistdio/u32-vasprintf: Likewise.
11730         * modules/unistdio/u32-vsnprintf: Likewise.
11731         * modules/unistdio/u32-vsprintf: Likewise.
11732         * modules/unistdio/ulc-asnprintf: Likewise.
11733         * modules/unistdio/ulc-asprintf: Likewise.
11734         * modules/unistdio/ulc-fprintf: Likewise.
11735         * modules/unistdio/ulc-snprintf: Likewise.
11736         * modules/unistdio/ulc-sprintf: Likewise.
11737         * modules/unistdio/ulc-vasnprintf: Likewise.
11738         * modules/unistdio/ulc-vasprintf: Likewise.
11739         * modules/unistdio/ulc-vfprintf: Likewise.
11740         * modules/unistdio/ulc-vsnprintf: Likewise.
11741         * modules/unistdio/ulc-vsprintf: Likewise.
11742         * modules/unistr/u8-check: Likewise.
11743         * modules/unistr/u8-chr: Likewise.
11744         * modules/unistr/u8-cmp: Likewise.
11745         * modules/unistr/u8-cmp2: Likewise.
11746         * modules/unistr/u8-cpy: Likewise.
11747         * modules/unistr/u8-cpy-alloc: Likewise.
11748         * modules/unistr/u8-endswith: Likewise.
11749         * modules/unistr/u8-mblen: Likewise.
11750         * modules/unistr/u8-mbsnlen: Likewise.
11751         * modules/unistr/u8-mbtouc: Likewise.
11752         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11753         * modules/unistr/u8-mbtoucr: Likewise.
11754         * modules/unistr/u8-move: Likewise.
11755         * modules/unistr/u8-next: Likewise.
11756         * modules/unistr/u8-prev: Likewise.
11757         * modules/unistr/u8-set: Likewise.
11758         * modules/unistr/u8-startswith: Likewise.
11759         * modules/unistr/u8-stpcpy: Likewise.
11760         * modules/unistr/u8-stpncpy: Likewise.
11761         * modules/unistr/u8-strcat: Likewise.
11762         * modules/unistr/u8-strchr: Likewise.
11763         * modules/unistr/u8-strcmp: Likewise.
11764         * modules/unistr/u8-strcoll: Likewise.
11765         * modules/unistr/u8-strcpy: Likewise.
11766         * modules/unistr/u8-strcspn: Likewise.
11767         * modules/unistr/u8-strdup: Likewise.
11768         * modules/unistr/u8-strlen: Likewise.
11769         * modules/unistr/u8-strmblen: Likewise.
11770         * modules/unistr/u8-strmbtouc: Likewise.
11771         * modules/unistr/u8-strncat: Likewise.
11772         * modules/unistr/u8-strncmp: Likewise.
11773         * modules/unistr/u8-strncpy: Likewise.
11774         * modules/unistr/u8-strnlen: Likewise.
11775         * modules/unistr/u8-strpbrk: Likewise.
11776         * modules/unistr/u8-strrchr: Likewise.
11777         * modules/unistr/u8-strspn: Likewise.
11778         * modules/unistr/u8-strstr: Likewise.
11779         * modules/unistr/u8-strtok: Likewise.
11780         * modules/unistr/u8-to-u16: Likewise.
11781         * modules/unistr/u8-to-u32: Likewise.
11782         * modules/unistr/u8-uctomb: Likewise.
11783         * modules/unistr/u16-check: Likewise.
11784         * modules/unistr/u16-chr: Likewise.
11785         * modules/unistr/u16-cmp: Likewise.
11786         * modules/unistr/u16-cmp2: Likewise.
11787         * modules/unistr/u16-cpy: Likewise.
11788         * modules/unistr/u16-cpy-alloc: Likewise.
11789         * modules/unistr/u16-endswith: Likewise.
11790         * modules/unistr/u16-mblen: Likewise.
11791         * modules/unistr/u16-mbsnlen: Likewise.
11792         * modules/unistr/u16-mbtouc: Likewise.
11793         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11794         * modules/unistr/u16-mbtoucr: Likewise.
11795         * modules/unistr/u16-move: Likewise.
11796         * modules/unistr/u16-next: Likewise.
11797         * modules/unistr/u16-prev: Likewise.
11798         * modules/unistr/u16-set: Likewise.
11799         * modules/unistr/u16-startswith: Likewise.
11800         * modules/unistr/u16-stpcpy: Likewise.
11801         * modules/unistr/u16-stpncpy: Likewise.
11802         * modules/unistr/u16-strcat: Likewise.
11803         * modules/unistr/u16-strchr: Likewise.
11804         * modules/unistr/u16-strcmp: Likewise.
11805         * modules/unistr/u16-strcoll: Likewise.
11806         * modules/unistr/u16-strcpy: Likewise.
11807         * modules/unistr/u16-strcspn: Likewise.
11808         * modules/unistr/u16-strdup: Likewise.
11809         * modules/unistr/u16-strlen: Likewise.
11810         * modules/unistr/u16-strmblen: Likewise.
11811         * modules/unistr/u16-strmbtouc: Likewise.
11812         * modules/unistr/u16-strncat: Likewise.
11813         * modules/unistr/u16-strncmp: Likewise.
11814         * modules/unistr/u16-strncpy: Likewise.
11815         * modules/unistr/u16-strnlen: Likewise.
11816         * modules/unistr/u16-strpbrk: Likewise.
11817         * modules/unistr/u16-strrchr: Likewise.
11818         * modules/unistr/u16-strspn: Likewise.
11819         * modules/unistr/u16-strstr: Likewise.
11820         * modules/unistr/u16-strtok: Likewise.
11821         * modules/unistr/u16-to-u32: Likewise.
11822         * modules/unistr/u16-to-u8: Likewise.
11823         * modules/unistr/u16-uctomb: Likewise.
11824         * modules/unistr/u32-check: Likewise.
11825         * modules/unistr/u32-chr: Likewise.
11826         * modules/unistr/u32-cmp: Likewise.
11827         * modules/unistr/u32-cmp2: Likewise.
11828         * modules/unistr/u32-cpy: Likewise.
11829         * modules/unistr/u32-cpy-alloc: Likewise.
11830         * modules/unistr/u32-endswith: Likewise.
11831         * modules/unistr/u32-mblen: Likewise.
11832         * modules/unistr/u32-mbsnlen: Likewise.
11833         * modules/unistr/u32-mbtouc: Likewise.
11834         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11835         * modules/unistr/u32-mbtoucr: Likewise.
11836         * modules/unistr/u32-move: Likewise.
11837         * modules/unistr/u32-next: Likewise.
11838         * modules/unistr/u32-prev: Likewise.
11839         * modules/unistr/u32-set: Likewise.
11840         * modules/unistr/u32-startswith: Likewise.
11841         * modules/unistr/u32-stpcpy: Likewise.
11842         * modules/unistr/u32-stpncpy: Likewise.
11843         * modules/unistr/u32-strcat: Likewise.
11844         * modules/unistr/u32-strchr: Likewise.
11845         * modules/unistr/u32-strcmp: Likewise.
11846         * modules/unistr/u32-strcoll: Likewise.
11847         * modules/unistr/u32-strcpy: Likewise.
11848         * modules/unistr/u32-strcspn: Likewise.
11849         * modules/unistr/u32-strdup: Likewise.
11850         * modules/unistr/u32-strlen: Likewise.
11851         * modules/unistr/u32-strmblen: Likewise.
11852         * modules/unistr/u32-strmbtouc: Likewise.
11853         * modules/unistr/u32-strncat: Likewise.
11854         * modules/unistr/u32-strncmp: Likewise.
11855         * modules/unistr/u32-strncpy: Likewise.
11856         * modules/unistr/u32-strnlen: Likewise.
11857         * modules/unistr/u32-strpbrk: Likewise.
11858         * modules/unistr/u32-strrchr: Likewise.
11859         * modules/unistr/u32-strspn: Likewise.
11860         * modules/unistr/u32-strstr: Likewise.
11861         * modules/unistr/u32-strtok: Likewise.
11862         * modules/unistr/u32-to-u16: Likewise.
11863         * modules/unistr/u32-to-u8: Likewise.
11864         * modules/unistr/u32-uctomb: Likewise.
11865         * modules/uniwbrk/u8-wordbreaks: Likewise.
11866         * modules/uniwbrk/u16-wordbreaks: Likewise.
11867         * modules/uniwbrk/u32-wordbreaks: Likewise.
11868         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11869         * modules/uniwbrk/wordbreak-property: Likewise.
11870         * modules/uniwidth/u8-strwidth: Likewise.
11871         * modules/uniwidth/u8-width: Likewise.
11872         * modules/uniwidth/u16-strwidth: Likewise.
11873         * modules/uniwidth/u16-width: Likewise.
11874         * modules/uniwidth/u32-strwidth: Likewise.
11875         * modules/uniwidth/u32-width: Likewise.
11876         * modules/uniwidth/width: Likewise.
11877         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11878         with $(LIBUNISTRING).
11879         * modules/unicase/ignorable-tests: Likewise.
11880         * modules/unicase/locale-language-tests: Likewise.
11881         * modules/unicase/tolower-tests: Likewise.
11882         * modules/unicase/totitle-tests: Likewise.
11883         * modules/unicase/toupper-tests: Likewise.
11884         * modules/unicase/u8-casecmp-tests: Likewise.
11885         * modules/unicase/u8-casecoll-tests: Likewise.
11886         * modules/unicase/u8-casefold-tests: Likewise.
11887         * modules/unicase/u8-is-cased-tests: Likewise.
11888         * modules/unicase/u8-is-casefolded-tests: Likewise.
11889         * modules/unicase/u8-is-lowercase-tests: Likewise.
11890         * modules/unicase/u8-is-titlecase-tests: Likewise.
11891         * modules/unicase/u8-is-uppercase-tests: Likewise.
11892         * modules/unicase/u8-tolower-tests: Likewise.
11893         * modules/unicase/u8-totitle-tests: Likewise.
11894         * modules/unicase/u8-toupper-tests: Likewise.
11895         * modules/unicase/u16-casecmp-tests: Likewise.
11896         * modules/unicase/u16-casecoll-tests: Likewise.
11897         * modules/unicase/u16-casefold-tests: Likewise.
11898         * modules/unicase/u16-is-cased-tests: Likewise.
11899         * modules/unicase/u16-is-casefolded-tests: Likewise.
11900         * modules/unicase/u16-is-lowercase-tests: Likewise.
11901         * modules/unicase/u16-is-titlecase-tests: Likewise.
11902         * modules/unicase/u16-is-uppercase-tests: Likewise.
11903         * modules/unicase/u16-tolower-tests: Likewise.
11904         * modules/unicase/u16-totitle-tests: Likewise.
11905         * modules/unicase/u16-toupper-tests: Likewise.
11906         * modules/unicase/u32-casecmp-tests: Likewise.
11907         * modules/unicase/u32-casecoll-tests: Likewise.
11908         * modules/unicase/u32-casefold-tests: Likewise.
11909         * modules/unicase/u32-is-cased-tests: Likewise.
11910         * modules/unicase/u32-is-casefolded-tests: Likewise.
11911         * modules/unicase/u32-is-lowercase-tests: Likewise.
11912         * modules/unicase/u32-is-titlecase-tests: Likewise.
11913         * modules/unicase/u32-is-uppercase-tests: Likewise.
11914         * modules/unicase/u32-tolower-tests: Likewise.
11915         * modules/unicase/u32-totitle-tests: Likewise.
11916         * modules/unicase/u32-toupper-tests: Likewise.
11917         * modules/unicase/ulc-casecmp-tests: Likewise.
11918         * modules/unicase/ulc-casecoll-tests: Likewise.
11919         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11920         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11921         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11922         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11923         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11924         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11925         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11926         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11927         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11928         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11929         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11930         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11931         * modules/unictype/bidicategory-byname-tests: Likewise.
11932         * modules/unictype/bidicategory-name-tests: Likewise.
11933         * modules/unictype/bidicategory-of-tests: Likewise.
11934         * modules/unictype/bidicategory-test-tests: Likewise.
11935         * modules/unictype/block-list-tests: Likewise.
11936         * modules/unictype/block-of-tests: Likewise.
11937         * modules/unictype/block-test-tests: Likewise.
11938         * modules/unictype/category-C-tests: Likewise.
11939         * modules/unictype/category-Cc-tests: Likewise.
11940         * modules/unictype/category-Cf-tests: Likewise.
11941         * modules/unictype/category-Cn-tests: Likewise.
11942         * modules/unictype/category-Co-tests: Likewise.
11943         * modules/unictype/category-Cs-tests: Likewise.
11944         * modules/unictype/category-L-tests: Likewise.
11945         * modules/unictype/category-Ll-tests: Likewise.
11946         * modules/unictype/category-Lm-tests: Likewise.
11947         * modules/unictype/category-Lo-tests: Likewise.
11948         * modules/unictype/category-Lt-tests: Likewise.
11949         * modules/unictype/category-Lu-tests: Likewise.
11950         * modules/unictype/category-M-tests: Likewise.
11951         * modules/unictype/category-Mc-tests: Likewise.
11952         * modules/unictype/category-Me-tests: Likewise.
11953         * modules/unictype/category-Mn-tests: Likewise.
11954         * modules/unictype/category-N-tests: Likewise.
11955         * modules/unictype/category-Nd-tests: Likewise.
11956         * modules/unictype/category-Nl-tests: Likewise.
11957         * modules/unictype/category-No-tests: Likewise.
11958         * modules/unictype/category-P-tests: Likewise.
11959         * modules/unictype/category-Pc-tests: Likewise.
11960         * modules/unictype/category-Pd-tests: Likewise.
11961         * modules/unictype/category-Pe-tests: Likewise.
11962         * modules/unictype/category-Pf-tests: Likewise.
11963         * modules/unictype/category-Pi-tests: Likewise.
11964         * modules/unictype/category-Po-tests: Likewise.
11965         * modules/unictype/category-Ps-tests: Likewise.
11966         * modules/unictype/category-S-tests: Likewise.
11967         * modules/unictype/category-Sc-tests: Likewise.
11968         * modules/unictype/category-Sk-tests: Likewise.
11969         * modules/unictype/category-Sm-tests: Likewise.
11970         * modules/unictype/category-So-tests: Likewise.
11971         * modules/unictype/category-Z-tests: Likewise.
11972         * modules/unictype/category-Zl-tests: Likewise.
11973         * modules/unictype/category-Zp-tests: Likewise.
11974         * modules/unictype/category-Zs-tests: Likewise.
11975         * modules/unictype/category-and-not-tests: Likewise.
11976         * modules/unictype/category-and-tests: Likewise.
11977         * modules/unictype/category-byname-tests: Likewise.
11978         * modules/unictype/category-name-tests: Likewise.
11979         * modules/unictype/category-none-tests: Likewise.
11980         * modules/unictype/category-of-tests: Likewise.
11981         * modules/unictype/category-or-tests: Likewise.
11982         * modules/unictype/category-test-withtable-tests: Likewise.
11983         * modules/unictype/combining-class-tests: Likewise.
11984         * modules/unictype/ctype-alnum-tests: Likewise.
11985         * modules/unictype/ctype-alpha-tests: Likewise.
11986         * modules/unictype/ctype-blank-tests: Likewise.
11987         * modules/unictype/ctype-cntrl-tests: Likewise.
11988         * modules/unictype/ctype-digit-tests: Likewise.
11989         * modules/unictype/ctype-graph-tests: Likewise.
11990         * modules/unictype/ctype-lower-tests: Likewise.
11991         * modules/unictype/ctype-print-tests: Likewise.
11992         * modules/unictype/ctype-punct-tests: Likewise.
11993         * modules/unictype/ctype-space-tests: Likewise.
11994         * modules/unictype/ctype-upper-tests: Likewise.
11995         * modules/unictype/ctype-xdigit-tests: Likewise.
11996         * modules/unictype/decimal-digit-tests: Likewise.
11997         * modules/unictype/digit-tests: Likewise.
11998         * modules/unictype/mirror-tests: Likewise.
11999         * modules/unictype/numeric-tests: Likewise.
12000         * modules/unictype/property-alphabetic-tests: Likewise.
12001         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12002         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12003         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12004         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12005         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12006         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12007         * modules/unictype/property-bidi-control-tests: Likewise.
12008         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12009         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12010         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12011         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12012         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12013         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12014         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12015         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12016         * modules/unictype/property-bidi-pdf-tests: Likewise.
12017         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12018         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12019         * modules/unictype/property-byname-tests: Likewise.
12020         * modules/unictype/property-combining-tests: Likewise.
12021         * modules/unictype/property-composite-tests: Likewise.
12022         * modules/unictype/property-currency-symbol-tests: Likewise.
12023         * modules/unictype/property-dash-tests: Likewise.
12024         * modules/unictype/property-decimal-digit-tests: Likewise.
12025         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12026         * modules/unictype/property-deprecated-tests: Likewise.
12027         * modules/unictype/property-diacritic-tests: Likewise.
12028         * modules/unictype/property-extender-tests: Likewise.
12029         * modules/unictype/property-format-control-tests: Likewise.
12030         * modules/unictype/property-grapheme-base-tests: Likewise.
12031         * modules/unictype/property-grapheme-extend-tests: Likewise.
12032         * modules/unictype/property-grapheme-link-tests: Likewise.
12033         * modules/unictype/property-hex-digit-tests: Likewise.
12034         * modules/unictype/property-hyphen-tests: Likewise.
12035         * modules/unictype/property-id-continue-tests: Likewise.
12036         * modules/unictype/property-id-start-tests: Likewise.
12037         * modules/unictype/property-ideographic-tests: Likewise.
12038         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12039         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12040         * modules/unictype/property-ignorable-control-tests: Likewise.
12041         * modules/unictype/property-iso-control-tests: Likewise.
12042         * modules/unictype/property-join-control-tests: Likewise.
12043         * modules/unictype/property-left-of-pair-tests: Likewise.
12044         * modules/unictype/property-line-separator-tests: Likewise.
12045         * modules/unictype/property-logical-order-exception-tests: Likewise.
12046         * modules/unictype/property-lowercase-tests: Likewise.
12047         * modules/unictype/property-math-tests: Likewise.
12048         * modules/unictype/property-non-break-tests: Likewise.
12049         * modules/unictype/property-not-a-character-tests: Likewise.
12050         * modules/unictype/property-numeric-tests: Likewise.
12051         * modules/unictype/property-other-alphabetic-tests: Likewise.
12052         * modules/unictype/property-other-default-ignorable-code-point-tests:
12053         Likewise.
12054         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12055         * modules/unictype/property-other-id-continue-tests: Likewise.
12056         * modules/unictype/property-other-id-start-tests: Likewise.
12057         * modules/unictype/property-other-lowercase-tests: Likewise.
12058         * modules/unictype/property-other-math-tests: Likewise.
12059         * modules/unictype/property-other-uppercase-tests: Likewise.
12060         * modules/unictype/property-paired-punctuation-tests: Likewise.
12061         * modules/unictype/property-paragraph-separator-tests: Likewise.
12062         * modules/unictype/property-pattern-syntax-tests: Likewise.
12063         * modules/unictype/property-pattern-white-space-tests: Likewise.
12064         * modules/unictype/property-private-use-tests: Likewise.
12065         * modules/unictype/property-punctuation-tests: Likewise.
12066         * modules/unictype/property-quotation-mark-tests: Likewise.
12067         * modules/unictype/property-radical-tests: Likewise.
12068         * modules/unictype/property-sentence-terminal-tests: Likewise.
12069         * modules/unictype/property-soft-dotted-tests: Likewise.
12070         * modules/unictype/property-space-tests: Likewise.
12071         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12072         * modules/unictype/property-test-tests: Likewise.
12073         * modules/unictype/property-titlecase-tests: Likewise.
12074         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12075         * modules/unictype/property-unified-ideograph-tests: Likewise.
12076         * modules/unictype/property-uppercase-tests: Likewise.
12077         * modules/unictype/property-variation-selector-tests: Likewise.
12078         * modules/unictype/property-white-space-tests: Likewise.
12079         * modules/unictype/property-xid-continue-tests: Likewise.
12080         * modules/unictype/property-xid-start-tests: Likewise.
12081         * modules/unictype/property-zero-width-tests: Likewise.
12082         * modules/unictype/scripts-tests: Likewise.
12083         * modules/unictype/syntax-c-ident-tests: Likewise.
12084         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12085         * modules/unictype/syntax-java-ident-tests: Likewise.
12086         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12087         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12088         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12089         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12090         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12091         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12092         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12093         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12094         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12095         * modules/uniname/uniname-tests: Likewise.
12096         * modules/uninorm/canonical-decomposition-tests: Likewise.
12097         * modules/uninorm/compat-decomposition-tests: Likewise.
12098         * modules/uninorm/composition-tests: Likewise.
12099         * modules/uninorm/decomposing-form-tests: Likewise.
12100         * modules/uninorm/decomposition-tests: Likewise.
12101         * modules/uninorm/filter-tests: Likewise.
12102         * modules/uninorm/nfc-tests: Likewise.
12103         * modules/uninorm/nfd-tests: Likewise.
12104         * modules/uninorm/nfkc-tests: Likewise.
12105         * modules/uninorm/nfkd-tests: Likewise.
12106         * modules/uninorm/u8-normcmp-tests: Likewise.
12107         * modules/uninorm/u8-normcoll-tests: Likewise.
12108         * modules/uninorm/u16-normcmp-tests: Likewise.
12109         * modules/uninorm/u16-normcoll-tests: Likewise.
12110         * modules/uninorm/u32-normcmp-tests: Likewise.
12111         * modules/uninorm/u32-normcoll-tests: Likewise.
12112         * modules/unistdio/u8-asnprintf-tests: Likewise.
12113         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12114         * modules/unistdio/u8-vasprintf-tests: Likewise.
12115         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12116         * modules/unistdio/u8-vsprintf-tests: Likewise.
12117         * modules/unistdio/u16-asnprintf-tests: Likewise.
12118         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12119         * modules/unistdio/u16-vasprintf-tests: Likewise.
12120         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12121         * modules/unistdio/u16-vsprintf-tests: Likewise.
12122         * modules/unistdio/u32-asnprintf-tests: Likewise.
12123         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12124         * modules/unistdio/u32-vasprintf-tests: Likewise.
12125         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12126         * modules/unistdio/u32-vsprintf-tests: Likewise.
12127         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12128         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12129         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12130         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12131         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12132         * modules/unistr/u8-check-tests: Likewise.
12133         * modules/unistr/u8-chr-tests: Likewise.
12134         * modules/unistr/u8-cmp-tests: Likewise.
12135         * modules/unistr/u8-cmp2-tests: Likewise.
12136         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12137         * modules/unistr/u8-cpy-tests: Likewise.
12138         * modules/unistr/u8-mblen-tests: Likewise.
12139         * modules/unistr/u8-mbsnlen-tests: Likewise.
12140         * modules/unistr/u8-mbtouc-tests: Likewise.
12141         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12142         * modules/unistr/u8-mbtoucr-tests: Likewise.
12143         * modules/unistr/u8-move-tests: Likewise.
12144         * modules/unistr/u8-next-tests: Likewise.
12145         * modules/unistr/u8-prev-tests: Likewise.
12146         * modules/unistr/u8-set-tests: Likewise.
12147         * modules/unistr/u8-stpcpy-tests: Likewise.
12148         * modules/unistr/u8-stpncpy-tests: Likewise.
12149         * modules/unistr/u8-strcat-tests: Likewise.
12150         * modules/unistr/u8-strcmp-tests: Likewise.
12151         * modules/unistr/u8-strcoll-tests: Likewise.
12152         * modules/unistr/u8-strcpy-tests: Likewise.
12153         * modules/unistr/u8-strdup-tests: Likewise.
12154         * modules/unistr/u8-strlen-tests: Likewise.
12155         * modules/unistr/u8-strmblen-tests: Likewise.
12156         * modules/unistr/u8-strmbtouc-tests: Likewise.
12157         * modules/unistr/u8-strncat-tests: Likewise.
12158         * modules/unistr/u8-strncmp-tests: Likewise.
12159         * modules/unistr/u8-strncpy-tests: Likewise.
12160         * modules/unistr/u8-strnlen-tests: Likewise.
12161         * modules/unistr/u8-to-u16-tests: Likewise.
12162         * modules/unistr/u8-to-u32-tests: Likewise.
12163         * modules/unistr/u8-uctomb-tests: Likewise.
12164         * modules/unistr/u16-check-tests: Likewise.
12165         * modules/unistr/u16-chr-tests: Likewise.
12166         * modules/unistr/u16-cmp-tests: Likewise.
12167         * modules/unistr/u16-cmp2-tests: Likewise.
12168         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12169         * modules/unistr/u16-cpy-tests: Likewise.
12170         * modules/unistr/u16-mblen-tests: Likewise.
12171         * modules/unistr/u16-mbsnlen-tests: Likewise.
12172         * modules/unistr/u16-mbtouc-tests: Likewise.
12173         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12174         * modules/unistr/u16-mbtoucr-tests: Likewise.
12175         * modules/unistr/u16-move-tests: Likewise.
12176         * modules/unistr/u16-next-tests: Likewise.
12177         * modules/unistr/u16-prev-tests: Likewise.
12178         * modules/unistr/u16-set-tests: Likewise.
12179         * modules/unistr/u16-stpcpy-tests: Likewise.
12180         * modules/unistr/u16-stpncpy-tests: Likewise.
12181         * modules/unistr/u16-strcat-tests: Likewise.
12182         * modules/unistr/u16-strcmp-tests: Likewise.
12183         * modules/unistr/u16-strcoll-tests: Likewise.
12184         * modules/unistr/u16-strcpy-tests: Likewise.
12185         * modules/unistr/u16-strdup-tests: Likewise.
12186         * modules/unistr/u16-strlen-tests: Likewise.
12187         * modules/unistr/u16-strmblen-tests: Likewise.
12188         * modules/unistr/u16-strmbtouc-tests: Likewise.
12189         * modules/unistr/u16-strncat-tests: Likewise.
12190         * modules/unistr/u16-strncmp-tests: Likewise.
12191         * modules/unistr/u16-strncpy-tests: Likewise.
12192         * modules/unistr/u16-strnlen-tests: Likewise.
12193         * modules/unistr/u16-to-u32-tests: Likewise.
12194         * modules/unistr/u16-to-u8-tests: Likewise.
12195         * modules/unistr/u16-uctomb-tests: Likewise.
12196         * modules/unistr/u32-check-tests: Likewise.
12197         * modules/unistr/u32-chr-tests: Likewise.
12198         * modules/unistr/u32-cmp-tests: Likewise.
12199         * modules/unistr/u32-cmp2-tests: Likewise.
12200         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12201         * modules/unistr/u32-cpy-tests: Likewise.
12202         * modules/unistr/u32-mblen-tests: Likewise.
12203         * modules/unistr/u32-mbsnlen-tests: Likewise.
12204         * modules/unistr/u32-mbtouc-tests: Likewise.
12205         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12206         * modules/unistr/u32-mbtoucr-tests: Likewise.
12207         * modules/unistr/u32-move-tests: Likewise.
12208         * modules/unistr/u32-next-tests: Likewise.
12209         * modules/unistr/u32-prev-tests: Likewise.
12210         * modules/unistr/u32-set-tests: Likewise.
12211         * modules/unistr/u32-stpcpy-tests: Likewise.
12212         * modules/unistr/u32-stpncpy-tests: Likewise.
12213         * modules/unistr/u32-strcat-tests: Likewise.
12214         * modules/unistr/u32-strcmp-tests: Likewise.
12215         * modules/unistr/u32-strcoll-tests: Likewise.
12216         * modules/unistr/u32-strcpy-tests: Likewise.
12217         * modules/unistr/u32-strdup-tests: Likewise.
12218         * modules/unistr/u32-strlen-tests: Likewise.
12219         * modules/unistr/u32-strmblen-tests: Likewise.
12220         * modules/unistr/u32-strmbtouc-tests: Likewise.
12221         * modules/unistr/u32-strncat-tests: Likewise.
12222         * modules/unistr/u32-strncmp-tests: Likewise.
12223         * modules/unistr/u32-strncpy-tests: Likewise.
12224         * modules/unistr/u32-strnlen-tests: Likewise.
12225         * modules/unistr/u32-to-u16-tests: Likewise.
12226         * modules/unistr/u32-to-u8-tests: Likewise.
12227         * modules/unistr/u32-uctomb-tests: Likewise.
12228         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12229         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12230         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12231         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12232         * modules/uniwidth/u8-strwidth-tests: Likewise.
12233         * modules/uniwidth/u8-width-tests: Likewise.
12234         * modules/uniwidth/u16-strwidth-tests: Likewise.
12235         * modules/uniwidth/u16-width-tests: Likewise.
12236         * modules/uniwidth/u32-strwidth-tests: Likewise.
12237         * modules/uniwidth/u32-width-tests: Likewise.
12238         * modules/uniwidth/width-tests: Likewise.
12239
12240 2010-05-18  Richard Jones  <rjones@redhat.com>
12241
12242         doc: users.txt: list hivex
12243         * users.txt: Add hivex.
12244
12245 2010-05-18  Richard Jones  <rjones@redhat.com>
12246
12247         doc: users.txt: list febootstrap
12248         * users.txt: Add febootstrap.
12249
12250 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12251
12252         bootstrap: fix an error when gnulib is not used as a git submodule
12253         * build-aux/bootstrap (gnulib_path): If its length is zero then
12254         assign "gnulib" to it.
12255         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12256
12257 2010-05-16  Bruno Haible  <bruno@clisp.org>
12258
12259         Avoid autoconf warnings about AM_ICONV.
12260         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12261         2.64.
12262
12263 2010-05-16  Bruno Haible  <bruno@clisp.org>
12264
12265         absolute-header: Make the macro usable in more situations.
12266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12267         from gl_ABSOLUTE_HEADER.
12268         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12269
12270 2010-05-16  James Youngman  <jay@gnu.org>
12271
12272         doc: update users.txt
12273         * users.txt: Add CSSC.
12274
12275 2010-05-16  Jim Meyering  <meyering@redhat.com>
12276
12277         init.sh: fix an error in the previous change; add more comments
12278         * tests/init.sh: Compare exit code in loop against 9, not 2.
12279         Patch by Bruno Haible.
12280         Make the two tests more similar by adding an empty "then" clause.
12281         Add comments.
12282
12283         init.sh: avoid unnecessary shell re-exec
12284         * tests/init.sh: Improve the re-exec-required check to first test the
12285         current shell.  If it passes the test, do not search for a shell that
12286         does pass, and do not re-exec.  This test is particularly contorted to
12287         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12288         of $(...) evokes a syntax error and causes immediate shell exit with
12289         status 2.  Bruno Haible reported that the re-exec made it impossible
12290         to single-step through any init.sh-using script.
12291
12292 2010-05-16  Bruno Haible  <bruno@clisp.org>
12293
12294         Fix collision between gnulib's and libintl's printf replacements.
12295         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12296         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12297         (printf): When using GNU C, map the __printf__ function to rpl_printf
12298         via __asm__. When not using GNU C, define rpl_printf instead of
12299         __printf__.
12300         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12301         commit.
12302         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12303         commit.
12304         * m4/asm-underscore.m4: New file.
12305         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12306         * modules/stdio (Files): Add m4/asm-underscore.m4.
12307         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12308         Reported by Ben Pfaff.
12309
12310 2010-05-16  Bruno Haible  <bruno@clisp.org>
12311
12312         verify: Avoid skipping the test on openSUSE 11.0.
12313         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12314
12315 2010-05-13  Bruno Haible  <bruno@clisp.org>
12316
12317         Avoid useless warnings from G++.
12318         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12319         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12320         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12321
12322 2010-05-11  Jim Meyering  <meyering@redhat.com>
12323
12324         maint.mk: tweak preceding change
12325         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12326         regexps tighter by anchoring at EOL, and make the new group "shy"
12327         for slightly decreased overhead.
12328
12329 2010-05-11  Eric Blake  <eblake@redhat.com>
12330
12331         maint.mk: gnulib doesn't guarantee NSIG
12332         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12333
12334 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12335
12336         test-pwrite.c: Remove unused variable declaration.
12337         * tests/test-pwrite.c (main): Remove read_buf declaration.
12338
12339         Remove useless test-pwrite.sh file.
12340         * tests/test-pwrite.sh: Delete file.
12341         * modules/pwrite-tests: Remove references.
12342         Reported by Bruno Haible.
12343
12344 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12345
12346         init.sh: fix a typo
12347         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12348
12349 2010-05-10  Jim Meyering  <meyering@redhat.com>
12350
12351         maint.mk: avoid using a temporary file in the always-defined-macros check
12352         * top/maint.mk (.re-defmac): Remove rule.
12353         (gl_trap_): Remove definition.
12354         (sc_prohibit_always-defined_macros): Rewrite not to create and
12355         depend on a temporary file.  Instead, depend on GNU grep's ability
12356         to read a list of regular expressions from stdin when given "-f -".
12357
12358 2010-05-09  Bruno Haible  <bruno@clisp.org>
12359
12360         Update to GNU gettext 0.18, part 1.
12361         * m4/gettext.m4: Update to GNU gettext 0.18.
12362         * m4/intl.m4: Likewise.
12363         * m4/po.m4: Likewise.
12364         * modules/gettext (Files): Add m4/fcntl-o.m4.
12365         (configure.ac): Require gettext infrastructure from version 0.18.
12366
12367 2010-05-09  Jim Meyering  <meyering@redhat.com>
12368
12369         init.sh: enable MALLOC_PERTURB_
12370         * tests/init.sh: Enable glibc's malloc-perturbing option.
12371
12372         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12373         With my recent change in init.sh from the two-line form:
12374             -#   : ${srcdir=.}
12375             -#   . "$srcdir/init.sh"; path_prepend_ .
12376             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12377         I noticed that using the one-line form would cause this test
12378         to fail with a false-positive, or to stop working altogether,
12379         depending on whether help-version changed or all the tests did.
12380         * top/maint.mk (_hv_regex): Remove this definition.
12381         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12382         (_hv_regex_strong): Use a stronger regex to check for conformance.
12383         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12384         Give a separate diagnostic for lack of conforming use.
12385
12386         maint.mk: prohibit definition of symbols defined by gnulib
12387         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12388         definition of symbols defined by gnulib.
12389
12390 2010-05-09  Bruno Haible  <bruno@clisp.org>
12391
12392         acl: Avoid test failure on Cygwin-hosted mingw.
12393         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12394
12395 2010-05-09  Bruno Haible  <bruno@clisp.org>
12396
12397         error: Use system's fcntl function.
12398         * lib/error.c (fcntl): Undefine.
12399
12400 2010-05-09  Jim Meyering  <meyering@redhat.com>
12401
12402         verify: adjust formatting to be more consistent
12403         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12404         argument-list '('s, and after one comma.
12405
12406 2010-05-09  Bruno Haible  <bruno@clisp.org>
12407
12408         error: More reliable output on mingw.
12409         * lib/error.c: Include <windows.h>.
12410         (is_open): New function.
12411         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12412         defined.
12413
12414 2010-05-09  Bruno Haible  <bruno@clisp.org>
12415
12416         vasnprintf: Fix syntax errors in libintl build on mingw.
12417         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12418         pad_ourselves and prec_ourselves after use.
12419
12420 2010-05-08  Bruno Haible  <bruno@clisp.org>
12421
12422         * lib/config.charset: Update comments for Cygwin 1.7.
12423         * lib/localcharset.c: Likewise.
12424
12425 2010-05-07  Jim Meyering  <meyering@redhat.com>
12426
12427         init.sh: improve comments
12428         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12429         . "${srcdir=.}/init.sh"; path_prepend_ .
12430         Add a note about path_prepend_ and the alternative of using
12431         TESTS_ENVIRONMENT.
12432
12433 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12434
12435         exclude: Unescape hashed patterns in wildcard mode.
12436         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12437         to the hash list.
12438         * tests/test-exclude8.sh: New test case.
12439         * modules/exclude-tests: Add new test.
12440
12441 2010-05-05  Eric Blake  <eblake@redhat.com>
12442
12443         verify: automate tests
12444         * modules/verify-tests: New module.
12445         * tests/test-verify.sh: New file.
12446         * tests/test-verify.c: Guard each negative test with a unique id.
12447         Also avoid warning about unused left hand of comma expressions.
12448
12449 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12450
12451         Further improvements to verify.h, suggested by Eric Blake.
12452         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12453         the GL_* versions, to avoid collision with OpenGL.
12454         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12455         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12456         than testing merely whether it's defined.
12457
12458         Modify verify.h to pacify gcc -Wredundant_decls.
12459         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12460         These use the prefix "GL_" since they're likely to be useful elsewhere.
12461         We may need to break them out into a different .h file.
12462         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12463         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12464         of verify_function__.
12465
12466 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12467
12468         Tests for module pwrite.
12469         * modules/pwrite-tests: New file.
12470         * tests/test-pwrite.sh: New file.
12471         * tests/test-pwrite.c: New file.
12472
12473         New module pwrite.
12474         * lib/unistd.in.h (pwrite): New declaration.
12475         * lib/pwrite.c: New file, from glibc with modifications.
12476         * m4/pwrite.m4: New file.
12477         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12478         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12479         REPLACE_PWRITE.
12480         * modules/pwrite: New file.
12481         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12482         REPLACE_PWRITE.
12483         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12484         * doc/posix-functions/pwrite.texi: Mention the new module.
12485
12486 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12487
12488         pread: Update documentation.
12489         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12490
12491 2010-05-04  Eric Blake  <eblake@redhat.com>
12492
12493         docs: update cygwin progress
12494         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12495         this bug.
12496         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12497         Added in cygwin 1.7.2.
12498         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12499         Likewise.
12500         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12501         Likewise.
12502         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12503         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12504         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12505         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12506         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12507         Mention nproc module.
12508         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12509         bug in cygwin 1.7.5 addition.
12510         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12511         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12512         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12513         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12514         1.7.5.
12515         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12516         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12517         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12518         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12519         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12520         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12521         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12522         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12523         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12524         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12525         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12526         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12527         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12528         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12529         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12530         Likewise.
12531         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12532         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12533         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12534         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12535         Likewise.
12536         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12537         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12538         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12539         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12540         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12541         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12542         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12543         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12544         Likewise.
12545         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12546         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12547         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12548         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12549         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12550         Likewise.
12551         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12552         Likewise.
12553         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12554         Likewise.
12555         * doc/glibc-functions/xdrrec_endofrecord.texi
12556         (xdrrec_endofrecord): Likewise.
12557         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12558         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12559         Likewise.
12560         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12561         Likewise.
12562
12563 2010-05-04  Jim Meyering  <meyering@redhat.com>
12564
12565         gendocs.sh: make its "-s FILE" option more useful
12566         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12567         $PACKAGE to reflect the probably-different basename of "FILE".
12568
12569 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12570
12571         bootstrap: don't ignore download_po_files failure
12572         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12573         failure.
12574
12575 2010-05-03  Jim Meyering  <meyering@redhat.com>
12576
12577         maint.mk: allow to pass options to gendocs.sh
12578         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12579         (gendocs_options_): New overridable variable.
12580
12581         gnu-web-doc-update: don't ignore configure or build failure
12582         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12583
12584         announce-gen: backslash-escape '@'s in --help output
12585         * build-aux/announce-gen: Fix syntax errors.
12586
12587         maint.mk, announce-gen: allow project-specific announcement mail headers
12588         * top/maint.mk (translation_project_): Define default.
12589         (announcement_Cc_, announcement_mail_headers_): Likewise.
12590         (announcement): Invoke announce-gen with new --mail-headers option.
12591         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12592
12593         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12594         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12595         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12596         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12597         line in the "err2" output file when running "make check" in verbose
12598         mode (i.e., with set -x enabled).
12599
12600 2010-05-03  Bruno Haible  <bruno@clisp.org>
12601
12602         wctob: Fix for weird platforms.
12603         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12604         argument value.
12605
12606 2010-05-03  Jim Meyering  <meyering@redhat.com>
12607
12608         maint.mk: prohibit unwarranted use of <strings.h>
12609         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12610         strings.h in a file that does not also use strcasecmp, strncasecmp,
12611         ffs or ffsll.
12612
12613         maint.mk: remove obsolete comments
12614         * top/maint.mk: Remove stale, commented-out rules.
12615
12616 2010-05-02  Bruno Haible  <bruno@clisp.org>
12617
12618         wcwidth: Declare also when it's aliased.
12619         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12620         macro.
12621
12622 2010-05-02  Bruno Haible  <bruno@clisp.org>
12623
12624         Fix regression from 2010-04-25.
12625         * gnulib-tool (func_modules_transitive_closure): Check the status of
12626         all modules, not only of the tests that are of the form foo-tests where
12627         foo is a module.
12628
12629 2010-05-02  Bruno Haible  <bruno@clisp.org>
12630
12631         wctob: Work around nasty Cygwin 1.7.2 bug.
12632         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12633         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12634
12635 2010-05-01  Bruno Haible  <bruno@clisp.org>
12636
12637         fpurge: Sharper test.
12638         * tests/test-fpurge.c (main): Add one more ftell check.
12639         * modules/fpurge-tests (Depends-on): Add ftell.
12640         Suggested by Eric Blake.
12641
12642 2010-05-01  Bruno Haible  <bruno@clisp.org>
12643
12644         ftello: Another test.
12645         * tests/test-ftello3.c: New file.
12646         * modules/ftello-tests (Files): Add it.
12647         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12648         MOSTLYCLEANFILES.
12649
12650         ftell: Another test.
12651         * tests/test-ftell3.c: New file.
12652         * modules/ftell-tests (Files): Add it.
12653         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12654         MOSTLYCLEANFILES.
12655
12656 2010-05-01  Bruno Haible  <bruno@clisp.org>
12657
12658         ftell, ftello: Work around Solaris bug.
12659         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12660         * lib/ftello.c: Include stdio-impl.h.
12661         (ftello): On Solaris, when _IOWRT is set, compute the result without
12662         looking at _IOREAD.
12663         * modules/ftello (Files): Add lib/stdio-impl.h.
12664         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12665         * doc/posix-functions/ftello.texi: Likewise.
12666         Reported by Eric Blake.
12667
12668 2010-05-01  Bruno Haible  <bruno@clisp.org>
12669
12670         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12671         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12672         the _IOWRT flag is also set.
12673
12674 2010-05-01  Bruno Haible  <bruno@clisp.org>
12675
12676         Fix doc about a HP-UX stdio bug.
12677         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12678         * doc/posix-functions/ftello.texi: Likewise.
12679
12680 2010-05-01  Bruno Haible  <bruno@clisp.org>
12681
12682         lseek test: Fix failure on Solaris.
12683         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12684         output.
12685
12686 2010-04-30  Jim Meyering  <meyering@redhat.com>
12687
12688         bootstrap: don't ignore failure to generate po*/Makevars
12689         * build-aux/bootstrap (with_gettext): Don't ignore failure
12690         to create po/Makevars or runtime-po/Makevars.
12691
12692 2010-04-29  Eric Blake  <eblake@redhat.com>
12693
12694         headers: relax license to LGPLv2+
12695         * modules/fcntl-h (License): Relax license.
12696         * modules/getopt-posix (License): Likewise.
12697         * modules/locale (License): Likewise.
12698         * modules/math (License): Likewise.
12699         * modules/pty (License): Likewise.
12700         * modules/sched (License): Likewise.
12701         * modules/search (License): Likewise.
12702         * modules/spawn (License): Likewise.
12703         * modules/stdarg (License): Likewise.
12704         * modules/sysexits (License): Likewise.
12705
12706 2010-04-29  Jim Meyering  <meyering@redhat.com>
12707
12708         inttypes: relax license to LGPLv2+
12709         * modules/inttypes (License): Relax license.
12710
12711 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12712
12713         * top/maint.mk (indent): Run twice to produce idempotent results.
12714
12715 2010-04-28  Bruno Haible  <bruno@clisp.org>
12716
12717         getdate: Generate getdate.c in the source directory.
12718         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12719         MOSTLYCLEANFILES.
12720         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12721
12722 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12723
12724         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12725         is not declared as a const *; avoid warnings in that case.
12726
12727 2010-04-28  Eric Blake  <eblake@redhat.com>
12728
12729         canonicalize-lgpl: avoid compiler warning
12730         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12731         declaration' / 'extraneous semicolon' warning with some compilers.
12732         Reported by Andreas Gruenbacher.
12733
12734 2010-04-28  Jim Meyering  <meyering@redhat.com>
12735
12736         init.sh: ensure a more reliable exit status when exiting via trap
12737         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12738         Inspired by patches from Dmitry V. Levin.
12739         Also trap on signal 3 (SIGQUIT).
12740
12741 2010-04-27  Bruno Haible  <bruno@clisp.org>
12742
12743         Update doc about utimes().
12744         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12745         'utimens' module.
12746         Reported by Andreas Gruenbacher <agruen@suse.de>.
12747
12748 2010-04-27  Eric Blake  <eblake@redhat.com>
12749
12750         full-read, full-write: relax license
12751         * modules/full-read (License): Drop to LGPLv2+.
12752         * modules/full-write (License): Likewise.
12753         * modules/safe-read (License): Likewise.
12754         * modules/safe-write (License): Likewise.
12755
12756         pthread: mention library for linking
12757         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12758
12759 2010-04-27  Jim Meyering  <meyering@redhat.com>
12760
12761         maint.mk: fix a bug introduced in last change
12762         * top/maint.mk (gl_assured_headers_): Now that all names are on
12763         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12764         is not anchored to end of word, it should be adequate.
12765
12766         maint.mk: avoid side-effect in latest syntax-check
12767         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12768         to run commands via $(shell...), and hence to incur cost only when
12769         the new rule is actually run.
12770
12771         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12772         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12773         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12774         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12775         (gl_assured_headers_, az_, AZ_): Define.
12776         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12777
12778 2010-04-26  Jim Meyering  <jim@meyering.net>
12779             Bruno Haible  <bruno@clisp.org>
12780
12781         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12782         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12783         Prompted by an exchange with Gilles Espinasse.
12784
12785 2010-04-26  Jim Meyering  <meyering@redhat.com>
12786
12787         git-version-gen: aesthetic tweak
12788         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12789         so that the command remains on a single line.
12790
12791 2010-04-26  Eric Blake  <eblake@redhat.com>
12792
12793         git-version-gen: allow use on EBCDIC hosts
12794         * build-aux/git-version-gen (dirty): Use literal rather than tying
12795         ourselves to ascii.
12796         Reported by Steve Goetze.
12797
12798 2010-04-25  Bruno Haible  <bruno@clisp.org>
12799
12800         netdb: Add support for GNULIB_POSIXCHECK.
12801         * lib/netdb.in.h: Include warn-on-use.h.
12802         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12803         functions are used when GNULIB_POSIXCHECK is defined and the
12804         getaddrinfo module is not in use.
12805         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12806         freeaddrinfo, gai_strerror, getnameinfo are declared.
12807         * modules/netdb (Depends-on): Add warn-on-use.
12808         (Makefile.am): Include warn-on-use.h in netdb.h.
12809
12810 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12811
12812         build: avoid "make check" failure without .git/ directory
12813         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12814         there is no .git/ directory.
12815
12816 2010-04-25  Bruno Haible  <bruno@clisp.org>
12817
12818         ptsname: Fix misuse of ttyname_r.
12819         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12820         of errno.
12821
12822 2010-04-25  Bruno Haible  <bruno@clisp.org>
12823
12824         ttyname_r: Make it work on Solaris 10.
12825         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12826         if the system function has the POSIX declaration. Test whether the
12827         function fails if the buffer is less than 128 bytes large.
12828         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12829         system's ttyname_r function. Provide a reasonably large buffer.
12830         * modules/ttyname_r (Depends-on): Add extensions.
12831         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12832
12833 2010-04-25  Bruno Haible  <bruno@clisp.org>
12834
12835         Use the 'extensions' module for some more functions on Solaris.
12836         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12837         module.
12838         * doc/posix-functions/ctime_r.texi: Likewise.
12839         * doc/posix-functions/getgrgid_r.texi: Likewise.
12840         * doc/posix-functions/getgrnam_r.texi: Likewise.
12841         * doc/posix-functions/getpwnam_r.texi: Likewise.
12842         * doc/posix-functions/getpwuid_r.texi: Likewise.
12843         * doc/posix-functions/readdir_r.texi: Likewise.
12844         * doc/posix-functions/sigwait.texi: Likewise.
12845         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12846         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12847
12848 2010-04-25  Bruno Haible  <bruno@clisp.org>
12849
12850         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12851         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12852         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12853         * lib/ttyname_r.c: Include <limits.h>.
12854         (ttyname_r): Define using the system's ttyname_r function, if it exists
12855         and not on Solaris.
12856         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12857         set.
12858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12859         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12860         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12861         Reported by Simon Josefsson.
12862
12863 2010-04-25  Bruno Haible  <bruno@clisp.org>
12864
12865         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12866         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12867         * doc/posix-functions/ctime_r.texi: Likewise.
12868         * doc/posix-functions/getgrgid_r.texi: Likewise.
12869         * doc/posix-functions/getgrnam_r.texi: Likewise.
12870         * doc/posix-functions/getlogin_r.texi: Likewise.
12871         * doc/posix-functions/getpwnam_r.texi: Likewise.
12872         * doc/posix-functions/getpwuid_r.texi: Likewise.
12873         * doc/posix-functions/readdir_r.texi: Likewise.
12874         * doc/posix-functions/sigwait.texi: Likewise.
12875         * doc/posix-functions/ttyname_r.texi: Likewise.
12876         Reported by Simon Josefsson.
12877
12878 2010-04-25  Bruno Haible  <bruno@clisp.org>
12879
12880         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12881         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12882         also to --create-testdir.
12883         (func_acceptable): Don't consider the status of *-tests modules here.
12884         (func_modules_transitive_closure): Consider it here, before including a
12885         test module.
12886         (func_import, func_create_testdir): Set inc_all_direct_tests,
12887         inc_all_indirect_tests.
12888         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12889         --create-testdir and --create-megatestdir.
12890
12891 2010-04-25  Bruno Haible  <bruno@clisp.org>
12892
12893         gnulib-tool: Add --without-*-tests options.
12894         * gnulib-tool (func_usage): Document the --without-*-tests options.
12895         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12896         excl_unportable_tests): New variables.
12897         Fail if they are specified with --import or --update.
12898         (func_acceptable): Respect the excl_*_tests variables.
12899         (func_import): Set the excl_*_tests variables to empty.
12900
12901 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12902             Bruno Haible  <bruno@clisp.org>
12903
12904         Work around a MacOS X 10.4 bug with openpty.
12905         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12906         * tests/test-openpty.c (main): Close the master side explicitly.
12907
12908 2010-04-25  Bruno Haible  <bruno@clisp.org>
12909
12910         strnlen: Fix a C++ test error on MacOS X and Solaris.
12911         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12912         the function is not declared.
12913         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12914         Simon Josefsson.
12915
12916 2010-04-24  Bruno Haible  <bruno@clisp.org>
12917
12918         Avoid a gcc warning.
12919         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12920         of correct type for %08lx directive.
12921         Reported by Eric Blake.
12922
12923 2010-04-24  Bruno Haible  <bruno@clisp.org>
12924
12925         vasnprintf: Correct errno value in case of out-of-memory.
12926         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12927         or sprintf. Use the errno value from SNPRINTF or sprintf.
12928         Reported by Ian Beckwith <ianb@erislabs.net>.
12929
12930 2010-04-24  Bruno Haible  <bruno@clisp.org>
12931
12932         ansi-c++-opt: Find correct compiler when cross-compiling.
12933         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12934         AC_CHECK_PROGS.
12935         Reported by Simon Josefsson.
12936
12937 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12938
12939         vc-list-files: Add support for subversion
12940         * build-aux/vc-list-files: Use "svn list" to generate the list of
12941         files controlled by subversion.
12942
12943 2010-04-23  Jim Meyering  <meyering@redhat.com>
12944
12945         vc-list-files tests: convert to use init.sh
12946         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12947         path_prepend_.
12948         Use Exit, not exit.
12949         Use skip_ rather than open coding it.
12950         Remove trap set-up and compare definitions.
12951         * tests/test-vc-list-files-git.sh: Likewise.
12952         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12953
12954 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12955
12956         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12957         backup files.
12958
12959 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12960
12961         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12962
12963 2010-04-20  Eric Blake  <eblake@redhat.com>
12964
12965         tests: be robust to ignored SIGPIPE
12966         * tests/test-select-in.sh: Consume all output.
12967         * tests/test-lseek.sh: Check correct exit status, while avoiding
12968         EPIPE.
12969
12970 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12971             Bruno Haible  <bruno@clisp.org>
12972
12973         visibility: Don't use -fvisibility if it leads to a warning.
12974         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12975         yes, don't pretend that visibility works if it leads to a warning.
12976         Reported by Mike Gran <spk121@yahoo.com>.
12977
12978 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12979
12980         * build-aux/bootstrap: Use "git -h" for testing for supported options
12981         instead of "git --help".  The short-form option only shows a summary,
12982         and doesn't layout the full man page.  Grep for the full option name
12983         in the summary, too.
12984
12985 2010-04-19  Bruno Haible  <bruno@clisp.org>
12986
12987         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12988         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12989         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12990         mention of RELOCATABLE_STRIP.
12991         Reported by Sylvain Beucler <beuc@beuc.net>.
12992
12993 2010-04-19  Bruno Haible  <bruno@clisp.org>
12994
12995         * lib/diffseq.h: Fix typo in comment.
12996         Reported by Eric Blake.
12997
12998 2010-04-19  Bruno Haible  <bruno@clisp.org>
12999
13000         ioctl: Move autoconf macro to a .m4 file.
13001         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13002         * modules/ioctl (Files): Add it.
13003         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13004         Reported by Ian Beckwith <ianb@erislabs.net>.
13005
13006 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13007             Bruno Haible  <bruno@clisp.org>
13008
13009         diffseq: Accommodate use-case with abstract arrays.
13010         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13011         is not defined.
13012         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13013         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13014
13015 2010-04-18  Bruno Haible  <bruno@clisp.org>
13016
13017         * doc/posix-headers/stdbool.texi: More precise wording.
13018
13019 2010-04-17  Jim Meyering  <meyering@redhat.com>
13020
13021         maint.mk: use gnu-style indentation in an embedded perl script
13022         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13023         Rename variable: s/two/last_two_bytes/
13024
13025 2010-04-16  Eric Blake  <eblake@redhat.com>
13026
13027         test-stdbool: skip test that fails with Solaris CC
13028         * tests/test-stdbool.c (f): Skip test that causes compilation
13029         error under buggy C++ compiler.
13030         * lib/stdbool.in.h: Document the limitation.
13031         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13032
13033         setenv: allow compilation with C++
13034         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13035         register keyword.
13036
13037         stdint: allow test to pass with C++
13038         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13039
13040         getopt: allow compilation with C++
13041         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13042         struct.
13043         * lib/getopt.c (_getopt_internal_r): Use correct type.
13044         Reported by Dagobert Michelson, via Joel E. Denny.
13045
13046 2010-04-16  Bruno Haible  <bruno@clisp.org>
13047
13048         Override netdb.h always.
13049         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13050         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13051         Reported by Ludovic Courtès <ludo@gnu.org>.
13052
13053 2010-04-15  Bruno Haible  <bruno@clisp.org>
13054
13055         openpty: Fix mistake from 2010-03-21.
13056         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13057         Reported by Simon Josefsson.
13058
13059 2010-04-15  Eric Blake  <eblake@redhat.com>
13060
13061         test-forkpty: fix expected signature
13062         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13063         Reported by Simon Josefsson.
13064
13065 2010-04-15  Jim Meyering  <meyering@redhat.com>
13066
13067         maint.mk: texinfo_suffix_re_: correct the default regexp
13068         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13069
13070         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13071         make it configurable via texinfo_suffix_re_.
13072
13073 2010-04-14  Eric Blake  <eblake@redhat.com>
13074
13075         strtok_r: relax license to LGPLv2+
13076         * modules/strtok_r (License): Relax license.
13077         Reported by Matthias Bolte.
13078
13079 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13080
13081         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13082         version 1.4.4 by default instead of requiring the libgcrypt
13083         version used during build.  This makes it possible to use the
13084         application with older but still binary compatible libgcrypt
13085         versions.
13086
13087 2010-04-13  Eric Blake  <eblake@redhat.com>
13088
13089         getopt-gnu: match recent glibc fixes and posix ruling
13090         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13091         '+' handling, when requesting extensions.
13092         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13093         'W;' handling.
13094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13095         * doc/posix-functions/getopt.texi (getopt): Document this.
13096         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13097         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13098         Likewise.
13099
13100         getopt: merge bug fixes from glibc
13101         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13102         diagnostics.  Honor '+:' correctly.  Reject ';'.
13103
13104         getopt-posix: detect MacOS bug
13105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13106         optind when missing a required argument.
13107         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13108         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13109         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13110         Likewise.
13111
13112         getopt-posix: avoid spurious failure on Solaris
13113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13114         an indicator that setting optind=1 is sufficient for reset.
13115
13116         getopt-posix: avoid spurious failure on FreeBSD
13117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13118         in POSIX mode, since the m4 test uses it.
13119
13120         gnulib-tool: silence warning on BSD sh
13121         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13122
13123 2010-04-13  Jim Meyering  <meyering@redhat.com>
13124
13125         doc: users.txt: GNU patch now uses gnulib
13126         * users.txt: Add patch.
13127
13128 2010-04-12  Jim Meyering  <meyering@redhat.com>
13129
13130         maint.mk: generate more concise timing data for syntax-check rules
13131         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13132         " done" from each line that reports a syntax-check test duration.
13133
13134 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13135
13136         git-version-gen: use "git update-index..." rather than "git status"
13137         * build-aux/git-version-gen: Use git update-index --refresh, not
13138         "git status".  With some versions of git, "git status" would fail
13139         to update the index and result in an unwarranted "-dirty" suffix.
13140
13141 2010-04-11  Jim Meyering  <meyering@redhat.com>
13142
13143         openat: correct formatting (no semantic change)
13144         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13145         Suggested by Bruno Haible.
13146
13147 2010-04-11  Bruno Haible  <bruno@clisp.org>
13148
13149         Stricter declaration checking in testdirs.
13150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13151         If for_tests is true, augment AM_CPPFLAGS to define
13152         GNULIB_STRICT_CHECKING.
13153         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13154         GNULIB_STRICT_CHECKING is defined, verify that the function is
13155         declared.
13156
13157 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13158             Bruno Haible  <bruno@clisp.org>
13159
13160         libunistring: Improve configure output.
13161         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13162         Don't say "consider installing GNU libunistring" when checking again
13163         with libiconv.
13164
13165 2010-04-11  Bruno Haible  <bruno@clisp.org>
13166
13167         libunistring: Correct value of $LTLIBUNISTRING.
13168         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13169         correct the value of $LTLIBUNISTRING.
13170
13171 2010-04-11  Bruno Haible  <bruno@clisp.org>
13172
13173         havelib: Add static libraries to LIBS in the right order.
13174         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13175         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13176
13177 2010-04-11  Bruno Haible  <bruno@clisp.org>
13178
13179         libunistring: Detect libunistring also when it depends on libiconv.
13180         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13181         the second AC_LIB_HAVE_LINKFLAGS invocation.
13182
13183 2010-04-11  James Youngman  <jay@gnu.org>
13184
13185         close-stream: declare local scalars to be "const"
13186         * lib/close-stream.c (close_stream): Make boolean variables const
13187         to document the fact that we set but do not change them.
13188
13189 2010-04-11  Bruno Haible  <bruno@clisp.org>
13190
13191         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13192
13193 2010-04-11  Jim Meyering  <meyering@redhat.com>
13194
13195         maint.mk: don't include dist-check.mk
13196         * top/maint.mk: Remove bogus include directive.
13197
13198         maint.mk: improve empty-line-at-EOF check
13199         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13200         solution, rather than tail+Perl-based one.  The latter would read
13201         a few kilobytes from the end of each file, and did not handle empty
13202         files properly.
13203
13204         maint.mk: print the elapsed time for each syntax-check rule
13205         * top/maint.mk (sc_m_rules_): Save start time in a file.
13206         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13207         (local-check): Interpose the .z rules
13208
13209 2010-04-11  Jim Meyering  <meyering@redhat.com>
13210
13211         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13212         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13213         empty file with one that ends in an empty line.
13214
13215 2010-04-10  Bruno Haible  <bruno@clisp.org>
13216
13217         mkdir: Make it work on mingw64.
13218         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13219         * lib/mkdir.c: Update comment.
13220         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
13221
13222 2010-04-10  Bruno Haible  <bruno@clisp.org>
13223
13224         Don't override improved macro from newer autoconf.
13225         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13226         autoconf >= 2.62.
13227         Reported by Joel E. Denny <jdenny@clemson.edu>.
13228
13229 2010-04-10  Jim Meyering  <meyering@redhat.com>
13230
13231         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13232         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13233
13234         maint.mk: correct a diagnostic
13235         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13236         in diagnostic; now use $prohibit.
13237
13238 2010-04-10  Bruno Haible  <address@hidden>
13239
13240         fchownat: Fix a C++ test error on Solaris 8.
13241         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13242         the function does not exist.
13243
13244 2010-04-10  Bruno Haible  <bruno@clisp.org>
13245
13246         vasnprintf: Add more tests.
13247         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13248         (test_function): Test converting an invalid wide string.
13249
13250         vasnprintf: Correct handling of unconvertible wide string arguments.
13251         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13252         VASNPRINTF.
13253         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13254         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13255         smaller than the expected maximum need for the directive. Set errno to
13256         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13257         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13259         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13260         * modules/vasnprintf (Files): Add m4/printf.m4.
13261         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13262
13263 2010-04-10  Bruno Haible  <bruno@clisp.org>
13264
13265         vasnprintf: Fix crash in %ls directive.
13266         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13267         string is passed as argument to %ls, with no precision and no width.
13268         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13269
13270 2010-04-10  Bruno Haible  <bruno@clisp.org>
13271
13272         vasnprintf: Fix multiple test failures on mingw.
13273         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13274         _snprintf, or snwprintf, not _snwprintf.
13275
13276 2010-04-10  Bruno Haible  <bruno@clisp.org>
13277
13278         write: Fix a C++ test error on mingw.
13279         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13280
13281 2010-04-10  Bruno Haible  <bruno@clisp.org>
13282
13283         vasnprintf test: Reduce code duplication.
13284         * tests/test-vasnprintf.c (test_function): New function, extracted from
13285         test_vasnprintf.
13286         (test_vasnprintf, test_asnprintf): Invoke it.
13287
13288 2010-04-10  Bruno Haible  <bruno@clisp.org>
13289
13290         strnlen: Fix warning in C++ mode on MacOS X.
13291         * lib/string.in.h (strnlen): Use the modern idiom.
13292         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13293         defining strnlen as a macro already in <config.h>.
13294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13295         REPLACE_STRNLEN.
13296         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13297         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13298
13299 2010-04-08  James Youngman  <jay@gnu.org>
13300
13301         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13302         the example.
13303
13304 2010-04-09  Jim Meyering  <meyering@redhat.com>
13305
13306         maint.mk: print better diagnostic when there is no $(_hv_file)
13307         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13308         announce that when $(_hv_file) (aka help-version) does not exist.
13309
13310         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13311         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13312         not try to interpret its random input bytes.  Jarno Rajahalme reported
13313         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13314         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13315         (mktempd_): Likewise, just in case.
13316
13317         ftruncate: add two years to projected module removal date: 2012
13318         * m4/ftruncate.m4: Adjust comments.
13319
13320         ftruncate: mark module as obsolete; even MinGW provides it, now
13321         * modules/ftruncate (Status): Obsolete.
13322         (Notice): Say that.
13323         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13324         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13325
13326 2010-04-08  Bruno Haible  <bruno@clisp.org>
13327
13328         Fix side effects from tests-related modules.
13329         * modules/dprintf-posix (Comment): New section.
13330         * modules/fprintf-posix (Comment): Likewise.
13331         * modules/obstack-printf-posix (Comment): Likewise.
13332         * modules/printf-posix (Comment): Likewise.
13333         * modules/snprintf-posix (Comment): Likewise.
13334         * modules/sprintf-posix (Comment): Likewise.
13335         * modules/vasnprintf-posix (Comment): Likewise.
13336         * modules/vasprintf-posix (Comment): Likewise.
13337         * modules/vdprintf-posix (Comment): Likewise.
13338         * modules/vfprintf-posix (Comment): Likewise.
13339         * modules/vprintf-posix (Comment): Likewise.
13340         * modules/vsnprintf-posix (Comment): Likewise.
13341         * modules/vsprintf-posix (Comment): Likewise.
13342         * modules/xprintf-posix (Comment): Likewise.
13343         * modules/xvasprintf-posix (Comment): Likewise.
13344         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13345         * modules/floorf-tests (Depends-on): Likewise.
13346         * modules/round-tests (Depends-on): Likewise.
13347         * modules/roundf-tests (Depends-on): Likewise.
13348         * modules/trunc-tests (Depends-on): Likewise.
13349         * modules/truncf-tests (Depends-on): Likewise.
13350         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13351         'fprintf-posix' module is not present.
13352         * tests/test-floorf2.c (check): Likewise.
13353         * tests/test-trunc2.c (check): Likewise.
13354         * tests/test-truncf2.c (check): Likewise.
13355         * tests/test-round2.c (equal): Likewise.
13356         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13357
13358 2010-04-07  Karl Berry  <karl@gnu.org>
13359
13360         * config/srclist.txt,
13361         * config/srclistvars.sh,
13362         * config/srclist-update: doc fixes.
13363
13364 2010-04-07  Jim Meyering  <meyering@redhat.com>
13365
13366         maint.mk: add a PATH crosschecking syntax-check rule
13367         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13368         Useful if you use a test like the one in help-version (coreutils,
13369         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13370         printed by prog --version.
13371
13372 2010-04-06  Bruno Haible  <bruno@clisp.org>
13373
13374         Fix link error on mingw.
13375         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13376         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13377
13378 2010-04-06  Bruno Haible  <bruno@clisp.org>
13379
13380         Assume rmdir exists.
13381         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13382
13383 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13384
13385         doc: update users.txt
13386         * users.txt: Add gcal.
13387
13388 2010-04-06  Jim Meyering  <meyering@redhat.com>
13389
13390         init.sh: simply unset TMPDIR rather than risking env -i
13391         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13392         although it probably works fine on all Unix-based systems, some
13393         systems (Cygwin?) cannot tolerate a totally cleared environment.
13394         Suggestion from Eric Blake.
13395
13396 2010-04-06  Jim Meyering  <meyering@redhat.com>
13397
13398         init.sh: portability fix: use env's POSIX-specified -i option not -u
13399         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13400         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13401
13402 2010-04-05  Bruno Haible  <bruno@clisp.org>
13403
13404         btowc: Work around Cygwin 1.7.2 bug.
13405         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13406         does not map NUL to 0.
13407         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13408
13409 2010-04-05  Bruno Haible  <bruno@clisp.org>
13410
13411         Make the multithread modules work on Cygwin 1.7.2.
13412         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13413         imported symbols can be declared weak, so that it returns "no" on
13414         Cygwin 1.7.2.
13415
13416 2010-04-05  Bruno Haible  <bruno@clisp.org>
13417
13418         Use the module 'strncat'.
13419         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13420
13421         Tests for module 'strncat'.
13422         * modules/strncat-tests: New file.
13423         * tests/test-strncat.c: New file.
13424
13425         New module 'strncat'.
13426         * lib/string.in.h (strncat): New declaration.
13427         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13428         * m4/strncat.m4: New file, based on m4/memchr.m4.
13429         * modules/strncat: New file.
13430         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13431         is declared.
13432         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13433         REPLACE_STRNCAT.
13434         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13435         REPLACE_STRNCAT.
13436         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13437         module.
13438         * tests/test-string-c++.cc: Check signature of strncat.
13439
13440 2010-04-05  Jim Meyering  <meyering@redhat.com>
13441
13442         xstrtoumax-tests: convert to use init.sh
13443         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13444         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13445         Use Exit, not exit.
13446         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13447
13448         xstrtoimax-tests: convert to use init.sh
13449         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13450         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13451         Use Exit, not exit.
13452         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13453
13454 2010-04-05  Bruno Haible  <bruno@clisp.org>
13455
13456         sys_socket: Avoid #define replacements in C++ mode.
13457         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13458         warning to the function if possible, rather than #defining the symbol
13459         to a dysfunctional alias.
13460
13461 2010-04-05  Bruno Haible  <bruno@clisp.org>
13462
13463         fseeko: Fix C++ test error on mingw.
13464         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13465         gl_FUNC_FSEEKO.
13466         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13467         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13468         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13469         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13470
13471 2010-04-05  Bruno Haible  <bruno@clisp.org>
13472
13473         duplocale: Improve test output.
13474         * tests/test-duplocale.c (main): Print reason for skipped test.
13475
13476 2010-04-05  Bruno Haible  <bruno@clisp.org>
13477
13478         Assume rmdir exists.
13479         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13480         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13481
13482 2010-04-05  Bruno Haible  <bruno@clisp.org>
13483
13484         Fix link error on Solaris 8 with cc.
13485         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13486
13487 2010-04-05  Bruno Haible  <bruno@clisp.org>
13488
13489         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13490         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13491
13492 2010-04-05  Bruno Haible  <bruno@clisp.org>
13493
13494         vasprintf: Update documentation.
13495         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13496
13497 2010-04-05  Bruno Haible  <bruno@clisp.org>
13498
13499         ptsname: Improve test.
13500         * tests/test-ptsname.c (main): Also try the various master names of BSD
13501         systems.
13502
13503 2010-04-05  Bruno Haible  <bruno@clisp.org>
13504
13505         memchr: Avoid a possible C++ test error.
13506         * lib/string.in.h (memchr): Provide declaration if function is missing.
13507         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13508         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13510         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13511
13512 2010-04-05  Bruno Haible  <bruno@clisp.org>
13513
13514         strtok_r: Improve idiom.
13515         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13516         AC_LIBOBJ is used.
13517
13518 2010-04-05  Bruno Haible  <bruno@clisp.org>
13519
13520         strdup: Improve idiom.
13521         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13522         AC_LIBOBJ is used.
13523         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13524         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13525         when AC_LIBOBJ is used.
13526
13527 2010-04-05  Bruno Haible  <bruno@clisp.org>
13528
13529         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13530         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13531         don't set REPLACE_MBSINIT to 1.
13532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13533         don't set REPLACE_MBRTOWC to 1.
13534         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13535         exist, don't set REPLACE_MBSRTOWCS to 1.
13536         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13537         exist, don't set REPLACE_MBSNRTOWCS to 1.
13538         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13539         don't set REPLACE_WCRTOMB to 1.
13540         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13541         exist, don't set REPLACE_WCSRTOMBS to 1.
13542         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13543         exist, don't set REPLACE_WCSNRTOMBS to 1.
13544
13545 2010-04-05  Bruno Haible  <bruno@clisp.org>
13546
13547         ldexpl: Improve idiom.
13548         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13549         make sure to set HAVE_DECL_LDEXPL to 0.
13550
13551 2010-04-05  Jim Meyering  <meyering@redhat.com>
13552
13553         xstrtol-tests: convert to use init.sh
13554         * modules/xstrtol-tests (Files): Add tests/init.sh.
13555         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13556         Use Exit, not exit.
13557         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13558
13559         atexit-tests: convert to use init.sh
13560         * modules/atexit-tests (Files): Add tests/init.sh.
13561         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13562         Use Exit, not exit.
13563         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13564
13565         init.sh: fix typo
13566         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13567
13568         init.sh: make it easier for a test script to write to the tty, ...
13569         when using automake's parallel-tests mode.
13570         * tests/init.sh (stderr_fileno_): Define overridable variable.
13571         (warn_): New function, to use it.
13572         (fail_, skip_, framework_failure_): Use warn_.
13573
13574 2010-04-04  Bruno Haible  <bruno@clisp.org>
13575
13576         btowc: Avoid warning.
13577         * lib/btowc.c: Include <stdlib.h>.
13578         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13579
13580 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13581             Bruno Haible  <bruno@clisp.org>
13582
13583         wchar: Port to NetBSD 1.5.
13584         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13585         * lib/wctype.in.h (WEOF): Likewise.
13586
13587 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13588             Bruno Haible  <bruno@clisp.org>
13589
13590         Port extended stdio to NetBSD 1.5.
13591         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13592         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13593         older.
13594
13595 2010-04-04  Bruno Haible  <bruno@clisp.org>
13596
13597         string: Remove unused substitution.
13598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13599         HAVE_DECL_STRERROR.
13600         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13601
13602 2010-04-04  Bruno Haible  <bruno@clisp.org>
13603
13604         strtod: Avoid a possible C++ test error.
13605         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13606         set REPLACE_STRTOD.
13607
13608 2010-04-04  Bruno Haible  <bruno@clisp.org>
13609
13610         strerror: Update documentation.
13611         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13612
13613 2010-04-04  Bruno Haible  <bruno@clisp.org>
13614
13615         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13616         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13617         _GL_CXXALIAS_SYS_CAST.
13618
13619 2010-04-04  Bruno Haible  <bruno@clisp.org>
13620
13621         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13622         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13623         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13624         REPLACE_FREXPL to 1.
13625         * doc/posix-functions/frexpl.texi: Update documentation.
13626
13627 2010-04-04  Bruno Haible  <bruno@clisp.org>
13628
13629         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13630         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13631
13632 2010-04-04  Bruno Haible  <bruno@clisp.org>
13633
13634         Implement nanosleep for native Windows.
13635         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13636
13637 2010-04-04  Bruno Haible  <bruno@clisp.org>
13638
13639         math: Fix some C++ test errors on Solaris 8.
13640         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13641
13642 2010-04-04  Bruno Haible  <bruno@clisp.org>
13643
13644         math: Fix some C++ test errors on Cygwin.
13645         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13646         truncl): Provide declaration if the system does not have it.
13647         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13648         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13649         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13650         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13651         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13652         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13653         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13654         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13655         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13656         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13657         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13658         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13659         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13660         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13661         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13662         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13664         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13665         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13666         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13667         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13668         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13669
13670 2010-04-04  Bruno Haible  <bruno@clisp.org>
13671
13672         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13673         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13674         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13675         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13676         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13677         * m4/isinf.m4 (gl_ISINF): Likewise.
13678         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13679
13680 2010-04-04  Bruno Haible  <bruno@clisp.org>
13681
13682         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13683         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13684
13685 2010-04-04  Bruno Haible  <bruno@clisp.org>
13686
13687         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13688         * modules/tmpfile (configure.ac): Update.
13689
13690         tmpfile: Fix C++ test error on mingw.
13691         * lib/stdio.in.h (tmpfile): New declaration.
13692         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13693         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13694         * modules/tmpfile (Depends-on): Add stdio.
13695         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13696         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13697         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13698         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13699         REPLACE_TMPFILE.
13700         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13701
13702 2010-04-04  Bruno Haible  <bruno@clisp.org>
13703
13704         ioctl: Fix C++ test error on mingw.
13705         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13706         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13707         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13708
13709 2010-04-03  Bruno Haible  <bruno@clisp.org>
13710
13711         wcwidth: Fix C++ test error on mingw.
13712         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13713         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13714         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13715
13716 2010-04-03  Bruno Haible  <bruno@clisp.org>
13717
13718         nanosleep: Fix C++ test error on mingw.
13719         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13720         * lib/time.in.h (nanosleep): Use modern idiom.
13721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13722         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13723         REPLACE_NANOSLEEP to 1.
13724         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13725         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13726
13727 2010-04-03  Bruno Haible  <bruno@clisp.org>
13728
13729         strptime: Fix C++ test error on mingw.
13730         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13731         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13732         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13733         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13734         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13735         not REPLACE_STRPTIME.
13736         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13737         REPLACE_STRPTIME.
13738
13739 2010-04-03  Bruno Haible  <bruno@clisp.org>
13740
13741         timegm: Fix C++ test error on mingw.
13742         * lib/time.in.h (timegm): Use modern idiom.
13743         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13744         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13745         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13746         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13747
13748 2010-04-03  Bruno Haible  <bruno@clisp.org>
13749
13750         timegm: Assume declaration if function exists.
13751         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13752         if it exists. Don't clobber ac_cv_func_timegm.
13753
13754 2010-04-03  Bruno Haible  <bruno@clisp.org>
13755
13756         time_r: Fix C++ test error on mingw.
13757         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13758         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13759         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13760         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13761         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13762
13763 2010-04-03  Bruno Haible  <bruno@clisp.org>
13764
13765         time_r: Minor updates.
13766         * modules/time_r (Description): Mention the provided functions.
13767         * lib/time_r.c: Don't include <string.h>.
13768         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13769         * doc/posix-functions/localtime_r.texi: Likewise.
13770
13771 2010-04-03  Bruno Haible  <bruno@clisp.org>
13772
13773         time: Fix regression introduced on 2010-03-08.
13774         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13775         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13776
13777 2010-04-03  Jim Meyering  <meyering@redhat.com>
13778
13779         maint.mk: don't silently disable project-specific syntax-check rules
13780         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13781         that they need to convert their project-specific syntax-check rules
13782         to use the new _sc_search_regexp.
13783
13784 2010-04-03  Bruno Haible  <bruno@clisp.org>
13785
13786         fchdir: Fix regression introduced on 2010-03-08.
13787         * lib/unistd.in.h (fchdir): Fix declaration.
13788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13790         REPLACE_FCHDIR.
13791         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13792         REPLACE_FCHDIR.
13793
13794 2010-04-03  Bruno Haible  <bruno@clisp.org>
13795
13796         getpagesize: Fix C++ test error on mingw.
13797         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13798         system does not declare the function.
13799         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13800         declared.
13801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13802         HAVE_DECL_GETPAGESIZE.
13803         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13804
13805 2010-04-03  Bruno Haible  <bruno@clisp.org>
13806
13807         stdio: Make C++ tests work on mingw.
13808         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13809         does not declare the function.
13810
13811 2010-04-03  Bruno Haible  <bruno@clisp.org>
13812
13813         ftello: Fix C++ test error on mingw.
13814         * lib/stdio.in.h (ftello): Use modern idiom.
13815         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13816         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13817         is missing and that it needs to be replaced.
13818         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13820         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13821
13822 2010-04-03  Bruno Haible  <bruno@clisp.org>
13823
13824         fseeko: Fix C++ test error on mingw.
13825         * lib/stdio.in.h (fseeko): Use modern idiom.
13826         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13827         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13828         is missing and that it needs to be replaced.
13829         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13831         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13832
13833 2010-04-03  Bruno Haible  <bruno@clisp.org>
13834
13835         mkstemp: Fix C++ test error on mingw.
13836         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13838         function is missing and that it needs to be replaced.
13839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13840         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13841
13842 2010-04-03  Bruno Haible  <bruno@clisp.org>
13843
13844         stpncpy: Fix C++ test error on mingw.
13845         * lib/string.in.h (stpncpy): Use modern idiom.
13846         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13847         function is missing and that it needs to be replaced.
13848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13849         REPLACE_STPNCPY.
13850         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13851
13852 2010-04-03  Bruno Haible  <bruno@clisp.org>
13853
13854         sys_stat: Fix C++ test error on mingw.
13855         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13856         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13857
13858 2010-04-03  Bruno Haible  <bruno@clisp.org>
13859
13860         pty: Update doc.
13861         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13862
13863 2010-04-03  Bruno Haible  <bruno@clisp.org>
13864
13865         unistd: Fix C++ test error on mingw.
13866         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13867
13868 2010-04-03  Bruno Haible  <bruno@clisp.org>
13869
13870         Update doc regarding mingw.
13871         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13872         * doc/glibc-functions/login_tty.texi: Likewise.
13873         * doc/glibc-functions/forkpty.texi: Likewise.
13874
13875 2010-04-03  Bruno Haible  <bruno@clisp.org>
13876
13877         stdlib: Avoid compilation failure of c-strtold on mingw.
13878         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13879
13880 2010-04-03  Bruno Haible  <bruno@clisp.org>
13881
13882         locale: Make C++ tests work on Cygwin and mingw.
13883         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13884         cannot provide the function.
13885         Reported by Simon Josefsson.
13886
13887 2010-04-03  Bruno Haible  <bruno@clisp.org>
13888
13889         localename: Port to MacOS X 10.6.
13890         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13891         memory layout of the locales in MacOS X 10.6 as well.
13892         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13893
13894 2010-04-02  Bruno Haible  <bruno@clisp.org>
13895
13896         gnulib-tool: Ensure that long-running tests are executed last.
13897         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13898         running tests after the one for the other tests.
13899
13900 2010-04-02  Bruno Haible  <bruno@clisp.org>
13901
13902         gnulib-tool: Ensure the tests in the main directory are executed first.
13903         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13904         start with the current directory.
13905
13906 2010-04-02  Bruno Haible  <bruno@clisp.org>
13907
13908         Tests for module 'havelib', moved here from GNU gettext.
13909         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13910         modifications.
13911         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13912         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13913         with modifications.
13914         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13915         modifications.
13916         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13917         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13918         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13919         with modifications.
13920         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13921         with modifications.
13922         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13923         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13924         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13925         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13926         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13927         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13928         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13929         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13930         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13931         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13932         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13933         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13934         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13935         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13936         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13937         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13938         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13939         with modifications.
13940         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13941         with modifications.
13942         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13943         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13944         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13945         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13946         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13947         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13948         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13949         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13950         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13951         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13952         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13953         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13954         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13955         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13956         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13957         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13958         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13959         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13960         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13961         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13962         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13963         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13964         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13965         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13966         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13967         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13968         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13969         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13970         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13971         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13972         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13973         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13974         * tests/havelib/rpathx/rpathx.c: New file, from
13975         gettext/autoconf-lib-link.
13976         * tests/havelib/rpathx/Makefile.am: New file, from
13977         gettext/autoconf-lib-link.
13978         * tests/havelib/rpathx/configure.ac: New file, from
13979         gettext/autoconf-lib-link with modifications.
13980         * tests/havelib/rpathy/rpathy.c: New file, from
13981         gettext/autoconf-lib-link.
13982         * tests/havelib/rpathy/Makefile.am: New file, from
13983         gettext/autoconf-lib-link.
13984         * tests/havelib/rpathy/configure.ac: New file, from
13985         gettext/autoconf-lib-link with modifications.
13986         * tests/havelib/rpathz/rpathz.c: New file, from
13987         gettext/autoconf-lib-link.
13988         * tests/havelib/rpathz/Makefile.am: New file, from
13989         gettext/autoconf-lib-link.
13990         * tests/havelib/rpathz/configure.ac: New file, from
13991         gettext/autoconf-lib-link with modifications.
13992         * tests/havelib/rpathlx/usex.c: New file, from
13993         gettext/autoconf-lib-link.
13994         * tests/havelib/rpathlx/Makefile.am: New file, from
13995         gettext/autoconf-lib-link.
13996         * tests/havelib/rpathlx/configure.ac: New file, from
13997         gettext/autoconf-lib-link with modifications.
13998         * tests/havelib/rpathly/usey.c: New file, from
13999         gettext/autoconf-lib-link.
14000         * tests/havelib/rpathly/Makefile.am: New file, from
14001         gettext/autoconf-lib-link.
14002         * tests/havelib/rpathly/configure.ac: New file, from
14003         gettext/autoconf-lib-link with modifications.
14004         * tests/havelib/rpathlz/usez.c: New file, from
14005         gettext/autoconf-lib-link.
14006         * tests/havelib/rpathlz/Makefile.am: New file, from
14007         gettext/autoconf-lib-link.
14008         * tests/havelib/rpathlz/configure.ac: New file, from
14009         gettext/autoconf-lib-link with modifications.
14010         * tests/havelib/rpathlyx/usey.c: New file, from
14011         gettext/autoconf-lib-link.
14012         * tests/havelib/rpathlyx/Makefile.am: New file, from
14013         gettext/autoconf-lib-link.
14014         * tests/havelib/rpathlyx/configure.ac: New file, from
14015         gettext/autoconf-lib-link with modifications.
14016         * tests/havelib/rpathlzyx/usez.c: New file, from
14017         gettext/autoconf-lib-link.
14018         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14019         gettext/autoconf-lib-link.
14020         * tests/havelib/rpathlzyx/configure.ac: New file, from
14021         gettext/autoconf-lib-link with modifications.
14022         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14023         with modifications.
14024
14025 2010-04-02  Bruno Haible  <bruno@clisp.org>
14026
14027         gnulib-tool: Create distributed built sources also for the tests.
14028         * gnulib-tool (func_create_testdir): Also generate distributed built
14029         sources in the tests directory.
14030
14031 2010-04-02  Bruno Haible  <bruno@clisp.org>
14032
14033         gnulib-tool: Obey user's environment variables.
14034         * gnulib-tool (func_create_testdir): When creating built sources,
14035         respect the environment variables for autoconf, automake, etc. given by
14036         the user.
14037
14038 2010-04-02  Bruno Haible  <bruno@clisp.org>
14039
14040         gnulib-tool: Provide the value of --m4-base to modules.
14041         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14042         of gl_m4_base.
14043
14044 2010-04-02  Eric Blake  <eblake@redhat.com>
14045
14046         maint.mk: fix some fallout
14047         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14048         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14049
14050 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14051
14052         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14053         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14054         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14055         (sc_cast_of_x_alloc_return_value): Likewise.
14056         (sc_cast_of_alloca_return_value): Likewise.
14057         (sc_space_tab): Likewise.
14058         (sc_prohibit_atoi_atof): Likewise.
14059         (sc_prohibit_magic_number_exit): Likewise.
14060         (sc_error_exit_success): Likewise.
14061         (sc_file_system): Likewise.
14062         (sc_prohibit_have_config_h): Likewise.
14063         (sc_require_config_h): Likewise.
14064         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14065         (sc_obsolete_symbols): Likewise.
14066         (sc_changelog): Likewise.
14067         (sc_program_name): Likewise.
14068         (sc_the_the): Likewise.
14069         (sc_trailing_blank): Likewise.
14070         (sc_two_space_separator_in_usage): Likewise.
14071         (sc_useless_cpp_parens): Likewise.
14072         (sc_GPL_version): Likewise.
14073         (sc_GFDL_version): Likewise.
14074         (sc_texinfo_acronym): Likewise.
14075         (sc_prohibit_cvs_keyword): Likewise.
14076         (sc_prohibit_stat_st_blocks): Likewise.
14077         (sc_prohibit_S_IS_definition): Likewise.
14078         (sc_redundant_const): Likewise.
14079         (sc_makefile_TAB_only_indentation): Likewise.
14080         (sc_m4_quote_check): Likewise.
14081         (sc_makefile_path_separator_check): Likewise.
14082         (sc_copyright_check): Likewise.
14083         (sc_Wundef_boolean): Likewise.
14084         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14085
14086         maint.mk: match 0 or more whitespace-before-function-call '('
14087         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14088         that have zero or two-and-more spaces between the function name
14089         and the open parenthesis.
14090         (sc_error_message_warn_fatal): Likewise.
14091         (sc_error_message_uppercase): Likewise.
14092         (sc_error_message_period): Likewise.
14093
14094 2010-03-31  Eric Blake  <eblake@redhat.com>
14095
14096         maint.mk: check for [ as well as test
14097         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14098         Based on a libvirt report by Matthias Bolte.
14099
14100         gnumakefile: don't squelch _version output
14101         * top/GNUmakefile (_version): Create one-shot dependency rather
14102         than using $(shell) when version must be regenerated.
14103         (_autoreconf): Run verbosely, by default.
14104
14105         sys_time: avoid compiler warnings
14106         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14107         unconditional, fixing regression from 2010-03-29.
14108         Reported by Simon Josefsson.
14109
14110 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14111
14112         maint.mk: s/_header_without_use/_sc_header_without_use/
14113         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14114         (sc_prohibit_assert_without_use): Use the new name.
14115         (sc_prohibit_close_stream_without_use): Likewise.
14116         (sc_prohibit_getopt_without_use): Likewise.
14117         (sc_prohibit_quotearg_without_use): Likewise.
14118         (sc_prohibit_quote_without_use): Likewise.
14119         (sc_prohibit_long_options_without_use): Likewise.
14120         (sc_prohibit_inttostr_without_use): Likewise.
14121         (sc_prohibit_ignore_value_without_use): Likewise.
14122         (sc_prohibit_error_without_use): Likewise.
14123         (sc_prohibit_xalloc_without_use): Likewise.
14124         (sc_prohibit_hash_without_use): Likewise.
14125         (sc_prohibit_hash_pjw_without_use): Likewise.
14126         (sc_prohibit_safe_read_without_use): Likewise.
14127         (sc_prohibit_argmatch_without_use): Likewise.
14128         (sc_prohibit_canonicalize_without_use): Likewise.
14129         (sc_prohibit_root_dev_ino_without_use): Likewise.
14130         (sc_prohibit_openat_without_use): Likewise.
14131         (sc_prohibit_c_ctype_without_use): Likewise.
14132         (sc_prohibit_signal_without_use): Likewise.
14133         (sc_prohibit_intprops_without_use): Likewise.
14134
14135 2010-03-30  Eric Blake  <eblake@redhat.com>
14136
14137         maint: improve module indicators
14138         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14139         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14140         columns, and avoid extra macro expansion.
14141
14142         fdopendir: work around FreeBSD bug
14143         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14144         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14145         * modules/dirent (Makefile.am): Substitute it.
14146         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14147         declaration.
14148         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14149         fix.
14150         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14151
14152 2010-03-29  Bruno Haible  <bruno@clisp.org>
14153
14154         Emit #pragma system_header after the inclusion guard, not before.
14155         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14156         guard that spans the entire file, not before. This enables an
14157         optimization in GCC's preprocessor.
14158         * lib/ctype.in.h: Likewise.
14159         * lib/dirent.in.h: Likewise.
14160         * lib/errno.in.h: Likewise.
14161         * lib/float.in.h: Likewise.
14162         * lib/getopt.in.h: Likewise.
14163         * lib/iconv.in.h: Likewise.
14164         * lib/langinfo.in.h: Likewise.
14165         * lib/locale.in.h: Likewise.
14166         * lib/math.in.h: Likewise.
14167         * lib/netdb.in.h: Likewise.
14168         * lib/netinet_in.in.h: Likewise.
14169         * lib/pty.in.h: Likewise.
14170         * lib/sched.in.h: Likewise.
14171         * lib/se-selinux.in.h: Likewise.
14172         * lib/search.in.h: Likewise.
14173         * lib/spawn.in.h: Likewise.
14174         * lib/stdarg.in.h: Likewise.
14175         * lib/stdint.in.h: Likewise.
14176         * lib/string.in.h: Likewise.
14177         * lib/strings.in.h: Likewise.
14178         * lib/sys_file.in.h: Likewise.
14179         * lib/sys_ioctl.in.h: Likewise.
14180         * lib/sys_time.in.h: Likewise.
14181         * lib/sys_times.in.h: Likewise.
14182         * lib/sys_utsname.in.h: Likewise.
14183         * lib/sys_wait.in.h: Likewise.
14184         * lib/sysexits.in.h: Likewise.
14185         * lib/wctype.in.h: Likewise.
14186
14187 2010-03-28  James Youngman  <jay@gnu.org>
14188
14189         save-cwd: don't leak a file descriptor when the caller execs.
14190         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14191         saved file descriptor.
14192         * modules/save-cwd (Depends-on): Depend on cloexec.
14193
14194 2010-03-29  Bruno Haible  <bruno@clisp.org>
14195
14196         Remove vestiges of fts-lgpl module.
14197         * lib/fts_.h: Assume GNULIB_FTS is 1.
14198         * lib/fts.c: Likewise.
14199         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14200
14201 2010-03-28  Bruno Haible  <bruno@clisp.org>
14202
14203         Fix definition of tests witness macro.
14204         * gnulib-tool (func_import): Fix definition of witness macro.
14205
14206 2010-03-28  Bruno Haible  <bruno@clisp.org>
14207
14208         Fix ioctl's protoype on glibc systems.
14209         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14210         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14211         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14212         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14213         signature. If not, arrange to replace the ioctl function.
14214         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14215         REPLACE_IOCTL.
14216         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14217         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14218         Reported by Ludovic Courtès <ludo@gnu.org>.
14219
14220 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14221
14222         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14223         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14224         made it so grep -r --include=GLOB* ... did not work.
14225
14226 2010-03-26  Jim Meyering  <meyering@redhat.com>
14227             Eric Blake  <eblake@redhat.com>
14228
14229         maint.mk: prohibit use of test's -o and -a operators
14230         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14231
14232 2010-03-28  Bruno Haible  <bruno@clisp.org>
14233
14234         Remove unused GNULIB_XYZ macro definitions.
14235         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14236         invocation.
14237
14238 2010-03-28  Bruno Haible  <bruno@clisp.org>
14239
14240         Mark privileged tests modules.
14241         * modules/idpriv-drop-tests (Status): New section.
14242         * modules/idpriv-droptemp-tests (Status): New section.
14243
14244 2010-03-28  Bruno Haible  <bruno@clisp.org>
14245
14246         Split C++ tests into separate tests modules.
14247         * modules/dirent-c++-tests: New file, extracted from
14248         modules/dirent-tests.
14249         * modules/dirent-tests: Depend on it.
14250         * modules/fcntl-h-c++-tests: New file, extracted from
14251         modules/fcntl-h-tests.
14252         * modules/fcntl-h-tests: Depend on it.
14253         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14254         * modules/glob-tests: Depend on it.
14255         * modules/iconv-h-c++-tests: New file, extracted from
14256         modules/iconv-h-tests.
14257         * modules/iconv-h-tests: Depend on it.
14258         * modules/langinfo-c++-tests: New file, extracted from
14259         modules/langinfo-tests.
14260         * modules/langinfo-tests: Depend on it.
14261         * modules/locale-c++-tests: New file, extracted from
14262         modules/locale-tests.
14263         * modules/locale-tests: Depend on it.
14264         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14265         * modules/math-tests: Depend on it.
14266         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14267         * modules/pty-tests: Depend on it.
14268         * modules/search-c++-tests: New file, extracted from
14269         modules/search-tests.
14270         * modules/search-tests: Depend on it.
14271         * modules/signal-c++-tests: New file, extracted from
14272         modules/signal-tests.
14273         * modules/signal-tests: Depend on it.
14274         * modules/spawn-c++-tests: New file, extracted from
14275         modules/spawn-tests.
14276         * modules/spawn-tests: Depend on it.
14277         * modules/stdio-c++-tests: New file, extracted from
14278         modules/stdio-tests.
14279         * modules/stdio-tests: Depend on it.
14280         * modules/stdlib-c++-tests: New file, extracted from
14281         modules/stdlib-tests.
14282         * modules/stdlib-tests: Depend on it.
14283         * modules/string-c++-tests: New file, extracted from
14284         modules/string-tests.
14285         * modules/string-tests: Depend on it.
14286         * modules/sys_ioctl-c++-tests: New file, extracted from
14287         modules/sys_ioctl-tests.
14288         * modules/sys_ioctl-tests: Depend on it.
14289         * modules/sys_select-c++-tests: New file, extracted from
14290         modules/sys_select-tests.
14291         * modules/sys_select-tests: Depend on it.
14292         * modules/sys_socket-c++-tests: New file, extracted from
14293         modules/sys_socket-tests.
14294         * modules/sys_socket-tests: Depend on it.
14295         * modules/sys_stat-c++-tests: New file, extracted from
14296         modules/sys_stat-tests.
14297         * modules/sys_stat-tests: Depend on it.
14298         * modules/sys_time-c++-tests: New file, extracted from
14299         modules/sys_time-tests.
14300         * modules/sys_time-tests: Depend on it.
14301         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14302         * modules/time-tests: Depend on it.
14303         * modules/unistd-c++-tests: New file, extracted from
14304         modules/unistd-tests.
14305         * modules/unistd-tests: Depend on it.
14306         * modules/wchar-c++-tests: New file, extracted from
14307         modules/wchar-tests.
14308         * modules/wchar-tests: Depend on it.
14309         * modules/wctype-c++-tests: New file, extracted from
14310         modules/wctype-tests.
14311         * modules/wctype-tests: Depend on it.
14312         Reported by Simon Josefsson.
14313
14314 2010-03-28  Bruno Haible  <bruno@clisp.org>
14315
14316         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14317         * gnulib-tool (func_exists_module): New function, extracted from
14318         func_verify_module.
14319         (func_verify_module): Use it.
14320         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14321         'foo' only if 'foo' exists.
14322         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14323         module.
14324
14325 2010-03-28  Bruno Haible  <bruno@clisp.org>
14326
14327         gnulib-tool: Add support for special categories of tests.
14328         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14329         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14330         (func_usage): Document them.
14331         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14332         inc_unportable_tests, inc_all_tests): New variables.
14333         (func_acceptable): Consider these variables.
14334         (func_modules_transitive_closure): Make it work when the 'Status' field
14335         consists of multiple words.
14336         (func_import): Store and restore the values of inc_cxx_tests,
14337         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14338         inc_all_tests in gnulib-comp.m4.
14339         (func_create_testdir): Set inc_all_tests to true.
14340         * doc/gnulib.texi (Extra tests modules): New section.
14341         Suggested by Jim Meyering.
14342
14343 2010-03-28  Bruno Haible  <bruno@clisp.org>
14344
14345         ansi-c++-opt: Allow turning off the C++ build by default.
14346         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14347         gl_CXX_CHOICE_DEFAULT_NO is defined.
14348         Requested by Eric Blake.
14349
14350 2010-03-28  Bruno Haible  <bruno@clisp.org>
14351
14352         unistd: Avoid #define replacements in C++ mode.
14353         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14354         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14355         setsockopt, shutdown, select): In C++, attach a warning to the function
14356         if possible, rather than #defining the symbol to a dysfunctional alias.
14357         Reported by John W. Eaton <jwe@gnu.org>.
14358
14359 2010-03-28  Bruno Haible  <bruno@clisp.org>
14360
14361         Fix link errors on mingw.
14362         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14363         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14364         $(LIBSOCKET).
14365         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14366         $(LIBSOCKET).
14367
14368 2010-03-28  Bruno Haible  <bruno@clisp.org>
14369             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14370
14371         lib-ignore: Determine different options for different compilers.
14372         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14373         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14374         Add comments.
14375         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14376         * NEWS: Mention the change.
14377
14378 2010-03-27  Bruno Haible  <bruno@clisp.org>
14379
14380         Remove unused GNULIB_XYZ macro definitions.
14381         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14382         * modules/fseek (configure.ac): Likewise.
14383         * modules/ioctl (configure.ac): Likewise.
14384         * modules/open (configure.ac): Likewise.
14385         * modules/stdlib-safer (configure.ac): Likewise.
14386
14387 2010-03-27  Bruno Haible  <bruno@clisp.org>
14388
14389         Add a remark about certain modules.
14390         * modules/malloc (Comment): New section.
14391         * modules/realloc (Comment): Likewise.
14392         * modules/sigpipe (Comment): Likewise.
14393
14394 2010-03-27  Bruno Haible  <bruno@clisp.org>
14395
14396         Resolve conflict between the two kinds of module indicators.
14397         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14398         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14399         * modules/canonicalize (configure.ac): Invoke
14400         gl_MODULE_INDICATOR_FOR_TESTS.
14401         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14402         GNULIB_XYZ.
14403         * tests/test-dirent-c++.cc: Likewise.
14404         * tests/test-dirent-safer.c: Likewise.
14405         * tests/test-dup2.c: Likewise.
14406         * tests/test-fchdir.c: Likewise.
14407         * tests/test-fcntl-h-c++.cc: Likewise.
14408         * tests/test-getopt.c: Likewise.
14409         * tests/test-getopt.h: Likewise.
14410         * tests/test-langinfo-c++.cc: Likewise.
14411         * tests/test-locale-c++.cc: Likewise.
14412         * tests/test-math-c++.cc: Likewise.
14413         * tests/test-pty-c++.cc: Likewise.
14414         * tests/test-search-c++.cc: Likewise.
14415         * tests/test-signal-c++.cc: Likewise.
14416         * tests/test-spawn-c++.cc: Likewise.
14417         * tests/test-stdio-c++.cc: Likewise.
14418         * tests/test-stdlib-c++.cc: Likewise.
14419         * tests/test-string-c++.cc: Likewise.
14420         * tests/test-sys_ioctl-c++.cc: Likewise.
14421         * tests/test-sys_select-c++.cc: Likewise.
14422         * tests/test-sys_socket-c++.cc: Likewise.
14423         * tests/test-sys_stat-c++.cc: Likewise.
14424         * tests/test-sys_time-c++.cc: Likewise.
14425         * tests/test-time-c++.cc: Likewise.
14426         * tests/test-unistd-c++.cc: Likewise.
14427         * tests/test-wchar-c++.cc: Likewise.
14428         * tests/uninorm/test-u8-nfc.c: Likewise.
14429         * tests/uninorm/test-u8-nfd.c: Likewise.
14430         * tests/uninorm/test-u8-nfkc.c: Likewise.
14431         * tests/uninorm/test-u8-nfkd.c: Likewise.
14432         * tests/uninorm/test-u16-nfc.c: Likewise.
14433         * tests/uninorm/test-u16-nfd.c: Likewise.
14434         * tests/uninorm/test-u16-nfkc.c: Likewise.
14435         * tests/uninorm/test-u16-nfkd.c: Likewise.
14436         * tests/uninorm/test-u32-nfc.c: Likewise.
14437         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14438         * tests/uninorm/test-u32-nfd.c: Likewise.
14439         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14440         * tests/uninorm/test-u32-nfkc.c: Likewise.
14441         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14442         * tests/uninorm/test-u32-nfkd.c: Likewise.
14443         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14444         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14445
14446 2010-03-27  Bruno Haible  <bruno@clisp.org>
14447
14448         Distinguish two kinds of module indicators.
14449         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14450         gl_MODULE_INDICATOR.
14451         (gl_MODULE_INDICATOR): New macro.
14452         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14453         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14454         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14455         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14456         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14457         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14458         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14459         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14460         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14461         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14462         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14463         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14466         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14467         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14468         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14469         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14470         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14471         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14472         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14473         * modules/cloexec (configure.ac): Likewise.
14474         * modules/getopt-gnu (configure.ac): Likewise.
14475         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14476         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14477         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14478         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14479
14480 2010-03-27  Bruno Haible  <bruno@clisp.org>
14481
14482         New module description field 'Comment'.
14483         * gnulib-tool: New option --extract-comment.
14484         (func_usage): Document it.
14485         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14486         (func_get_comment): New function.
14487         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14488
14489 2010-03-27  Bruno Haible  <bruno@clisp.org>
14490
14491         Addendum to 2010-02-07 commit.
14492         * gnulib-tool (func_usage): Document --extract-applicability option.
14493
14494 2010-03-27  Bruno Haible  <bruno@clisp.org>
14495
14496         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14497         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14498         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14499         rather than link errors.
14500
14501 2010-03-27  Bruno Haible  <bruno@clisp.org>
14502
14503         Avoid side effects from tests-related modules on the compilation of lib.
14504         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14505         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14506         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14507         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14508         macro.
14509         (func_import): Define a witness macro. Assign it a value that depends
14510         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14511         tests-related modules.
14512         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14513         Reported by Jim Meyering.
14514
14515 2010-03-27  Bruno Haible  <bruno@clisp.org>
14516
14517         Factorize common .m4 code.
14518         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14519         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14520         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14521         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14522         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14523         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14524         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14525         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14526         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14527         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14528         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14529         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14530         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14531         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14532         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14533         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14534         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14535         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14536         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14537         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14538         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14539         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14540         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14541         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14542         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14543         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14544         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14545         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14546         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14547         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14548         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14549         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14550
14551 2010-03-27  Bruno Haible  <bruno@clisp.org>
14552
14553         Fix a compilation error on Cygwin with g++ >= 4.3.
14554         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14555         if it is undefined or if we alias it to chmod.
14556         (lstat): Don't warn about the use of this function if it is undefined
14557         or if we alias it to stat.
14558         Reported by Simon Josefsson.
14559
14560 2010-03-27  Bruno Haible  <bruno@clisp.org>
14561
14562         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14563         * modules/getlogin (configure.ac): Update.
14564
14565         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14566         * modules/getlogin_r (configure.ac): Update.
14567
14568         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14570         * modules/inet_ntop (configure.ac): Update.
14571
14572         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14573         * modules/inet_pton (configure.ac): Update.
14574
14575         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14576         * modules/mbslen (configure.ac): Update.
14577
14578         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14579         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14580         * modules/forkpty (configure.ac): Update.
14581         * modules/openpty (configure.ac): Update.
14582
14583 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14584
14585         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14586         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14587
14588 2010-03-25  Eric Blake  <eblake@redhat.com>
14589
14590         maint: use pragma consistently across replacement headers
14591         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14592         * lib/dirent.in.h (system_header): Likewise.
14593         * lib/errno.in.h (system_header): Likewise.
14594         * lib/float.in.h (system_header): Likewise.
14595         * lib/getopt.in.h (system_header): Likewise.
14596         * lib/iconv.in.h (system_header): Likewise.
14597         * lib/inttypes.in.h (system_header): Likewise.
14598         * lib/langinfo.in.h (system_header): Likewise.
14599         * lib/locale.in.h (system_header): Likewise.
14600         * lib/math.in.h (system_header): Likewise.
14601         * lib/netdb.in.h (system_header): Likewise.
14602         * lib/netinet_in.in.h (system_header): Likewise.
14603         * lib/pty.in.h (system_header): Likewise.
14604         * lib/sched.in.h (system_header): Likewise.
14605         * lib/se-selinux.in.h (system_header): Likewise.
14606         * lib/search.in.h (system_header): Likewise.
14607         * lib/spawn.in.h (system_header): Likewise.
14608         * lib/stdarg.in.h (system_header): Likewise.
14609         * lib/stdint.in.h (system_header): Likewise.
14610         * lib/string.in.h (system_header): Likewise.
14611         * lib/strings.in.h (system_header): Likewise.
14612         * lib/sys_file.in.h (system_header): Likewise.
14613         * lib/sys_ioctl.in.h (system_header): Likewise.
14614         * lib/sys_socket.in.h (system_header): Likewise.
14615         * lib/sys_times.in.h (system_header): Likewise.
14616         * lib/sys_utsname.in.h (system_header): Likewise.
14617         * lib/sys_wait.in.h (system_header): Likewise.
14618         * lib/sysexits.in.h (system_header): Likewise.
14619         * lib/unistd.in.h (system_header): Likewise.
14620         * lib/wctype.in.h (system_header): Likewise.
14621
14622         arpa/inet: fix mingw compilation warning
14623         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14624         Reported by Matthew Bolte.
14625
14626 2010-03-25  Bruno Haible  <bruno@clisp.org>
14627
14628         Avoid collision between gnulib wrapper and libintl wrapper.
14629         * lib/printf.c (printf): Don't define if a printf wrapper is already
14630         defined in intl/printf.c.
14631         Reported by Michel Boaventura <michel@michelboaventura.com>.
14632
14633 2010-03-25  Bruno Haible  <bruno@clisp.org>
14634
14635         Use ANSI C.
14636         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14637
14638 2010-03-25  Bruno Haible  <bruno@clisp.org>
14639
14640         Minor formatting changes.
14641         * lib/acosl.c: Insert space before function argument list.
14642         * lib/argz.c: Likewise.
14643         * lib/asinl.c: Likewise.
14644         * lib/expl.c: Likewise.
14645         * lib/gen-uni-tables.c: Likewise.
14646         * lib/gettext.h: Likewise.
14647         * lib/glthread/lock.h: Likewise.
14648         * lib/tanl.c: Likewise.
14649         * lib/uniname/uniname.c: Likewise.
14650         * tests/test-idpriv-drop.c: Likewise.
14651         * tests/test-idpriv-droptemp.c: Likewise.
14652         * tests/test-lock.c: Likewise.
14653         * tests/test-tls.c: Likewise.
14654         * lib/argp-help.c: Insert space before function-like macro argument
14655         list.
14656         * lib/memcmp.c: Likewise.
14657         * tests/test-base64.c: Likewise.
14658         * lib/localename.c: Insert space before sizeof's argument list.
14659         * lib/safe-alloc.h: Likewise.
14660         * lib/file-set.h: Insert space before macro argument list.
14661         * tests/test-argp.c: Likewise.
14662         * lib/argp-namefrob.h: Insert space before function parameter list.
14663         * lib/getaddrinfo.c: Likewise.
14664         * lib/netdb.in.h: Likewise.
14665         * lib/parse-duration.h: Likewise.
14666         * lib/parse-duration.c: Likewise.
14667         * lib/poll.c: Likewise.
14668         * lib/select.c: Likewise.
14669         * lib/trim.h: Likewise.
14670         * tests/test-usleep.c: Likewise.
14671         * lib/ldexpl.c: Insert space before function parameter list and before
14672         function argument list.
14673         * lib/logl.c: Likewise.
14674         * lib/sqrtl.c: Likewise.
14675         * lib/trim.c: Likewise.
14676         * lib/cosl.c: Use GNU style indentation. Insert space before function
14677         argument list.
14678         * lib/sinl.c: Likewise.
14679         * lib/tsearch.c: Insert space after 'for'.
14680         Reported by Jim Meyering.
14681
14682 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14683
14684         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14685         config header before grepping, as it's not present before
14686         autoreconf/configure are run.  Reported by Simon Josefsson.
14687
14688 2010-03-23  Bruno Haible  <bruno@clisp.org>
14689
14690         pt_chown: Make it work with automake < 1.11.
14691         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14692         Reported by Simon Josefsson.
14693
14694 2010-03-23  Bruno Haible  <bruno@clisp.org>
14695
14696         pt_chown: Don't depend on GPLed modules.
14697         * lib/pt_chown.c: Don't include idpriv.h.
14698         (main): Don't drop privileges.
14699         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14700         Reported by Simon Josefsson.
14701
14702 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14703
14704         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14705         suggestions from karl@freefriends.org (Karl Berry).
14706
14707 2010-03-22  Eric Blake  <eblake@redhat.com>
14708
14709         gethostname: further tweaks
14710         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14711         are overriding gethostname.
14712         Suggested by Bruno Haible.
14713
14714 2010-03-21  Bruno Haible  <bruno@clisp.org>
14715
14716         Fix comments.
14717         * lib/forkpty.c (rpl_forkpty): Fix comment.
14718         * lib/openpty.c (rpl_openpty): Likewise.
14719         Reported by Eric Blake.
14720
14721 2010-03-22  Eric Blake  <eblake@redhat.com>
14722
14723         gethostname: fix build on mingw
14724         * lib/unistd.in.h (includes): Work around fact that mingw
14725         <winsock2.h> re-includes <unistd.h>, by avoiding any
14726         redeclarations if we are being included by <winsock2.h>.
14727         Reported by Matthias Bolte.
14728
14729 2010-03-21  Bruno Haible  <bruno@clisp.org>
14730
14731         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14732         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14733         modifications.
14734         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14735         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14736         provide the replacement.
14737         * modules/forkpty (Depends-on): Add openpty, login_tty.
14738         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14739         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14740         * doc/glibc-functions/forkpty.texi: More supported platforms.
14741         * config/srclist.txt: Add forkpty.c (commented).
14742
14743 2010-03-21  Bruno Haible  <bruno@clisp.org>
14744
14745         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14746         (Makefile.am): Verify that PTY_LIB is defined.
14747
14748         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14749
14750 2010-03-21  Bruno Haible  <bruno@clisp.org>
14751
14752         Tests for module 'login_tty'.
14753         * modules/login_tty-tests: New file.
14754         * tests/test-login_tty.c: New file.
14755
14756         New module 'login_tty'.
14757         * lib/login_tty.c: New file.
14758         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14759         * modules/login_tty: New file.
14760         * doc/glibc-functions/login_tty.texi: Mention the new module.
14761
14762 2010-03-21  Bruno Haible  <bruno@clisp.org>
14763
14764         login_tty: Documentation.
14765         * doc/glibc-functions/login_tty.texi: New file.
14766         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14767
14768 2010-03-21  Bruno Haible  <bruno@clisp.org>
14769
14770         pty: Consistent macro naming.
14771         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14772         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14773         * modules/pty (configure.ac): Update.
14774
14775 2010-03-21  Bruno Haible  <bruno@clisp.org>
14776
14777         Tests for openpty: Make stricter.
14778         * tests/test-openpty.c (main): Add test of canonical processing and
14779         erase.
14780         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14781
14782         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14783         * lib/openpty.c (openpty): New replacement function.
14784         * lib/pty.in.h: Include <termios.h>.
14785         (openpty): Update declaration. Add comments.
14786         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14787         is not declared, arrange to provide the replacement. Check for _getpty
14788         and posix_openpt.
14789         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14790         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14791         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14792         * modules/pty-tests (test_pty_c___LDADD): New variable.
14793         * doc/glibc-functions/openpty.texi: More supported platforms.
14794
14795 2010-03-21  Bruno Haible  <bruno@clisp.org>
14796
14797         setenv: Tweaks.
14798         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14799         the test program.
14800         * doc/posix-functions/setenv.texi: Update platforms list.
14801
14802 2010-03-21  Bruno Haible  <bruno@clisp.org>
14803
14804         New module 'unlockpt'.
14805         * lib/unlockpt.c: New file, from glibc with modifications.
14806         * m4/unlockpt.m4: New file.
14807         * modules/unlockpt: New file.
14808         * lib/stdlib.in.h (unlockpt): New declaration.
14809         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14810         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14811         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14812         HAVE_UNLOCKPT.
14813         * doc/posix-functions/unlockpt.texi: Mention the new module.
14814         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14815         * config/srclist.txt: Add unlockpt.c (commented).
14816
14817 2010-03-21  Jim Meyering  <meyering@redhat.com>
14818
14819         maint.mk: prohibit inclusion of "intprops.h" without use
14820         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14821
14822 2010-03-21  Bruno Haible  <bruno@clisp.org>
14823
14824         New module 'grantpt'.
14825         * lib/grantpt.c: New file, from glibc with modifications.
14826         * m4/grantpt.m4: New file.
14827         * modules/grantpt: New file.
14828         * lib/stdlib.in.h (grantpt): New declaration.
14829         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14830         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14831         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14832         HAVE_GRANTPT.
14833         * doc/posix-functions/grantpt.texi: Mention the new module.
14834         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14835         * config/srclist.txt: Add grantpt.c (commented).
14836
14837 2010-03-21  Bruno Haible  <bruno@clisp.org>
14838
14839         New module 'pt_chown'.
14840         * lib/pt_chown.c: New file, from glibc with modifications.
14841         * lib/pty-private.h: New file, from glibc with modifications.
14842         * modules/pt_chown: New file.
14843         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14844
14845 2010-03-21  Bruno Haible  <bruno@clisp.org>
14846
14847         Tests for module 'ptsname'.
14848         * modules/ptsname-tests: New file.
14849         * tests/test-ptsname.c: New file.
14850
14851         New module 'ptsname'.
14852         * lib/ptsname.c: New file, from glibc with modifications.
14853         * m4/ptsname.m4: New file.
14854         * modules/ptsname: New file.
14855         * lib/stdlib.in.h (ptsname): New declaration.
14856         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14857         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14858         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14859         HAVE_PTSNAME.
14860         * doc/posix-functions/ptsname.texi: Mention the new module.
14861         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14862         * config/srclist.txt: Add ptsname.c (commented).
14863
14864 2010-03-21  Bruno Haible  <bruno@clisp.org>
14865
14866         Tests for module 'ttyname_r'.
14867         * modules/ttyname_r-tests: New file.
14868         * tests/test-ttyname_r.c: New file.
14869
14870         New module 'ttyname_r'.
14871         * lib/ttyname_r.c: New file.
14872         * m4/ttyname_r.m4: New file.
14873         * modules/ttyname_r: New file.
14874         * lib/unistd.in.h (ttyname_r): New declaration.
14875         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14876         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14877         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14878         HAVE_TTYNAME_R.
14879         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14880         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14881
14882 2010-03-20  Bruno Haible  <bruno@clisp.org>
14883
14884         signal: Undefine macro definitions in C++ mode.
14885         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14886         sigfillset): Undefine macro definitions from the system header in C++
14887         mode.
14888         Reported by John W. Eaton <jwe@gnu.org>.
14889
14890 2010-03-20  Bruno Haible  <bruno@clisp.org>
14891
14892         Ensure no #include statements inside extern "C" { ... }.
14893         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14894         contain #include statements.
14895         * lib/time.in.h: Likewise.
14896
14897 2010-03-20  Bruno Haible  <bruno@clisp.org>
14898
14899         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14900         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14901         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14902         Reported by John W. Eaton <jwe@gnu.org>.
14903
14904 2010-03-20  Bruno Haible  <bruno@clisp.org>
14905
14906         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14907         Reported by Jim Meyering.
14908
14909 2010-03-20  Bruno Haible  <bruno@clisp.org>
14910
14911         pipe: Set errno upon failure.
14912         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14913         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14914         errno value in error message.
14915
14916 2010-03-20  Bruno Haible  <bruno@clisp.org>
14917             Jim Meyering  <meyering@redhat.com>
14918
14919         lchown: Avoid "unused variable" warning.
14920         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14921
14922 2010-03-20  Bruno Haible  <bruno@clisp.org>
14923
14924         Work around unlink() bug on MacOS X 10.5.6.
14925         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14926         attempting to unlink a parent directory.
14927         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14928         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14929         activate for the replacement function.
14930         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14931
14932 2010-03-20  Bruno Haible  <bruno@clisp.org>
14933
14934         Fix link errors on Solaris 8.
14935         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14936         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14937
14938 2010-03-19  Jim Meyering  <meyering@redhat.com>
14939
14940         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14941         The _LIBC implementation of build_range_exp correctly honors the
14942         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14943         However, the non-_LIBC implementation would ignore that syntax-bit
14944         flag and return REG_ERANGE unconditionally.
14945         This change makes it honor that flag.
14946         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14947         Make two pointer parameters "const".
14948         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14949         (parse_bracket_exp): Update caller.
14950
14951         regex.m4: correct the reversed range endpoint ([b-a]) test
14952         * m4/regex.m4: When requiring that [b-a] evoke failure,
14953         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14954         test pass once again for x86-based systems.
14955
14956 2010-03-19  Bruno Haible  <bruno@clisp.org>
14957
14958         scandir: Fix link error on Solaris 8.
14959         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14960         macros.
14961
14962 2010-03-19  Bruno Haible  <bruno@clisp.org>
14963
14964         getusershell: Fix documentation.
14965         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14966         module.
14967         * doc/glibc-functions/setusershell.texi: Likewise.
14968
14969         getusershell: Provide declaration, missing on Solaris 9.
14970         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14971         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14972         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14973         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14975         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14976         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14977         HAVE_GETUSERSHELL.
14978         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14979
14980 2010-03-19  Bruno Haible  <bruno@clisp.org>
14981
14982         wctype: Provide iswblank function.
14983         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14984         exists and is fine.
14985         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14986         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14987         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14988         * doc/posix-functions/iswblank.texi: Update.
14989
14990 2010-03-19  Bruno Haible  <bruno@clisp.org>
14991
14992         Tests of module 'pty' in C++ mode.
14993         * modules/pty-tests: New file.
14994         * tests/test-pty-c++.cc: New file.
14995         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14996
14997 2010-03-19  Eric Blake  <eblake@redhat.com>
14998
14999         logb: fix documentation
15000         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15001         1.5 declaration bug.
15002
15003         forkpty, openpty: prefer glibc's const-safe prototype
15004         * lib/forkpty.c (rpl_forkpty): New file.
15005         * lib/openpty.c (rpl_openpty): Likewise.
15006         * modules/forkpty (Files): Distribute it.
15007         * modules/openpty (Files): Likewise.
15008         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15009         check...
15010         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15011         replacement for for non-const BSD signature.
15012         * modules/pty (Makefile.am): Substitute witnesses.
15013         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15014         * tests/test-forkpty.c: Update signature check.
15015         * tests/test-openpty.c: Likewise.
15016         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15017         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15018
15019         forkpty, openpty: split functions into new modules
15020         * modules/pty (Makefile.am): Substitute new witnesses.
15021         (Libraries): Move library detection...
15022         * modules/forkpty: ...into new module.
15023         * modules/openpty: Another new module.
15024         * modules/pty-tests: Rename and split...
15025         * modules/forkpty-tests: ...to this...
15026         * modules/openpty-tests: ...and this.
15027         * tests/test-pty.c: Rename and split...
15028         * tests/test-forkpty.c: ...to this...
15029         * tests/test-openpty.c: ...and this.
15030         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15031         (gl_PTY): Split library searching...
15032         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15033         (gl_FORKPTY, gl_OPENPTY): New macros.
15034         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15035         * NEWS: Mention the split.
15036         * MODULES.html.sh (Misc): Document the modules.
15037         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15038         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15039
15040         pty: improve replacement header
15041         * lib/pty.in.h: New file.
15042         * modules/pty (Files): Ship it.
15043         (Makefile.am): Always build replacement.
15044         * m4/pty.m4: Rename...
15045         * m4/pty_h.m4: ...to this.
15046         (gl_PTY): Modernize setting of witness macros; update check of
15047         forkpty to take proper advantage of cache.
15048         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15049
15050         getopt: avoid compiler warning
15051         * lib/getopt.c (attribute_hidden): Remove unused macro.
15052
15053 2010-03-18  Bruno Haible  <bruno@clisp.org>
15054
15055         Fix link errors on Solaris 8.
15056         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15057         * modules/search-tests (test_search_c___LDADD): Likewise.
15058         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15059         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15060         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15061         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15062         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15063         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15064         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15065
15066 2010-03-18  Bruno Haible  <bruno@clisp.org>
15067
15068         Fix bug introduced on 2010-03-14.
15069         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15070         (gl_SPAWN_H): Require it.
15071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15072         Reported by Simon Josefsson.
15073
15074 2010-03-18  Bruno Haible  <bruno@clisp.org>
15075
15076         Fix typo introduced on 2009-12-31.
15077         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15078         posix_spawn_file_actions_adddup2.
15079
15080 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15081         and Eric Blake  <eblake@redhat.com>
15082
15083         test-vc-list-files-git: make more robust
15084         * tests/test-vc-list-files-git.sh: Unset problematic environment
15085         variables.  Chain commands together.
15086
15087 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15088
15089         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15090         `AC_CHECK_DECL' invocation.
15091
15092 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15093
15094         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15095         appears before executable statements. Suggested by Petr Sumbera
15096         <Petr.Sumbera@Sun.COM>.
15097
15098 2010-03-14  Bruno Haible  <bruno@clisp.org>
15099
15100         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15101         portability problems. Instead use a simpler test.
15102         (main): Check that invalid arguments are rejected only on Linux.
15103
15104 2010-03-14  Bruno Haible  <bruno@clisp.org>
15105
15106         Fix bug introduced on 2009-12-31.
15107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15108         gl_PREREQ_SYS_H_WINSOCK2 always.
15109         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15110         SYS_SOCKET_H variable.
15111         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15112         Update comments.
15113         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15114         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15115         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15116         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15117         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15118
15119 2010-03-14  Bruno Haible  <bruno@clisp.org>
15120
15121         Fix values returned by sinl, cosl.
15122         * lib/trigl.h: Add specification comments.
15123         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15124         that combines the values from the precomputed table with the values of
15125         the Chebyshev polynomials.
15126
15127 2010-03-14  Bruno Haible  <bruno@clisp.org>
15128
15129         Fix compilation error when modules 'posix_spawn[p]' are not used.
15130         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15132
15133 2010-03-14  Bruno Haible  <bruno@clisp.org>
15134
15135         Fix compilation error on mingw when module 'time_r' is not used.
15136         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15137         is 1.
15138         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15139         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15140         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15142
15143 2010-03-14  Bruno Haible  <bruno@clisp.org>
15144
15145         Fix compilation error with Sun C.
15146         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15147         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15148         instead of GCC specific ULONG_LONG_MAX.
15149         * lib/xstrtoll.c: Likewise.
15150         * lib/xstrtoull.c: Likewise.
15151
15152 2010-03-13  Bruno Haible  <bruno@clisp.org>
15153
15154         Allow the user to disable C++ code and tests.
15155         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15156         (gl_PROG_ANSI_CXX): Require it.
15157
15158 2010-03-13  Bruno Haible  <bruno@clisp.org>
15159
15160         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15161         cases.
15162
15163 2010-03-13  Bruno Haible  <bruno@clisp.org>
15164
15165         Test that gnulib does not break the standard C++ headers.
15166         * tests/test-locale-c++2.cc: New file.
15167         * modules/locale-tests (Files): Add it.
15168         (Makefile.am): Compile it for test-locale-c++.
15169         * tests/test-math-c++2.cc: New file.
15170         * modules/math-tests (Files): Add it.
15171         (Makefile.am): Compile it for test-math-c++.
15172         * tests/test-signal-c++2.cc: New file.
15173         * modules/signal-tests (Files): Add it.
15174         (Makefile.am): Compile it for test-signal-c++.
15175         * tests/test-stdio-c++2.cc: New file.
15176         * modules/stdio-tests (Files): Add it.
15177         (Makefile.am): Compile it for test-stdio-c++.
15178         * tests/test-stdlib-c++2.cc: New file.
15179         * modules/stdlib-tests (Files): Add it.
15180         (Makefile.am): Compile it for test-stdlib-c++.
15181         * tests/test-string-c++2.cc: New file.
15182         * modules/string-tests (Files): Add it.
15183         (Makefile.am): Compile it for test-string-c++.
15184         * tests/test-time-c++2.cc: New file.
15185         * modules/time-tests (Files): Add it.
15186         (Makefile.am): Compile it for test-time-c++.
15187         Reported by John W. Eaton <jwe@gnu.org>.
15188
15189 2010-03-13  Bruno Haible  <bruno@clisp.org>
15190
15191         * gnulib-tool (func_usage): Clarify which options are available for
15192         --create-testdir and --create-megatestdir.
15193
15194 2010-03-13  Bruno Haible  <bruno@clisp.org>
15195
15196         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15197         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15198         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15199         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15200         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15201         when appropriate.
15202         Reported by Jim Meyering.
15203
15204 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15205
15206         * gnulib-tool (func_import): Explain origin of code.
15207
15208 2010-03-12  Bruno Haible  <bruno@clisp.org>
15209
15210         Fix problem with automake's definition of CXXLINK.
15211         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15212         Reported by Simon Josefsson and Ludovic Courtès.
15213
15214 2010-03-12  Bruno Haible  <bruno@clisp.org>
15215
15216         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15217         stable releases.
15218
15219 2010-03-11  Bruno Haible  <bruno@clisp.org>
15220
15221         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15222         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15223         whether the system provides one variant or multiple variants of the
15224         function.
15225         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15226         C++ compilers.
15227         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15228         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15229         Reported by Jim Meyering.
15230
15231 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15232
15233         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15234
15235 2010-03-08  Bruno Haible  <bruno@clisp.org>
15236
15237         gnulib-tool: Add support for --libtool in --create-testdir.
15238         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15239         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15240
15241 2010-03-08  Eric Blake  <eblake@redhat.com>
15242
15243         gnulib-tool.texi: mention possibility of git submodule
15244         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15245         submodules.
15246         * doc/.gitignore: Ignore another generated file.
15247
15248 2010-03-08  Karl Berry  <karl@gnu.org>
15249
15250         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15251         of committing gnulib files while skipping others.
15252
15253 2010-03-07  Bruno Haible  <bruno@clisp.org>
15254
15255         Tests of module 'wctype' in C++ mode.
15256         * tests/test-wctype-c++.cc: New file.
15257         * modules/wctype-tests (Files): Add it and tests/signature.h.
15258         (Depends-on): Add ansi-c++-opt.
15259         (Makefile.am): Arrange to compile and run test-wctype-c++.
15260
15261         Tests of module 'wchar' in C++ mode.
15262         * tests/test-wchar-c++.cc: New file.
15263         * modules/wchar-tests (Files): Add it and tests/signature.h.
15264         (Depends-on): Add ansi-c++-opt.
15265         (Makefile.am): Arrange to compile and run test-wchar-c++.
15266         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15267         gl_MODULE_INDICATOR.
15268
15269         Tests of module 'unistd' in C++ mode.
15270         * tests/test-unistd-c++.cc: New file.
15271         * modules/unistd-tests (Files): Add it and tests/signature.h.
15272         (Depends-on): Add ansi-c++-opt.
15273         (Makefile.am): Arrange to compile and run test-unistd-c++.
15274         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15275         gl_MODULE_INDICATOR.
15276
15277         Tests of module 'time' in C++ mode.
15278         * tests/test-time-c++.cc: New file.
15279         * modules/time-tests (Files): Add it and tests/signature.h.
15280         (Depends-on): Add ansi-c++-opt.
15281         (Makefile.am): Arrange to compile and run test-time-c++.
15282         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15283
15284         Tests of module 'sys_time' in C++ mode.
15285         * tests/test-sys_time-c++.cc: New file.
15286         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15287         (Depends-on): Add ansi-c++-opt.
15288         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15289         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15290         gl_MODULE_INDICATOR.
15291
15292         Tests of module 'sys_stat' in C++ mode.
15293         * tests/test-sys_stat-c++.cc: New file.
15294         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15295         (Depends-on): Add ansi-c++-opt.
15296         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15297         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15298         gl_MODULE_INDICATOR.
15299
15300         Tests of module 'sys_socket' in C++ mode.
15301         * tests/test-sys_socket-c++.cc: New file.
15302         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15303         (Depends-on): Add ansi-c++-opt.
15304         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15305         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15306         gl_MODULE_INDICATOR.
15307
15308         Tests of module 'sys_select' in C++ mode.
15309         * tests/test-sys_select-c++.cc: New file.
15310         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15311         (Depends-on): Add ansi-c++-opt.
15312         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15313         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15314         gl_MODULE_INDICATOR.
15315
15316         Tests of module 'sys_ioctl' in C++ mode.
15317         * tests/test-sys_ioctl-c++.cc: New file.
15318         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15319         (Depends-on): Add ansi-c++-opt.
15320         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15321         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15322         gl_MODULE_INDICATOR.
15323
15324         Tests of module 'string' in C++ mode.
15325         * tests/test-string-c++.cc: New file.
15326         * modules/string-tests (Files): Add it and tests/signature.h.
15327         (Depends-on): Add ansi-c++-opt.
15328         (Makefile.am): Arrange to compile and run test-string-c++.
15329         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15330         gl_MODULE_INDICATOR.
15331
15332         Tests of module 'stdlib' in C++ mode.
15333         * tests/test-stdlib-c++.cc: New file.
15334         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15335         (Depends-on): Add ansi-c++-opt.
15336         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15337         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15338         gl_MODULE_INDICATOR.
15339
15340         Tests of module 'stdio' in C++ mode.
15341         * tests/test-stdio-c++.cc: New file.
15342         * modules/stdio-tests (Files): Add it and tests/signature.h.
15343         (Depends-on): Add ansi-c++-opt.
15344         (Makefile.am): Arrange to compile and run test-stdio-c++.
15345         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15346         gl_MODULE_INDICATOR.
15347
15348         Tests of module 'spawn' in C++ mode.
15349         * tests/test-spawn-c++.cc: New file.
15350         * modules/spawn-tests (Files): Add it and tests/signature.h.
15351         (Depends-on): Add ansi-c++-opt.
15352         (Makefile.am): Arrange to compile and run test-spawn-c++.
15353         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15354         gl_MODULE_INDICATOR.
15355
15356         Tests of module 'signal' in C++ mode.
15357         * tests/test-signal-c++.cc: New file.
15358         * modules/signal-tests (Files): Add it and tests/signature.h.
15359         (Depends-on): Add ansi-c++-opt.
15360         (Makefile.am): Arrange to compile and run test-signal-c++.
15361         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15362         gl_MODULE_INDICATOR.
15363
15364         Tests of module 'search' in C++ mode.
15365         * tests/test-search-c++.cc: New file.
15366         * modules/search-tests (Files): Add it and tests/signature.h.
15367         (Depends-on): Add ansi-c++-opt.
15368         (Makefile.am): Arrange to compile and run test-search-c++.
15369         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15370         gl_MODULE_INDICATOR.
15371
15372         Tests of module 'math' in C++ mode.
15373         * tests/test-math-c++.cc: New file.
15374         * modules/math-tests (Files): Add it and tests/signature.h.
15375         (Depends-on): Add ansi-c++-opt.
15376         (Makefile.am): Arrange to compile and run test-math-c++.
15377         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15378
15379         Tests of module 'locale' in C++ mode.
15380         * tests/test-locale-c++.cc: New file.
15381         * modules/locale-tests (Files): Add it and tests/signature.h.
15382         (Depends-on): Add ansi-c++-opt.
15383         (Makefile.am): Arrange to compile and run test-locale-c++.
15384         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15385         gl_MODULE_INDICATOR.
15386
15387         Tests of module 'langinfo' in C++ mode.
15388         * tests/test-langinfo-c++.cc: New file.
15389         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15390         (Depends-on): Add ansi-c++-opt.
15391         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15392         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15393         gl_MODULE_INDICATOR.
15394
15395         Tests of module 'iconv-h' in C++ mode.
15396         * tests/test-iconv-h-c++.cc: New file.
15397         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15398         (Depends-on): Add ansi-c++-opt.
15399         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15400
15401         Tests of module 'glob' in C++ mode.
15402         * tests/test-glob-c++.cc: New file.
15403         * modules/glob-tests (Files): Add it.
15404         (Depends-on): Add ansi-c++-opt.
15405         (Makefile.am): Arrange to compile and run test-glob-c++.
15406
15407         Tests of module 'fcntl-h' in C++ mode.
15408         * tests/test-fcntl-h-c++.cc: New file.
15409         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15410         (Depends-on): Add ansi-c++-opt.
15411         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15412         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15413         gl_MODULE_INDICATOR.
15414
15415         Tests of module 'dirent' in C++ mode.
15416         * tests/test-dirent-c++.cc: New file.
15417         * modules/dirent-tests (Files): Add it and tests/signature.h.
15418         (Depends-on): Add ansi-c++-opt.
15419         (Makefile.am): Arrange to compile and run test-dirent-c++.
15420         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15421         gl_MODULE_INDICATOR.
15422
15423         New module 'ansi-c++-opt'.
15424         * modules/ansi-c++-opt: New file.
15425         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15426
15427         Document C++ namespace mode.
15428         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15429
15430         wctype: Avoid #define replacements in C++ mode.
15431         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15432         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15433         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15434         In C++, define a namespaced alias symbol.
15435         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15436         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15437         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15438         rule.
15439
15440         wchar: Avoid #define replacements in C++ mode.
15441         * lib/wchar.in.h: Include c++defs.h.
15442         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15443         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15444         symbol.
15445         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15446         * modules/wchar (Depends-on): Add c++defs.
15447         (Makefile.am): Update wchar.h rule.
15448
15449         unistd: Avoid #define replacements in C++ mode.
15450         * lib/unistd.in.h: Include c++defs.h.
15451         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15452         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15453         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15454         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15455         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15456         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15457         symbol.
15458         (environ): Update.
15459         * modules/unistd (Depends-on): Add c++defs.
15460         (Makefile.am): Update unistd.h rule.
15461
15462         time: Avoid #define replacements in C++ mode.
15463         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15464         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15465         define a namespaced alias symbol.
15466         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15467         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15468         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15469         * modules/time (Depends-on): Add c++defs, warn-on-use.
15470         (Makefile.am): Update time.h rule.
15471         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15472         * modules/nanosleep (configure.ac): Likewise.
15473         * modules/strptime (configure.ac): Likewise.
15474         * modules/timegm (configure.ac): Likewise.
15475
15476         sys_time: Avoid #define replacements in C++ mode.
15477         * lib/sys_time.in.h: Include c++defs.h.
15478         (gettimeofday): In C++, define a namespaced alias symbol.
15479         * modules/sys_time (Depends-on): Add c++defs.
15480         (Makefile.am): Update sys/time.h rule.
15481
15482         sys_stat: Avoid #define replacements in C++ mode.
15483         * lib/sys_stat.in.h: Include c++defs.h.
15484         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15485         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15486         namespaced alias symbol.
15487         In C++, define a namespaced alias symbol.
15488         * modules/sys_stat (Depends-on): Add c++defs.
15489         (Makefile.am): Update sys/stat.h rule.
15490
15491         sys_socket: Avoid #define replacements in C++ mode.
15492         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15493         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15494         definitions also when the system has a <sys/socket.h>.
15495         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15496         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15497         In C++, define a namespaced alias symbol.
15498         * modules/sys_socket (Depends-on): Add c++defs.
15499         (Makefile.am): Update sys/socket.h rule.
15500
15501         sys_select: Avoid #define replacements in C++ mode.
15502         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15503         definitions also when the system has a <sys/select.h>.
15504         (select): In C++, define a namespaced alias symbol.
15505         * modules/sys_select (Depends-on): Add c++defs.
15506         (Makefile.am): Update sys/select.h rule.
15507
15508         sys_ioctl: Avoid #define replacements in C++ mode.
15509         * lib/sys_ioctl.in.h: Include c++defs.h.
15510         (ioctl): In C++, define a namespaced alias symbol.
15511         * modules/sys_ioctl (Depends-on): Add c++defs.
15512         (Makefile.am): Update sys/ioctl.h rule.
15513
15514         string: Avoid #define replacements in C++ mode.
15515         * lib/string.in.h: Include c++defs.h.
15516         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15517         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15518         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15519         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15520         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15521         * modules/string (Depends-on): Add c++defs.
15522         (Makefile.am): Update string.h rule.
15523
15524         stdlib: Avoid #define replacements in C++ mode.
15525         * lib/stdlib.in.h: Include c++defs.h.
15526         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15527         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15528         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15529         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15530         symbol.
15531         * modules/stdlib (Depends-on): Add c++defs.
15532         (Makefile.am): Update stdlib.h rule.
15533
15534         stdio: Avoid #define replacements in C++ mode.
15535         * lib/stdio.in.h: Include c++defs.h.
15536         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15537         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15538         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15539         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15540         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15541         namespaced alias symbol.
15542         * modules/stdio (Depends-on): Add c++defs.
15543         (Makefile.am): Update stdio.h rule.
15544
15545         spawn: Avoid #define replacements in C++ mode.
15546         * lib/spawn.in.h: Include c++defs.h.
15547         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15548         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15549         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15550         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15551         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15552         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15553         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15554         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15555         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15556         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15557         In C++, define a namespaced alias symbol.
15558         * modules/spawn (Depends-on): Add c++defs.
15559         (Makefile.am): Update spawn.h rule.
15560
15561         signal: Avoid #define replacements in C++ mode.
15562         * lib/signal.in.h: Include c++defs.h.
15563         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15564         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15565         namespaced alias symbol.
15566         * modules/signal (Depends-on): Add c++defs.
15567         (Makefile.am): Update signal.h rule.
15568
15569         search: Avoid #define replacements in C++ mode.
15570         * lib/search.in.h: Include c++defs.h.
15571         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15572         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15573         symbol.
15574         * modules/search (Depends-on): Add c++defs.
15575         (Makefile.am): Update search.h rule.
15576
15577         math: Avoid #define replacements in C++ mode.
15578         * lib/math.in.h: Include c++defs.h.
15579         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15580         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15581         trunc, truncl): In C++, define a namespaced alias symbol.
15582         * modules/math (Depends-on): Add c++defs.
15583         (Makefile.am): Update math.h rule.
15584
15585         locale: Avoid #define replacements in C++ mode.
15586         * lib/locale.in.h: Include c++defs.h.
15587         (duplocale): In C++, define a namespaced alias symbol.
15588         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15589         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15590         * modules/locale (Depends-on): Add c++defs.
15591         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15592
15593         langinfo: Avoid #define replacements in C++ mode.
15594         * lib/langinfo.in.h: Include c++defs.h.
15595         (nl_langinfo): In C++, define a namespaced alias symbol.
15596         * modules/langinfo (Depends-on): Add c++defs.
15597         (Makefile.am): Update langinfo.h rule.
15598
15599         iconv-h: Avoid #define replacements in C++ mode.
15600         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15601         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15602         symbol.
15603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15604         whenever iconv is present.
15605         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15606         (Makefile.am): Update iconv.h rule.
15607
15608         glob: Avoid #define replacements in C++ mode.
15609         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15610         (_gl_glob_errfunc_fn): New type.
15611         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15612         symbol.
15613         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15614         (Makefile.am): Update glob.h rule.
15615
15616         fcntl-h: Avoid #define replacements in C++ mode.
15617         * lib/fcntl.in.h: Include c++defs.h.
15618         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15619         * modules/fcntl-h (Depends-on): Add c++defs.
15620         (Makefile.am): Update fcntl.h rule.
15621
15622         dirent: Avoid #define replacements in C++ mode.
15623         * lib/dirent.in.h: Include c++defs.h.
15624         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15625         namespaced alias symbol.
15626         (dirfd): Update declaration.
15627         * modules/dirent (Depends-on): Add c++defs.
15628         (Makefile.am): Update dirent.h rule.
15629
15630         ctype: Make it usable in C++ code.
15631         * lib/ctype.in.h: Include c++defs.h.
15632         (isblank): Declare as extern "C".
15633         * modules/ctype (Depends-on): Add c++defs.
15634         (Makefile.am): Update ctype.h rule.
15635
15636         New module 'c++defs'.
15637         * modules/c++defs: New file.
15638         * build-aux/c++defs.h: New file.
15639         Reported by John W. Eaton <jwe@gnu.org>.
15640
15641 2010-03-07  Bruno Haible  <bruno@clisp.org>
15642
15643         logb: Provide missing declaration for Cygwin.
15644         * lib/math.in.h (logb): New declaration.
15645         * m4/logb.m4: New file.
15646         * modules/logb (Files): Add m4/logb.m4.
15647         (Depends-on): Add math.
15648         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15649         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15651         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15652         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15653
15654 2010-03-07  Bruno Haible  <bruno@clisp.org>
15655
15656         Fix test-cond link error.
15657         * tests/test-cond.c: Include <stdio.h>.
15658
15659 2010-03-07  Bruno Haible  <bruno@clisp.org>
15660
15661         Fix test-dirent-safer link error.
15662         * modules/dirent-safer-tests (Makefile.am): Define
15663         test_dirent_safer_LDADD.
15664
15665 2010-03-07  Bruno Haible  <bruno@clisp.org>
15666
15667         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15668         among default module list.
15669
15670 2010-03-07  Bruno Haible  <bruno@clisp.org>
15671
15672         Fix link error on platforms with GNU libiconv.
15673         * modules/unistr/u8-strcoll-tests (Makefile): Define
15674         test_u8_strcoll_LDADD.
15675         * modules/unistr/u16-strcoll-tests (Makefile): Define
15676         test_u16_strcoll_LDADD.
15677         * modules/unistr/u32-strcoll-tests (Makefile): Define
15678         test_u32_strcoll_LDADD.
15679
15680 2010-03-07  Bruno Haible  <bruno@clisp.org>
15681
15682         Use POSIX declarations for socket functions.
15683         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15684         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15685         rpl_sendto): Change declaration to match POSIX.
15686         * lib/connect.c (rpl_connect): Likewise.
15687         * lib/accept.c (rpl_accept): Likewise.
15688         * lib/bind.c (rpl_bind): Likewise.
15689         * lib/getpeername.c (rpl_getpeername): Likewise.
15690         * lib/getsockname.c (rpl_getsockname): Likewise.
15691         * lib/recv.c (rpl_recv): Likewise.
15692         * lib/send.c (rpl_send): Likewise.
15693         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15694         * lib/sendto.c (rpl_sendto): Likewise.
15695
15696 2010-03-06  Bruno Haible  <bruno@clisp.org>
15697
15698         Clarify access, euidaccess, faccessat.
15699         * doc/posix-functions/faccessat.texi: Mention security problem under
15700         "Other problems", not "Portability problems".
15701         * doc/posix-functions/access.texi: Likewise. Mention a related security
15702         problem.
15703         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15704         * lib/euidaccess.c: Add comments about platforms.
15705         * lib/unistd.in.h (access, euidaccess): Add warnings.
15706
15707 2010-03-07  Bruno Haible  <bruno@clisp.org>
15708
15709         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15710         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15711         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15712         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15713         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15714         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15715         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15716         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15717         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15718         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15719         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15720         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15721         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15722         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15723         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15724         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15725         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15726         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15727         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15728         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15729         Likewise.
15730         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15731         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15732         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15733         Likewise.
15734         * tests/test-spawn.c (main): Make it work when
15735         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15736
15737 2010-03-07  Bruno Haible  <bruno@clisp.org>
15738
15739         Fix incorrect Makefile.am generation in German locale.
15740         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15741         Execute sed command with character range in C locale.
15742
15743 2010-03-06  Bruno Haible  <bruno@clisp.org>
15744
15745         Tests for module 'iconv-h'.
15746         * modules/iconv-h-tests: New file.
15747         * tests/test-iconv-h.c: New file.
15748
15749         New module 'iconv-h'.
15750         * modules/iconv-h: New file.
15751         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15752         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15753         (configure.ac): Remove gl_ICONV_H.
15754         (Makefile.am): Remove rule for iconv.h.
15755
15756 2010-03-06  Bruno Haible  <bruno@clisp.org>
15757
15758         More consistent naming of *.m4 files.
15759         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15760         * modules/wctype (Files): Update.
15761
15762         More consistent naming of *.m4 files.
15763         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15764         * modules/wchar (Files): Update.
15765
15766 2010-03-06  Jim Meyering  <meyering@redhat.com>
15767
15768         euidaccess: relax license to LGPLv2+
15769         * modules/euidaccess (License): Relax to LGPLv2+.
15770
15771 2010-03-06  Bruno Haible  <bruno@clisp.org>
15772
15773         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15774         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15775         (Makefile.am): Augment lib_SOURCES instead.
15776
15777 2010-03-04  Jim Meyering  <meyering@redhat.com>
15778
15779         utime: remove obsolete module
15780         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15781         unnecessary for years, and has been marked as obsolete for 10 months.
15782         * modules/utime: Remove file.
15783         * lib/utime.c: Remove file.
15784         * m4/utime.m4: Remove file.
15785         * m4/utimes-null.m4: Remove file.
15786         * doc/posix-functions/utime.texi (utime): Remove reference to
15787         the module.  Move the sole "fixed by gnulib" item into the
15788         "problems not fixed by Gnulib" list.
15789         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15790
15791 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15792
15793         * modules/exit (License): Relax license to LGPLv2+.
15794         (Status): Mark as obsolete.
15795         * NEWS: Mention deprecated 'exit' module.
15796         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15797         of now obsolete 'exit'.
15798
15799 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15800
15801         fts-lgpl: remove unused module
15802         * modules/fts-lgpl: Remove.
15803         * MODULES.html.sh (func_all_modules): Adjust.
15804         * check-module (find_included_lib_files): Adjust.
15805         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15806
15807 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15808
15809         copy-acl: enhance Solaris ACL error handling
15810         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15811         * lib/set-mode-acl.c (qset_acl): Likewise.
15812
15813 2010-03-02  Bruno Haible  <bruno@clisp.org>
15814
15815         spawn: Don't override the system defined values on FreeBSD 8.
15816         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15817         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15818         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15819         if HAVE_POSIX_SPAWN is 1.
15820         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15821
15822 2010-03-01  Bruno Haible  <bruno@clisp.org>
15823
15824         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15825         regarding Automake.
15826
15827 2010-02-25  Bruno Haible  <bruno@clisp.org>
15828
15829         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15830         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15831         setting, not afterwards.
15832         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15833
15834 2010-02-24  Eric Blake  <eblake@redhat.com>
15835
15836         bootstrap, git-version-gen: use timestamp
15837         * build-aux/git-version-gen (scriptversion): Force UTC.
15838         * build-aux/bootstrap (scriptversion): New variable.
15839
15840         bootstrap: allow older git
15841         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15842         older than 1.6.4.  Requested by the libvirt project.
15843
15844 2010-02-23  Eric Blake  <eblake@redhat.com>
15845
15846         warn-on-use: work with old autoconf
15847         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15848         AS_VAR semantics of autoconf 2.60.
15849         Reported by Bruno Haible.
15850
15851         bootstrap: improve some comments
15852         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15853         clarification comments.
15854
15855         gettimeofday: provide correct function
15856         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15857         when replacement is declared, otherwise provide gettimeofday.
15858         Reported by Michael Goffioul.
15859
15860 2010-02-23  Jim Meyering  <meyering@redhat.com>
15861
15862         lib-ignore: relax license to "unlimited", not LGPLv2+
15863         * modules/lib-ignore (License): Relax to "unlimited".
15864
15865 2010-02-23  Jim Meyering  <meyering@redhat.com>
15866
15867         lib-ignore: relax license to LGPLv2+
15868         * modules/lib-ignore (License): Relax to LGPLv2+.
15869
15870 2010-02-22  Eric Blake  <eblake@redhat.com>
15871
15872         lseek: avoid bash 3.2 broken pipe bug
15873         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15874         warning from bash 3.2.
15875         Reported by Ben Pfaff, with analysis from Bruno Haible.
15876
15877         bootstrap: support non-FSF copyright holder
15878         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15879         bootstrap.conf override of COPYRIGHT_HOLDER.
15880         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15881
15882         bootstrap: interoperate with gettext 0.14.1
15883         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15884
15885         bootstrap: allow for alternate submodule location
15886         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15887         hardcoding submodule location.
15888         (gnulib_mk): Allow direct use of Makefile.am.
15889
15890         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15891         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15892         rather than reconfiguring where the submodule points.
15893
15894         gettimeofday: restore support for platforms that lack function
15895         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15896         replacement if function is missing.
15897         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15898         * modules/sys_time (Makefile.am): Substitute it.
15899         * lib/sys_time.in.h (gettimeofday): Check it.
15900         Reported by Michael Goffioul.
15901
15902 2010-02-21  Bruno Haible  <bruno@clisp.org>
15903
15904         * lib/stdio.in.h (obstack_printf): Fix typo.
15905
15906 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15907
15908         vc-list-files: use bzr ls's -R option
15909         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15910         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15911
15912 2010-02-21  Jim Meyering  <meyering@redhat.com>
15913
15914         init.sh: fix EXEEXT shims to work also for names like test-prog
15915         * tests/init.sh: Re-exec a better shell, when needed.
15916         If the current shell lacks support for posix $(...), an init.sh-using
15917         test will now try to find a shell that supports that.  If EXEEXT is
15918         nonempty, we also require support for hyphen-in-alias-name and shell
15919         substitutions like ${var#glob}.  Failure to find such a shell results
15920         in a skipped test.
15921
15922 2010-02-21  Bruno Haible  <bruno@clisp.org>
15923
15924         Really work around around "broken pipe" error message from bash 3.2.
15925         * gnulib-tool (func_reset_sigpipe): Remove function.
15926         (echo): In bash 3.2, define to a function that uses printf.
15927         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15928
15929 2010-02-20  Bruno Haible  <bruno@clisp.org>
15930
15931         Restore support for automake 1.9.6 with autoconf 2.61.
15932         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15933         Reported by James Youngman <jay@gnu.org>.
15934
15935 2010-02-20  Bruno Haible  <bruno@clisp.org>
15936
15937         Improve *printf warning condition.
15938         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15939         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15940         and the function is overridden due to SIGPIPE emulation.
15941
15942 2010-02-20  Bruno Haible  <bruno@clisp.org>
15943
15944         * lib/stdio.in.h: Tweak comments.
15945
15946 2010-02-19  Bruno Haible  <bruno@clisp.org>
15947
15948         Make it easier to find modules. New gnulib-tool option '--find'.
15949         * gnulib-tool: New option --find.
15950         (func_usage): Document it.
15951         (func_sanitize_modulelist): New function, extracted from
15952         func_all_modules.
15953         (func_all_modules): Invoke it.
15954         * doc/gnulib-tool.texi (Which modules?): New node.
15955
15956 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15957
15958         * lib/sys_select.in.h: Provide select replacement even if
15959         sys/select.h exists on a system, for Interix.
15960
15961 2010-02-18  Jim Meyering  <meyering@redhat.com>
15962
15963         init.sh: don't use $(...) just yet
15964         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15965         to accommodate e.g., Solaris' /bin/sh.
15966
15967 2010-02-17  Bruno Haible  <bruno@clisp.org>
15968
15969         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15970         Reported by Ludovic Courtès <ludo@gnu.org>.
15971
15972 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15973
15974         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15975         linking with -lintl.
15976
15977 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15978
15979         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15980         if not provided by the system's netdb.h.  Reported by
15981         ludo@gnu.org (Ludovic Courtès).
15982
15983 2010-02-15  Jim Meyering  <meyering@redhat.com>
15984
15985         init.sh: improve portability and efficiency
15986         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15987         "dummy" in a for loop.
15988         Use '!', not '^' to select the complement of a character set used
15989         in a "case" statement.
15990         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15991         Suggestions from Eric Blake.
15992
15993         init.sh: automatically accommodate programs with the .exe suffix
15994         Automatically arrange for an invocation of "prog" to execute the
15995         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15996         may use the simpler "prog", yet still work when built on a system
15997         that requires specifying the added suffix.
15998         Do this by constructing a function named "prog" that invokes
15999         "prog.exe" for each .exe file in selected directories.
16000         * tests/init.sh (find_exe_basenames_): New function.
16001         (create_exe_shim_functions_): New function.
16002         (path_prepend_): Use it.
16003
16004         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16005         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16006         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16007
16008 2010-02-14  Jim Meyering  <meyering@redhat.com>
16009
16010         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16011         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16012         (sc_prohibit_hash_pjw_without_use): New rule.
16013
16014         maint.mk: allow the default upload destination dir to be overridden
16015         * top/maint.mk (upload_dest_dir_): Define with a default that
16016         preserves the status quo.
16017         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16018         Reported by Peter Simons.
16019
16020         maint.mk: prohibit inclusion of "hash.h" without_use
16021         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16022
16023 2010-02-10  Jim Meyering  <meyering@redhat.com>
16024
16025         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16026         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16027
16028 2010-02-09  Eric Blake  <ebb9@byu.net>
16029         and Bruno Haible  <bruno@clisp.org>
16030
16031         obstack-printf-posix: ensure declaration
16032         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16033         extracted from gl_FUNC_OBSTACK_PRINTF.
16034         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16035         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16036         Likewise.
16037         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16038         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16039         0.
16040
16041 2010-02-08  Bruno Haible  <bruno@clisp.org>
16042
16043         gnulib-tool: Fix typo in 2010-02-07 commit.
16044         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16045         Reported by Eric Blake.
16046
16047 2010-02-07  Bruno Haible  <bruno@clisp.org>
16048
16049         gnulib-tool: Fix up caching patches.
16050         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16051         option --no-cache. Use associative arrays when supported by the shell.
16052         (sed_comments): New variable.
16053         (modcache): Renamed from do_cache.
16054         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16055         abbreviate unnecessarily.
16056         (have_associative): New variable.
16057         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16058         way also for ksh and zsh.
16059         (func_init_sed_convert_to_cache_statements): New function, extracted
16060         from func_cache_lookup_module. Add support for associative arrays.
16061         Don't set the c_MODULE_cached variable here. Ignore all lines before
16062         the first field header. Remove only the final newline, not all trailing
16063         newlines. Support empty fields correctly. Limit the use of 'eval' to
16064         assignments.
16065         (func_get_description, func_get_status, func_get_notice,
16066         func_get_applicability, func_get_filelist, func_get_dependencies,
16067         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16068         func_get_automake_snippet, func_get_include_directive,
16069         func_get_link_directive, func_get_license, func_get_maintainer):
16070         Update documentation. List the unoptimized code first. Add support for
16071         associative arrays. Limit the use of 'eval' to assignments.
16072         (func_get_applicability): Undo stylistic pessimisations.
16073         (func_get_automake_snippet, func_get_include_directive): Reduce code
16074         duplication.
16075         (func_modules_transitive_closure, func_modules_add_dummy,
16076         func_modules_notice, func_modules_to_filelist, func_add_file,
16077         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16078         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16079         func_create_testdir, func_create_megatestdir): Update documentation.
16080
16081 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16082
16083         * gnulib-tool (func_cache_lookup_module): Store the module name
16084         belonging to the cache variable; error out if two different
16085         module names map to the same cache variable name.
16086
16087 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16088
16089         gnulib-tool: Make caching optional.
16090         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16091         Update matching short versions of --no-changelog.
16092         (func_usage): Update.
16093         (sed_extract_cache_prog): Renamed from ...
16094         (sed_extract_prog): ... this; revert to old extraction script.
16095         (func_get_description, func_get_status)
16096         (func_get_notice, func_get_applicability, func_get_filelist)
16097         (func_get_dependencies, func_get_autoconf_early_snippet)
16098         (func_get_autoconf_snippet, func_get_automake_snippet)
16099         (func_get_include_directive, func_get_link_directive)
16100         (func_get_license, func_get_maintainer): If $do_cache is false,
16101         use old, non-caching extraction scripts.
16102         Suggestion by Bruno Haible.
16103
16104 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16105
16106         gnulib-tool: cache module metainformation.
16107         * gnulib-tool (sed_extract_prog): Match newline before each
16108         header, and rewrite header to a shell variable suffix.
16109         (func_cache_var, func_cache_lookup_module): New functions,
16110         to turn a module name into a cache variable prefix, and to
16111         look up and cache module metainformation.
16112         (func_get_description, func_get_status)
16113         (func_get_notice, func_get_applicability, func_get_filelist)
16114         (func_get_dependencies, func_get_autoconf_early_snippet)
16115         (func_get_autoconf_snippet, func_get_automake_snippet)
16116         (func_get_include_directive, func_get_link_directive)
16117         (func_get_license, func_get_maintainer): Use
16118         func_cache_lookup_module.
16119
16120 2010-02-07  Bruno Haible  <bruno@clisp.org>
16121
16122         fnctl: Fix missing dependency.
16123         * modules/fcntl (Depends-on): Add getdtablesize.
16124         Reported by John W. Eaton <jwe@gnu.org>.
16125
16126 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16127
16128         Argp: fix recognition of short alias options.
16129
16130         * lib/argp-parse.c (convert_options): Fix improper use of
16131         `|' between character values.
16132         * tests/test-argp.c (group1_option): New alias option
16133         --read (-r).
16134         (group1_parser): Special handling for 'r'.
16135         (test15): New test case.
16136         (test_fun): Add test15.
16137         * tests/test-argp-2.sh: Update expected --help and --usage
16138         outputs.
16139
16140 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16141
16142         * tests/test-argp.c: Fix indentation.
16143
16144 2010-02-04  Eric Blake  <ebb9@byu.net>
16145
16146         gettimeofday: expose type of second argument
16147         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16148         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16149         * tests/test-gettimeofday.c: Use it to silence warning.
16150         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16151         the issue.
16152
16153 2010-02-03  Jim Meyering  <meyering@redhat.com>
16154
16155         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16156         * lib/regcomp.c (TYPE_SIGNED): Define.
16157         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16158
16159         regcomp.c: avoid a new -Wshadow warning
16160         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16161
16162 2010-02-01  Jim Meyering  <meyering@redhat.com>
16163
16164         removing useless parentheses in cpp #define directives
16165         For motivation, see commit c0221df4, "define STREQ(a,b)
16166         consistently, removing useless parentheses"
16167         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16168         * lib/mountlist.c (MNT_IGNORE): Likewise.
16169         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16170
16171 2010-02-01  Eric Blake  <ebb9@byu.net>
16172
16173         sys_time: use link-warning
16174         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16175         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16176         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16177         * modules/sys_time (Depends-on): Add warn-on-use.
16178         (Makefile.am): Always build replacement.
16179         (configure.ac): Update substitutions.
16180         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16181         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16182         bother with SYS_TIME_H.
16183         * modules/gettimeofday (configure.ac): Declare indicator.
16184         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16185         in use.
16186
16187         closein-tests: silence compiler warning
16188         * tests/test-closein.c (main): Ignore fread result.
16189         * modules/closein-tests (Depends-on): Add ignore-value.
16190
16191         tests: silence warning about system return
16192         * tests/test-areadlink-with-size.c (main): Ignore system result.
16193         * tests/test-areadlink.c (main): Likewise.
16194         * tests/test-areadlinkat-with-size.c (main): Likewise.
16195         * tests/test-areadlinkat.c (main): Likewise.
16196         * tests/test-canonicalize-lgpl.c (main): Likewise.
16197         * tests/test-canonicalize.c (main): Likewise.
16198         * tests/test-chown.c (main): Likewise.
16199         * tests/test-fchownat.c (main): Likewise.
16200         * tests/test-fdutimensat.c (main): Likewise.
16201         * tests/test-fstatat.c (main): Likewise.
16202         * tests/test-futimens.c (main): Likewise.
16203         * tests/test-lchown.c (main): Likewise.
16204         * tests/test-link.c (main): Likewise.
16205         * tests/test-linkat.c (main): Likewise.
16206         * tests/test-lstat.c (main): Likewise.
16207         * tests/test-mkdir.c (main): Likewise.
16208         * tests/test-mkdirat.c (main): Likewise.
16209         * tests/test-mkfifo.c (main): Likewise.
16210         * tests/test-mkfifoat.c (main): Likewise.
16211         * tests/test-mknod.c (main): Likewise.
16212         * tests/test-readlink.c (main): Likewise.
16213         * tests/test-remove.c (main): Likewise.
16214         * tests/test-rename.c (main): Likewise.
16215         * tests/test-renameat.c (main): Likewise.
16216         * tests/test-rmdir.c (main): Likewise.
16217         * tests/test-symlink.c (main): Likewise.
16218         * tests/test-symlinkat.c (main): Likewise.
16219         * tests/test-unlink.c (main): Likewise.
16220         * tests/test-unlinkat.c (main): Likewise.
16221         * tests/test-utimens.c (main): Likewise.
16222         * tests/test-utimensat.c (main): Likewise.
16223         * modules/areadlink-tests (Depends-on): Add ignore-value.
16224         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16225         * modules/areadlinkat-tests (Depends-on): Likewise.
16226         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16227         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16228         * modules/canonicalize-tests (Depends-on): Likewise.
16229         * modules/chown-tests (Depends-on): Likewise.
16230         * modules/fdutimensat-tests (Depends-on): Likewise.
16231         * modules/futimens-tests (Depends-on): Likewise.
16232         * modules/lchown-tests (Depends-on): Likewise.
16233         * modules/link-tests (Depends-on): Likewise.
16234         * modules/linkat-tests (Depends-on): Likewise.
16235         * modules/lstat-tests (Depends-on): Likewise.
16236         * modules/mkdir-tests (Depends-on): Likewise.
16237         * modules/mkfifo-tests (Depends-on): Likewise.
16238         * modules/mkfifoat-tests (Depends-on): Likewise.
16239         * modules/mknod-tests (Depends-on): Likewise.
16240         * modules/openat-tests (Depends-on): Likewise.
16241         * modules/readlink-tests (Depends-on): Likewise.
16242         * modules/remove-tests (Depends-on): Likewise.
16243         * modules/rename-tests (Depends-on): Likewise.
16244         * modules/renameat-tests (Depends-on): Likewise.
16245         * modules/rmdir-tests (Depends-on): Likewise.
16246         * modules/symlink-tests (Depends-on): Likewise.
16247         * modules/symlinkat-tests (Depends-on): Likewise.
16248         * modules/unlink-tests (Depends-on): Likewise.
16249         * modules/utimens-tests (Depends-on): Likewise.
16250         * modules/utimensat-tests (Depends-on): Likewise.
16251
16252 2010-01-31  Bruno Haible  <bruno@clisp.org>
16253
16254         Perform the same test for many <math.h> functions.
16255         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16256         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16257         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16258         of gl_MATHFUNC.
16259         * modules/acos (configure.ac): Likewise.
16260         * modules/asin (configure.ac): Likewise.
16261         * modules/atan (configure.ac): Likewise.
16262         * modules/atan2 (configure.ac): Likewise.
16263         * modules/cbrt (configure.ac): Likewise.
16264         * modules/copysign (configure.ac): Likewise.
16265         * modules/cos (configure.ac): Likewise.
16266         * modules/cosh (configure.ac): Likewise.
16267         * modules/erf (configure.ac): Likewise.
16268         * modules/erfc (configure.ac): Likewise.
16269         * modules/exp (configure.ac): Likewise.
16270         * modules/fmod (configure.ac): Likewise.
16271         * modules/hypot (configure.ac): Likewise.
16272         * modules/j0 (configure.ac): Likewise.
16273         * modules/j1 (configure.ac): Likewise.
16274         * modules/jn (configure.ac): Likewise.
16275         * modules/lgamma (configure.ac): Likewise.
16276         * modules/log (configure.ac): Likewise.
16277         * modules/log10 (configure.ac): Likewise.
16278         * modules/log1p (configure.ac): Likewise.
16279         * modules/pow (configure.ac): Likewise.
16280         * modules/remainder (configure.ac): Likewise.
16281         * modules/sin (configure.ac): Likewise.
16282         * modules/sinh (configure.ac): Likewise.
16283         * modules/tan (configure.ac): Likewise.
16284         * modules/tanh (configure.ac): Likewise.
16285         * modules/y0 (configure.ac): Likewise.
16286         * modules/y1 (configure.ac): Likewise.
16287         * modules/yn (configure.ac): Likewise.
16288         Suggested by Paolo Bonzini.
16289
16290 2010-01-31  Bruno Haible  <bruno@clisp.org>
16291
16292         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16293
16294 2010-01-31  Bruno Haible  <bruno@clisp.org>
16295
16296         Work around getdelim() bug on FreeBSD 8.0.
16297         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16298         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16299         not work.
16300         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16301         is 1.
16302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16303         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16304         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16305         a non-zero size.
16306         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16307
16308 2010-01-31  Bruno Haible  <bruno@clisp.org>
16309
16310         Work around getline() bug on FreeBSD 8.0.
16311         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16312         and a non-zero size.
16313         * tests/test-getline.c (main): Likewise.
16314         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16315         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16316
16317 2010-01-28  Eric Blake  <ebb9@byu.net>
16318
16319         regex: fix build failure
16320         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16321         platforms.
16322
16323 2010-01-28  Jim Meyering  <meyering@redhat.com>
16324
16325         regex: do not ignore memory allocation failure
16326         * lib/regex_internal.c (create_cd_newstate): Detect
16327         re_node_set_init_copy failure.   Extracted from glibc commit
16328         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16329
16330         regex: sync more white-space changes from libc
16331         * lib/regex_internal.c: White-space only changes.
16332         * lib/regexec.c: Likewise.
16333
16334         regex: add many uses of __attribute_warn_unused_result__
16335         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16336         * lib/regexec.c: Likewise.
16337         Extracted from a messy glibc commit.
16338
16339         regcomp.c: spelling and merge-artifact from glibc
16340         * lib/regcomp.c: Merge remainder of glibc's
16341         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16342
16343         regcomp.c: sync white-space changes from glibc
16344         * lib/regcomp.c: Merge to accommodate white space
16345         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16346
16347         regcomp.c: do not ignore internal return values
16348         * lib/regcomp.c: Do not ignore internal return values.
16349         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16350         but without its white-space changes and spelling fixes.
16351
16352         regex_internal.h: define __attribute_warn_unused_result__
16353         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16354
16355         maint: add a syntax-check rule to check for vulnerable Makefile.in
16356         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16357
16358 2010-01-27  Jim Meyering  <meyering@redhat.com>
16359
16360         ncftpput-ftp: clean up spaces
16361         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16362         Remove trailing blanks.
16363
16364 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16365
16366         * build-aux/git-version-gen: Fix copyright statement.
16367         * build-aux/gnupload: Likewise.
16368         * tests/test-arcfour.c: Likewise.
16369         * tests/test-arctwo.c: Likewise.
16370         * tests/test-count-one-bits.c: Likewise.
16371         * tests/test-crc.c: Likewise.
16372         * tests/test-des.c: Likewise.
16373         * tests/test-gc-arcfour.c: Likewise.
16374         * tests/test-gc-arctwo.c: Likewise.
16375         * tests/test-gc-des.c: Likewise.
16376         * tests/test-gc-hmac-md5.c: Likewise.
16377         * tests/test-gc-hmac-sha1.c: Likewise.
16378         * tests/test-gc-md2.c: Likewise.
16379         * tests/test-gc-md4.c: Likewise.
16380         * tests/test-gc-md5.c: Likewise.
16381         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16382         * tests/test-gc-rijndael.c: Likewise.
16383         * tests/test-gc-sha1.c: Likewise.
16384         * tests/test-gc.c: Likewise.
16385         * tests/test-gethostname.c: Likewise.
16386         * tests/test-gettimeofday.c: Likewise.
16387         * tests/test-hash.c: Likewise.
16388         * tests/test-hmac-md5.c: Likewise.
16389         * tests/test-hmac-sha1.c: Likewise.
16390         * tests/test-md2.c: Likewise.
16391         * tests/test-md4.c: Likewise.
16392         * tests/test-md5.c: Likewise.
16393         * tests/test-memchr.c: Likewise.
16394         * tests/test-memchr2.c: Likewise.
16395         * tests/test-memcmp.c: Likewise.
16396         * tests/test-memmem.c: Likewise.
16397         * tests/test-memrchr.c: Likewise.
16398         * tests/test-rawmemchr.c: Likewise.
16399         * tests/test-read-file.c: Likewise.
16400         * tests/test-rijndael.c: Likewise.
16401         * tests/test-sockets.c: Likewise.
16402         * tests/test-strchrnul.c: Likewise.
16403         * tests/test-strstr.c: Likewise.
16404         * tests/test-strtod.c: Likewise.
16405         * build-aux/ncftpput-ftp: Likewise.
16406
16407 2010-01-26  Eric Blake  <ebb9@byu.net>
16408
16409         ignore-value: update recommended header name
16410         * modules/ignore-value (Include): Only use <> for headers that
16411         exist in glibc.
16412
16413 2010-01-26  Jim Meyering  <meyering@redhat.com>
16414
16415         test-userspec.c: avoid compiler warnings
16416         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16417         and "initialization discards qualifiers..." warnings.
16418         Put the first "uid" in its own scope, and make char* members "const".
16419
16420 2010-01-25  Bruno Haible  <bruno@clisp.org>
16421
16422         gnulib-tool: Make warning diagnostics consistent.
16423         * gnulib-tool (func_warning): New function.
16424         Use it everywhere where gnulib-tool produces output to stderr and it is
16425         not a fatal error.
16426
16427 2010-01-25  Bruno Haible  <bruno@clisp.org>
16428
16429         Fix test dependencies.
16430         * modules/xstrtol-tests (Depends-on): Add inttypes.
16431         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16432
16433 2010-01-25 Pádraig Brady <P@draigBrady.com>
16434
16435         syntax-check: detect incorrect boolean macro values in config.h
16436         * modules/maintainer-makefile (configure.ac): Parameterize the location
16437         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16438         The logic is from Eric Blake and the location indicated by Jim Meyering.
16439         Note the more natural CONFIG_HEADER name is prohibited by automake
16440         for backwards compatibility reasons.
16441         * top/maint.mk (sc_Wundef_boolean): New rule.
16442
16443 2010-01-25  Jim Meyering  <meyering@redhat.com>
16444
16445         bootstrap: detect MacOS 10.6's shasum, too
16446         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16447         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16448
16449 2010-01-23  Jim Meyering  <meyering@redhat.com>
16450
16451         xstrtoll: new module
16452         * modules/xstrtoll: New file.
16453         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16454         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16455         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16456         ./configure fails if you use this module and lack "long long".
16457         * modules/xstrtoll-tests: New module.
16458         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16459         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16460         new init.sh-based test framework.
16461
16462 2010-01-24  Bruno Haible  <bruno@clisp.org>
16463
16464         Tests for module 'yn'.
16465         * modules/yn-tests: New file.
16466         * tests/test-yn.c: New file.
16467
16468         Tests for module 'y1'.
16469         * modules/y1-tests: New file.
16470         * tests/test-y1.c: New file.
16471
16472         Tests for module 'y0'.
16473         * modules/y0-tests: New file.
16474         * tests/test-y0.c: New file.
16475
16476         Tests for module 'tanh'.
16477         * modules/tanh-tests: New file.
16478         * tests/test-tanh.c: New file.
16479
16480         Tests for module 'tan'.
16481         * modules/tan-tests: New file.
16482         * tests/test-tan.c: New file.
16483
16484         Tests for module 'sqrt'.
16485         * modules/sqrt-tests: New file.
16486         * tests/test-sqrt.c: New file.
16487
16488         Tests for module 'sinh'.
16489         * modules/sinh-tests: New file.
16490         * tests/test-sinh.c: New file.
16491
16492         Tests for module 'sin'.
16493         * modules/sin-tests: New file.
16494         * tests/test-sin.c: New file.
16495
16496         Tests for module 'rint'.
16497         * modules/rint-tests: New file.
16498         * tests/test-rint.c: New file.
16499
16500         Tests for module 'remainder'.
16501         * modules/remainder-tests: New file.
16502         * tests/test-remainder.c: New file.
16503
16504         Tests for module 'pow'.
16505         * modules/pow-tests: New file.
16506         * tests/test-pow.c: New file.
16507
16508         Tests for module 'nextafter'.
16509         * modules/nextafter-tests: New file.
16510         * tests/test-nextafter.c: New file.
16511
16512         Tests for module 'modf'.
16513         * modules/modf-tests: New file.
16514         * tests/test-modf.c: New file.
16515
16516         Tests for module 'logb'.
16517         * modules/logb-tests: New file.
16518         * tests/test-logb.c: New file.
16519
16520         Tests for module 'log1p'.
16521         * modules/log1p-tests: New file.
16522         * tests/test-log1p.c: New file.
16523
16524         Tests for module 'log10'.
16525         * modules/log10-tests: New file.
16526         * tests/test-log10.c: New file.
16527
16528         Tests for module 'log'.
16529         * modules/log-tests: New file.
16530         * tests/test-log.c: New file.
16531
16532         Tests for module 'lgamma'.
16533         * modules/lgamma-tests: New file.
16534         * tests/test-lgamma.c: New file.
16535
16536         Tests for module 'ldexp'.
16537         * modules/ldexp-tests: New file.
16538         * tests/test-ldexp.c: New file.
16539
16540         Tests for module 'jn'.
16541         * modules/jn-tests: New file.
16542         * tests/test-jn.c: New file.
16543
16544         Tests for module 'j1'.
16545         * modules/j1-tests: New file.
16546         * tests/test-j1.c: New file.
16547
16548         Tests for module 'j0'.
16549         * modules/j0-tests: New file.
16550         * tests/test-j0.c: New file.
16551
16552         Tests for module 'hypot'.
16553         * modules/hypot-tests: New file.
16554         * tests/test-hypot.c: New file.
16555
16556         Tests for module 'fmod'.
16557         * modules/fmod-tests: New file.
16558         * tests/test-fmod.c: New file.
16559
16560         Tests for module 'fabs'.
16561         * modules/fabs-tests: New file.
16562         * tests/test-fabs.c: New file.
16563
16564         Tests for module 'exp'.
16565         * modules/exp-tests: New file.
16566         * tests/test-exp.c: New file.
16567
16568         Tests for module 'erfc'.
16569         * modules/erfc-tests: New file.
16570         * tests/test-erfc.c: New file.
16571
16572         Tests for module 'erf'.
16573         * modules/erf-tests: New file.
16574         * tests/test-erf.c: New file.
16575
16576         Tests for module 'cosh'.
16577         * modules/cosh-tests: New file.
16578         * tests/test-cosh.c: New file.
16579
16580         Tests for module 'cos'.
16581         * modules/cos-tests: New file.
16582         * tests/test-cos.c: New file.
16583
16584         Tests for module 'copysign'.
16585         * modules/copysign-tests: New file.
16586         * tests/test-copysign.c: New file.
16587
16588         Tests for module 'cbrt'.
16589         * modules/cbrt-tests: New file.
16590         * tests/test-cbrt.c: New file.
16591
16592         Tests for module 'atan2'.
16593         * modules/atan2-tests: New file.
16594         * tests/test-atan2.c: New file.
16595
16596         Tests for module 'atan'.
16597         * modules/atan-tests: New file.
16598         * tests/test-atan.c: New file.
16599
16600         Tests for module 'asin'.
16601         * modules/asin-tests: New file.
16602         * tests/test-asin.c: New file.
16603
16604         Tests for module 'acos'.
16605         * modules/acos-tests: New file.
16606         * tests/test-acos.c: New file.
16607
16608 2010-01-24  Bruno Haible  <bruno@clisp.org>
16609
16610         Fix tests for common <math.h> functions.
16611         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16612         code snippet that references the function pointer, rather than merely
16613         calling the function. Substitute the FUNC_LIBM variable.
16614         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16615         * modules/acos (configure.ac): Likewise.
16616         * modules/asin (configure.ac): Likewise.
16617         * modules/atan (configure.ac): Likewise.
16618         * modules/atan2 (configure.ac): Likewise.
16619         * modules/cbrt (configure.ac): Likewise.
16620         * modules/copysign (configure.ac): Likewise.
16621         * modules/cos (configure.ac): Likewise.
16622         * modules/cosh (configure.ac): Likewise.
16623         * modules/erf (configure.ac): Likewise.
16624         * modules/erfc (configure.ac): Likewise.
16625         * modules/exp (configure.ac): Likewise.
16626         * modules/fabs (configure.ac): Likewise.
16627         * modules/fmod (configure.ac): Likewise.
16628         * modules/hypot (configure.ac): Likewise.
16629         * modules/j0 (configure.ac): Likewise.
16630         * modules/j1 (configure.ac): Likewise.
16631         * modules/jn (configure.ac): Likewise.
16632         * modules/ldexp (configure.ac): Likewise.
16633         * modules/lgamma (configure.ac): Likewise.
16634         * modules/log (configure.ac): Likewise.
16635         * modules/log10 (configure.ac): Likewise.
16636         * modules/log1p (configure.ac): Likewise.
16637         * modules/logb (configure.ac): Likewise.
16638         * modules/modf (configure.ac): Likewise.
16639         * modules/nextafter (configure.ac): Likewise.
16640         * modules/pow (configure.ac): Likewise.
16641         * modules/remainder (configure.ac): Likewise.
16642         * modules/rint (configure.ac): Likewise.
16643         * modules/sin (configure.ac): Likewise.
16644         * modules/sinh (configure.ac): Likewise.
16645         * modules/tan (configure.ac): Likewise.
16646         * modules/tanh (configure.ac): Likewise.
16647         * modules/y0 (configure.ac): Likewise.
16648         * modules/y1 (configure.ac): Likewise.
16649         * modules/yn (configure.ac): Likewise.
16650
16651 2010-01-24  Bruno Haible  <bruno@clisp.org>
16652
16653         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16654         * tests/test-acosl.c (x): New variable.
16655         (main): Store argument in x and fetch it from x.
16656         * tests/test-asinl.c (x): New variable.
16657         (main): Store argument in x and fetch it from x.
16658         * tests/test-atanl.c (x): New variable.
16659         (main): Store argument in x and fetch it from x.
16660         * tests/test-cosl.c (x): New variable.
16661         (main): Store argument in x and fetch it from x.
16662         * tests/test-expl.c (x): New variable.
16663         (main): Store argument in x and fetch it from x.
16664         * tests/test-logl.c (x): New variable.
16665         (main): Store argument in x and fetch it from x.
16666         * tests/test-sinl.c (x): New variable.
16667         (main): Store argument in x and fetch it from x.
16668         * tests/test-sqrtl.c (x): New variable.
16669         (main): Store argument in x and fetch it from x.
16670         * tests/test-tanl.c (x): New variable.
16671         (main): Store argument in x and fetch it from x.
16672
16673 2010-01-24  Bruno Haible  <bruno@clisp.org>
16674
16675         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16676         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16677         assignments to the initial TESTS_ENVIRONMENT.
16678         * doc/gnulib.texi (Unit test modules): Document it.
16679         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16680         TESTS_ENVIRONMENT.
16681         * modules/btowc-tests (Makefile.am): Likewise.
16682         * modules/c-stack-tests (Makefile.am): Likewise.
16683         * modules/c-strcase-tests (Makefile.am): Likewise.
16684         * modules/copy-file-tests (Makefile.am): Likewise.
16685         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16686         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16687         * modules/mbrtowc-tests (Makefile.am): Likewise.
16688         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16689         * modules/mbscasestr-tests (Makefile.am): Likewise.
16690         * modules/mbschr-tests (Makefile.am): Likewise.
16691         * modules/mbscspn-tests (Makefile.am): Likewise.
16692         * modules/mbsinit-tests (Makefile.am): Likewise.
16693         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16694         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16695         * modules/mbspbrk-tests (Makefile.am): Likewise.
16696         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16697         * modules/mbsrchr-tests (Makefile.am): Likewise.
16698         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16699         * modules/mbsspn-tests (Makefile.am): Likewise.
16700         * modules/mbsstr-tests (Makefile.am): Likewise.
16701         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16702         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16703         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16704         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16705         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16706         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16707         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16708         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16709         * modules/wcrtomb-tests (Makefile.am): Likewise.
16710         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16711         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16712         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16713         assignments from TESTS_ENVIRONMENT.
16714         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16715         augmentation.
16716         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16717         * modules/atexit-tests (Makefile.am): Likewise.
16718         * modules/binary-io-tests (Makefile.am): Likewise.
16719         * modules/closein-tests (Makefile.am): Likewise.
16720         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16721         * modules/exclude-tests (Makefile.am): Likewise.
16722         * modules/fflush-tests (Makefile.am): Likewise.
16723         * modules/fpending-tests (Makefile.am): Likewise.
16724         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16725         * modules/freadahead-tests (Makefile.am): Likewise.
16726         * modules/freadptr-tests (Makefile.am): Likewise.
16727         * modules/freadseek-tests (Makefile.am): Likewise.
16728         * modules/fseek-tests (Makefile.am): Likewise.
16729         * modules/fseeko-tests (Makefile.am): Likewise.
16730         * modules/ftell-tests (Makefile.am): Likewise.
16731         * modules/ftello-tests (Makefile.am): Likewise.
16732         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16733         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16734         * modules/lseek-tests (Makefile.am): Likewise.
16735         * modules/parse-duration-tests (Makefile.am): Likewise.
16736         * modules/perror-tests (Makefile.am): Likewise.
16737         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16738         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16739         * modules/pipe-tests (Makefile.am): Likewise.
16740         * modules/pread-tests (Makefile.am): Likewise.
16741         * modules/printf-posix-tests (Makefile.am): Likewise.
16742         * modules/select-tests (Makefile.am): Likewise.
16743         * modules/sigpipe-tests (Makefile.am): Likewise.
16744         * modules/tsearch-tests (Makefile.am): Likewise.
16745         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16746         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16747         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16748         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16749         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16750         * modules/version-etc-tests (Makefile.am): Likewise.
16751         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16752         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16753         * modules/xalloc-die-tests (Makefile.am): Likewise.
16754         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16755         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16756         * modules/xstrtol-tests (Makefile.am): Likewise.
16757         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16758         * modules/yesno-tests (Makefile.am): Likewise.
16759         Suggested by Jim Meyering.
16760
16761 2010-01-24  Bruno Haible  <bruno@clisp.org>
16762
16763         More documentation.
16764         * doc/gnulib.texi (Writing modules): New chapter.
16765         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16766         the new chapter.
16767
16768 2010-01-24  Jim Meyering  <meyering@redhat.com>
16769
16770         maint.mk: do not prepend "./" after filtering
16771         * top/maint.mk (_prepend_srcdir_prefix): New variable
16772         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16773         "./" when $(srcdir) is ".".
16774
16775         define STREQ(a,b) consistently, removing useless parentheses
16776         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16777         since the only risk is that "a" or "b" contains an unparenthesized
16778         comma, but if either did that, STREQ would have 3 or more arguments.
16779         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16780         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16781         * lib/hash-triple.c (STREQ): Likewise.
16782         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16783         * lib/getugroups.c (STREQ): Likewise.
16784
16785 2010-01-23  Jim Meyering  <meyering@redhat.com>
16786
16787         maint.mk: fix syntax-check in a non-srcdir build directory
16788         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16789         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16790
16791 2010-01-22  Jim Meyering  <meyering@redhat.com>
16792
16793         userspec: add unit tests
16794         * tests/test-userspec.c: New file.
16795         * modules/userspec-tests: Likewise.
16796
16797 2010-01-21  Jim Meyering  <meyering@redhat.com>
16798
16799         maint.mk: handle source file names containing "." robustly
16800         * top/maint.mk (_dot_escaped_srcdir): Define.
16801         (VC_LIST): Use it in LHS of sed substitution.
16802
16803 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16804
16805         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16806         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16807         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16808         from a non-srcdir build.
16809
16810 2010-01-20  Eric Blake  <ebb9@byu.net>
16811
16812         warn-on-use: use instead of link-warning
16813         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16814         * modules/unistd (Depends-on, Makefile.am): Likewise.
16815         * modules/arpa_inet (Depends-on): Replace link-warning with
16816         warn-on-use.
16817         (Makefile.am): Update rules accordingly.
16818         * modules/ctype (Depends-on, Makefile.am): Likewise.
16819         * modules/dirent (Depends-on, Makefile.am): Likewise.
16820         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16821         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16822         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16823         * modules/locale (Depends-on, Makefile.am): Likewise.
16824         * modules/math (Depends-on, Makefile.am): Likewise.
16825         * modules/search (Depends-on, Makefile.am): Likewise.
16826         * modules/signal (Depends-on, Makefile.am): Likewise.
16827         * modules/spawn (Depends-on, Makefile.am): Likewise.
16828         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16829         * modules/string (Depends-on, Makefile.am): Likewise.
16830         * modules/strings (Depends-on, Makefile.am): Likewise.
16831         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16832         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16833         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16834         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16835         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16836         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16837         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16838         * modules/wchar (Depends-on, Makefile.am): Likewise.
16839         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16840         should be poisoned.
16841         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16842         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16843         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16844         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16845         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16846         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16847         * m4/math_h.m4 (gl_MATH_H): Likewise.
16848         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16849         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16850         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16851         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16852         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16853         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16854         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16855         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16856         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16857         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16858         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16859         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16860         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16861         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16862         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16863         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16864         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16865         GL_LINK_WARNING.
16866         * lib/ctype.in.h: Likewise.
16867         * lib/dirent.in.h: Likewise.
16868         * lib/fcntl.in.h: Likewise.
16869         * lib/inttypes.in.h: Likewise.
16870         * lib/langinfo.in.h: Likewise.
16871         * lib/locale.in.h: Likewise.
16872         * lib/math.in.h: Likewise.
16873         * lib/search.in.h: Likewise.
16874         * lib/signal.in.h: Likewise.
16875         * lib/spawn.in.h: Likewise.
16876         * lib/stdio.in.h: Likewise.
16877         * lib/stdlib.in.h: Likewise.
16878         * lib/string.in.h: Likewise.
16879         * lib/strings.in.h: Likewise.
16880         * lib/sys_file.in.h: Likewise.
16881         * lib/sys_ioctl.in.h: Likewise.
16882         * lib/sys_select.in.h: Likewise.
16883         * lib/sys_socket.in.h: Likewise.
16884         * lib/sys_stat.in.h: Likewise.
16885         * lib/sys_times.in.h: Likewise.
16886         * lib/sys_utsname.in.h: Likewise.
16887         * lib/unistd.in.h: Likewise.
16888         * lib/wchar.in.h: Likewise.
16889
16890 2010-01-20  Bruno Haible  <bruno@clisp.org>
16891
16892         Avoid duplicate -lm.
16893         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16894         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16895         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16897         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16898         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16899         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16900         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16901         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16902         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16903         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16904         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16905         Reported by Paolo Bonzini.
16906
16907 2010-01-19  Bruno Haible  <bruno@clisp.org>
16908
16909         langinfo, nl_langinfo: Relicense under LGPLv2+.
16910         * modules/langinfo (License): Change to LGPLv2+.
16911         * modules/nl_langinfo (License): Likewise.
16912         Patch by David Lutterkort <lutter@redhat.com>.
16913
16914 2010-01-19  Bruno Haible  <bruno@clisp.org>
16915
16916         Avoid compilation error with cc on OSF/1 5.1.
16917         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16918         statement, not before.
16919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16920
16921 2010-01-18  Bruno Haible  <bruno@clisp.org>
16922
16923         Avoid a link error due to the __printf__ symbol.
16924         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16925         and 2.6.x.
16926         (__format__, __printf__): Remove definitions.
16927         * lib/argp-fmtstream.h: Likewise.
16928         * lib/argp.h: Likewise.
16929         * lib/error.h: Likewise.
16930         * lib/vasnprintf.h: Likewise.
16931         * lib/xprintf.h: Likewise.
16932         * lib/xvasprintf.h: Likewise.
16933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16934
16935 2010-01-18  Bruno Haible  <bruno@clisp.org>
16936
16937         Tests for module 'tanl'.
16938         * modules/tanl-tests: New file.
16939         * tests/test-tanl.c: New file.
16940
16941         Tests for module 'sqrtl'.
16942         * modules/sqrtl-tests: New file.
16943         * tests/test-sqrtl.c: New file.
16944
16945         Tests for module 'sinl'.
16946         * modules/sinl-tests: New file.
16947         * tests/test-sinl.c: New file.
16948
16949         Tests for module 'logl'.
16950         * modules/logl-tests: New file.
16951         * tests/test-logl.c: New file.
16952
16953         Tests for module 'expl'.
16954         * modules/expl-tests: New file.
16955         * tests/test-expl.c: New file.
16956
16957         Tests for module 'cosl'.
16958         * modules/cosl-tests: New file.
16959         * tests/test-cosl.c: New file.
16960
16961         Tests for module 'atanl'.
16962         * modules/atanl-tests: New file.
16963         * tests/test-atanl.c: New file.
16964
16965         Tests for module 'asinl'.
16966         * modules/asinl-tests: New file.
16967         * tests/test-asinl.c: New file.
16968
16969         Tests for module 'acosl'.
16970         * modules/acosl-tests: New file.
16971         * tests/test-acosl.c: New file.
16972
16973         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16974         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16975         tanl): Use the standard gnulib idiom.
16976         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16977         * lib/sinl.c: Likewise.
16978         * lib/tanl.c: Don't include trigl.c.
16979         (kernel_tanl): Make static.
16980         * lib/sincosl.c: Include trigl.h first.
16981         * lib/trigl.c: Likewise.
16982         * m4/acosl.m4: New file.
16983         * m4/asinl.m4: New file.
16984         * m4/atanl.m4: New file.
16985         * m4/cosl.m4: New file.
16986         * m4/expl.m4: New file.
16987         * m4/logl.m4: New file.
16988         * m4/sinl.m4: New file.
16989         * m4/sqrtl.m4: New file.
16990         * m4/tanl.m4: New file.
16991         * m4/mathl.m4: Remove file.
16992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16993         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16994         Don't initialize GNULIB_MATHL.
16995         * modules/acosl: New file.
16996         * modules/asinl: New file.
16997         * modules/atanl: New file.
16998         * modules/cosl: New file.
16999         * modules/expl: New file.
17000         * modules/logl: New file.
17001         * modules/sinl: New file.
17002         * modules/sqrtl: New file.
17003         * modules/tanl: New file.
17004         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17005         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17006         substitute GNULIB_MATHL.
17007         * modules/mathl: Rewritten.
17008         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17009         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17010         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17011         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17012         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17013         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17014         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17015         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17016         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17017
17018 2010-01-18  Bruno Haible  <bruno@clisp.org>
17019
17020         sqrt: Make gl_FUNC_SQRT requirable.
17021         * m4/sqrt.m4: New file.
17022         * modules/sqrt (Files): Add it.
17023         (configure.ac): Invoke gl_FUNC_SQRT.
17024
17025 2010-01-18  Bruno Haible  <bruno@clisp.org>
17026
17027         New modules for common <math.h> functions.
17028         * m4/mathfunc.m4: New file.
17029         * modules/acos: New file.
17030         * modules/asin: New file.
17031         * modules/atan: New file.
17032         * modules/atan2: New file.
17033         * modules/cbrt: New file.
17034         * modules/copysign: New file.
17035         * modules/cos: New file.
17036         * modules/cosh: New file.
17037         * modules/erf: New file.
17038         * modules/erfc: New file.
17039         * modules/exp: New file.
17040         * modules/fabs: New file.
17041         * modules/fmod: New file.
17042         * modules/hypot: New file.
17043         * modules/j0: New file.
17044         * modules/j1: New file.
17045         * modules/jn: New file.
17046         * modules/ldexp: New file.
17047         * modules/lgamma: New file.
17048         * modules/log: New file.
17049         * modules/log10: New file.
17050         * modules/log1p: New file.
17051         * modules/logb: New file.
17052         * modules/modf: New file.
17053         * modules/nextafter: New file.
17054         * modules/pow: New file.
17055         * modules/remainder: New file.
17056         * modules/rint: New file.
17057         * modules/sin: New file.
17058         * modules/sinh: New file.
17059         * modules/sqrt: New file.
17060         * modules/tan: New file.
17061         * modules/tanh: New file.
17062         * modules/y0: New file.
17063         * modules/y1: New file.
17064         * modules/yn: New file.
17065         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17066         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17067         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17068         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17069         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17070         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17071         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17072         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17073         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17074         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17075         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17076         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17077         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17078         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17079         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17080         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17081         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17082         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17083         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17084         * doc/posix-functions/log.texi: Mention the 'log' module.
17085         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17086         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17087         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17088         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17089         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17090         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17091         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17092         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17093         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17094         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17095         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17096         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17097         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17098         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17099         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17100         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17101
17102 2010-01-18  Jim Meyering  <meyering@redhat.com>
17103
17104         ignore-value: relax license to LGPLv2+
17105         * modules/ignore-value (License): Relax to LGPLv2+.
17106
17107         getdate: don't leak when TZ contains two or more '"'s
17108         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17109         double quote in TZ after the first one.
17110
17111         readtokens: do not leak internal token_lengths buffer
17112         * lib/readtokens.c (readtokens): Free the local, lengths,
17113         when the supplied "token_lengths" parameter is NULL.
17114
17115 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17116
17117         Fix a couple of missing LIBTHREAD link failures on AIX.
17118         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17119         $(LIBTHREAD).
17120         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17121
17122         Link test-poll against INET_PTON_LIB.
17123         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17124         for inet_pton on Solaris 10.
17125
17126 2010-01-17  Bruno Haible  <bruno@clisp.org>
17127
17128         unistdio/*-sprintf: Fix typo in module description.
17129         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17130         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17131         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17132         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17133         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17134         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17135         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17137
17138 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17139
17140         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17141         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17142         variables in shell case patterns, for AIX and HP-UX ksh.
17143
17144         Split large sed scripts, for HP-UX sed.
17145         * modules/stdio: Split sed scripts around 50 sed commands,
17146         to avoid HP-UX limit of 99 commands, in the near future.
17147         * modules/string: Likewise.
17148         * modules/unistd: Likewise.
17149
17150         gnulib-tool: avoid writing in the current directory.
17151         * gnulib-tool (func_emit_lib_Makefile_am)
17152         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17153         not in the current directory, so concurrent gnulib-tool
17154         instances do not interfere.
17155
17156 2010-01-16  Jim Meyering  <meyering@redhat.com>
17157
17158         doc: update users.txt
17159         * users.txt: Add grep.
17160         (diffutils, gzip): Update URLs.
17161
17162 2010-01-12  Bruno Haible  <bruno@clisp.org>
17163
17164         posix_spawn: Avoid test failure on Cygwin.
17165         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17166         characters.
17167         Reported by Simon Josefsson.
17168
17169 2010-01-12  Bruno Haible  <bruno@clisp.org>
17170
17171         * tests/test-cond.c (main): When skipping the test, show the reason.
17172
17173 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17174
17175         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17176
17177 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17178
17179         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17180         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17181
17182 2010-01-12  Eric Blake  <ebb9@byu.net>
17183
17184         build: guarantee AS_VAR_IF
17185         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17186         (gl_AS_VAR_IF): Move...
17187         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17188         Reported by Simon Josefsson.
17189
17190 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17191
17192         * lib/stdio.in.h: Fix typo.
17193
17194 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17195
17196         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17197         libgpg-error.
17198
17199 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17200
17201         * tests/test-xalloc-die.sh: Use $EXEEXT.
17202
17203 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17204             Bruno Haible  <bruno@clisp.org>
17205
17206         getlogin, getlogin_r: Avoid test failure.
17207         * tests/test-getlogin.c: Include <stdio.h>.
17208         (main): Skip the test when the function fails because stdin is not a
17209         tty.
17210         * tests/test-getlogin_r.c: Include <stdio.h>.
17211         (main): Skip the test when the function fails because stdin is not a
17212         tty.
17213
17214 2010-01-11  Eric Blake  <ebb9@byu.net>
17215
17216         tests: avoid more large file warnings
17217         * tests/test-fflush.c: Avoid warning about ftell use.
17218         * tests/test-fseek.c: Avoid warning about fseek use.
17219
17220 2010-01-10  Bruno Haible  <bruno@clisp.org>
17221
17222         nproc: Work better on Linux when /proc and /sys are not mounted.
17223         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17224         as lower bound when, on glibc/Linux systems,
17225         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17226         Suggested by Pádraig Brady <P@draigbrady.com>.
17227         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17228
17229         nproc: Refactor.
17230         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17231         extracted from num_processors.
17232         (num_processors): Call it.
17233
17234 2010-01-11  Jim Meyering  <meyering@redhat.com>
17235
17236         utimecmp: avoid new warning from upcoming gcc-4.5.0
17237         * lib/utimecmp.c (BILLION): Define using #define rather than an
17238         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17239
17240 2010-01-11  Eric Blake  <ebb9@byu.net>
17241
17242         math: add portability warnings for classification macros
17243         * modules/math (Depends-on): Add warn-on-use.
17244         (Makefile.am): Provide new substitutions.
17245         * m4/math_h.m4 (gl_MATH_H): Require inline.
17246         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17247         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17248         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17249         implement warnings.
17250
17251         unistd: warn on use of environ without module
17252         * modules/unistd (Depends-on): Add warn-on-use.
17253         (Makefile.am): Provide new substitutions.
17254         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17255         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17256
17257         stdio: warn on suspicious uses
17258         * modules/stdio (Depends-on): Add warn-on-use.
17259         (Makefile.am): Provide new substitutions.
17260         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17261         fseeko.
17262         * lib/stdio.in.h (gets): Always warn on use.
17263         (fseek, ftell): Adjust when warnings are issued, and honor
17264         _GL_NO_LARGE_FILES as a way to silence the warning.
17265         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17266         any warning about large file offsets.
17267         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17268         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17269         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17270         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17271         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17272         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17273         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17274         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17275
17276         warn-on-use: new module
17277         * modules/warn-on-use: New file.
17278         * build-aux/warn-on-use.h: Likewise.
17279         * m4/warn-on-use.m4: Likewise.
17280         * MODULES.html.sh (Support for building): Mention it.
17281
17282 2010-01-10  Bruno Haible  <bruno@clisp.org>
17283
17284         Tests for module 'unistr/u32-strdup'.
17285         * modules/unistr/u32-strdup-tests: New file.
17286         * tests/unistr/test-u32-strdup.c: New file.
17287
17288         Tests for module 'unistr/u16-strdup'.
17289         * modules/unistr/u16-strdup-tests: New file.
17290         * tests/unistr/test-u16-strdup.c: New file.
17291
17292         Tests for module 'unistr/u8-strdup'.
17293         * modules/unistr/u8-strdup-tests: New file.
17294         * tests/unistr/test-u8-strdup.c: New file.
17295         * tests/unistr/test-strdup.h: New file.
17296
17297         Tests for module 'unistr/u32-strncmp'.
17298         * modules/unistr/u32-strncmp-tests: New file.
17299         * tests/unistr/test-u32-strncmp.c: New file.
17300
17301         Tests for module 'unistr/u16-strncmp'.
17302         * modules/unistr/u16-strncmp-tests: New file.
17303         * tests/unistr/test-u16-strncmp.c: New file.
17304
17305         Tests for module 'unistr/u8-strncmp'.
17306         * modules/unistr/u8-strncmp-tests: New file.
17307         * tests/unistr/test-u8-strncmp.c: New file.
17308         * tests/unistr/test-strncmp.h: New file.
17309
17310         Tests for module 'unistr/u32-strcoll'.
17311         * modules/unistr/u32-strcoll-tests: New file.
17312         * tests/unistr/test-u32-strcoll.c: New file.
17313
17314         Tests for module 'unistr/u16-strcoll'.
17315         * modules/unistr/u16-strcoll-tests: New file.
17316         * tests/unistr/test-u16-strcoll.c: New file.
17317
17318         Tests for module 'unistr/u8-strcoll'.
17319         * modules/unistr/u8-strcoll-tests: New file.
17320         * tests/unistr/test-u8-strcoll.c: New file.
17321
17322         Tests for module 'unistr/u32-strcmp'.
17323         * modules/unistr/u32-strcmp-tests: New file.
17324         * tests/unistr/test-u32-strcmp.c: New file.
17325         * tests/unistr/test-u32-strcmp.h: New file.
17326
17327         Tests for module 'unistr/u16-strcmp'.
17328         * modules/unistr/u16-strcmp-tests: New file.
17329         * tests/unistr/test-u16-strcmp.c: New file.
17330         * tests/unistr/test-u16-strcmp.h: New file.
17331
17332         Tests for module 'unistr/u8-strcmp'.
17333         * modules/unistr/u8-strcmp-tests: New file.
17334         * tests/unistr/test-u8-strcmp.c: New file.
17335         * tests/unistr/test-u8-strcmp.h: New file.
17336         * tests/unistr/test-strcmp.h: New file.
17337
17338         Tests for module 'unistr/u32-strncat'.
17339         * modules/unistr/u32-strncat-tests: New file.
17340         * tests/unistr/test-u32-strncat.c: New file.
17341
17342         Tests for module 'unistr/u16-strncat'.
17343         * modules/unistr/u16-strncat-tests: New file.
17344         * tests/unistr/test-u16-strncat.c: New file.
17345
17346         Tests for module 'unistr/u8-strncat'.
17347         * modules/unistr/u8-strncat-tests: New file.
17348         * tests/unistr/test-u8-strncat.c: New file.
17349         * tests/unistr/test-strncat.h: New file.
17350
17351         Tests for module 'unistr/u32-strcat'.
17352         * modules/unistr/u32-strcat-tests: New file.
17353         * tests/unistr/test-u32-strcat.c: New file.
17354
17355         Tests for module 'unistr/u16-strcat'.
17356         * modules/unistr/u16-strcat-tests: New file.
17357         * tests/unistr/test-u16-strcat.c: New file.
17358
17359         Tests for module 'unistr/u8-strcat'.
17360         * modules/unistr/u8-strcat-tests: New file.
17361         * tests/unistr/test-u8-strcat.c: New file.
17362         * tests/unistr/test-strcat.h: New file.
17363
17364         Tests for module 'unistr/u32-stpncpy'.
17365         * modules/unistr/u32-stpncpy-tests: New file.
17366         * tests/unistr/test-u32-stpncpy.c: New file.
17367
17368         Tests for module 'unistr/u16-stpncpy'.
17369         * modules/unistr/u16-stpncpy-tests: New file.
17370         * tests/unistr/test-u16-stpncpy.c: New file.
17371
17372         Tests for module 'unistr/u8-stpncpy'.
17373         * modules/unistr/u8-stpncpy-tests: New file.
17374         * tests/unistr/test-u8-stpncpy.c: New file.
17375         * tests/unistr/test-stpncpy.h: New file.
17376
17377         Tests for module 'unistr/u32-strncpy'.
17378         * modules/unistr/u32-strncpy-tests: New file.
17379         * tests/unistr/test-u32-strncpy.c: New file.
17380
17381         Tests for module 'unistr/u16-strncpy'.
17382         * modules/unistr/u16-strncpy-tests: New file.
17383         * tests/unistr/test-u16-strncpy.c: New file.
17384
17385         Tests for module 'unistr/u8-strncpy'.
17386         * modules/unistr/u8-strncpy-tests: New file.
17387         * tests/unistr/test-u8-strncpy.c: New file.
17388         * tests/unistr/test-strncpy.h: New file.
17389
17390         Tests for module 'unistr/u32-stpcpy'.
17391         * modules/unistr/u32-stpcpy-tests: New file.
17392         * tests/unistr/test-u32-stpcpy.c: New file.
17393
17394         Tests for module 'unistr/u16-stpcpy'.
17395         * modules/unistr/u16-stpcpy-tests: New file.
17396         * tests/unistr/test-u16-stpcpy.c: New file.
17397
17398         Tests for module 'unistr/u8-stpcpy'.
17399         * modules/unistr/u8-stpcpy-tests: New file.
17400         * tests/unistr/test-u8-stpcpy.c: New file.
17401         * tests/unistr/test-stpcpy.h: New file.
17402
17403         Tests for module 'unistr/u32-strcpy'.
17404         * modules/unistr/u32-strcpy-tests: New file.
17405         * tests/unistr/test-u32-strcpy.c: New file.
17406
17407         Tests for module 'unistr/u16-strcpy'.
17408         * modules/unistr/u16-strcpy-tests: New file.
17409         * tests/unistr/test-u16-strcpy.c: New file.
17410
17411         Tests for module 'unistr/u8-strcpy'.
17412         * modules/unistr/u8-strcpy-tests: New file.
17413         * tests/unistr/test-u8-strcpy.c: New file.
17414         * tests/unistr/test-strcpy.h: New file.
17415
17416         Tests for module 'unistr/u32-strnlen'.
17417         * modules/unistr/u32-strnlen-tests: New file.
17418         * tests/unistr/test-u32-strnlen.c: New file.
17419
17420         Tests for module 'unistr/u16-strnlen'.
17421         * modules/unistr/u16-strnlen-tests: New file.
17422         * tests/unistr/test-u16-strnlen.c: New file.
17423
17424         Tests for module 'unistr/u8-strnlen'.
17425         * modules/unistr/u8-strnlen-tests: New file.
17426         * tests/unistr/test-u8-strnlen.c: New file.
17427         * tests/unistr/test-strnlen.h: New file.
17428
17429         Tests for module 'unistr/u32-strlen'.
17430         * modules/unistr/u32-strlen-tests: New file.
17431         * tests/unistr/test-u32-strlen.c: New file.
17432
17433         Tests for module 'unistr/u16-strlen'.
17434         * modules/unistr/u16-strlen-tests: New file.
17435         * tests/unistr/test-u16-strlen.c: New file.
17436
17437         Tests for module 'unistr/u8-strlen'.
17438         * modules/unistr/u8-strlen-tests: New file.
17439         * tests/unistr/test-u8-strlen.c: New file.
17440
17441         Tests for module 'unistr/u32-prev'.
17442         * modules/unistr/u32-prev-tests: New file.
17443         * tests/unistr/test-u32-prev.c: New file.
17444
17445         Tests for module 'unistr/u16-prev'.
17446         * modules/unistr/u16-prev-tests: New file.
17447         * tests/unistr/test-u16-prev.c: New file.
17448
17449         Tests for module 'unistr/u8-prev'.
17450         * modules/unistr/u8-prev-tests: New file.
17451         * tests/unistr/test-u8-prev.c: New file.
17452
17453         Tests for module 'unistr/u32-next'.
17454         * modules/unistr/u32-next-tests: New file.
17455         * tests/unistr/test-u32-next.c: New file.
17456
17457         Tests for module 'unistr/u16-next'.
17458         * modules/unistr/u16-next-tests: New file.
17459         * tests/unistr/test-u16-next.c: New file.
17460
17461         Tests for module 'unistr/u8-next'.
17462         * modules/unistr/u8-next-tests: New file.
17463         * tests/unistr/test-u8-next.c: New file.
17464
17465         Tests for module 'unistr/u32-strmbtouc'.
17466         * modules/unistr/u32-strmbtouc-tests: New file.
17467         * tests/unistr/test-u32-strmbtouc.c: New file.
17468
17469         Tests for module 'unistr/u16-strmbtouc'.
17470         * modules/unistr/u16-strmbtouc-tests: New file.
17471         * tests/unistr/test-u16-strmbtouc.c: New file.
17472
17473         Tests for module 'unistr/u8-strmbtouc'.
17474         * modules/unistr/u8-strmbtouc-tests: New file.
17475         * tests/unistr/test-u8-strmbtouc.c: New file.
17476
17477         Tests for module 'unistr/u32-strmblen'.
17478         * modules/unistr/u32-strmblen-tests: New file.
17479         * tests/unistr/test-u32-strmblen.c: New file.
17480
17481         Tests for module 'unistr/u16-strmblen'.
17482         * modules/unistr/u16-strmblen-tests: New file.
17483         * tests/unistr/test-u16-strmblen.c: New file.
17484
17485         Tests for module 'unistr/u8-strmblen'.
17486         * modules/unistr/u8-strmblen-tests: New file.
17487         * tests/unistr/test-u8-strmblen.c: New file.
17488
17489         Tests for module 'unistr/u32-cpy-alloc'.
17490         * modules/unistr/u32-cpy-alloc-tests: New file.
17491         * tests/unistr/test-u32-cpy-alloc.c: New file.
17492
17493         Tests for module 'unistr/u16-cpy-alloc'.
17494         * modules/unistr/u16-cpy-alloc-tests: New file.
17495         * tests/unistr/test-u16-cpy-alloc.c: New file.
17496
17497         Tests for module 'unistr/u8-cpy-alloc'.
17498         * modules/unistr/u8-cpy-alloc-tests: New file.
17499         * tests/unistr/test-u8-cpy-alloc.c: New file.
17500         * tests/unistr/test-cpy-alloc.h: New file.
17501
17502         Tests for module 'unistr/u32-mbsnlen'.
17503         * modules/unistr/u32-mbsnlen-tests: New file.
17504         * tests/unistr/test-u32-mbsnlen.c: New file.
17505
17506         Tests for module 'unistr/u16-mbsnlen'.
17507         * modules/unistr/u16-mbsnlen-tests: New file.
17508         * tests/unistr/test-u16-mbsnlen.c: New file.
17509
17510         Tests for module 'unistr/u8-mbsnlen'.
17511         * modules/unistr/u8-mbsnlen-tests: New file.
17512         * tests/unistr/test-u8-mbsnlen.c: New file.
17513
17514         Tests for module 'unistr/u32-chr'.
17515         * modules/unistr/u32-chr-tests: New file.
17516         * tests/unistr/test-u32-chr.c: New file.
17517
17518         Tests for module 'unistr/u16-chr'.
17519         * modules/unistr/u16-chr-tests: New file.
17520         * tests/unistr/test-u16-chr.c: New file.
17521
17522         Tests for module 'unistr/u8-chr'.
17523         * modules/unistr/u8-chr-tests: New file.
17524         * tests/unistr/test-u8-chr.c: New file.
17525         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17526
17527         Tests for module 'unistr/u32-cmp2'.
17528         * modules/unistr/u32-cmp2-tests: New file.
17529         * tests/unistr/test-u32-cmp2.c: New file.
17530
17531         Tests for module 'unistr/u16-cmp2'.
17532         * modules/unistr/u16-cmp2-tests: New file.
17533         * tests/unistr/test-u16-cmp2.c: New file.
17534
17535         Tests for module 'unistr/u8-cmp2'.
17536         * modules/unistr/u8-cmp2-tests: New file.
17537         * tests/unistr/test-u8-cmp2.c: New file.
17538         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17539
17540         Tests for module 'unistr/u32-cmp'.
17541         * modules/unistr/u32-cmp-tests: New file.
17542         * tests/unistr/test-u32-cmp.c: New file.
17543
17544         Tests for module 'unistr/u16-cmp'.
17545         * modules/unistr/u16-cmp-tests: New file.
17546         * tests/unistr/test-u16-cmp.c: New file.
17547
17548         Tests for module 'unistr/u8-cmp'.
17549         * modules/unistr/u8-cmp-tests: New file.
17550         * tests/unistr/test-u8-cmp.c: New file.
17551         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17552
17553         Tests for module 'unistr/u32-set'.
17554         * modules/unistr/u32-set-tests: New file.
17555         * tests/unistr/test-u32-set.c: New file.
17556
17557         Tests for module 'unistr/u16-set'.
17558         * modules/unistr/u16-set-tests: New file.
17559         * tests/unistr/test-u16-set.c: New file.
17560
17561         Tests for module 'unistr/u8-set'.
17562         * modules/unistr/u8-set-tests: New file.
17563         * tests/unistr/test-u8-set.c: New file.
17564         * tests/unistr/test-set.h: New file.
17565
17566         Tests for module 'unistr/u32-move'.
17567         * modules/unistr/u32-move-tests: New file.
17568         * tests/unistr/test-u32-move.c: New file.
17569
17570         Tests for module 'unistr/u16-move'.
17571         * modules/unistr/u16-move-tests: New file.
17572         * tests/unistr/test-u16-move.c: New file.
17573
17574         Tests for module 'unistr/u8-move'.
17575         * modules/unistr/u8-move-tests: New file.
17576         * tests/unistr/test-u8-move.c: New file.
17577         * tests/unistr/test-move.h: New file.
17578
17579         Tests for module 'unistr/u32-cpy'.
17580         * modules/unistr/u32-cpy-tests: New file.
17581         * tests/unistr/test-u32-cpy.c: New file.
17582
17583         Tests for module 'unistr/u16-cpy'.
17584         * modules/unistr/u16-cpy-tests: New file.
17585         * tests/unistr/test-u16-cpy.c: New file.
17586
17587         Tests for module 'unistr/u8-cpy'.
17588         * modules/unistr/u8-cpy-tests: New file.
17589         * tests/unistr/test-u8-cpy.c: New file.
17590         * tests/unistr/test-cpy.h: New file.
17591
17592 2010-01-09  Bruno Haible  <bruno@clisp.org>
17593
17594         Tests for module 'unistr/u32-uctomb'.
17595         * modules/unistr/u32-uctomb-tests: New file.
17596         * tests/unistr/test-u32-uctomb.c: New file.
17597
17598         Tests for module 'unistr/u16-uctomb'.
17599         * modules/unistr/u16-uctomb-tests: New file.
17600         * tests/unistr/test-u16-uctomb.c: New file.
17601
17602         Tests for module 'unistr/u8-uctomb'.
17603         * modules/unistr/u8-uctomb-tests: New file.
17604         * tests/unistr/test-u8-uctomb.c: New file.
17605
17606         Tests for module 'unistr/u32-mbtoucr'.
17607         * modules/unistr/u32-mbtoucr-tests: New file.
17608         * tests/unistr/test-u32-mbtoucr.c: New file.
17609
17610         Tests for module 'unistr/u16-mbtoucr'.
17611         * modules/unistr/u16-mbtoucr-tests: New file.
17612         * tests/unistr/test-u16-mbtoucr.c: New file.
17613
17614         Tests for module 'unistr/u8-mbtoucr'.
17615         * modules/unistr/u8-mbtoucr-tests: New file.
17616         * tests/unistr/test-u8-mbtoucr.c: New file.
17617
17618         Tests for module 'unistr/u32-mbtouc'.
17619         * modules/unistr/u32-mbtouc-tests: New file.
17620         * tests/unistr/test-u32-mbtouc.c: New file.
17621
17622         Tests for module 'unistr/u16-mbtouc'.
17623         * modules/unistr/u16-mbtouc-tests: New file.
17624         * tests/unistr/test-u16-mbtouc.c: New file.
17625
17626         Tests for module 'unistr/u8-mbtouc'.
17627         * modules/unistr/u8-mbtouc-tests: New file.
17628         * tests/unistr/test-u8-mbtouc.c: New file.
17629
17630         Tests for module 'unistr/u32-mbtouc-unsafe'.
17631         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17632         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17633         * tests/unistr/test-u32-mbtouc.h: New file.
17634
17635         Tests for module 'unistr/u16-mbtouc-unsafe'.
17636         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17637         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17638         * tests/unistr/test-u16-mbtouc.h: New file.
17639
17640         Tests for module 'unistr/u8-mbtouc-unsafe'.
17641         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17642         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17643         * tests/unistr/test-u8-mbtouc.h: New file.
17644
17645         Tests for module 'unistr/u32-mblen'.
17646         * modules/unistr/u32-mblen-tests: New file.
17647         * tests/unistr/test-u32-mblen.c: New file.
17648
17649         Tests for module 'unistr/u16-mblen'.
17650         * modules/unistr/u16-mblen-tests: New file.
17651         * tests/unistr/test-u16-mblen.c: New file.
17652
17653         Tests for module 'unistr/u8-mblen'.
17654         * modules/unistr/u8-mblen-tests: New file.
17655         * tests/unistr/test-u8-mblen.c: New file.
17656
17657         Tests for module 'unistr/u32-to-u16'.
17658         * modules/unistr/u32-to-u16-tests: New file.
17659         * tests/unistr/test-u32-to-u16.c: New file.
17660
17661         Tests for module 'unistr/u32-to-u8'.
17662         * modules/unistr/u32-to-u8-tests: New file.
17663         * tests/unistr/test-u32-to-u8.c: New file.
17664
17665         Tests for module 'unistr/u16-to-u32'.
17666         * modules/unistr/u16-to-u32-tests: New file.
17667         * tests/unistr/test-u16-to-u32.c: New file.
17668
17669         Tests for module 'unistr/u16-to-u8'.
17670         * modules/unistr/u16-to-u8-tests: New file.
17671         * tests/unistr/test-u16-to-u8.c: New file.
17672
17673         Tests for module 'unistr/u8-to-u32'.
17674         * modules/unistr/u8-to-u32-tests: New file.
17675         * tests/unistr/test-u8-to-u32.c: New file.
17676
17677         Tests for module 'unistr/u8-to-u16'.
17678         * modules/unistr/u8-to-u16-tests: New file.
17679         * tests/unistr/test-u8-to-u16.c: New file.
17680
17681         Tests for module 'unistr/u32-check'.
17682         * modules/unistr/u32-check-tests: New file.
17683         * tests/unistr/test-u32-check.c: New file.
17684
17685         Tests for module 'unistr/u16-check'.
17686         * modules/unistr/u16-check-tests: New file.
17687         * tests/unistr/test-u16-check.c: New file.
17688
17689         Tests for module 'unistr/u8-check'.
17690         * modules/unistr/u8-check-tests: New file.
17691         * tests/unistr/test-u8-check.c: New file.
17692
17693         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17694         (category_equals): New function.
17695         (main): Add more tests.
17696         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17697
17698         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17699
17700 2010-01-10  Bruno Haible  <bruno@clisp.org>
17701
17702         unistr/u*-strcoll: Try harder to distinguish different strings.
17703         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17704         compare s1 and s2 to see if they are different.
17705
17706 2010-01-10  Bruno Haible  <bruno@clisp.org>
17707
17708         unistr/u*-stpncpy: Fix the return value.
17709         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17710         description of the return value consistent with stpncpy in glibc.
17711         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17712         written non-NUL unit.
17713
17714 2010-01-10  Bruno Haible  <bruno@clisp.org>
17715
17716         unistr/u*-next: Add missing dependencies.
17717         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17718         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17719         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17720
17721 2010-01-10  Bruno Haible  <bruno@clisp.org>
17722
17723         unistr/u8-mbsnlen: Fix return value for incomplete character.
17724         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17725         u8_mblen.
17726         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17727         Remove unistr/u8-mblen.
17728         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17729         u16_mblen.
17730         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17731         Remove unistr/u16-mblen.
17732
17733 2010-01-10  Bruno Haible  <bruno@clisp.org>
17734
17735         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17736         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17737         Reported by Brian Gough <bjg@gnu.org> and
17738         Chris Clayton <chris2553@googlemail.com> via
17739         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17740
17741 2010-01-09  Bruno Haible  <bruno@clisp.org>
17742
17743         unistr/u16-to-u32: Reject invalid input.
17744         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17745         u16_mbtouc.
17746         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17747         Remove unistr/u16-mbtouc.
17748
17749         unistr/u16-to-u8: Reject invalid input.
17750         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17751         u16_mbtouc.
17752         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17753         Remove unistr/u16-mbtouc.
17754
17755         unistr/u8-to-u32: Reject invalid input.
17756         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17757         u8_mbtouc.
17758         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17759         Remove unistr/u8-mbtouc.
17760
17761         unistr/u8-to-u16: Reject invalid input.
17762         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17763         u8_mbtouc.
17764         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17765         Remove unistr/u8-mbtouc.
17766
17767 2010-01-09  Bruno Haible  <bruno@clisp.org>
17768
17769         Tests for module 'getlogin'.
17770         * modules/getlogin-tests: New file.
17771         * tests/test-getlogin.c: New file.
17772
17773         New module 'getlogin'.
17774         * lib/unistd.in.h (getlogin): New declaration.
17775         * lib/getlogin.c: New file.
17776         * m4/getlogin.m4: New file.
17777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17778         HAVE_GETLOGIN.
17779         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17780         HAVE_GETLOGIN.
17781         * modules/getlogin: New file.
17782         * doc/posix-functions/getlogin.texi: Mention the new module.
17783         Reported by John W. Eaton <jwe@gnu.org>.
17784
17785 2010-01-09  Bruno Haible  <bruno@clisp.org>
17786
17787         getlogin_r: Support for native Windows.
17788         * lib/getlogin_r.c: Include <windows.h>
17789         (getlogin_r): Implement for native Windows.
17790         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17791         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17792         via John W. Eaton <jwe@gnu.org>.
17793
17794 2010-01-09  Bruno Haible  <bruno@clisp.org>
17795
17796         getlogin_r: Small fixes.
17797         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17798         succeeds.
17799         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17800         before testing whether getlogin_r is declared. No need to set
17801         HAVE_DECL_GETLOGIN_R to 1.
17802         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17803
17804 2010-01-09  Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/unistd.in.h (getlogin_r): Add comment.
17807
17808 2010-01-09  Bruno Haible  <bruno@clisp.org>
17809
17810         Tests for module 'getlogin_r'.
17811         * modules/getlogin_r-tests: New file.
17812         * tests/test-getlogin_r.c: New file.
17813
17814 2010-01-09  Jim Meyering  <meyering@redhat.com>
17815
17816         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17817         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17818         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17819
17820 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17821
17822         * lib/dup2.c (rpl_dup2): Improve comment.
17823
17824 2010-01-08  Eric Blake  <ebb9@byu.net>
17825
17826         maint.mk: allow packages to add makefile @@ exceptions
17827         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17828         (sc_makefile_check): Rename...
17829         (sc_makefile_at_at_check): ...to this, and use hook.
17830
17831         dup2: work around mingw bug
17832         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17833         Reported by Simon Josefsson.
17834
17835 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17836
17837         glob: Fix C++ compilation.
17838         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17839         C++.
17840
17841 2010-01-07  Bruno Haible  <bruno@clisp.org>
17842
17843         Fix indentation of wctype.in.h, broken since 2007-01-06.
17844         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17845
17846 2010-01-07  Bruno Haible  <bruno@clisp.org>
17847
17848         mbslen: Avoid collision with system function.
17849         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17850         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17851         * m4/mbslen.m4: New file.
17852         * modules/mbslen (Files): Add it.
17853         (configure.ac): Invoke gl_MBSLEN.
17854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17855         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17856         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17857         via Ian Beckwith <ianb@erislabs.net>.
17858
17859 2010-01-07  Bruno Haible  <bruno@clisp.org>
17860
17861         dirent: Document the last fix.
17862         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17863
17864 2010-01-07  Bruno Haible  <bruno@clisp.org>
17865
17866         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17867         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17868         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17869         va_list are defined.
17870         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17871         Reported by Eric Blake.
17872
17873 2010-01-07  Bruno Haible  <bruno@clisp.org>
17874
17875         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17876         * modules/xlist (Depends-on): Add 'list',
17877         * modules/xoset (Depends-on): Add 'oset'.
17878         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17879
17880 2010-01-07  Bruno Haible  <bruno@clisp.org>
17881
17882         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17883         * doc/posix-functions/strncasecmp.texi: Likewise.
17884
17885 2010-01-07  Bruno Haible  <bruno@clisp.org>
17886
17887         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17888
17889 2010-01-07  John W. Eaton  <jwe@octave.org>
17890
17891         wctype: allow C++ use
17892         * lib/wctype.in.h: Add extern "C" block for C++.
17893
17894 2010-01-06  Eric Blake  <ebb9@byu.net>
17895
17896         maint.mk: detect incorrect GFDL usage
17897         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17898
17899 2010-01-06  Jim Meyering  <meyering@redhat.com>
17900         and Eric Blake  <ebb9@byu.net>
17901
17902         maint.mk: ignore multi-line copyright in NEWS
17903         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17904
17905 2010-01-06  Eric Blake  <ebb9@byu.net>
17906
17907         select: add missing dependency
17908         * modules/select-tests (Depends-on): Move sockets dependency...
17909         * modules/select (Depends-on): ...here.
17910         Reported by Ian Beckwith.
17911
17912         doc: regenerate INSTALL
17913         * doc/INSTALL: Reflect recent autoconf update.
17914         * doc/INSTALL.ISO: Likewise.
17915         * doc/INSTALL.UTF-8: Likewise.
17916
17917         pread: fix compilation on glibc
17918         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17919         Reported by Ralf Wildenhues.
17920
17921         dirent: fix test failure
17922         * lib/dirent.in.h (includes): Guarantee ino_t.
17923         Reported by Ralf Wildenhues.
17924
17925 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17926
17927         linkat, renameat: avoid bad free
17928         * lib/at-func2.c (at_func2): Fix typo.
17929         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17930
17931 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17932
17933         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17934         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17935         to avoid failure of symlink test later.
17936
17937 2010-01-06  Eric Blake  <ebb9@byu.net>
17938
17939         stdio, unistd: guarantee ssize_t
17940         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17941         2008 are exposed when needed.
17942         * lib/stdio.in.h (includes): Likewise.
17943         Reported by Ralf Wildenhues.
17944
17945 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17946
17947         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17948         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17949         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17950
17951 2010-01-06  Jim Meyering  <meyering@redhat.com>
17952
17953         readtokens: this module *does* require xalloc.h
17954         It uses only functions that were omitted by the old syntax-check rule.
17955         * lib/readtokens.c: Include "xalloc.h" once again.
17956         * modules/readtokens (Depends-on): Add xalloc.
17957         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17958
17959 2010-01-05  Eric Blake  <ebb9@byu.net>
17960
17961         maint: support 'make announcement' from a VPATH build
17962         * top/maint.mk (announcement): Look for correct NEWS file.
17963
17964 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17965
17966         utimens (fdutimens): ignore a negative FD, per contract
17967         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17968         when we have a valid file descriptor.  Otherwise, using a brand
17969         new glibc (with just-patched futimens that now fails with EBADF)
17970         would cause this function to fail with ENOSYS.
17971         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17972         See also http://bugzilla.redhat.com/552320.
17973
17974 2010-01-05  Eric Blake  <ebb9@byu.net>
17975
17976         strcase: document what it provides
17977         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17978         gnulib module.
17979         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17980         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17981
17982 2010-01-05  Jim Meyering  <meyering@redhat.com>
17983
17984         maint: remove useless inclusions of "xalloc.h"
17985         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17986         * lib/readtokens.c: Likewise.
17987         * lib/same.c: Likewise.
17988         * modules/getloadavg (Depends-on): Remove xalloc.
17989         * modules/readtokens: Likewise.
17990         * modules/same: Likewise.
17991
17992         maint.mk: include 4 more function names in alloca.h-checking regexp
17993         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17994         regexp.  Before, we would give a false-positive (saying alloca.h
17995         is included unnecessarily) when the only uses involved omitted symbols.
17996
17997         xalloc.h: use consistent formatting
17998         * lib/xalloc.h: Move declarations to start in the first column.
17999
18000 2010-01-05  Eric Blake  <ebb9@byu.net>
18001
18002         mkdir: avoid xalloc
18003         * lib/mkdir.c (includes): Drop unused header.
18004         Reported by John W. Eaton.
18005
18006 2010-01-04  Jim Meyering  <meyering@redhat.com>
18007
18008         nl_langinfo: avoid configure-time syntax error
18009         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18010         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18011         the empty string.  Don't let that provoke a shell syntax error.
18012
18013         regcomp, regexec, fnmatch: avoid array bounds read error
18014         * lib/regcomp.c (build_equiv_class): From glibc:
18015         Use only the low 24 bits of a findidx return value as an index
18016         into the weights array.  Patch by Ulrich Drepper:
18017         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18018         * lib/regexec.c (check_node_accept_bytes): Likewise.
18019         * lib/fnmatch_loop.c (FCT): Likewise.
18020
18021         regcomp: skip collseq lookup when there are no rules
18022         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18023         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18024
18025         regcomp: recognize ill-formed { } expressions
18026         * lib/regcomp.c (parse_dup_op): From glibc:
18027         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18028
18029         regcomp: fix typo in comment
18030         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18031         s/satisfy/satisfies/.
18032
18033         regcomp: sync from glibc: remove dead store
18034         * lib/regcomp.c (duplicate_node_closure): Remove useless
18035         search_duplicated_node call and dead store.
18036
18037         regcomp: sync from glibc; always use nl_langinfo
18038         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18039         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18040         * modules/regex (Depends-on): Add nl_langinfo.
18041
18042 2010-01-04  Eric Blake  <ebb9@byu.net>
18043
18044         fdopendir: fix configure test
18045         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18046
18047 2010-01-01  Bruno Haible  <bruno@clisp.org>
18048
18049         wchar: Remove unused configure check.
18050         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18051
18052 2010-01-01  Eric Blake  <ebb9@byu.net>
18053
18054         headers: make check of system header explicit
18055         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18056         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18057         ourselves.
18058         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18060         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18061         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18062         internals.
18063         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18064         missing.
18065         Suggested by Bruno Haible.
18066
18067 2010-01-01  Jim Meyering  <meyering@redhat.com>
18068
18069         ChangeLog: tweak to eliminate unnecessary copyright line
18070         * ChangeLog: Remove a copyright line that was mistakenly updated
18071         by today's update-copyright run.  Reported by Eric Blake.
18072
18073         test-update-copyright: don't let envvar setting cause test failure
18074         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18075
18076 2010-01-01  Bruno Haible  <bruno@clisp.org>
18077
18078         localename: Avoid gcc warning.
18079         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18080         function if it is not used.
18081
18082 2010-01-01  Jim Meyering  <meyering@redhat.com>
18083
18084         update nearly all FSF copyright year lists to include 2010
18085         Use the same procedure as for 2009, outlined in
18086         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18087
18088         version-etc: set COPYRIGHT_YEAR to 2010
18089         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18090
18091 2009-12-31  Eric Blake  <ebb9@byu.net>
18092
18093         doc: correct availability of cygwin 1.5.x getopt
18094         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18095         variables.
18096         * doc/posix-functions/opterr.texi (opterr): Likewise.
18097         * doc/posix-functions/optind.texi (optind): Likewise.
18098         * doc/posix-functions/optopt.texi (optopt): Likewise.
18099         * doc/posix-functions/tzname.texi (tzname): Likewise.
18100
18101         openat: update maintainer
18102         * modules/openat (Maintainer): Add myself.
18103
18104         utimens: avoid shadowing warning
18105         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18106         buffers into one, to avoid shadowing, as well as avoiding a
18107         redundant stat.
18108         Reported by Jim Meyering.
18109
18110         test-dup2: avoid compiler warning
18111         * tests/test-dup2.c (is_inheritable): Only define if used.
18112
18113 2010-01-01  Bruno Haible  <bruno@clisp.org>
18114
18115         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18116         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18117         defined, use wctomb instead of wcrtomb.
18118
18119 2010-01-01  Bruno Haible  <bruno@clisp.org>
18120
18121         iconv: Reject native Solaris iconv.
18122         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18123         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18124
18125 2009-12-31  Bruno Haible  <bruno@clisp.org>
18126
18127         * tests/test-signal.c (main): Remove test of 'SIG'.
18128
18129 2009-12-31  Bruno Haible  <bruno@clisp.org>
18130
18131         spawn: Fix incomplete fix.
18132         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18133         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18134         warnings for GNULIB_POSIXCHECK again.
18135         Reported by Eric Blake.
18136
18137 2009-12-31  Bruno Haible  <bruno@clisp.org>
18138
18139         Avoid namespace pollution on glibc systems.
18140         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18141         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18142         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18143         glibc systems.
18144
18145 2009-12-31  Bruno Haible  <bruno@clisp.org>
18146
18147         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18148         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18149         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18150         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18151         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18152         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18153         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18154
18155 2009-12-31  Bruno Haible  <bruno@clisp.org>
18156
18157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18158         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18159         afterwards.
18160
18161 2009-12-31  Bruno Haible  <bruno@clisp.org>
18162
18163         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18164         SYS_UTSNAME_H.
18165
18166 2009-12-31  Bruno Haible  <bruno@clisp.org>
18167
18168         spawn: Fix misapplied patch.
18169         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18170         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18171         warnings for GNULIB_POSIXCHECK.
18172
18173 2009-12-31  Bruno Haible  <bruno@clisp.org>
18174
18175         times: Update after sys_times changed.
18176         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18177         * modules/times (Files): Add it.
18178         (configure.ac): Invoke gl_FUNC_TIMES.
18179
18180 2009-12-31  Bruno Haible  <bruno@clisp.org>
18181
18182         Use AC_C_INLINE where necessary.
18183         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18184         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18185         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18186         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18187         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18188         * m4/mbiter.m4 (gl_MBITER): Likewise.
18189         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18190         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18191         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18192         * modules/u64 (configure.ac): Likewise.
18193
18194 2009-12-31  Bruno Haible  <bruno@clisp.org>
18195
18196         Use AC_C_INLINE instead of module 'inline' where possible.
18197         * modules/inline (Description): Clarify purpose.
18198         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18199         * modules/count-one-bits (Depends-on): Remove inline.
18200         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18201         * modules/openat (Depends-on): Remove inline.
18202         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18203         instead of depending on module 'inline'.
18204         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18205         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18206         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18207         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18208         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18209         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18210         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18211         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18212         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18213         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18214         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18215         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18216         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18217         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18218         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18219         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18220         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18221         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18222         Likewise.
18223         * modules/unictype/property-ascii-hex-digit (Depends-on,
18224         configure.ac): Likewise.
18225         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18226         configure.ac): Likewise.
18227         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18228         configure.ac): Likewise.
18229         * modules/unictype/property-bidi-block-separator (Depends-on,
18230         configure.ac): Likewise.
18231         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18232         configure.ac): Likewise.
18233         * modules/unictype/property-bidi-common-separator (Depends-on,
18234         configure.ac): Likewise.
18235         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18236         Likewise.
18237         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18238         configure.ac): Likewise.
18239         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18240         configure.ac): Likewise.
18241         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18242         configure.ac): Likewise.
18243         * modules/unictype/property-bidi-european-digit (Depends-on,
18244         configure.ac): Likewise.
18245         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18246         configure.ac): Likewise.
18247         * modules/unictype/property-bidi-left-to-right (Depends-on,
18248         configure.ac): Likewise.
18249         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18250         configure.ac): Likewise.
18251         * modules/unictype/property-bidi-other-neutral (Depends-on,
18252         configure.ac): Likewise.
18253         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18254         Likewise.
18255         * modules/unictype/property-bidi-segment-separator (Depends-on,
18256         configure.ac): Likewise.
18257         * modules/unictype/property-bidi-whitespace (Depends-on,
18258         configure.ac): Likewise.
18259         * modules/unictype/property-combining (Depends-on, configure.ac):
18260         Likewise.
18261         * modules/unictype/property-composite (Depends-on, configure.ac):
18262         Likewise.
18263         * modules/unictype/property-currency-symbol (Depends-on,
18264         configure.ac): Likewise.
18265         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18266         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18267         Likewise.
18268         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18269         configure.ac): Likewise.
18270         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18271         Likewise.
18272         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18273         Likewise.
18274         * modules/unictype/property-extender (Depends-on, configure.ac):
18275         Likewise.
18276         * modules/unictype/property-format-control (Depends-on, configure.ac):
18277         Likewise.
18278         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18279         Likewise.
18280         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18281         Likewise.
18282         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18283         Likewise.
18284         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18285         Likewise.
18286         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18287         Likewise.
18288         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18289         Likewise.
18290         * modules/unictype/property-id-start (Depends-on, configure.ac):
18291         Likewise.
18292         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18293         Likewise.
18294         * modules/unictype/property-ids-binary-operator (Depends-on,
18295         configure.ac): Likewise.
18296         * modules/unictype/property-ids-trinary-operator (Depends-on,
18297         configure.ac): Likewise.
18298         * modules/unictype/property-ignorable-control (Depends-on,
18299         configure.ac): Likewise.
18300         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18301         Likewise.
18302         * modules/unictype/property-join-control (Depends-on, configure.ac):
18303         Likewise.
18304         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18305         Likewise.
18306         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18307         Likewise.
18308         * modules/unictype/property-logical-order-exception (Depends-on,
18309         configure.ac): Likewise.
18310         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18311         Likewise.
18312         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18313         * modules/unictype/property-non-break (Depends-on, configure.ac):
18314         Likewise.
18315         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18316         Likewise.
18317         * modules/unictype/property-numeric (Depends-on, configure.ac):
18318         Likewise.
18319         * modules/unictype/property-other-alphabetic (Depends-on,
18320         configure.ac): Likewise.
18321         * modules/unictype/property-other-default-ignorable-code-point
18322         (Depends-on, configure.ac): Likewise.
18323         * modules/unictype/property-other-grapheme-extend (Depends-on,
18324         configure.ac): Likewise.
18325         * modules/unictype/property-other-id-continue (Depends-on,
18326         configure.ac): Likewise.
18327         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18328         Likewise.
18329         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18330         Likewise.
18331         * modules/unictype/property-other-math (Depends-on, configure.ac):
18332         Likewise.
18333         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18334         Likewise.
18335         * modules/unictype/property-paired-punctuation (Depends-on,
18336         configure.ac): Likewise.
18337         * modules/unictype/property-paragraph-separator (Depends-on,
18338         configure.ac): Likewise.
18339         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18340         Likewise.
18341         * modules/unictype/property-pattern-white-space (Depends-on,
18342         configure.ac): Likewise.
18343         * modules/unictype/property-private-use (Depends-on, configure.ac):
18344         Likewise.
18345         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18346         Likewise.
18347         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18348         Likewise.
18349         * modules/unictype/property-radical (Depends-on, configure.ac):
18350         Likewise.
18351         * modules/unictype/property-sentence-terminal (Depends-on,
18352         configure.ac): Likewise.
18353         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18354         Likewise.
18355         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18356         * modules/unictype/property-terminal-punctuation (Depends-on,
18357         configure.ac): Likewise.
18358         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18359         Likewise.
18360         * modules/unictype/property-unassigned-code-value (Depends-on,
18361         configure.ac): Likewise.
18362         * modules/unictype/property-unified-ideograph (Depends-on,
18363         configure.ac): Likewise.
18364         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18365         Likewise.
18366         * modules/unictype/property-variation-selector (Depends-on,
18367         configure.ac): Likewise.
18368         * modules/unictype/property-white-space (Depends-on, configure.ac):
18369         Likewise.
18370         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18371         Likewise.
18372         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18373         Likewise.
18374         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18375         Likewise.
18376         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18377         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18378         Likewise.
18379
18380 2009-12-31  Bruno Haible  <bruno@clisp.org>
18381
18382         Remove unnecessary AC_C_INLINE invocation.
18383         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18384         since 2009-08-21.
18385
18386 2009-12-31  Jim Meyering  <meyering@redhat.com>
18387
18388         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18389         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18390         With this change, we can all remove the gpg_key_ID = ... definition
18391         from our respective cfg.mk files.
18392
18393         maint.mk: create announcement template in ~/, not in /tmp
18394         * top/maint.mk (emit_upload_commands): Adjust.
18395         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18396         Remove temporary file, .ci-msg.
18397
18398 2009-12-31  Eric Blake  <ebb9@byu.net>
18399
18400         link-warning: always build headers with link warnings
18401         * modules/arpa_inet (Makefile.am): Always build replacement
18402         header.
18403         * modules/ctype (Makefile.am): Likewise.
18404         * modules/dirent (Makefile.am): Likewise.
18405         * modules/inttypes (Makefile.am): Likewise.
18406         * modules/langinfo (Makefile.am): Likewise.
18407         * modules/locale (Makefile.am): Likewise.
18408         * modules/spawn (Makefile.am): Likewise.
18409         * modules/sys_file (Makefile.am): Likewise.
18410         * modules/sys_ioctl (Makefile.am): Likewise.
18411         * modules/sys_select (Makefile.am): Likewise.
18412         * modules/sys_socket (Makefile.am): Likewise.
18413         * modules/sys_times (Makefile.am): Likewise.
18414         * modules/sys_utsname (Makefile.am): Likewise.
18415         * modules/sys_wait (Makefile.am): Likewise.
18416         * modules/wchar (Makefile.am): Likewise.
18417         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18418         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18419         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18420         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18421         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18422         Likewise.
18423         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18424         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18425         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18426         Likewise.
18427         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18428         Likewise.
18429         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18430         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18431         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18433         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18434         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18435         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18436         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18437         (gl_WCHAR_H_DEFAULTS): Likewise.
18438
18439 2009-12-31  Eric Blake  <ebb9@byu.net>
18440
18441         signal, spawn: use link warnings
18442         * lib/signal.in.h (sigset_t): Make unconditional.
18443         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18444         (sigpending, sigprocmask, sigaction): Add link warnings.
18445         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18446         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18447         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18448         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18449         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18450         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18451         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18452         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18453         (posix_spawn_file_actions_destroy)
18454         (posix_spawn_file_actions_addopen)
18455         (posix_spawn_file_actions_addclose)
18456         (posix_spawn_file_actions_adddup2): Likewise.
18457         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18458         * tests/test-signal.c (main): Enhance test.
18459
18460         spawn: improve wrapper support
18461         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18462         (gl_SPAWN_H_DEFAULTS): New defaults.
18463         * modules/spawn (Makefile.am): Substitute them.
18464         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18465         Only declare if missing or broken.
18466
18467         sys_times, sys_utsname: use include_next
18468         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18469         header.
18470         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18471         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18472         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18473         * modules/sys_times (Depends-on): Add include_next.
18474         (Makefile.am): Substitute additional values.
18475         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18476         * lib/sys_times.in.h (includes): Include native header, if
18477         available.
18478         * lib/sys_utsname.in.h (includes): Likewise.
18479         * tests/test-sys_times.c (main): Enhance test.
18480
18481         fdutimensat: revert prior patch
18482         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18483         utimens.h.
18484         Reported by Bruno Haible.
18485
18486 2009-12-30  Eric Blake  <ebb9@byu.net>
18487
18488         sys_wait: drop link-warning dependency
18489         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18490         link-warning efforts.
18491         * lib/sys_wait.in.h: Likewise.
18492
18493         fdutimensat: remove bogus dependency
18494         * modules/fdutimensat (Depends-on): Drop inline.
18495
18496         unistd: fix typo
18497         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18498
18499 2009-12-30  Bruno Haible  <bruno@clisp.org>
18500
18501         Fix compilation error with Solaris cc.
18502         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18503         * lib/unicase/u16-is-invariant.c: Likewise.
18504         * lib/unicase/u32-is-invariant.c: Likewise.
18505         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18506
18507 2009-12-30  Bruno Haible  <bruno@clisp.org>
18508
18509         Fix test crash.
18510         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18511         locales.
18512         Reported by Simon Josefsson <simon@josefsson.org>.
18513
18514 2009-12-30  Bruno Haible  <bruno@clisp.org>
18515
18516         Fix compilation error on most platforms.
18517         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18518         Reported by Simon Josefsson <simon@josefsson.org>
18519         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18520
18521 2009-12-30  Eric Blake  <ebb9@byu.net>
18522
18523         futimens, utimensat: work around ntfs-3g bug
18524         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18525         a ctime bug is present, and expand workaround to cover ntfs-3g.
18526         * lib/utimens.c (fdutimens, lutimens): Likewise.
18527         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18528         (validate_timespec): Adjust return value.
18529         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18530         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18531         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18532
18533 2009-12-29  Eric Blake  <ebb9@byu.net>
18534
18535         link-warning: make usage consistent
18536         * modules/ctype (Depends-on): Add link-warning.
18537         (Makefile.am): Update rules accordingly.
18538         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18539         * modules/locale (Depends-on, Makefile.am): Likewise.
18540         * modules/sys_file (Makefile.am): Likewise.
18541         * modules/getopt-posix (Makefile.am): Delete unused link warning
18542         efforts.
18543         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18544         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18545         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18546         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18547
18548         stdio: remove unused variables
18549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18550         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18551         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18552
18553         tests: test more substitute headers
18554         * modules/ctype-tests: New file.
18555         * modules/dirent-tests: Likewise.
18556         * modules/spawn-tests: Likewise.
18557         * modules/sys_file-tests: Likewise.
18558         * modules/sys_ioctl-tests: Likewise.
18559         * modules/sys_wait-tests: Likewise.
18560         * tests/test-ctype.c: Likewise.
18561         * tests/test-dirent.c: Likewise.
18562         * tests/test-spawn.c: Likewise.
18563         * tests/test-sys_file.c: Likewise.
18564         * tests/test-sys_ioctl.c: Likewise.
18565         * tests/test-sys_wait.c: Likewise.
18566         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18567         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18568         whether or not flock is in use.
18569
18570         tests: remove License section from module
18571         * modules/arpa_inet-tests: Remove unneeded section.
18572         * modules/byteswap-tests: Likewise.
18573         * modules/ceilf-tests: Likewise.
18574         * modules/ceill-tests: Likewise.
18575         * modules/crypto/des-tests: Likewise.
18576         * modules/crypto/gc-arcfour-tests: Likewise.
18577         * modules/crypto/gc-arctwo-tests: Likewise.
18578         * modules/crypto/gc-des-tests: Likewise.
18579         * modules/crypto/gc-hmac-md5-tests: Likewise.
18580         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18581         * modules/crypto/gc-md2-tests: Likewise.
18582         * modules/crypto/gc-md4-tests: Likewise.
18583         * modules/crypto/gc-md5-tests: Likewise.
18584         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18585         * modules/crypto/gc-rijndael-tests: Likewise.
18586         * modules/crypto/gc-sha1-tests: Likewise.
18587         * modules/crypto/gc-tests: Likewise.
18588         * modules/crypto/md2-tests: Likewise.
18589         * modules/crypto/md4-tests: Likewise.
18590         * modules/fcntl-h-tests: Likewise.
18591         * modules/floorf-tests: Likewise.
18592         * modules/floorl-tests: Likewise.
18593         * modules/frexp-nolibm-tests: Likewise.
18594         * modules/frexp-tests: Likewise.
18595         * modules/frexpl-nolibm-tests: Likewise.
18596         * modules/frexpl-tests: Likewise.
18597         * modules/getaddrinfo-tests: Likewise.
18598         * modules/inttypes-tests: Likewise.
18599         * modules/isfinite-tests: Likewise.
18600         * modules/isinf-tests: Likewise.
18601         * modules/ldexpl-tests: Likewise.
18602         * modules/locale-tests: Likewise.
18603         * modules/math-tests: Likewise.
18604         * modules/netdb-tests: Likewise.
18605         * modules/netinet_in-tests: Likewise.
18606         * modules/printf-frexp-tests: Likewise.
18607         * modules/printf-frexpl-tests: Likewise.
18608         * modules/priv-set-tests: Likewise.
18609         * modules/random_r-tests: Likewise.
18610         * modules/round-tests: Likewise.
18611         * modules/roundf-tests: Likewise.
18612         * modules/roundl-tests: Likewise.
18613         * modules/search-tests: Likewise.
18614         * modules/select-tests: Likewise.
18615         * modules/signal-tests: Likewise.
18616         * modules/stdbool-tests: Likewise.
18617         * modules/stddef-tests: Likewise.
18618         * modules/stdint-tests: Likewise.
18619         * modules/stdio-tests: Likewise.
18620         * modules/stdlib-tests: Likewise.
18621         * modules/string-tests: Likewise.
18622         * modules/strings-tests: Likewise.
18623         * modules/sys_select-tests: Likewise.
18624         * modules/sys_socket-tests: Likewise.
18625         * modules/sys_stat-tests: Likewise.
18626         * modules/sys_time-tests: Likewise.
18627         * modules/sys_utsname-tests: Likewise.
18628         * modules/sysexits-tests: Likewise.
18629         * modules/time-tests: Likewise.
18630         * modules/trunc-tests: Likewise.
18631         * modules/truncf-tests: Likewise.
18632         * modules/truncl-tests: Likewise.
18633         * modules/tsearch-tests: Likewise.
18634         * modules/unistd-tests: Likewise.
18635         * modules/wchar-tests: Likewise.
18636         * modules/wctype-tests: Likewise.
18637
18638         tests: fix license on several tests
18639         * tests/test-des.c: Update to GPLv3+.
18640         * tests/test-flock.c: Likewise.
18641         * tests/test-fsync.c: Likewise.
18642         * tests/test-futimens.h: Likewise.
18643         * tests/test-gc-arcfour.c: Likewise.
18644         * tests/test-gc-arctwo.c: Likewise.
18645         * tests/test-gc-des.c: Likewise.
18646         * tests/test-gc-hmac-md5.c: Likewise.
18647         * tests/test-gc-hmac-sha1.c: Likewise.
18648         * tests/test-gc-md2.c: Likewise.
18649         * tests/test-gc-md4.c: Likewise.
18650         * tests/test-gc-md5.c: Likewise.
18651         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18652         * tests/test-gc-rijndael.c: Likewise.
18653         * tests/test-gc-sha1.c: Likewise.
18654         * tests/test-gc.c: Likewise.
18655         * tests/test-getcwd.c: Likewise.
18656         * tests/test-link.c: Likewise.
18657         * tests/test-link.h: Likewise.
18658         * tests/test-lutimens.h: Likewise.
18659         * tests/test-md2.c: Likewise.
18660         * tests/test-md4.c: Likewise.
18661         * tests/test-mkdir.h: Likewise.
18662         * tests/test-rename.c: Likewise.
18663         * tests/test-rename.h: Likewise.
18664         * tests/test-safe-alloc.c: Likewise.
18665         * tests/test-utimens-common.h: Likewise.
18666         * tests/test-utimens.h: Likewise.
18667
18668         maint: sync license texts
18669         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18670         * doc/gpl-3.0.texi: Revert copyright year update.
18671         * doc/lgpl-3.0.texi: Likewise.
18672
18673 2009-12-29  Jim Meyering  <meyering@redhat.com>
18674
18675         update nearly all FSF copyright year lists to include 2009
18676         The files named by the following are exempted:
18677             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18678               test -f "$dst" && { echo "$dst"; continue; }
18679               test -d "$dst" || continue
18680               echo "$dst"/$(basename "$src")
18681             done > exempt
18682             git ls-files tests/unictype >> exempt
18683         In the remaining files, convert to all-interval notation if
18684         - there is already at least one year interval like 2000-2003
18685         - the file is maintained by me
18686         - the file is in lib/uni*/, where that style already prevails
18687         Otherwise, use update-copyright's default.
18688
18689 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18690         and Eric Blake  <ebb9@byu.net>
18691
18692         tests: don't require debug system() to pass
18693         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18694         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18695         * tests/test-unlink.h (test_unlink_func): Likewise.
18696         * tests/test-fstatat.c (main): ...into callers.
18697         * tests/test-lstat.c (main): Likewise.
18698         * tests/test-rmdir.c (main): Likewise.
18699         * tests/test-unlink.c (main): Likewise.
18700         * tests/test-unlinkat.c (main): Likewise.
18701         * tests/test-areadlink-with-size.c (main): Don't require a
18702         debug-only system call to pass, aiding cross-testing to mingw.
18703         * tests/test-areadlink.c (main): Likewise.
18704         * tests/test-areadlinkat-with-size.c (main): Likewise.
18705         * tests/test-areadlinkat.c (main): Likewise.
18706         * tests/test-canonicalize-lgpl.c (main): Likewise.
18707         * tests/test-canonicalize.c (main): Likewise.
18708         * tests/test-chown.c (main): Likewise.
18709         * tests/test-fchownat.c (main): Likewise.
18710         * tests/test-lchown.c (main): Likewise.
18711         * tests/test-fdutimensat.c (main): Likewise.
18712         * tests/test-futimens.c (main): Likewise.
18713         * tests/test-link.c (main): Likewise.
18714         * tests/test-linkat.c (main): Likewise.
18715         * tests/test-mkdir.c (main): Likewise.
18716         * tests/test-mkdirat.c (main): Likewise.
18717         * tests/test-mkfifo.c (main): Likewise.
18718         * tests/test-mkfifoat.c (main): Likewise.
18719         * tests/test-mknod.c (main): Likewise.
18720         * tests/test-readlink.c (main): Likewise.
18721         * tests/test-remove.c (main): Likewise.
18722         * tests/test-rename.c (main): Likewise.
18723         * tests/test-renameat.c (main): Likewise.
18724         * tests/test-symlink.c (main): Likewise.
18725         * tests/test-symlinkat.c (main): Likewise.
18726         * tests/test-utimens.c (main): Likewise.
18727         * tests/test-utimensat.c (main): Likewise.
18728
18729 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18730
18731         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18732         on $(UNUSED_PARAMETER_H) to avoid build failure.
18733
18734 2009-12-28  Jim Meyering  <meyering@redhat.com>
18735
18736         update-copyright: you may specify a max. line length other than 72
18737         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18738
18739         maint: use consistent FSF copyright line syntax
18740         * lib/posixtm.c: Add missing comma in FSF copyright line.
18741         * lib/posixtm.h: Likewise.
18742         * lib/getugroups.c: Add missing ", Inc.".
18743
18744         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18745         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18746         FSF copyright line.  Remove trailing blanks.
18747
18748 2009-12-28  Eric Blake  <ebb9@byu.net>
18749
18750         test-dup2: reduce dependencies
18751         * modules/cloexec (Configure.ac): Set witness.
18752         * modules/dup2-tests (Depends-on): Drop cloexec.
18753         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18754         not present.
18755         Suggested by Bruno Haible.
18756
18757 2009-12-26  Bruno Haible  <bruno@clisp.org>
18758
18759         Remove an unneeded dependency.
18760         * modules/fseterr (Depends-on): Remove dup2.
18761
18762 2009-12-26  Eric Blake  <ebb9@byu.net>
18763
18764         tests: use macros.h in more places
18765         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18766         (ASSERT_STREAM): Provide default of stderr.
18767         * tests/test-dirent-safer.c: Include macros.h, using alternate
18768         stream for assertions.
18769         * tests/test-dup-safer.c: Likewise.
18770         * tests/test-freopen-safer.c: Likewise.
18771         * tests/test-getopt.c: Likewise.
18772         * tests/test-openat-safer.c: Likewise.
18773         * tests/test-pipe.c: Likewise.
18774         * tests/test-popen-safer.c: Likewise.
18775         * modules/dirent-safer-tests (Files): Include macros.h.
18776         * modules/unistd-safer-tests (Files): Likewise.
18777         * modules/freopen-safer-tests (Files): Likewise.
18778         * modules/getopt-posix-tests (Files): Likewise.
18779         * modules/openat-safer-tests (Files): Likewise.
18780         * modules/pipe-tests (Files): Likewise.
18781
18782 2009-12-26  Bruno Haible  <bruno@clisp.org>
18783
18784         javacomp: Portability fix.
18785         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18786         that it also works on Solaris.
18787
18788 2009-12-26  Bruno Haible  <bruno@clisp.org>
18789
18790         localename: Fix storage allocation of gl_locale_name_thread's result.
18791         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18792         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18793         all platforms that have 'uselocale'.
18794         (gl_locale_name_thread_unsafe): New function, extracted from
18795         gl_locale_name_thread.
18796         (gl_locale_name_thread): Call struniq on all platforms that have
18797         'uselocale'.
18798         * tests/test-localename.c (test_locale_name_thread): Check that the
18799         resulting strings are permanently allocated.
18800         * modules/localename-tests (Depends-on): Add strdup.
18801
18802 2009-12-26  Bruno Haible  <bruno@clisp.org>
18803
18804         * tests/test-localename.c (categories): Fill in the strings.
18805
18806 2009-12-26  Jim Meyering  <meyering@redhat.com>
18807
18808         isdir: complete the removal of m4/isdir.m4
18809         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18810
18811         isdir: clean up, since at least grep still uses it
18812         * lib/isdir.c: Include "isdir.h".
18813         (S_ISDIR): Remove now-unneeded definition.
18814         * modules/isdir (Files): Add lib/isdir.h.
18815         * lib/isdir.h: New file, with declaration.
18816         * m4/isdir.m4: Remove file -- unneeded.
18817
18818 2009-12-25  Bruno Haible  <bruno@clisp.org>
18819
18820         selinux-h: Make generated .h files standalone.
18821         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18822         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18823         * lib/se-selinux.in.h: Likewise.
18824         * modules/selinux-h (Depends-on): Add unused-parameter.
18825         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18826         selinux/selinux.h and selinux/context.h.
18827         Suggested by Eric Blake.
18828
18829 2009-12-25  Bruno Haible  <bruno@clisp.org>
18830
18831         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18832         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18833         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18834         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18835         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18836
18837 2009-12-24  Bruno Haible  <bruno@clisp.org>
18838
18839         openat: Fix warning.
18840         * lib/openat-proc.c: Include <unistd.h>.
18841
18842 2009-12-24  Bruno Haible  <bruno@clisp.org>
18843
18844         New module 'unused-parameter'.
18845         * build-aux/unused-parameter.h: New file, extracted from earlier
18846         gnulib-common.m4.
18847         * modules/unused-parameter: New file.
18848         * lib/unistr.h: Include unused-parameter.h.
18849         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18850         _GL_UNUSED.
18851         * modules/unistr/base (Depends-on): Add unused-parameter.
18852
18853 2009-12-24  Bruno Haible  <bruno@clisp.org>
18854
18855         Add missing dependencies to 'extensions' module.
18856         * m4/extensions.m4: Add comment.
18857         * modules/accept4 (Depends-on): Add extensions.
18858         * modules/dup3 (Depends-on): Likewise.
18859         * modules/fcntl (Depends-on): Likewise.
18860         * modules/futimens (Depends-on): Likewise.
18861         * modules/mknod (Depends-on): Likewise.
18862         * modules/pipe2 (Depends-on): Likewise.
18863         * modules/stat-time (Depends-on): Likewise.
18864         * modules/strcasestr-simple (Depends-on): Likewise.
18865         * modules/strsignal (Depends-on): Likewise.
18866         * modules/utimensat (Depends-on): Likewise.
18867         * modules/localcharset (Depends-on): Likewise. Needed because of
18868         gl_FCNTL_O_FLAGS.
18869         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18870         AC_TYPE_MBSTATE_T.
18871         * modules/wcsnrtombs (Depends-on): Likewise.
18872         * modules/wcsrtombs (Depends-on): Likewise.
18873
18874 2009-12-24  Bruno Haible  <bruno@clisp.org>
18875
18876         binary-io: Avoid gcc warning due to SET_BINARY.
18877         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18878         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18879
18880 2009-12-24  Bruno Haible  <bruno@clisp.org>
18881
18882         Avoid future namespace pollution on glibc systems.
18883         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18884         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18885         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18886         glibc systems.
18887
18888 2009-12-24  Bruno Haible  <bruno@clisp.org>
18889
18890         Refactor common macros used in tests.
18891         * tests/macros.h: New file.
18892         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18893         and/or <stdlib.h>, if appropriate.
18894         (ASSERT, SIZEOF): Remove macros.
18895         * tests/test-areadlink-with-size.c: Likewise.
18896         * tests/test-areadlinkat.c: Likewise.
18897         * tests/test-areadlinkat-with-size.c: Likewise.
18898         * tests/test-argmatch.c: Likewise.
18899         * tests/test-argv-iter.c: Likewise.
18900         * tests/test-array-mergesort.c: Likewise.
18901         * tests/test-array_list.c: Likewise.
18902         * tests/test-array_oset.c: Likewise.
18903         * tests/test-avltree_list.c: Likewise.
18904         * tests/test-avltree_oset.c: Likewise.
18905         * tests/test-avltreehash_list.c: Likewise.
18906         * tests/test-base64.c: Likewise.
18907         * tests/test-binary-io.c: Likewise.
18908         * tests/test-bitrotate.c: Likewise.
18909         * tests/test-btowc.c: Likewise.
18910         * tests/test-byteswap.c: Likewise.
18911         * tests/test-c-ctype.c: Likewise.
18912         * tests/test-c-stack.c: Likewise.
18913         * tests/test-c-strcasecmp.c: Likewise.
18914         * tests/test-c-strcasestr.c: Likewise.
18915         * tests/test-c-strncasecmp.c: Likewise.
18916         * tests/test-c-strstr.c: Likewise.
18917         * tests/test-canonicalize-lgpl.c: Likewise.
18918         * tests/test-canonicalize.c: Likewise.
18919         * tests/test-carray_list.c: Likewise.
18920         * tests/test-ceilf1.c: Likewise.
18921         * tests/test-ceilf2.c: Likewise.
18922         * tests/test-ceill.c: Likewise.
18923         * tests/test-chown.c: Likewise.
18924         * tests/test-cloexec.c: Likewise.
18925         * tests/test-copy-acl.c: Likewise.
18926         * tests/test-copy-file.c: Likewise.
18927         * tests/test-count-one-bits.c: Likewise.
18928         * tests/test-dprintf-posix.c: Likewise.
18929         * tests/test-dup2.c: Likewise.
18930         * tests/test-dup3.c: Likewise.
18931         * tests/test-duplocale.c: Likewise.
18932         * tests/test-fbufmode.c: Likewise.
18933         * tests/test-fchdir.c: Likewise.
18934         * tests/test-fchownat.c: Likewise.
18935         * tests/test-fcntl-safer.c: Likewise.
18936         * tests/test-fcntl.c: Likewise.
18937         * tests/test-fdopendir.c: Likewise.
18938         * tests/test-fdutimensat.c: Likewise.
18939         * tests/test-fflush2.c: Likewise.
18940         * tests/test-file-has-acl.c: Likewise.
18941         * tests/test-filevercmp.c: Likewise.
18942         * tests/test-flock.c: Likewise.
18943         * tests/test-floorf1.c: Likewise.
18944         * tests/test-floorf2.c: Likewise.
18945         * tests/test-floorl.c: Likewise.
18946         * tests/test-fnmatch.c: Likewise.
18947         * tests/test-fopen.h: Likewise.
18948         * tests/test-fpending.c: Likewise.
18949         * tests/test-fprintf-posix.c: Likewise.
18950         * tests/test-fpurge.c: Likewise.
18951         * tests/test-freadable.c: Likewise.
18952         * tests/test-freadahead.c: Likewise.
18953         * tests/test-freading.c: Likewise.
18954         * tests/test-freadptr.c: Likewise.
18955         * tests/test-freadptr2.c: Likewise.
18956         * tests/test-freadseek.c: Likewise.
18957         * tests/test-freopen.c: Likewise.
18958         * tests/test-frexp.c: Likewise.
18959         * tests/test-frexpl.c: Likewise.
18960         * tests/test-fseek.c: Likewise.
18961         * tests/test-fseeko.c: Likewise.
18962         * tests/test-fstatat.c: Likewise.
18963         * tests/test-fstrcmp.c: Likewise.
18964         * tests/test-fsync.c: Likewise.
18965         * tests/test-ftell.c: Likewise.
18966         * tests/test-ftello.c: Likewise.
18967         * tests/test-func.c: Likewise.
18968         * tests/test-futimens.c: Likewise.
18969         * tests/test-fwritable.c: Likewise.
18970         * tests/test-fwriting.c: Likewise.
18971         * tests/test-getcwd.c: Likewise.
18972         * tests/test-getdate.c: Likewise.
18973         * tests/test-getdelim.c: Likewise.
18974         * tests/test-getdtablesize.c: Likewise.
18975         * tests/test-getgroups.c: Likewise.
18976         * tests/test-getline.c: Likewise.
18977         * tests/test-getndelim2.c: Likewise.
18978         * tests/test-glob.c: Likewise.
18979         * tests/test-hash.c: Likewise.
18980         * tests/test-i-ring.c: Likewise.
18981         * tests/test-iconv-utf.c: Likewise.
18982         * tests/test-iconv.c: Likewise.
18983         * tests/test-idpriv-drop.c: Likewise.
18984         * tests/test-idpriv-droptemp.c: Likewise.
18985         * tests/test-inet_ntop.c: Likewise.
18986         * tests/test-inet_pton.c: Likewise.
18987         * tests/test-isblank.c: Likewise.
18988         * tests/test-isfinite.c: Likewise.
18989         * tests/test-isinf.c: Likewise.
18990         * tests/test-isnan.c: Likewise.
18991         * tests/test-isnand.h: Likewise.
18992         * tests/test-isnanf.h: Likewise.
18993         * tests/test-isnanl.h: Likewise.
18994         * tests/test-lchown.c: Likewise.
18995         * tests/test-ldexpl.c: Likewise.
18996         * tests/test-link.c: Likewise.
18997         * tests/test-linkat.c: Likewise.
18998         * tests/test-linked_list.c: Likewise.
18999         * tests/test-linkedhash_list.c: Likewise.
19000         * tests/test-localename.c: Likewise.
19001         * tests/test-lseek.c: Likewise.
19002         * tests/test-lstat.c: Likewise.
19003         * tests/test-mbmemcasecmp.c: Likewise.
19004         * tests/test-mbmemcasecoll.c: Likewise.
19005         * tests/test-mbrtowc.c: Likewise.
19006         * tests/test-mbscasecmp.c: Likewise.
19007         * tests/test-mbscasestr1.c: Likewise.
19008         * tests/test-mbscasestr2.c: Likewise.
19009         * tests/test-mbscasestr3.c: Likewise.
19010         * tests/test-mbscasestr4.c: Likewise.
19011         * tests/test-mbschr.c: Likewise.
19012         * tests/test-mbscspn.c: Likewise.
19013         * tests/test-mbsinit.c: Likewise.
19014         * tests/test-mbsncasecmp.c: Likewise.
19015         * tests/test-mbsnrtowcs.c: Likewise.
19016         * tests/test-mbspbrk.c: Likewise.
19017         * tests/test-mbspcasecmp.c: Likewise.
19018         * tests/test-mbsrchr.c: Likewise.
19019         * tests/test-mbsrtowcs.c: Likewise.
19020         * tests/test-mbsspn.c: Likewise.
19021         * tests/test-mbsstr1.c: Likewise.
19022         * tests/test-mbsstr2.c: Likewise.
19023         * tests/test-mbsstr3.c: Likewise.
19024         * tests/test-memchr.c: Likewise.
19025         * tests/test-memchr2.c: Likewise.
19026         * tests/test-memcmp.c: Likewise.
19027         * tests/test-memmem.c: Likewise.
19028         * tests/test-memrchr.c: Likewise.
19029         * tests/test-mkdir.c: Likewise.
19030         * tests/test-mkdirat.c: Likewise.
19031         * tests/test-mkfifo.c: Likewise.
19032         * tests/test-mkfifoat.c: Likewise.
19033         * tests/test-mknod.c: Likewise.
19034         * tests/test-nanosleep.c: Likewise.
19035         * tests/test-nl_langinfo.c: Likewise.
19036         * tests/test-obstack-printf.c: Likewise.
19037         * tests/test-open.c: Likewise.
19038         * tests/test-openat.c: Likewise.
19039         * tests/test-pipe-filter-gi1.c: Likewise.
19040         * tests/test-pipe-filter-gi2-main.c: Likewise.
19041         * tests/test-pipe-filter-ii1.c: Likewise.
19042         * tests/test-pipe-filter-ii2-main.c: Likewise.
19043         * tests/test-pipe2.c: Likewise.
19044         * tests/test-popen.h: Likewise.
19045         * tests/test-posixtm.c: Likewise.
19046         * tests/test-pread.c: Likewise.
19047         * tests/test-printf-frexp.c: Likewise.
19048         * tests/test-printf-frexpl.c: Likewise.
19049         * tests/test-printf-posix.c: Likewise.
19050         * tests/test-priv-set.c: Likewise.
19051         * tests/test-quotearg.c: Likewise.
19052         * tests/test-random_r.c: Likewise.
19053         * tests/test-rawmemchr.c: Likewise.
19054         * tests/test-rbtree_list.c: Likewise.
19055         * tests/test-rbtree_oset.c: Likewise.
19056         * tests/test-rbtreehash_list.c: Likewise.
19057         * tests/test-readlink.c: Likewise.
19058         * tests/test-remove.c: Likewise.
19059         * tests/test-rename.c: Likewise.
19060         * tests/test-renameat.c: Likewise.
19061         * tests/test-rmdir.c: Likewise.
19062         * tests/test-round1.c: Likewise.
19063         * tests/test-roundf1.c: Likewise.
19064         * tests/test-roundl.c: Likewise.
19065         * tests/test-safe-alloc.c: Likewise.
19066         * tests/test-sameacls.c: Likewise.
19067         * tests/test-set-mode-acl.c: Likewise.
19068         * tests/test-setenv.c: Likewise.
19069         * tests/test-sigaction.c: Likewise.
19070         * tests/test-signbit.c: Likewise.
19071         * tests/test-sleep.c: Likewise.
19072         * tests/test-snprintf-posix.c: Likewise.
19073         * tests/test-snprintf.c: Likewise.
19074         * tests/test-sprintf-posix.c: Likewise.
19075         * tests/test-stat-time.c: Likewise.
19076         * tests/test-stat.c: Likewise.
19077         * tests/test-strcasestr.c: Likewise.
19078         * tests/test-strchrnul.c: Likewise.
19079         * tests/test-strerror.c: Likewise.
19080         * tests/test-striconv.c: Likewise.
19081         * tests/test-striconveh.c: Likewise.
19082         * tests/test-striconveha.c: Likewise.
19083         * tests/test-strsignal.c: Likewise.
19084         * tests/test-strstr.c: Likewise.
19085         * tests/test-strtod.c: Likewise.
19086         * tests/test-strverscmp.c: Likewise.
19087         * tests/test-symlink.c: Likewise.
19088         * tests/test-symlinkat.c: Likewise.
19089         * tests/test-trunc1.c: Likewise.
19090         * tests/test-trunc2.c: Likewise.
19091         * tests/test-truncf1.c: Likewise.
19092         * tests/test-truncf2.c: Likewise.
19093         * tests/test-truncl.c: Likewise.
19094         * tests/test-uname.c: Likewise.
19095         * tests/test-unlink.c: Likewise.
19096         * tests/test-unlinkat.c: Likewise.
19097         * tests/test-unsetenv.c: Likewise.
19098         * tests/test-usleep.c: Likewise.
19099         * tests/test-utimens.c: Likewise.
19100         * tests/test-utimensat.c: Likewise.
19101         * tests/test-vasnprintf-posix.c: Likewise.
19102         * tests/test-vasnprintf-posix2.c: Likewise.
19103         * tests/test-vasnprintf.c: Likewise.
19104         * tests/test-vasprintf-posix.c: Likewise.
19105         * tests/test-vasprintf.c: Likewise.
19106         * tests/test-vdprintf-posix.c: Likewise.
19107         * tests/test-vfprintf-posix.c: Likewise.
19108         * tests/test-vprintf-posix.c: Likewise.
19109         * tests/test-vsnprintf-posix.c: Likewise.
19110         * tests/test-vsnprintf.c: Likewise.
19111         * tests/test-vsprintf-posix.c: Likewise.
19112         * tests/test-wcrtomb.c: Likewise.
19113         * tests/test-wcsnrtombs.c: Likewise.
19114         * tests/test-wcsrtombs.c: Likewise.
19115         * tests/test-wctype.c: Likewise.
19116         * tests/test-wcwidth.c: Likewise.
19117         * tests/test-xfprintf-posix.c: Likewise.
19118         * tests/test-xmemdup0.c: Likewise.
19119         * tests/test-xprintf-posix.c: Likewise.
19120         * tests/test-xvasprintf.c: Likewise.
19121         * tests/unicase/test-locale-language.c: Likewise.
19122         * tests/unicase/test-mapping-part1.h: Likewise.
19123         * tests/unicase/test-predicate-part1.h: Likewise.
19124         * tests/unicase/test-u8-casecmp.c: Likewise.
19125         * tests/unicase/test-u8-casecoll.c: Likewise.
19126         * tests/unicase/test-u8-casefold.c: Likewise.
19127         * tests/unicase/test-u8-is-cased.c: Likewise.
19128         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19129         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19130         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19131         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19132         * tests/unicase/test-u8-tolower.c: Likewise.
19133         * tests/unicase/test-u8-totitle.c: Likewise.
19134         * tests/unicase/test-u8-toupper.c: Likewise.
19135         * tests/unicase/test-u16-casecmp.c: Likewise.
19136         * tests/unicase/test-u16-casecoll.c: Likewise.
19137         * tests/unicase/test-u16-casefold.c: Likewise.
19138         * tests/unicase/test-u16-is-cased.c: Likewise.
19139         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19140         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19141         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19142         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19143         * tests/unicase/test-u16-tolower.c: Likewise.
19144         * tests/unicase/test-u16-totitle.c: Likewise.
19145         * tests/unicase/test-u16-toupper.c: Likewise.
19146         * tests/unicase/test-u32-casecmp.c: Likewise.
19147         * tests/unicase/test-u32-casecoll.c: Likewise.
19148         * tests/unicase/test-u32-casefold.c: Likewise.
19149         * tests/unicase/test-u32-is-cased.c: Likewise.
19150         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19151         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19152         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19153         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19154         * tests/unicase/test-u32-tolower.c: Likewise.
19155         * tests/unicase/test-u32-totitle.c: Likewise.
19156         * tests/unicase/test-u32-toupper.c: Likewise.
19157         * tests/unicase/test-ulc-casecmp.c: Likewise.
19158         * tests/unicase/test-ulc-casecoll.c: Likewise.
19159         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19160         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19161         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19162         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19163         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19164         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19165         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19166         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19167         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19168         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19169         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19170         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19171         * tests/unictype/test-bidi_byname.c: Likewise.
19172         * tests/unictype/test-bidi_name.c: Likewise.
19173         * tests/unictype/test-bidi_of.c: Likewise.
19174         * tests/unictype/test-bidi_test.c: Likewise.
19175         * tests/unictype/test-block_list.c: Likewise.
19176         * tests/unictype/test-block_of.c: Likewise.
19177         * tests/unictype/test-block_test.c: Likewise.
19178         * tests/unictype/test-categ_and.c: Likewise.
19179         * tests/unictype/test-categ_and_not.c: Likewise.
19180         * tests/unictype/test-categ_byname.c: Likewise.
19181         * tests/unictype/test-categ_name.c: Likewise.
19182         * tests/unictype/test-categ_none.c: Likewise.
19183         * tests/unictype/test-categ_of.c: Likewise.
19184         * tests/unictype/test-categ_or.c: Likewise.
19185         * tests/unictype/test-categ_test_withtable.c: Likewise.
19186         * tests/unictype/test-combining.c: Likewise.
19187         * tests/unictype/test-decdigit.c: Likewise.
19188         * tests/unictype/test-digit.c: Likewise.
19189         * tests/unictype/test-mirror.c: Likewise.
19190         * tests/unictype/test-numeric.c: Likewise.
19191         * tests/unictype/test-pr_byname.c: Likewise.
19192         * tests/unictype/test-pr_test.c: Likewise.
19193         * tests/unictype/test-predicate-part1.h: Likewise.
19194         * tests/unictype/test-scripts.c: Likewise.
19195         * tests/unictype/test-sy_c_ident.c: Likewise.
19196         * tests/unictype/test-sy_java_ident.c: Likewise.
19197         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19198         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19199         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19200         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19201         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19202         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19203         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19204         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19205         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19206         * tests/uninorm/test-compat-decomposition.c: Likewise.
19207         * tests/uninorm/test-composition.c: Likewise.
19208         * tests/uninorm/test-decomposing-form.c: Likewise.
19209         * tests/uninorm/test-decomposition.c: Likewise.
19210         * tests/uninorm/test-u8-nfc.c: Likewise.
19211         * tests/uninorm/test-u8-nfd.c: Likewise.
19212         * tests/uninorm/test-u8-nfkc.c: Likewise.
19213         * tests/uninorm/test-u8-nfkd.c: Likewise.
19214         * tests/uninorm/test-u8-normcmp.c: Likewise.
19215         * tests/uninorm/test-u8-normcoll.c: Likewise.
19216         * tests/uninorm/test-u16-nfc.c: Likewise.
19217         * tests/uninorm/test-u16-nfd.c: Likewise.
19218         * tests/uninorm/test-u16-nfkc.c: Likewise.
19219         * tests/uninorm/test-u16-nfkd.c: Likewise.
19220         * tests/uninorm/test-u16-normcmp.c: Likewise.
19221         * tests/uninorm/test-u16-normcoll.c: Likewise.
19222         * tests/uninorm/test-u32-nfc.c: Likewise.
19223         * tests/uninorm/test-u32-nfd.c: Likewise.
19224         * tests/uninorm/test-u32-nfkc.c: Likewise.
19225         * tests/uninorm/test-u32-nfkd.c: Likewise.
19226         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19227         * tests/uninorm/test-u32-normcmp.c: Likewise.
19228         * tests/uninorm/test-u32-normcoll.c: Likewise.
19229         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19230         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19231         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19232         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19233         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19234         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19235         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19236         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19237         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19238         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19239         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19240         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19241         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19242         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19243         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19244         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19245         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19246         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19247         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19248         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19249         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19250         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19251         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19252         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19253         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19254         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19255         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19256         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19257         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19258         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19259         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19260         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19261         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19262         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19263         * tests/uniwidth/test-u8-width.c: Likewise.
19264         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19265         * tests/uniwidth/test-u16-width.c: Likewise.
19266         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19267         * tests/uniwidth/test-u32-width.c: Likewise.
19268         * tests/uniwidth/test-uc_width.c: Likewise.
19269         * tests/uniwidth/test-uc_width2.c: Likewise.
19270         * modules/acl-tests (Files): Add tests/macros.h.
19271         * modules/areadlink-tests (Files): Likewise.
19272         * modules/areadlink-with-size-tests (Files): Likewise.
19273         * modules/areadlinkat-tests (Files): Likewise.
19274         * modules/areadlinkat-with-size-tests (Files): Likewise.
19275         * modules/argmatch-tests (Files): Likewise.
19276         * modules/argv-iter-tests (Files): Likewise.
19277         * modules/array-list-tests (Files): Likewise.
19278         * modules/array-mergesort-tests (Files): Likewise.
19279         * modules/array-oset-tests (Files): Likewise.
19280         * modules/avltree-list-tests (Files): Likewise.
19281         * modules/avltree-oset-tests (Files): Likewise.
19282         * modules/avltreehash-list-tests (Files): Likewise.
19283         * modules/base64-tests (Files): Likewise.
19284         * modules/binary-io-tests (Files): Likewise.
19285         * modules/bitrotate-tests (Files): Likewise.
19286         * modules/btowc-tests (Files): Likewise.
19287         * modules/byteswap-tests (Files): Likewise.
19288         * modules/c-ctype-tests (Files): Likewise.
19289         * modules/c-stack-tests (Files): Likewise.
19290         * modules/c-strcase-tests (Files): Likewise.
19291         * modules/c-strcasestr-tests (Files): Likewise.
19292         * modules/c-strstr-tests (Files): Likewise.
19293         * modules/canonicalize-lgpl-tests (Files): Likewise.
19294         * modules/canonicalize-tests (Files): Likewise.
19295         * modules/carray-list-tests (Files): Likewise.
19296         * modules/ceilf-tests (Files): Likewise.
19297         * modules/ceill-tests (Files): Likewise.
19298         * modules/chown-tests (Files): Likewise.
19299         * modules/cloexec-tests (Files): Likewise.
19300         * modules/copy-file-tests (Files): Likewise.
19301         * modules/count-one-bits-tests (Files): Likewise.
19302         * modules/dprintf-posix-tests (Files): Likewise.
19303         * modules/dup2-tests (Files): Likewise.
19304         * modules/dup3-tests (Files): Likewise.
19305         * modules/duplocale-tests (Files): Likewise.
19306         * modules/fbufmode-tests (Files): Likewise.
19307         * modules/fchdir-tests (Files): Likewise.
19308         * modules/fcntl-safer-tests (Files): Likewise.
19309         * modules/fcntl-tests (Files): Likewise.
19310         * modules/fdopendir-tests (Files): Likewise.
19311         * modules/fdutimensat-tests (Files): Likewise.
19312         * modules/fflush-tests (Files): Likewise.
19313         * modules/filevercmp-tests (Files): Likewise.
19314         * modules/flock-tests (Files): Likewise.
19315         * modules/floorf-tests (Files): Likewise.
19316         * modules/floorl-tests (Files): Likewise.
19317         * modules/fnmatch-tests (Files): Likewise.
19318         * modules/fopen-safer-tests (Files): Likewise.
19319         * modules/fopen-tests (Files): Likewise.
19320         * modules/fpending-tests (Files): Likewise.
19321         * modules/fprintf-posix-tests (Files): Likewise.
19322         * modules/fpurge-tests (Files): Likewise.
19323         * modules/freadable-tests (Files): Likewise.
19324         * modules/freadahead-tests (Files): Likewise.
19325         * modules/freading-tests (Files): Likewise.
19326         * modules/freadptr-tests (Files): Likewise.
19327         * modules/freadseek-tests (Files): Likewise.
19328         * modules/freopen-tests (Files): Likewise.
19329         * modules/frexp-nolibm-tests (Files): Likewise.
19330         * modules/frexp-tests (Files): Likewise.
19331         * modules/frexpl-nolibm-tests (Files): Likewise.
19332         * modules/frexpl-tests (Files): Likewise.
19333         * modules/fseek-tests (Files): Likewise.
19334         * modules/fseeko-tests (Files): Likewise.
19335         * modules/fstrcmp-tests (Files): Likewise.
19336         * modules/fsync-tests (Files): Likewise.
19337         * modules/ftell-tests (Files): Likewise.
19338         * modules/ftello-tests (Files): Likewise.
19339         * modules/func-tests (Files): Likewise.
19340         * modules/futimens-tests (Files): Likewise.
19341         * modules/fwritable-tests (Files): Likewise.
19342         * modules/fwriting-tests (Files): Likewise.
19343         * modules/getcwd-tests (Files): Likewise.
19344         * modules/getdate-tests (Files): Likewise.
19345         * modules/getdelim-tests (Files): Likewise.
19346         * modules/getdtablesize-tests (Files): Likewise.
19347         * modules/getgroups-tests (Files): Likewise.
19348         * modules/getline-tests (Files): Likewise.
19349         * modules/getndelim2-tests (Files): Likewise.
19350         * modules/glob-tests (Files): Likewise.
19351         * modules/hash-tests (Files): Likewise.
19352         * modules/i-ring-tests (Files): Likewise.
19353         * modules/iconv-tests (Files): Likewise.
19354         * modules/iconv_open-utf-tests (Files): Likewise.
19355         * modules/idpriv-drop-tests (Files): Likewise.
19356         * modules/idpriv-droptemp-tests (Files): Likewise.
19357         * modules/inet_ntop-tests (Files): Likewise.
19358         * modules/inet_pton-tests (Files): Likewise.
19359         * modules/isblank-tests (Files): Likewise.
19360         * modules/isfinite-tests (Files): Likewise.
19361         * modules/isinf-tests (Files): Likewise.
19362         * modules/isnan-tests (Files): Likewise.
19363         * modules/isnand-nolibm-tests (Files): Likewise.
19364         * modules/isnand-tests (Files): Likewise.
19365         * modules/isnanf-nolibm-tests (Files): Likewise.
19366         * modules/isnanf-tests (Files): Likewise.
19367         * modules/isnanl-nolibm-tests (Files): Likewise.
19368         * modules/isnanl-tests (Files): Likewise.
19369         * modules/lchown-tests (Files): Likewise.
19370         * modules/ldexpl-tests (Files): Likewise.
19371         * modules/link-tests (Files): Likewise.
19372         * modules/linkat-tests (Files): Likewise.
19373         * modules/linked-list-tests (Files): Likewise.
19374         * modules/linkedhash-list-tests (Files): Likewise.
19375         * modules/localename-tests (Files): Likewise.
19376         * modules/lseek-tests (Files): Likewise.
19377         * modules/lstat-tests (Files): Likewise.
19378         * modules/mbmemcasecmp-tests (Files): Likewise.
19379         * modules/mbmemcasecoll-tests (Files): Likewise.
19380         * modules/mbrtowc-tests (Files): Likewise.
19381         * modules/mbscasecmp-tests (Files): Likewise.
19382         * modules/mbscasestr-tests (Files): Likewise.
19383         * modules/mbschr-tests (Files): Likewise.
19384         * modules/mbscspn-tests (Files): Likewise.
19385         * modules/mbsinit-tests (Files): Likewise.
19386         * modules/mbsncasecmp-tests (Files): Likewise.
19387         * modules/mbsnrtowcs-tests (Files): Likewise.
19388         * modules/mbspbrk-tests (Files): Likewise.
19389         * modules/mbspcasecmp-tests (Files): Likewise.
19390         * modules/mbsrchr-tests (Files): Likewise.
19391         * modules/mbsrtowcs-tests (Files): Likewise.
19392         * modules/mbsspn-tests (Files): Likewise.
19393         * modules/mbsstr-tests (Files): Likewise.
19394         * modules/memchr-tests (Files): Likewise.
19395         * modules/memchr2-tests (Files): Likewise.
19396         * modules/memcmp-tests (Files): Likewise.
19397         * modules/memmem-tests (Files): Likewise.
19398         * modules/memrchr-tests (Files): Likewise.
19399         * modules/mkdir-tests (Files): Likewise.
19400         * modules/mkfifo-tests (Files): Likewise.
19401         * modules/mkfifoat-tests (Files): Likewise.
19402         * modules/mknod-tests (Files): Likewise.
19403         * modules/nanosleep-tests (Files): Likewise.
19404         * modules/nl_langinfo-tests (Files): Likewise.
19405         * modules/obstack-printf-tests (Files): Likewise.
19406         * modules/open-tests (Files): Likewise.
19407         * modules/openat-tests (Files): Likewise.
19408         * modules/pipe-filter-gi-tests (Files): Likewise.
19409         * modules/pipe-filter-ii-tests (Files): Likewise.
19410         * modules/pipe2-tests (Files): Likewise.
19411         * modules/popen-safer-tests (Files): Likewise.
19412         * modules/popen-tests (Files): Likewise.
19413         * modules/posixtm-tests (Files): Likewise.
19414         * modules/pread-tests (Files): Likewise.
19415         * modules/printf-frexp-tests (Files): Likewise.
19416         * modules/printf-frexpl-tests (Files): Likewise.
19417         * modules/printf-posix-tests (Files): Likewise.
19418         * modules/priv-set-tests (Files): Likewise.
19419         * modules/quotearg-tests (Files): Likewise.
19420         * modules/random_r-tests (Files): Likewise.
19421         * modules/rawmemchr-tests (Files): Likewise.
19422         * modules/rbtree-list-tests (Files): Likewise.
19423         * modules/rbtree-oset-tests (Files): Likewise.
19424         * modules/rbtreehash-list-tests (Files): Likewise.
19425         * modules/readlink-tests (Files): Likewise.
19426         * modules/remove-tests (Files): Likewise.
19427         * modules/rename-tests (Files): Likewise.
19428         * modules/renameat-tests (Files): Likewise.
19429         * modules/rmdir-tests (Files): Likewise.
19430         * modules/round-tests (Files): Likewise.
19431         * modules/roundf-tests (Files): Likewise.
19432         * modules/roundl-tests (Files): Likewise.
19433         * modules/safe-alloc-tests (Files): Likewise.
19434         * modules/setenv-tests (Files): Likewise.
19435         * modules/sigaction-tests (Files): Likewise.
19436         * modules/signbit-tests (Files): Likewise.
19437         * modules/sleep-tests (Files): Likewise.
19438         * modules/snprintf-posix-tests (Files): Likewise.
19439         * modules/snprintf-tests (Files): Likewise.
19440         * modules/sprintf-posix-tests (Files): Likewise.
19441         * modules/stat-tests (Files): Likewise.
19442         * modules/stat-time-tests (Files): Likewise.
19443         * modules/strcasestr-tests (Files): Likewise.
19444         * modules/strchrnul-tests (Files): Likewise.
19445         * modules/strerror-tests (Files): Likewise.
19446         * modules/striconv-tests (Files): Likewise.
19447         * modules/striconveh-tests (Files): Likewise.
19448         * modules/striconveha-tests (Files): Likewise.
19449         * modules/strsignal-tests (Files): Likewise.
19450         * modules/strstr-tests (Files): Likewise.
19451         * modules/strtod-tests (Files): Likewise.
19452         * modules/strverscmp-tests (Files): Likewise.
19453         * modules/symlink-tests (Files): Likewise.
19454         * modules/symlinkat-tests (Files): Likewise.
19455         * modules/trunc-tests (Files): Likewise.
19456         * modules/truncf-tests (Files): Likewise.
19457         * modules/truncl-tests (Files): Likewise.
19458         * modules/uname-tests (Files): Likewise.
19459         * modules/unicase/cased-tests (Files): Likewise.
19460         * modules/unicase/ignorable-tests (Files): Likewise.
19461         * modules/unicase/locale-language-tests (Files): Likewise.
19462         * modules/unicase/tolower-tests (Files): Likewise.
19463         * modules/unicase/totitle-tests (Files): Likewise.
19464         * modules/unicase/toupper-tests (Files): Likewise.
19465         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19466         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19467         * modules/unicase/u8-casefold-tests (Files): Likewise.
19468         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19469         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19470         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19471         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19472         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19473         * modules/unicase/u8-tolower-tests (Files): Likewise.
19474         * modules/unicase/u8-totitle-tests (Files): Likewise.
19475         * modules/unicase/u8-toupper-tests (Files): Likewise.
19476         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19477         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19478         * modules/unicase/u16-casefold-tests (Files): Likewise.
19479         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19480         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19481         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19482         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19483         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19484         * modules/unicase/u16-tolower-tests (Files): Likewise.
19485         * modules/unicase/u16-totitle-tests (Files): Likewise.
19486         * modules/unicase/u16-toupper-tests (Files): Likewise.
19487         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19488         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19489         * modules/unicase/u32-casefold-tests (Files): Likewise.
19490         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19491         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19492         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19493         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19494         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19495         * modules/unicase/u32-tolower-tests (Files): Likewise.
19496         * modules/unicase/u32-totitle-tests (Files): Likewise.
19497         * modules/unicase/u32-toupper-tests (Files): Likewise.
19498         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19499         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19500         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19501         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19502         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19503         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19504         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19505         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19506         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19507         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19508         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19509         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19510         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19511         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19512         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19513         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19514         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19515         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19516         * modules/unictype/block-list-tests (Files): Likewise.
19517         * modules/unictype/block-of-tests (Files): Likewise.
19518         * modules/unictype/block-test-tests (Files): Likewise.
19519         * modules/unictype/category-C-tests (Files): Likewise.
19520         * modules/unictype/category-Cc-tests (Files): Likewise.
19521         * modules/unictype/category-Cf-tests (Files): Likewise.
19522         * modules/unictype/category-Cn-tests (Files): Likewise.
19523         * modules/unictype/category-Co-tests (Files): Likewise.
19524         * modules/unictype/category-Cs-tests (Files): Likewise.
19525         * modules/unictype/category-L-tests (Files): Likewise.
19526         * modules/unictype/category-Ll-tests (Files): Likewise.
19527         * modules/unictype/category-Lm-tests (Files): Likewise.
19528         * modules/unictype/category-Lo-tests (Files): Likewise.
19529         * modules/unictype/category-Lt-tests (Files): Likewise.
19530         * modules/unictype/category-Lu-tests (Files): Likewise.
19531         * modules/unictype/category-M-tests (Files): Likewise.
19532         * modules/unictype/category-Mc-tests (Files): Likewise.
19533         * modules/unictype/category-Me-tests (Files): Likewise.
19534         * modules/unictype/category-Mn-tests (Files): Likewise.
19535         * modules/unictype/category-N-tests (Files): Likewise.
19536         * modules/unictype/category-Nd-tests (Files): Likewise.
19537         * modules/unictype/category-Nl-tests (Files): Likewise.
19538         * modules/unictype/category-No-tests (Files): Likewise.
19539         * modules/unictype/category-P-tests (Files): Likewise.
19540         * modules/unictype/category-Pc-tests (Files): Likewise.
19541         * modules/unictype/category-Pd-tests (Files): Likewise.
19542         * modules/unictype/category-Pe-tests (Files): Likewise.
19543         * modules/unictype/category-Pf-tests (Files): Likewise.
19544         * modules/unictype/category-Pi-tests (Files): Likewise.
19545         * modules/unictype/category-Po-tests (Files): Likewise.
19546         * modules/unictype/category-Ps-tests (Files): Likewise.
19547         * modules/unictype/category-S-tests (Files): Likewise.
19548         * modules/unictype/category-Sc-tests (Files): Likewise.
19549         * modules/unictype/category-Sk-tests (Files): Likewise.
19550         * modules/unictype/category-Sm-tests (Files): Likewise.
19551         * modules/unictype/category-So-tests (Files): Likewise.
19552         * modules/unictype/category-Z-tests (Files): Likewise.
19553         * modules/unictype/category-Zl-tests (Files): Likewise.
19554         * modules/unictype/category-Zp-tests (Files): Likewise.
19555         * modules/unictype/category-Zs-tests (Files): Likewise.
19556         * modules/unictype/category-and-not-tests (Files): Likewise.
19557         * modules/unictype/category-and-tests (Files): Likewise.
19558         * modules/unictype/category-byname-tests (Files): Likewise.
19559         * modules/unictype/category-name-tests (Files): Likewise.
19560         * modules/unictype/category-none-tests (Files): Likewise.
19561         * modules/unictype/category-of-tests (Files): Likewise.
19562         * modules/unictype/category-or-tests (Files): Likewise.
19563         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19564         * modules/unictype/combining-class-tests (Files): Likewise.
19565         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19566         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19567         * modules/unictype/ctype-blank-tests (Files): Likewise.
19568         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19569         * modules/unictype/ctype-digit-tests (Files): Likewise.
19570         * modules/unictype/ctype-graph-tests (Files): Likewise.
19571         * modules/unictype/ctype-lower-tests (Files): Likewise.
19572         * modules/unictype/ctype-print-tests (Files): Likewise.
19573         * modules/unictype/ctype-punct-tests (Files): Likewise.
19574         * modules/unictype/ctype-space-tests (Files): Likewise.
19575         * modules/unictype/ctype-upper-tests (Files): Likewise.
19576         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19577         * modules/unictype/decimal-digit-tests (Files): Likewise.
19578         * modules/unictype/digit-tests (Files): Likewise.
19579         * modules/unictype/mirror-tests (Files): Likewise.
19580         * modules/unictype/numeric-tests (Files): Likewise.
19581         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19582         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19583         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19584         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19585         Likewise.
19586         * modules/unictype/property-bidi-block-separator-tests (Files):
19587         Likewise.
19588         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19589         Likewise.
19590         * modules/unictype/property-bidi-common-separator-tests (Files):
19591         Likewise.
19592         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19593         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19594         Likewise.
19595         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19596         Likewise.
19597         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19598         Likewise.
19599         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19600         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19601         Likewise.
19602         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19603         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19604         Likewise.
19605         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19606         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19607         * modules/unictype/property-bidi-segment-separator-tests (Files):
19608         Likewise.
19609         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19610         * modules/unictype/property-byname-tests (Files): Likewise.
19611         * modules/unictype/property-combining-tests (Files): Likewise.
19612         * modules/unictype/property-composite-tests (Files): Likewise.
19613         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19614         * modules/unictype/property-dash-tests (Files): Likewise.
19615         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19616         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19617         Likewise.
19618         * modules/unictype/property-deprecated-tests (Files): Likewise.
19619         * modules/unictype/property-diacritic-tests (Files): Likewise.
19620         * modules/unictype/property-extender-tests (Files): Likewise.
19621         * modules/unictype/property-format-control-tests (Files): Likewise.
19622         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19623         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19624         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19625         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19626         * modules/unictype/property-hyphen-tests (Files): Likewise.
19627         * modules/unictype/property-id-continue-tests (Files): Likewise.
19628         * modules/unictype/property-id-start-tests (Files): Likewise.
19629         * modules/unictype/property-ideographic-tests (Files): Likewise.
19630         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19631         * modules/unictype/property-ids-trinary-operator-tests (Files):
19632         Likewise.
19633         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19634         * modules/unictype/property-iso-control-tests (Files): Likewise.
19635         * modules/unictype/property-join-control-tests (Files): Likewise.
19636         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19637         * modules/unictype/property-line-separator-tests (Files): Likewise.
19638         * modules/unictype/property-logical-order-exception-tests (Files):
19639         Likewise.
19640         * modules/unictype/property-lowercase-tests (Files): Likewise.
19641         * modules/unictype/property-math-tests (Files): Likewise.
19642         * modules/unictype/property-non-break-tests (Files): Likewise.
19643         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19644         * modules/unictype/property-numeric-tests (Files): Likewise.
19645         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19646         * modules/unictype/property-other-default-ignorable-code-point-tests
19647         (Files): Likewise.
19648         * modules/unictype/property-other-grapheme-extend-tests (Files):
19649         Likewise.
19650         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19651         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19652         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19653         * modules/unictype/property-other-math-tests (Files): Likewise.
19654         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19655         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19656         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19657         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19658         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19659         * modules/unictype/property-private-use-tests (Files): Likewise.
19660         * modules/unictype/property-punctuation-tests (Files): Likewise.
19661         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19662         * modules/unictype/property-radical-tests (Files): Likewise.
19663         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19664         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19665         * modules/unictype/property-space-tests (Files): Likewise.
19666         * modules/unictype/property-terminal-punctuation-tests (Files):
19667         Likewise.
19668         * modules/unictype/property-test-tests (Files): Likewise.
19669         * modules/unictype/property-titlecase-tests (Files): Likewise.
19670         * modules/unictype/property-unassigned-code-value-tests (Files):
19671         Likewise.
19672         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19673         * modules/unictype/property-uppercase-tests (Files): Likewise.
19674         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19675         * modules/unictype/property-white-space-tests (Files): Likewise.
19676         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19677         * modules/unictype/property-xid-start-tests (Files): Likewise.
19678         * modules/unictype/property-zero-width-tests (Files): Likewise.
19679         * modules/unictype/scripts-tests (Files): Likewise.
19680         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19681         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19682         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19683         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19684         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19685         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19686         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19687         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19688         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19689         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19690         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19691         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19692         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19693         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19694         * modules/uninorm/composition-tests (Files): Likewise.
19695         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19696         * modules/uninorm/decomposition-tests (Files): Likewise.
19697         * modules/uninorm/filter-tests (Files): Likewise.
19698         * modules/uninorm/nfc-tests (Files): Likewise.
19699         * modules/uninorm/nfd-tests (Files): Likewise.
19700         * modules/uninorm/nfkc-tests (Files): Likewise.
19701         * modules/uninorm/nfkd-tests (Files): Likewise.
19702         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19703         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19704         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19705         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19706         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19707         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19708         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19709         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19710         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19711         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19712         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19713         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19714         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19715         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19716         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19717         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19718         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19719         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19720         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19721         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19722         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19723         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19724         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19725         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19726         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19727         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19728         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19729         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19730         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19731         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19732         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19733         * modules/uniwidth/u8-width-tests (Files): Likewise.
19734         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19735         * modules/uniwidth/u16-width-tests (Files): Likewise.
19736         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19737         * modules/uniwidth/u32-width-tests (Files): Likewise.
19738         * modules/uniwidth/width-tests (Files): Likewise.
19739         * modules/unlink-tests (Files): Likewise.
19740         * modules/unsetenv-tests (Files): Likewise.
19741         * modules/usleep-tests (Files): Likewise.
19742         * modules/utimens-tests (Files): Likewise.
19743         * modules/utimensat-tests (Files): Likewise.
19744         * modules/vasnprintf-posix-tests (Files): Likewise.
19745         * modules/vasnprintf-tests (Files): Likewise.
19746         * modules/vasprintf-posix-tests (Files): Likewise.
19747         * modules/vasprintf-tests (Files): Likewise.
19748         * modules/vdprintf-posix-tests (Files): Likewise.
19749         * modules/vfprintf-posix-tests (Files): Likewise.
19750         * modules/vprintf-posix-tests (Files): Likewise.
19751         * modules/vsnprintf-posix-tests (Files): Likewise.
19752         * modules/vsnprintf-tests (Files): Likewise.
19753         * modules/vsprintf-posix-tests (Files): Likewise.
19754         * modules/wcrtomb-tests (Files): Likewise.
19755         * modules/wcsnrtombs-tests (Files): Likewise.
19756         * modules/wcsrtombs-tests (Files): Likewise.
19757         * modules/wctype-tests (Files): Likewise.
19758         * modules/wcwidth-tests (Files): Likewise.
19759         * modules/xmemdup0-tests (Files): Likewise.
19760         * modules/xprintf-posix-tests (Files): Likewise.
19761         * modules/xvasprintf-tests (Files): Likewise.
19762
19763 2009-12-24  Eric Blake  <ebb9@byu.net>
19764
19765         test-nanosleep: fix typo
19766         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19767         patch.
19768         Reported by Bruno Haible.
19769
19770 2009-12-24  Bruno Haible  <bruno@clisp.org>
19771
19772         Reduce namespace pollution on glibc systems.
19773         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19774         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19775         systems.
19776         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19777         <getopt.h> on glibc systems.
19778         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19779         systems.
19780         * lib/fcntl.c: Include <unistd.h> here instead.
19781
19782 2009-12-24  Bruno Haible  <bruno@clisp.org>
19783
19784         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19785
19786 2009-12-24  Eric Blake  <ebb9@byu.net>
19787
19788         tests: add signature checks
19789         * tests/signature.h (SIGNATURE_CHECK): New file.
19790         * modules/atexit-tests (Files): Use it.
19791         * modules/btowc-tests (Files): Likewise.
19792         * modules/canonicalize-lgpl-tests (Files): Likewise.
19793         * modules/ceilf-tests (Files): Likewise.
19794         * modules/ceill-tests (Files): Likewise.
19795         * modules/chown-tests (Files): Likewise.
19796         * modules/dprintf-posix-tests (Files): Likewise.
19797         * modules/dup2-tests (Files): Likewise.
19798         * modules/dup3-tests (Files): Likewise.
19799         * modules/duplocale-tests (Files): Likewise.
19800         * modules/fchdir-tests (Files): Likewise.
19801         * modules/fcntl-tests (Files): Likewise.
19802         * modules/fdopendir-tests (Files): Likewise.
19803         * modules/fflush-tests (Files): Likewise.
19804         * modules/flock-tests (Files): Likewise.
19805         * modules/floorf-tests (Files): Likewise.
19806         * modules/floorl-tests (Files): Likewise.
19807         * modules/fnmatch-tests (Files): Likewise.
19808         * modules/fopen-tests (Files): Likewise.
19809         * modules/fprintf-posix-tests (Files): Likewise.
19810         * modules/freopen-tests (Files): Likewise.
19811         * modules/frexp-nolibm-tests (Files): Likewise.
19812         * modules/frexp-tests (Files): Likewise.
19813         * modules/frexpl-nolibm-tests (Files): Likewise.
19814         * modules/frexpl-tests (Files): Likewise.
19815         * modules/fseek-tests (Files): Likewise.
19816         * modules/fseeko-tests (Files): Likewise.
19817         * modules/fsync-tests (Files): Likewise.
19818         * modules/ftell-tests (Files): Likewise.
19819         * modules/ftello-tests (Files): Likewise.
19820         * modules/futimens-tests (Files): Likewise.
19821         * modules/getaddrinfo-tests (Files): Likewise.
19822         * modules/getcwd-tests (Files): Likewise.
19823         * modules/getdelim-tests (Files): Likewise.
19824         * modules/getdtablesize-tests (Files): Likewise.
19825         * modules/getgroups-tests (Files): Likewise.
19826         * modules/gethostname-tests (Files): Likewise.
19827         * modules/getline-tests (Files): Likewise.
19828         * modules/getopt-posix-tests (Files): Likewise.
19829         * modules/gettimeofday-tests (Files): Likewise.
19830         * modules/glob-tests (Files): Likewise.
19831         * modules/iconv-tests (Files): Likewise.
19832         * modules/inet_ntop-tests (Files): Likewise.
19833         * modules/inet_pton-tests (Files): Likewise.
19834         * modules/isblank-tests (Files): Likewise.
19835         * modules/lchown-tests (Files): Likewise.
19836         * modules/ldexpl-tests (Files): Likewise.
19837         * modules/link-tests (Files): Likewise.
19838         * modules/linkat-tests (Files): Likewise.
19839         * modules/lseek-tests (Files): Likewise.
19840         * modules/lstat-tests (Files): Likewise.
19841         * modules/mbrtowc-tests (Files): Likewise.
19842         * modules/mbsinit-tests (Files): Likewise.
19843         * modules/mbsnrtowcs-tests (Files): Likewise.
19844         * modules/mbsrtowcs-tests (Files): Likewise.
19845         * modules/memchr-tests (Files): Likewise.
19846         * modules/memcmp-tests (Files): Likewise.
19847         * modules/memmem-tests (Files): Likewise.
19848         * modules/memrchr-tests (Files): Likewise.
19849         * modules/mkdir-tests (Files): Likewise.
19850         * modules/mkfifo-tests (Files): Likewise.
19851         * modules/mkfifoat-tests (Files): Likewise.
19852         * modules/mknod-tests (Files): Likewise.
19853         * modules/nanosleep-tests (Files): Likewise.
19854         * modules/nl_langinfo-tests (Files): Likewise.
19855         * modules/obstack-printf-tests (Files): Likewise.
19856         * modules/open-tests (Files): Likewise.
19857         * modules/openat-tests (Files): Likewise.
19858         * modules/perror-tests (Files): Likewise.
19859         * modules/pipe2-tests (Files): Likewise.
19860         * modules/poll-tests (Files): Likewise.
19861         * modules/popen-tests (Files): Likewise.
19862         * modules/posix_spawn-tests (Files): Likewise.
19863         * modules/posix_spawnp-tests (Files): Likewise.
19864         * modules/pread-tests (Files): Likewise.
19865         * modules/printf-posix-tests (Files): Likewise.
19866         * modules/pty-tests (Files): Likewise.
19867         * modules/random_r-tests (Files): Likewise.
19868         * modules/rawmemchr-tests (Files): Likewise.
19869         * modules/readlink-tests (Files): Likewise.
19870         * modules/remove-tests (Files): Likewise.
19871         * modules/rename-tests (Files): Likewise.
19872         * modules/renameat-tests (Files): Likewise.
19873         * modules/rmdir-tests (Files): Likewise.
19874         * modules/round-tests (Files): Likewise.
19875         * modules/roundf-tests (Files): Likewise.
19876         * modules/roundl-tests (Files): Likewise.
19877         * modules/select-tests (Files): Likewise.
19878         * modules/setenv-tests (Files): Likewise.
19879         * modules/sigaction-tests (Files): Likewise.
19880         * modules/sleep-tests (Files): Likewise.
19881         * modules/snprintf-posix-tests (Files): Likewise.
19882         * modules/snprintf-tests (Files): Likewise.
19883         * modules/sprintf-posix-tests (Files): Likewise.
19884         * modules/stat-tests (Files): Likewise.
19885         * modules/strcasestr-tests (Files): Likewise.
19886         * modules/strchrnul-tests (Files): Likewise.
19887         * modules/strerror-tests (Files): Likewise.
19888         * modules/strsignal-tests (Files): Likewise.
19889         * modules/strstr-tests (Files): Likewise.
19890         * modules/strtod-tests (Files): Likewise.
19891         * modules/strverscmp-tests (Files): Likewise.
19892         * modules/symlink-tests (Files): Likewise.
19893         * modules/symlinkat-tests (Files): Likewise.
19894         * modules/times-tests (Files): Likewise.
19895         * modules/trunc-tests (Files): Likewise.
19896         * modules/truncf-tests (Files): Likewise.
19897         * modules/truncl-tests (Files): Likewise.
19898         * modules/tsearch-tests (Files): Likewise.
19899         * modules/uname-tests (Files): Likewise.
19900         * modules/unlink-tests (Files): Likewise.
19901         * modules/unsetenv-tests (Files): Likewise.
19902         * modules/usleep-tests (Files): Likewise.
19903         * modules/utimensat-tests (Files): Likewise.
19904         * modules/vasprintf-tests (Files): Likewise.
19905         * modules/vdprintf-posix-tests (Files): Likewise.
19906         * modules/vfprintf-posix-tests (Files): Likewise.
19907         * modules/vprintf-posix-tests (Files): Likewise.
19908         * modules/vsnprintf-posix-tests (Files): Likewise.
19909         * modules/vsnprintf-tests (Files): Likewise.
19910         * modules/vsprintf-posix-tests (Files): Likewise.
19911         * modules/wcrtomb-tests (Files): Likewise.
19912         * modules/wcsnrtombs-tests (Files): Likewise.
19913         * modules/wcsrtombs-tests (Files): Likewise.
19914         * modules/wcwidth-tests (Files): Likewise.
19915         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19916         * tests/test-isinf.c (isinf): Likewise.
19917         * tests/test-isnan.c (isnan): Likewise.
19918         * tests/test-signbit.c (signbit): Likewise.
19919         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19920         declaration, either as macro or with correct signature.
19921         (select): Ensure function under test is declared with correct
19922         signature in correct header.
19923         * tests/test-atexit.c (atexit): Likewise.
19924         * tests/test-btowc.c (btowc): Likewise.
19925         * tests/test-canonicalize-lgpl.c (realpath)
19926         (canonicalize_file_name): Likewise.
19927         * tests/test-ceilf1.c (ceilf): Likewise.
19928         * tests/test-ceill.c (ceill): Likewise.
19929         * tests/test-chown.c (chown): Likewise.
19930         * tests/test-dprintf-posix.c (dprintf): Likewise.
19931         * tests/test-dup2.c (dup2): Likewise.
19932         * tests/test-dup3.c (dup3): Likewise.
19933         * tests/test-duplocale.c (duplocale): Likewise.
19934         * tests/test-fchdir.c (fchdir): Likewise.
19935         * tests/test-fchownat.c (fchownat): Likewise.
19936         * tests/test-fcntl.c (fcntl): Likewise.
19937         * tests/test-fdopendir.c (fdopendir): Likewise.
19938         * tests/test-fflush.c (fflush): Likewise.
19939         * tests/test-flock.c (flock): Likewise.
19940         * tests/test-floorf1.c (floorf): Likewise.
19941         * tests/test-floorl.c (floorl): Likewise.
19942         * tests/test-fnmatch.c (fnmatch): Likewise.
19943         * tests/test-fopen.c (fopen): Likewise.
19944         * tests/test-fprintf-posix.c (fprintf): Likewise.
19945         * tests/test-freopen.c (freopen): Likewise.
19946         * tests/test-frexp.c (frexp): Likewise.
19947         * tests/test-frexpl.c (frexpl): Likewise.
19948         * tests/test-fseek.c (fseek): Likewise.
19949         * tests/test-fseeko.c (fseeko): Likewise.
19950         * tests/test-fstatat.c (fstatat): Likewise.
19951         * tests/test-fsync.c (fsync): Likewise.
19952         * tests/test-ftell.c (ftell): Likewise.
19953         * tests/test-ftello.c (ftello): Likewise.
19954         * tests/test-futimens.c (futimens): Likewise.
19955         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19956         (gai_strerror): Likewise.
19957         * tests/test-getcwd.c (getcwd): Likewise.
19958         * tests/test-getdelim.c (getdelim): Likewise.
19959         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19960         * tests/test-getgroups.c (getgroups): Likewise.
19961         * tests/test-gethostname.c (gethostname): Likewise.
19962         * tests/test-getline.c (getline): Likewise.
19963         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19964         Likewise.
19965         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19966         * tests/test-glob.c (glob, globfree): Likewise.
19967         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19968         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19969         * tests/test-inet_pton.c (inet_pton): Likewise.
19970         * tests/test-isblank.c (isblank): Likewise.
19971         * tests/test-lchown.c (lchown): Likewise.
19972         * tests/test-ldexpl.c (ldexpl): Likewise.
19973         * tests/test-link.c (link): Likewise.
19974         * tests/test-linkat.c (linkat): Likewise.
19975         * tests/test-lseek.c (lseek): Likewise.
19976         * tests/test-lstat.c (lstat): Likewise.
19977         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19978         * tests/test-mbsinit.c (mbsinit): Likewise.
19979         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19980         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19981         * tests/test-memchr.c (memchr): Likewise.
19982         * tests/test-memcmp.c (memcmp): Likewise.
19983         * tests/test-memmem.c (memmem): Likewise.
19984         * tests/test-memrchr.c (memrchr): Likewise.
19985         * tests/test-mkdir.c (mkdir): Likewise.
19986         * tests/test-mkdirat.c (mkdirat): Likewise.
19987         * tests/test-mkfifo.c (mkfifo): Likewise.
19988         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19989         * tests/test-mknod.c (mknod): Likewise.
19990         * tests/test-nanosleep.c (nanosleep): Likewise.
19991         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19992         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19993         Likewise.
19994         * tests/test-open.c (open): Likewise.
19995         * tests/test-openat.c (openat): Likewise.
19996         * tests/test-perror.c (perror): Likewise.
19997         * tests/test-pipe2.c (pipe2): Likewise.
19998         * tests/test-poll.c (poll): Likewise.
19999         * tests/test-popen.c (popen, pclose): Likewise.
20000         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20001         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20002         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20003         (posix_spawn_file_actions_destroy)
20004         (posix_spawn_file_actions_addclose)
20005         (posix_spawn_file_actions_addopen)
20006         (posix_spawn_file_actions_adddup2): Likewise.
20007         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20008         * tests/test-pread.c (pread): Likewise.
20009         * tests/test-printf-posix.c (printf): Likewise.
20010         * tests/test-pty.c (openpty, forkpty): Likewise.
20011         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20012         (random_r): Likewise.
20013         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20014         * tests/test-readlink.c (readlink): Likewise.
20015         * tests/test-remove.c (remove): Likewise.
20016         * tests/test-rename.c (rename): Likewise.
20017         * tests/test-renameat.c (renameat): Likewise.
20018         * tests/test-rmdir.c (rmdir): Likewise.
20019         * tests/test-round1.c (round): Likewise.
20020         * tests/test-roundf1.c (roundf): Likewise.
20021         * tests/test-roundl.c (roundl): Likewise.
20022         * tests/test-setenv.c (setenv): Likewise.
20023         * tests/test-sigaction.c (sigaction): Likewise.
20024         * tests/test-sleep.c (sleep): Likewise.
20025         * tests/test-snprintf.c (snprintf): Likewise.
20026         * tests/test-sprintf-posix.c (sprintf): Likewise.
20027         * tests/test-stat.c (stat): Likewise.
20028         * tests/test-stpncpy.c (stpncpy): Likewise.
20029         * tests/test-strcasestr.c (strcasestr): Likewise.
20030         * tests/test-strchrnul.c (strchrnul): Likewise.
20031         * tests/test-strerror.c (strerror): Likewise.
20032         * tests/test-strsignal.c (strsignal): Likewise.
20033         * tests/test-strstr.c (strstr): Likewise.
20034         * tests/test-strtod.c (strtod): Likewise.
20035         * tests/test-strverscmp.c (strverscmp): Likewise.
20036         * tests/test-symlink.c (symlink): Likewise.
20037         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20038         * tests/test-times.c (times): Likewise.
20039         * tests/test-trunc1.c (trunc): Likewise.
20040         * tests/test-truncf1.c (truncf): Likewise.
20041         * tests/test-truncl.c (truncl): Likewise.
20042         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20043         Likewise.
20044         * tests/test-uname.c (uname): Likewise.
20045         * tests/test-unlink.c (unlink): Likewise.
20046         * tests/test-unlinkat.c (unlinkat): Likewise.
20047         * tests/test-unsetenv.c (unsetenv): Likewise.
20048         * tests/test-usleep.c (usleep): Likewise.
20049         * tests/test-utimensat.c (utimensat): Likewise.
20050         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20051         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20052         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20053         * tests/test-vprintf-posix.c (vprintf): Likewise.
20054         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20055         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20056         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20057         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20058         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20059         * tests/test-wcwidth.c (wcwidth): Likewise.
20060
20061         build: pull in conditional headers during GNULIB_POSIXCHECK
20062         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20063         definitions from any conditionally-included headers.
20064         * lib/stdlib.in.h (includes): Likewise.
20065         * lib/unistd.in.h (includes): Likewise.
20066
20067 2009-12-24  Bruno Haible  <bruno@clisp.org>
20068
20069         * tests/test-argv-iter.c: Include header file being tested immediately
20070         after config.h.
20071         * tests/test-base64.c: Likewise.
20072         * tests/test-flock.c: Likewise.
20073         * tests/test-fsync.c: Likewise.
20074         * tests/test-getdate.c: Likewise.
20075         * tests/test-getndelim2.c: Likewise.
20076         * tests/test-isfinite.c: Likewise.
20077         * tests/test-isinf.c: Likewise.
20078         * tests/test-strerror.c: Likewise.
20079         * tests/test-strsignal.c: Likewise.
20080
20081 2009-12-23  Eric Blake  <ebb9@byu.net>
20082
20083         unistd: work around cygwin bug
20084         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20085         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20086         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20087
20088 2009-12-23  Bruno Haible  <bruno@clisp.org>
20089
20090         localename: More tests.
20091         * tests/test-localename.c (SIZEOF): New macro.
20092         (categories): New variable.
20093         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20094         test_locale_name_default): Add test w.r.t. thread locale.
20095         (test_locale_name_thread): New function.
20096         (main): Invoke it.
20097
20098         localename: Make aware of thread locale.
20099         * lib/localename.h (gl_locale_name_thread): New declaration.
20100         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20101         behaviour with respect to thread locale.
20102         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20103         <langinfo.h>, glthread/lock.h.
20104         (SIZE_BITS): New macro.
20105         (string_hash): New function.
20106         (struct hash_node): New type.
20107         (HASH_TABLE_SIZE): New macro.
20108         (struniq_hash_table, struniq_lock): New variables.
20109         (struniq): New function.
20110         (gl_locale_name_thread): New function.
20111         (gl_locale_name): Invoke it.
20112         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20113         * modules/localename (Depends-on): Add lock.
20114         Reported by Mike Gran <spk121@yahoo.com>.
20115
20116 2009-12-23  Eric Blake  <ebb9@byu.net>
20117
20118         va-args: new module
20119         * modules/va-args: New file.
20120         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20121         * MODULES.html.sh (Core language properties): Mention it.
20122
20123         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20124         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20125         named alias for __attribute__((__unused__)).
20126         * lib/chown.c: Update client.
20127         * lib/fchmodat.c: Likewise.
20128         * lib/fts.c: Likewise.
20129         * lib/getdate.y: Likewise.
20130         * lib/getgroups.c: Likewise.
20131         * lib/getopt.c: Likewise.
20132         * lib/getugroups.c: Likewise.
20133         * lib/mkdir.c: Likewise.
20134         * lib/mkfifo.c: Likewise.
20135         * lib/mkfifoat.c: Likewise.
20136         * lib/mknod.c: Likewise.
20137         * lib/mknodat.c: Likewise.
20138         * lib/readlink.c: Likewise.
20139         * lib/se-context.in.h: Likewise.
20140         * lib/se-selinux.in.h: Likewise.
20141         * lib/sockets.c: Likewise.
20142         * lib/symlink.c: Likewise.
20143         * lib/symlinkat.c: Likewise.
20144         * lib/unicodeio.c: Likewise.
20145         * lib/unistr.h: Likewise.
20146         * tests/test-areadlink.c: Likewise.
20147         * tests/test-areadlinkat.c: Likewise.
20148         * tests/test-filenamecat.c: Likewise.
20149         * tests/test-fseeko.c: Likewise.
20150         * tests/test-ftello.c: Likewise.
20151         * tests/test-getdate.c: Likewise.
20152         * tests/test-getgroups.c: Likewise.
20153         * tests/test-gethostname.c: Likewise.
20154         * tests/test-quotearg.c: Likewise.
20155         * tests/test-version-etc.c: Likewise.
20156         * tests/test-xalloc-die.c: Likewise.
20157         * tests/test-xfprintf-posix.c: Likewise.
20158         * tests/test-xprintf-posix.c: Likewise.
20159         * tests/test-xvasprintf.c: Likewise.
20160
20161         tests: avoid compiler warnings
20162         * tests/test-fcntl.c (main): Delete unused parameters.
20163         * tests/test-freopen-safer.c (main): Likewise.
20164         * tests/test-xalloc-die.c (main): Mark unused parameters.
20165         * tests/test-fseeko.c (main): Likewise.
20166         * tests/test-ftello.c (main): Likewise.
20167         * tests/test-nanosleep.c (main): Avoid declaration warning.
20168         * tests/test-sleep.c (main): Likewise.
20169         * tests/test-unsetenv.c (main): Silence warning about string
20170         literal.
20171         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20172
20173 2009-12-23  Bruno Haible  <bruno@clisp.org>
20174
20175         * tests/test-localename.c (test_locale_name): New function, extracted
20176         from main. Also test mixed situations.
20177         (test_locale_name_posix, test_locale_name_environ,
20178         test_locale_name_default): New functions.
20179         (main): Invoke them all.
20180         * modules/localename-tests (configure.ac): Test for newlocale.
20181
20182 2009-12-23  Bruno Haible  <bruno@clisp.org>
20183
20184         unistd: Ensure getcwd gets declared before being overridden.
20185         * lib/unistd.in.h: Conditionally include <io.h>.
20186
20187 2009-12-22  Bruno Haible  <bruno@clisp.org>
20188
20189         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20190         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20191         (gl_WCHAR_H): Invoke it.
20192         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20193         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20194         Reported by Karl Berry <karl@freefriends.org>.
20195
20196 2009-12-22  Eric Blake  <ebb9@byu.net>
20197
20198         math, unistd: avoid redundant includes
20199         * lib/math.in.h (isnan): No need to re-include <math.h>.
20200         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20201
20202         getsubopt: work around cygwin bug
20203         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20204         avoid conflicting with system getsubopt.
20205         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20206         bug.
20207
20208         getopt: synchronize from glibc
20209         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20210         parameter order.  Adjust all callers.
20211         (_getopt_internal_r, main): Adjust quoting in error messages.
20212         Drop considerations for outdated POSIX 1003.2 error message.
20213         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20214         callers.
20215         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20216
20217         test-getopt: test stderr behavior
20218         * modules/getopt-posix-tests (Depends-on): Add dup2.
20219         * tests/test-getopt.c (ASSERT): Avoid stderr.
20220         (main): Move stderr to a temporary file.
20221         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20222         Instead, add parameter to inform caller if output occurred.
20223         (test_getopt): Adjust all existing tests to expect silence, and
20224         add new tests of leading ":".
20225         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20226         glibc shortcomings with leading "-:" or "+:" in optstring.
20227         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20228         Likewise.
20229         * doc/posix-functions/getopt.texi (getopt): Likewise.
20230
20231         test-getopt: enhance test
20232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20233         supports optind=0.
20234         * tests/test-getopt.c (OPTIND_MIN): Move...
20235         * tests/test-getopt.h (OPTIND_MIN): ...here.
20236         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20237         Require that optind=0 works, since modern BSD supports it in
20238         addition to optreset, and since coreutils expects it.
20239         (test_getopt_long_only): New test.
20240         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20241         glibc shortcomings with 'W;', and enforcement of optind=0.
20242         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20243         Likewise.
20244
20245 2009-12-21  Bruno Haible  <bruno@clisp.org>
20246
20247         localename: Improvements for MacOS X and Cygwin.
20248         * lib/localename.h (gl_locale_name_environ): New declaration.
20249         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20250         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20251         (gl_locale_name_posix): Invoke it.
20252         (gl_locale_name_default): Add comments. Use Windows native API also on
20253         Cygwin.
20254
20255 2009-12-21  Bruno Haible  <bruno@clisp.org>
20256
20257         Update list of Win32 locale ids.
20258         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20259         (LANG_SAMI): Renamed from LANG_SAAMI.
20260         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20261         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20262         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20263         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20264         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20265         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20266         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20267         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20268         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20269         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20270         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20271         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20272         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20273         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20274         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20275         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20276         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20277         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20278         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20279         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20280         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20281         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20282         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20283         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20284         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20285         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20286         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20287         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20288         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20289         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20290         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20291         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20292         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20293         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20294         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20295         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20296         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20297         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20298         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20299         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20300         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20301         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20302         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20303         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20304         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20305         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20306         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20307         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20308         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20309         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20310         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20311         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20312         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20313         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20314         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20315         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20316         Add more languages and countries for Sami, Sorbian. Add more countries
20317         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20318         for Pashto. Change country for Syriac, Tswana.
20319
20320 2009-12-21  Eric Blake  <ebb9@byu.net>
20321
20322         test-utimens: avoid spurious failure
20323         * tests/test-chown.h (nap): Factor...
20324         * tests/nap.h: ...into new file.
20325         * tests/test-lchown.h (nap): Avoid duplication.
20326         * tests/test-utimens-common.h (nap): Use shared implementation,
20327         necessary on file systems with 1-second resolution.
20328         * modules/chown-tests (Files): Include new file.
20329         * modules/fdutimensat-tests (Files): Likewise.
20330         * modules/futimens-tests (Files): Likewise.
20331         * modules/lchown-tests (Files): Likewise.
20332         * modules/openat-tests (Files): Likewise.
20333         * modules/utimens-tests (Files): Likewise.
20334         * modules/utimensat-tests (Files): Likewise.
20335
20336 2009-12-19  Eric Blake  <ebb9@byu.net>
20337
20338         futimens, utimensat: work around Linux bug
20339         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20340         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20341         * lib/utimensat.c (rpl_utimensat): Work around it.
20342         * lib/futimens.c (rpl_futimens): Adjust comment.
20343
20344         utimens: work around Linux ctime bug
20345         * lib/utimens.c (detect_ctime_bug): New helper function.
20346         (update_timespec): Differentiate between workaround needed for
20347         this bug vs. what is needed for systems that lack utimensat.
20348         (fdutimens, lutimens): Work around bug.
20349
20350         utimens: check for ctime update
20351         * tests/test-utimens-common.h (check_ctime): Define.
20352         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20353         * tests/test-futimens.h (test_futimens): Likewise.
20354         * tests/test-lutimens.h (test_lutimens): Likewise.
20355         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20356         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20357
20358 2009-12-19  Bruno Haible  <bruno@clisp.org>
20359
20360         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20361         * tests/test-dprintf-posix2.sh: New file.
20362         * tests/test-dprintf-posix2.c: New file.
20363         * modules/dprintf-posix-tests (Files): Add them.
20364         (configure.ac): Check for getrlimit and setrlimit.
20365         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20366
20367 2009-12-19  Bruno Haible  <bruno@clisp.org>
20368
20369         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20370         * tests/test-fprintf-posix3.sh: New file.
20371         * tests/test-fprintf-posix3.c: New file.
20372         * modules/fprintf-posix-tests (Files): Add them.
20373         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20374
20375 2009-12-19  Eric Blake  <ebb9@byu.net>
20376
20377         dirfd: fix prototype
20378         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20379         * lib/dirfd.c (dirfd): Likewise.
20380
20381         canonicalize: reduce memory usage
20382         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20383         allocation to size.
20384         Reported by Solar Designer <solar@openwall.com>.
20385
20386 2009-12-19  Bruno Haible  <bruno@clisp.org>
20387
20388         New module attribute 'Applicability'.
20389         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20390         * gnulib-tool: New option --extract-applicability.
20391         (func_usage): Document it.
20392         (sed_extract_prog): Recognize it.
20393         (func_get_applicability): New function.
20394         (func_import): Generalize handling of 'link-warning' module.
20395         * modules/link-warning (Applicability): New section.
20396         * modules/arg-nonnull (Applicability): New section.
20397         Repoted by Simon Josefsson <simon@josefsson.org>.
20398
20399 2009-12-19  Bruno Haible  <bruno@clisp.org>
20400
20401         fflush: tweak
20402         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20403         * lib/fseeko.c (rpl_fseeko): Likewise.
20404
20405 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20406
20407         * lib/gl_list.h: Fix typo in comment.
20408
20409 2009-12-16  Eric Blake  <ebb9@byu.net>
20410
20411         fcntl: use to simplify other modules
20412         * modules/cloexec (Depends-on): Add fcntl.
20413         * modules/fchdir (Depends-on): Likewise.
20414         * modules/fd-safer-flag (Depends-on): Likewise.
20415         * modules/unistd-safer (Depends-on): Likewise.
20416         * modules/dup3 (configure.ac): Set module indicator.
20417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20418         missing.
20419         * lib/fchdir.c (_gl_register_dup): Fix comment.
20420         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20421         * lib/dup-safer.c (dup_safer): Likewise.
20422         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20423         * lib/dup3.c (dup3): Likewise.
20424         * tests/test-fchdir.c (main): Enhance test.
20425         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
20426
20427         fcntl: port portions of fcntl to mingw
20428         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20429         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20430         replacement for mingw.
20431         * modules/fcntl (Description): Update.
20432         (Depends-on): Add dup2.
20433         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20434         * modules/fcntl-h (Makefile.am): Substitute it.
20435         * lib/fcntl.in.h (fcntl): Update declaration.
20436         (F_DUPFD, F_GETFD): New macros, when needed.
20437         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20438         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20439         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20440         we now guarantee.
20441
20442         fcntl: work around cygwin bug in F_DUPFD
20443         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20444         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20445         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20446         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20447         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20448
20449         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20450         * modules/fcntl (Files): List new files.
20451         (configure.ac): Run a test.
20452         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20453         * lib/fcntl.c (rpl_fcntl): Likewise.
20454         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20455         (gl_FCNTL_H): Always replace fcntl.h.
20456         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20457         * lib/fcntl.in.h (fcntl): Declare replacement.
20458         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20459         needed, plus a witness.
20460         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20461         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20462         * tests/test-fcntl.c: New file.
20463         * modules/fcntl-tests: Likewise.
20464
20465         binary-io: avoid potential compilation warning
20466         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20467         directives.
20468
20469         fflush: avoid compilation error on NetBSD
20470         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20471         between off_t and fpos_t, since the latter is sometimes a struct.
20472         * lib/fseeko.c (rpl_fseeko): Likewise.
20473         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20474
20475 2009-12-15  Eric Blake  <ebb9@byu.net>
20476
20477         fcntl-h, stdio, sys_ioctl: fix declarations
20478         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20479         function must not take arguments.
20480         * lib/sys_ioctl.in.h (ioctl): Likewise.
20481         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20482         (open): Add a link warning.
20483
20484 2009-12-15  Jim Meyering  <meyering@redhat.com>
20485
20486         areadlink, areadlink-with-size: relax license to LGPLv2+
20487         * modules/areadlink (License): Relax to LGPLv2+.
20488         * modules/areadlink-with-size (License): Likewise.
20489
20490 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20491             Bruno Haible  <bruno@clisp.org>
20492
20493         *printf: Fix memory leak.
20494         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20495         * lib/vfprintf.c (vfprintf): Likewise.
20496         * lib/dprintf.c (dprintf): Likewise.
20497         * lib/vdprintf.c (vdprintf): Likewise.
20498
20499 2009-12-14  Eric Blake  <ebb9@byu.net>
20500
20501         accept4: adjust module dependencies
20502         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20503
20504         utimens: one more try at avoiding compiler warning
20505         * lib/utimens.c (lutimens): Lower scope of result.
20506
20507 2009-12-13  Bruno Haible  <bruno@clisp.org>
20508
20509         Move the malloc checking from module 'list' to new module 'xlist'.
20510         * modules/xlist: New file.
20511         * lib/gl_xlist.h: New file.
20512         * lib/gl_xlist.c: New file.
20513         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20514         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20515         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20516         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20517         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20518         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20519         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20520         gl_sortedlist_nx_add): New declarations.
20521         (struct gl_list_implementation): Rename and change methods accordingly.
20522         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20523         (gl_list_nx_create): Renamed from gl_list_create.
20524         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20525         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20526         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20527         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20528         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20529         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20530         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20531         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20532         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20533         gl_list_create_empty.
20534         (gl_list_nx_create): Renamed from gl_list_create.
20535         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20536         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20537         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20538         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20539         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20540         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20541         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20542         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20543         * lib/gl_array_list.c: Don't include xalloc.h.
20544         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20545         NULL upon out-of-memory.
20546         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20547         out-of-memory.
20548         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20549         Change return type to 'int'.
20550         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20551         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20552         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20553         upon out-of-memory.
20554         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20555         upon out-of-memory.
20556         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20557         upon out-of-memory.
20558         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20559         upon out-of-memory.
20560         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20561         out-of-memory.
20562         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20563         Update.
20564         (gl_array_list_implementation): Update.
20565         * lib/gl_carray_list.c: Don't include xalloc.h.
20566         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20567         Return NULL upon out-of-memory.
20568         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20569         out-of-memory.
20570         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20571         Change return type to 'int'.
20572         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20573         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20574         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20575         upon out-of-memory.
20576         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20577         upon out-of-memory.
20578         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20579         out-of-memory.
20580         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20581         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20582         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20583         Update.
20584         (gl_carray_list_implementation): Update.
20585         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20586         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20587         gl_linked_create_empty. Return NULL upon out-of-memory.
20588         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20589         out-of-memory.
20590         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20591         Change return type to 'int'. Return -1 upon out-of-memory.
20592         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20593         out-of-memory.
20594         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20595         upon out-of-memory.
20596         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20597         upon out-of-memory.
20598         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20599         NULL upon out-of-memory.
20600         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20601         upon out-of-memory.
20602         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20603         out-of-memory.
20604         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20605         Update.
20606         * lib/gl_linked_list.c: Don't include xalloc.h.
20607         (gl_linked_list_implementation): Update.
20608         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20609         (add_to_bucket): Change return type to 'int'.
20610         (gl_linkedhash_list_implementation): Update.
20611         * lib/gl_anytree_list1.h (free_subtree): New function.
20612         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20613         gl_tree_create_empty. Return NULL upon out-of-memory.
20614         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20615         Change return type to 'int'. Return -1 upon out-of-memory.
20616         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20617         out-of-memory.
20618         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20619         (gl_tree_remove_node): New function, moved here from
20620         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20621         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20622         Update.
20623         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20624         malloc, not xmalloc. Return NULL upon out-of-memory.
20625         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20626         out-of-memory.
20627         (gl_tree_remove_node_from_tree): New function, extracted from
20628         gl_tree_remove_node.
20629         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20630         upon out-of-memory.
20631         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20632         out-of-memory.
20633         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20634         upon out-of-memory.
20635         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20636         upon out-of-memory.
20637         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20638         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20639         not xmalloc. Return NULL upon out-of-memory.
20640         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20641         out-of-memory.
20642         (gl_tree_remove_node_from_tree): New function, extracted from
20643         gl_tree_remove_node.
20644         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20645         upon out-of-memory.
20646         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20647         out-of-memory.
20648         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20649         upon out-of-memory.
20650         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20651         upon out-of-memory.
20652         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20653         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20654         gl_anytree_list1.h before gl_anyavltree_list2.h.
20655         (gl_avltree_list_implementation): Update.
20656         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20657         gl_anytree_list1.h before gl_anyavltree_list2.h.
20658         (gl_rbtree_list_implementation): Update.
20659         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20660         Change return type to 'int'. Return -1 upon out-of-memory. Use
20661         __builtin_expect.
20662         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20663         (gl_avltreehash_list_implementation): Update.
20664         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20665         (gl_rbtreehash_list_implementation): Update.
20666         * modules/array-list (Depends-on): Remove xalloc.
20667         * modules/carray-list (Depends-on): Likewise.
20668         * modules/linked-list (Depends-on): Likewise.
20669         * modules/linkedhash-list (Depends-on): Likewise.
20670         * modules/avltree-list (Depends-on): Likewise.
20671         * modules/rbtree-list (Depends-on): Likewise.
20672         * modules/avltreehash-list (Depends-on): Likewise.
20673         * modules/rbtreehash-list (Depends-on): Likewise.
20674
20675         * modules/xsublist: New file.
20676         * lib/gl_xsublist.h: New file.
20677         * lib/gl_xsublist.c: New file.
20678         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20679         (gl_sublist_nx_create): New declaration.
20680         * lib/gl_sublist.c: Don't include xalloc.h.
20681         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20682         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20683         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20684         Change return type to 'int'. Return -1 upon out-of-memory.
20685         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20686         upon out-of-memory.
20687         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20688         NULL upon out-of-memory.
20689         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20690         upon out-of-memory.
20691         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20692         NULL upon out-of-memory.
20693         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20694         NULL upon out-of-memory.
20695         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20696         upon out-of-memory.
20697         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20698         (gl_sublist_list_implementation): Update.
20699         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20700         upon out-of-memory.
20701         * modules/sublist (Depends-on): Remove xalloc.
20702
20703         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20704         * tests/test-carray_list.c: Likewise.
20705         * tests/test-linked_list.c: Likewise.
20706         * tests/test-linkedhash_list.c: Likewise.
20707         * tests/test-avltree_list.c: Likewise.
20708         * tests/test-rbtree_list.c: Likewise.
20709         * tests/test-avltreehash_list.c: Likewise.
20710         * tests/test-rbtreehash_list.c: Likewise.
20711         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20712         * modules/carray-list-tests (Makefile.am): Likewise.
20713         * modules/linked-list-tests (Makefile.am): Likewise.
20714         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20715         * modules/avltree-list-tests (Makefile.am): Likewise.
20716         * modules/rbtree-list-tests (Makefile.am): Likewise.
20717         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20718         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20719
20720         * NEWS: Mention the changes.
20721
20722         * lib/clean-temp.c: Include gl_xlist.h.
20723         * modules/clean-temp (Depends-on): Add xlist.
20724
20725         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20726         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20727
20728         * tests/test-array_oset.c: Include gl_xlist.h.
20729         * modules/array-oset-tests (Depends-on): Add xlist.
20730
20731         Reported by José E. Marchesi <jemarch@gnu.org>.
20732
20733 2009-12-13  Bruno Haible  <bruno@clisp.org>
20734
20735         Move the malloc checking from module 'oset' to new module 'xoset'.
20736         * modules/xoset: New file.
20737         * lib/gl_xoset.h: New file.
20738         * lib/gl_xoset.c: New file.
20739         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20740         declarations.
20741         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20742         (struct gl_oset_implementation): Rename and change methods accordingly.
20743         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20744         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20745         'int'. Mark as __warn_unused_result__.
20746         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20747         gl_oset_create_empty.
20748         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20749         'int'.
20750         * lib/gl_array_oset.c: Don't include xalloc.h.
20751         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20752         malloc, not xmalloc.
20753         (grow): Change return type to 'int'. Don't call xalloc_die.
20754         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20755         to 'int'.
20756         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20757         'int'.
20758         (gl_array_oset_implementation): Update.
20759         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20760         gl_tree_create_empty.
20761         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20762         'int'.
20763         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20764         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20765         xmalloc.
20766         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20767         not xmalloc.
20768         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20769         xmalloc.
20770         (gl_avltree_oset_implementation): Update.
20771         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20772         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20773         xmalloc.
20774         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20775         not xmalloc.
20776         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20777         xmalloc.
20778         (gl_rbtree_oset_implementation): Update.
20779         * modules/array-oset (Depends-on): Remove xalloc.
20780         * modules/avltree-oset (Depends-on): Likewise.
20781         * modules/rbtree-oset (Depends-on): Likewise.
20782         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20783         * tests/test-avltree_oset.c: Likewise.
20784         * tests/test-rbtree_oset.c: Likewise.
20785         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20786         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20787         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20788         * NEWS: Mention the change.
20789
20790 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20791
20792         maint.mk: allow a project to override release-prep commands
20793         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20794         commands into a new rule.
20795         (release-prep): New rule.
20796         (release-prep-hook): New overridable variable.
20797
20798 2009-12-13  Bruno Haible  <bruno@clisp.org>
20799
20800         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20801
20802 2009-12-13  Jim Meyering  <meyering@redhat.com>
20803
20804         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20805         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20806
20807 2009-12-12  Bruno Haible  <bruno@clisp.org>
20808
20809         duplocale: Tweak.
20810         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20811
20812 2009-12-12  Karl Berry  <karl@gnu.org>
20813
20814         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20815
20816 2009-12-12  Bruno Haible  <bruno@clisp.org>
20817
20818         * m4/po.m4: Undo incorrect untabification.
20819
20820 2009-12-12  Bruno Haible  <bruno@clisp.org>
20821
20822         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20823         * modules/c-strtod (Depends-on): Add locale.
20824         * modules/c-strtold (Depends-on): Likewise.
20825
20826 2009-12-12  Bruno Haible  <bruno@clisp.org>
20827
20828         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20829
20830 2009-12-11  Eric Blake  <ebb9@byu.net>
20831
20832         setenv: relax requirement in light of POSIX ruling
20833         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20834         not NULL.
20835         * tests/test-setenv.c (main): Relax test.
20836         * tests/test-unsetenv.c (main): Likewise.
20837         * doc/posix-functions/setenv.texi (setenv): Document this.
20838         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20839
20840 2009-12-11  Bruno Haible  <bruno@clisp.org>
20841
20842         New module 'fd-safer-flag'.
20843         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20844         * lib/dup-safer.c (dup_safer_flag): Remove function.
20845         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20846         * lib/fd-safer.c (fd_safer_flag): Remove function.
20847         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20848         * modules/cloexec (configure.ac): Drop indicator macro.
20849         * modules/fd-safer-flag: New file.
20850         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20851         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20852         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20853
20854 2009-12-11  Bruno Haible  <bruno@clisp.org>
20855
20856         Tests for module 'nl_langinfo'.
20857         * modules/nl_langinfo-tests: New file.
20858         * tests/test-nl_langinfo.sh: New file.
20859         * tests/test-nl_langinfo.c: New file.
20860
20861         New module 'nl_langinfo'.
20862         * lib/nl_langinfo.c: New file.
20863         * m4/nl_langinfo.m4: New file.
20864         * modules/nl_langinfo: New file.
20865         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20866
20867 2009-12-11  Bruno Haible  <bruno@clisp.org>
20868
20869         Tests for module 'langinfo'.
20870         * modules/langinfo-tests: New file.
20871         * tests/test-langinfo.c: New file.
20872
20873         New module 'langinfo'.
20874         * lib/langinfo.in.h: New file.
20875         * m4/langinfo_h.m4: New file.
20876         * modules/langinfo: New file.
20877         * doc/posix-headers/langinfo.texi: Mention the new module.
20878
20879 2009-12-11  Bruno Haible  <bruno@clisp.org>
20880
20881         * lib/config.charset: Untabify.
20882
20883 2009-12-11  Bruno Haible  <bruno@clisp.org>
20884
20885         * modules/unistd-safer (configure.ac): Drop indicator macro.
20886
20887 2009-12-11  Bruno Haible  <bruno@clisp.org>
20888
20889         Move pipe2-safer code to its own file.
20890         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20891         * lib/pipe-safer.c (pipe2_safer): Remove function.
20892         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20893         (Makefile.am): Add it to lib_SOURCES.
20894
20895 2009-12-10  Bruno Haible  <bruno@clisp.org>
20896
20897         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20898
20899 2009-12-10  Bruno Haible  <bruno@clisp.org>
20900
20901         Declare which arguments expect non-NULL values, for GCC and clang.
20902         * build-aux/arg-nonnull.h: New file.
20903         * modules/arg-nonnull: New file.
20904         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20905         (inet_ntop, inet_pton): Use it.
20906         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20907         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20908         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20909         (open, openat): Use it.
20910         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20911         (fnmatch): Use it.
20912         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20913         (getopt, getopt_long, getopt_long_only): Use it.
20914         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20915         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20916         Use it.
20917         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20918         (iconv_open): Use it.
20919         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20920         (strtoimax, strtoumax): Use it.
20921         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20922         (duplocale): Use it.
20923         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20924         (frexp, frexpl): Use it.
20925         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20926         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20927         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20928         (tsearch, tfind, tdelete, twalk): Use it.
20929         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20930         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20931         sigpending): Use it.
20932         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20933         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20934         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20935         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20936         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20937         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20938         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20939         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20940         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20941         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20942         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20943         Use it.
20944         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20945         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20946         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20947         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20948         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20949         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20950         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20951         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20952         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20953         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20954         strtoull, unsetenv): Use it.
20955         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20956         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20957         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20958         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20959         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20960         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20961         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20962         (strcasecmp, strncasecmp): Use it.
20963         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20964         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20965         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20966         rpl_setsockopt): Use it.
20967         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20968         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20969         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20970         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20971         (gettimeofday): Use it.
20972         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20973         (times): Use it.
20974         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20975         (uname): Use it.
20976         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20977         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20978         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20979         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20980         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20981         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20982         unlinkat, write): Use it.
20983         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20984         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20985         * lib/argv-iter.h: Include arg-nonnull.h.
20986         (_ATTRIBUTE_NONNULL_): Remove macro.
20987         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20988         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20989         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20990         optimization.
20991         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20992         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20993         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20994         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20995         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20996         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20997         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20998         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20999         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21000         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21001         * modules/dirent (Depends-on): Add arg-nonnull.
21002         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21003         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21004         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21005         * modules/fnmatch (Depends-on): Add arg-nonnull.
21006         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21007         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21008         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21009         * modules/glob (Depends-on): Add arg-nonnull.
21010         (Makefile.am): Insert arg-nonnull.h into glob.h.
21011         * modules/iconv_open (Depends-on): Add arg-nonnull.
21012         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21013         * modules/inttypes (Depends-on): Add arg-nonnull.
21014         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21015         * modules/locale (Depends-on): Add arg-nonnull.
21016         (Makefile.am): Insert arg-nonnull.h into locale.h.
21017         * modules/math (Depends-on): Add arg-nonnull.
21018         (Makefile.am): Insert arg-nonnull.h into math.h.
21019         * modules/netdb (Depends-on): Add arg-nonnull.
21020         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21021         * modules/search (Depends-on): Add arg-nonnull.
21022         (Makefile.am): Insert arg-nonnull.h into search.h.
21023         * modules/signal (Depends-on): Add arg-nonnull.
21024         (Makefile.am): Insert arg-nonnull.h into signal.h.
21025         * modules/spawn (Depends-on): Add arg-nonnull.
21026         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21027         * modules/stdio (Depends-on): Add arg-nonnull.
21028         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21029         * modules/stdlib (Depends-on): Add arg-nonnull.
21030         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21031         * modules/string (Depends-on): Add arg-nonnull.
21032         (Makefile.am): Insert arg-nonnull.h into string.h.
21033         * modules/strings (Depends-on): Add arg-nonnull.
21034         (Makefile.am): Insert arg-nonnull.h into strings.h.
21035         * modules/sys_socket (Depends-on): Add arg-nonnull.
21036         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21037         * modules/sys_stat (Depends-on): Add arg-nonnull.
21038         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21039         * modules/sys_time (Depends-on): Add arg-nonnull.
21040         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21041         * modules/sys_times (Depends-on): Add arg-nonnull.
21042         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21043         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21044         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21045         * modules/time (Depends-on): Add arg-nonnull.
21046         (Makefile.am): Insert arg-nonnull.h into time.h.
21047         * modules/unistd (Depends-on): Add arg-nonnull.
21048         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21049         * modules/wchar (Depends-on): Add arg-nonnull.
21050         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21051         * modules/argv-iter (Depends-on): Add arg-nonnull.
21052         * tests/test-canonicalize.c (null_ptr): New function.
21053         (main): Use it.
21054         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21055         (main): Use it.
21056         * tests/test-memmem.c (null_ptr): New function.
21057         (main): Use it.
21058         Reported by Jim Meyering.
21059
21060 2009-12-10  Bruno Haible  <bruno@clisp.org>
21061
21062         Use spaces for indentation, not tabs.
21063         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21064         * m4/*.m4: Untabify.
21065         * build-aux/*.h: Untabify.
21066         * tests/**/*.[hc]: Untabify.
21067         * README: New section "Indent with spaces, not TABs", based on
21068         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21069         * NEWS: Mention the change.
21070
21071 2009-12-10  Bruno Haible  <bruno@clisp.org>
21072
21073         pty test: Fix link error.
21074         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21075         test_pty_LDADD.
21076
21077 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21078
21079         * modules/pty: New file.
21080         * modules/pty-tests: New file.
21081         * m4/pty.m4: New file.
21082         * tests/test-pty.c: New file.
21083         * doc/glibc-headers/pty.texi: Modified.
21084         * doc/glibc-functions/forkpty.texi: Modified.
21085         * doc/glibc-functions/openpty.texi: Modified.
21086
21087 2009-12-10  Bruno Haible  <bruno@clisp.org>
21088
21089         Avoid syntax error in C++ mode.
21090         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21091
21092 2009-12-10  Bruno Haible  <bruno@clisp.org>
21093
21094         Use sed with option -e.
21095         * gnulib-tool (func_version, func_emit_copyright_notice,
21096         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21097         option -e to sed.
21098         * modules/link-warning (Makefile.am): Likewise.
21099
21100 2009-12-10  Jim Meyering  <meyering@redhat.com>
21101
21102         mgetgroups: do not write bytes beyond end of malloc'd buffer
21103         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21104         username, we call getgroups with a one-element-shorter buffer,
21105         but still told it the length was original, max_n_groups.
21106
21107 2009-12-09  Eric Blake  <ebb9@byu.net>
21108
21109         cloexec: relax license
21110         * modules/cloexec (Maintainer): Add myself.
21111         (License): Use LGPL, not GPL.
21112
21113         link-warning: optimize generation
21114         * modules/link-warning (Makefile.am): Reduce process usage.
21115
21116 2009-12-09  Bruno Haible  <bruno@clisp.org>
21117
21118         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21119         workaround was added on 2009-11-17.
21120
21121 2009-12-09  Jim Meyering  <meyering@redhat.com>
21122             Bruno Haible  <bruno@clisp.org>
21123
21124         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21125         * modules/link-warning (Makefile.am): Make the comment-removing sed
21126         command more robust in the face of bootstrap-prepended comment lines.
21127
21128 2009-12-09  Bruno Haible  <bruno@clisp.org>
21129
21130         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21131         most one group.
21132
21133 2009-12-09  Simon Josefsson <simon@josefsson.org>
21134             Bruno Haible  <bruno@clisp.org>
21135
21136         * build-aux/link-warning.h: Add copyright notice.
21137         * modules/link-warning (Makefile.am): Generate link-warning.h from
21138         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21139         * NEWS: Mention change in link-warning module.
21140         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21141         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21142         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21143         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21144         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21145         * modules/math (Makefile.am): Add dependency to math.h.
21146         * modules/search (Makefile.am): Add dependency to search.h.
21147         * modules/signal (Makefile.am): Add dependency to signal.h.
21148         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21149         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21150         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21151         * modules/string (Makefile.am): Add dependency to string.h.
21152         * modules/strings (Makefile.am): Add dependency to strings.h.
21153         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21154         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21155         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21156         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21157         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21158         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21159         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21160         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21161         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21162
21163 2009-12-09  Bruno Haible  <bruno@clisp.org>
21164
21165         fchdir: Optimize away rpl_fstat when possible.
21166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21167         REPLACE_OPEN_DIRECTORY.
21168         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21169
21170 2009-12-09  Bruno Haible  <bruno@clisp.org>
21171
21172         * lib/fchdir.c: Update comment.
21173
21174 2009-12-09  Bruno Haible  <bruno@clisp.org>
21175
21176         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21177
21178 2009-12-08  Eric Blake  <ebb9@byu.net>
21179
21180         fchdir: avoid memory leak on re-registration.
21181         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21182
21183 2009-12-08  Jim Meyering  <meyering@redhat.com>
21184
21185         init.sh: avoid Solaris 10 /bin/sh portability problem
21186         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21187         sourced script:
21188           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21189           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21190           bar
21191         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21192         and two tests used that idiom.
21193         * tests/init.sh: Update suggested usage comments.
21194         (path_prepend_): New function, to be used in place
21195         of the --src-path=DIR option.
21196         (setup_): Move PATH-prepending code into path_prepend_.
21197         * tests/test-pread.sh: Adapt to new usage.
21198         * tests/test-xalloc-die.sh: Likewise.
21199
21200 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21201
21202         * doc/gnulib.texi (Glibc pty.h): Add.
21203         * doc/glibc-functions/forkpty.texi: Add.
21204         * doc/glibc-functions/openpty.texi: Add.
21205         Suggested by Bruno Haible.
21206
21207 2009-12-08  Eric Blake  <ebb9@byu.net>
21208
21209         fchdir: fix logic bugs
21210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21211         * tests/test-fchdir.c (main): Enhance test.
21212         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21213         is in use.
21214
21215         dup2: fix logic bugs
21216         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21217         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21218         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21219         exists.
21220         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21221
21222 2009-12-07  Eric Blake  <ebb9@byu.net>
21223
21224         unlink: fix m4 detection
21225         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21226
21227         unistd-safer: add unit test
21228         * modules/unistd-safer-tests: New file.
21229         * tests/test-dup-safer.c: Likewise.
21230         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21231         * tests/test-dup2.c (setmode): Likewise.
21232         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21233
21234         cloexec: preserve text vs. binary across dup_cloexec
21235         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21236         mode.
21237         * modules/dup2-tests (Depends-on): Add binary-io.
21238         * modules/cloexec-tests (Depends-on): Likewise.
21239         * tests/test-dup2.c (setmode, is_mode): New helpers.
21240         (main): Add tests that translation mode is preserved.
21241         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21242         Reported by Bruno Haible.
21243
21244         mgetgroups: reduce duplicate listings
21245         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21246         resulting array.
21247         * tests/test-chown.h (test_chown): Simplify client.
21248         * tests/test-lchown.h (test_lchown): Likewise.
21249
21250 2009-12-06  Bruno Haible  <bruno@clisp.org>
21251
21252         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21253         value.
21254
21255 2009-12-06  Bruno Haible  <bruno@clisp.org>
21256
21257         * lib/progname.c: Include stdio.h, stdlib.h.
21258         (set_program_name): Reject a NULL argument.
21259
21260 2009-12-05  Eric Blake  <ebb9@byu.net>
21261
21262         pipe2-safer: new module
21263         * modules/pipe2-safer: New file.
21264         * lib/unistd-safer.h (pipe2_safer): New prototype.
21265         * lib/unistd--.h (pipe2): New wrapper.
21266         * lib/pipe-safer.c (pipe2_safer): New function.
21267         * modules/pipe (Depends-on): Add pipe2-safer.
21268         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21269
21270         stdlib-safer: preserve cloexec flag for mkostemp[s]
21271         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21272         fd_safer_flag.
21273
21274         unistd-safer: allow preservation of cloexec status via flag
21275         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21276         prototypes.
21277         * lib/dup-safer.c (dup_safer_flag): New function.
21278         * lib/fd-safer.c (fd_safer_flag): Likewise.
21279         * modules/cloexec (configure.ac): Set witness.
21280
21281         test-dup2: enhance test
21282         * modules/dup2-tests (Depends-on): Add cloexec.
21283         * tests/test-dup2.c (main): Enhance test.
21284
21285         cloexec: add dup_cloexec
21286         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21287         header and comments.
21288         * lib/cloexec.c (set_cloexec_flag): Add comments.
21289         (dup_cloexec): New function, with mingw implementation borrowed
21290         from...
21291         * lib/w32spawn.h (dup_noinherit): ...here.
21292         * modules/execute (Depends-on): Add cloexec.
21293         * modules/pipe (Depends-on): Likewise.
21294         * modules/cloexec (Depends-on): Add dup2.
21295         * modules/cloexec-tests (Files): New file.
21296         * tests/test-cloexec.c: Likewise.
21297
21298         test-xalloc-die: fix test for mingw
21299         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21300         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21301         directory and .exe suffix off argv[0] output.
21302
21303         test-fseeko: fix test for mingw
21304         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21305         than undefining fseek, so test will pass on mingw.
21306
21307 2009-12-05  Bruno Haible  <bruno@clisp.org>
21308
21309         * lib/progname.h (set_program_name): Clarify specification.
21310         * lib/progname.c (set_program_name): Likewise.
21311         Reported by Jim Meyering.
21312
21313 2009-12-05  Jim Meyering  <meyering@redhat.com>
21314
21315         maint.mk: backslash-escape parens in default regexp
21316         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21317         backslash-escape the literal parentheses.
21318
21319         maint.mk: news-date-check: use grep -E
21320         * top/maint.mk (today): Define a Make variable, not a...
21321         (news-date-check): ...shell variable.
21322         (news-date-regexp): Use the Make variable.
21323         Use grep's -E option.  Change the failing diagnostic to mention
21324         the variable, $(news-date-regexp).
21325
21326 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21327
21328         maintainer-makefile: allow customization of NEWS entry format
21329         * top/maint.mk (news-date-regexp): New overridable variable.
21330         (news-date-check): Use it.
21331
21332 2009-12-04  Eric Blake  <ebb9@byu.net>
21333
21334         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21335         * lib/mgetgroups.h (xgetgroups): New prototype.
21336         * lib/mgetgroups.c (xgetgroups): New wrapper.
21337         (mgetgroups): Handle ENOSYS.
21338         * modules/mgetgroups (Depends-on): Add realloc.
21339         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21340
21341         mgetgroups: avoid argument promotion issues with -1
21342         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21343         for invalid gid_t.
21344         * tests/test-chown.h (getegid, test_chown): Likewise.
21345         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21346
21347 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21348
21349         exclude: Fix header file problems.
21350         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21351
21352 2009-12-01  Jim Meyering  <meyering@redhat.com>
21353
21354         fts: fts_open: do not let an empty string cause immediate failure
21355         This is required in support of GNU rm, for which the command
21356         "rm A '' B" must process and remove both A and B, in spite of
21357         the empty string argument.
21358         * lib/fts.c (fts_open): Do not let the presence of an empty string
21359         cause fts_open to fail immediately.  Most fts-using tools must be
21360         able to process all arguments, in order, and can be expected to
21361         diagnose such arguments themselves.
21362
21363 2009-11-30  Eric Blake  <ebb9@byu.net>
21364
21365         utimens: fix compilation error
21366         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21367         Declare variable at right scope.
21368
21369 2009-11-29  Jim Meyering  <meyering@redhat.com>
21370
21371         bootstrap: handle perl-5.11's changed --version output
21372         * build-aux/bootstrap (get_version): Handle perl separately,
21373         since perl-5.11's --version output is different.
21374
21375 2009-11-28  Jim Meyering  <meyering@redhat.com>
21376
21377         userspec: depend on the inttostr module, too
21378         * modules/userspec (Depends-on): Add inttostr.
21379
21380         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21381         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21382         number of MAXUID when it evaluates to (uid_t) -1.
21383         Likewise for group ID.  Reported by Matt McCutchen in
21384         <http://savannah.gnu.org/bugs/?28113>
21385
21386         userspec: reformat to use spaces, not TABs
21387         * lib/userspec.c: Expand TABs to spaces.
21388         Add Emacs' "indent-tabs-mode: nil" hint.
21389
21390 2009-11-27  Eric Blake  <ebb9@byu.net>
21391
21392         getopt-gnu: flush out another BSD bug
21393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21394         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21395         flush out BSD bug.
21396         * tests/test-getopt.h (test_getopt): End lists with NULL.
21397         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21398         (test_getopt_long_posix): Enhance test.
21399         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21400         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21401         getopt-gnu.
21402         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21403         Likewise.
21404
21405 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21406
21407         * modules/idpriv-droptemp-tests (Notice): Fix text.
21408
21409 2009-11-27  Jim Meyering  <meyering@redhat.com>
21410
21411         test-xalloc-die: avoid spurious failure due to libtool argv difference
21412         In a libtool-enabled project, this test would fail due to a difference
21413         in the emitted program name, e.g.,
21414         -test-xalloc-die: memory exhausted
21415         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21416         Use program to avoid that.
21417         * modules/xalloc-die-tests (Depends-on): Add progname.
21418         * tests/test-xalloc-die.c: Include progname.h".
21419         (program_name): Remove decl.
21420         (main): Call set_program_name.
21421         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21422
21423 2009-11-26  Richard Jones  <rjones@redhat.com>
21424
21425         w32sock: leave win32 error in place.
21426         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21427
21428 2009-11-26  Eric Blake  <ebb9@byu.net>
21429
21430         init.sh: suggest to use skip_ and fail_ functions in comments
21431         * tests/init.sh: Add a sentence.
21432
21433 2009-11-25  Bruno Haible  <bruno@clisp.org>
21434
21435         init.sh: add documentation in comments
21436         * tests/init.sh: Add some developer and user documentation.
21437
21438 2009-11-26  Jim Meyering  <meyering@redhat.com>
21439
21440         init.sh: accommodate even those who specify bogus srcdir manually
21441         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21442         configure-time tests to be sanitized, so that there is no need to
21443         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21444         (with no double quotes) suffices.  However, since tests may be
21445         invoked manually, and since you may explicitly set srcdir to the
21446         name of a directory containing spaces, do quote its uses here.
21447         * tests/test-pread.sh: Likewise.
21448         Suggested by Bruno Haible.
21449
21450         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21451         * tests/test-pread.sh: Write no data into the pipe, because
21452         test-pread actually reads none.  This avoids a diagnostic,
21453         "bash: echo: write error: Broken pipe", that arises in the unusual
21454         event something is ignoring SIGPIPE, and might be interpreted
21455         as some sort of failure.  Reported by Bruno Haible.
21456
21457 2009-11-25  Jim Meyering  <meyering@redhat.com>
21458
21459         test-pread: cover failure with ESPIPE and EINVAL
21460         * tests/test-pread.c (main): Test for failure, too.
21461         * tests/test-pread.sh: Invoke with stdin on a pipe.
21462         Suggested by Eric Blake.
21463
21464         pread: improvement and fix
21465         * modules/pread (Depends-on): Depend on lseek, for portability to
21466         e.g., mingw.  Suggested by Eric Blake.
21467         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21468
21469         unistd.in.h: correct declaration of pread
21470         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21471         Reported by Richard W.M. Jones.
21472
21473         test-pread.sh: distribute the test script
21474         * modules/pread-tests (Files): Include test-pread.sh.
21475
21476         test-pread.sh: clean up
21477         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21478         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21479         That is unnecessary, since it's always ".".
21480         Suggestion from Eric Blake.
21481
21482         test-pread.sh: make executable
21483         * tests/test-pread.sh: Set executable bit.
21484         Reported by Eric Blake.
21485
21486         correct typo in test-pread.sh
21487         * tests/test-pread.sh: Add #! line.
21488
21489         test pread
21490         * tests/test-pread.c: New file.
21491         * tests/test-pread.sh: Likewise.
21492         * modules/pread-tests: Likewise.
21493
21494         pread: new module
21495         * modules/pread: New file.
21496         * lib/unistd.in.h (pread): Define/declare.
21497         * lib/pread.c (pread): New file.
21498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21499         * modules/unistd (Makefile.am): Substitute witnesses.
21500         * doc/posix-functions/pread.texi (pread): Update.
21501         * MODULES.html.sh: Add pread.
21502
21503 2009-11-25  Jim Meyering  <meyering@redhat.com>
21504
21505         tests/init.sh: new file to be used via most *.sh tests
21506         * tests/init.sh: New file.
21507
21508 2009-11-25  Eric Blake  <ebb9@byu.net>
21509
21510         utimens: work around older Linux failure with symlinks
21511         * lib/utimens.c (lutimensat_works_really): New variable.
21512         (fdutimens, lutimens): Use it to manage kernels that support
21513         nanosecond times on files, but not on symlinks.
21514         Reported by OndÅ™ej Vašík.
21515
21516         utimes: fix configure grammar
21517         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21518
21519 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21520
21521         regex: Fix fastmap for multibyte character ranges.
21522         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21523         characters when a multibyte character range is included.
21524
21525 2009-11-22  Andy Wingo  <wingo@pobox.com>
21526
21527         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21528         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21529
21530 2009-11-24  Bruno Haible  <bruno@clisp.org>
21531
21532         doc: Most *_l functions exist in MacOS X 10.5.
21533         * doc/posix-functions/duplocale.texi: Update platforms list.
21534         * doc/posix-functions/freelocale.texi: Likewise.
21535         * doc/posix-functions/newlocale.texi: Likewise.
21536         * doc/posix-functions/uselocale.texi: Likewise.
21537         * doc/posix-functions/isalnum_l.texi: Likewise.
21538         * doc/posix-functions/isalpha_l.texi: Likewise.
21539         * doc/posix-functions/isblank_l.texi: Likewise.
21540         * doc/posix-functions/iscntrl_l.texi: Likewise.
21541         * doc/posix-functions/isdigit_l.texi: Likewise.
21542         * doc/posix-functions/isgraph_l.texi: Likewise.
21543         * doc/posix-functions/islower_l.texi: Likewise.
21544         * doc/posix-functions/isprint_l.texi: Likewise.
21545         * doc/posix-functions/ispunct_l.texi: Likewise.
21546         * doc/posix-functions/isspace_l.texi: Likewise.
21547         * doc/posix-functions/isupper_l.texi: Likewise.
21548         * doc/posix-functions/iswalnum_l.texi: Likewise.
21549         * doc/posix-functions/iswalpha_l.texi: Likewise.
21550         * doc/posix-functions/iswblank_l.texi: Likewise.
21551         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21552         * doc/posix-functions/iswctype_l.texi: Likewise.
21553         * doc/posix-functions/iswdigit_l.texi: Likewise.
21554         * doc/posix-functions/iswgraph_l.texi: Likewise.
21555         * doc/posix-functions/iswlower_l.texi: Likewise.
21556         * doc/posix-functions/iswprint_l.texi: Likewise.
21557         * doc/posix-functions/iswpunct_l.texi: Likewise.
21558         * doc/posix-functions/iswspace_l.texi: Likewise.
21559         * doc/posix-functions/iswupper_l.texi: Likewise.
21560         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21561         * doc/posix-functions/isxdigit_l.texi: Likewise.
21562         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21563         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21564         * doc/posix-functions/strcoll_l.texi: Likewise.
21565         * doc/posix-functions/strfmon_l.texi: Likewise.
21566         * doc/posix-functions/strftime_l.texi: Likewise.
21567         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21568         * doc/posix-functions/strxfrm_l.texi: Likewise.
21569         * doc/posix-functions/tolower_l.texi: Likewise.
21570         * doc/posix-functions/toupper_l.texi: Likewise.
21571         * doc/posix-functions/towctrans_l.texi: Likewise.
21572         * doc/posix-functions/towlower_l.texi: Likewise.
21573         * doc/posix-functions/towupper_l.texi: Likewise.
21574         * doc/posix-functions/wcscoll_l.texi: Likewise.
21575         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21576         * doc/posix-functions/wctrans_l.texi: Likewise.
21577         * doc/posix-functions/wctype_l.texi: Likewise.
21578         * doc/glibc-functions/strptime_l.texi: Likewise.
21579         * doc/glibc-functions/strtod_l.texi: Likewise.
21580         * doc/glibc-functions/strtof_l.texi: Likewise.
21581         * doc/glibc-functions/strtol_l.texi: Likewise.
21582         * doc/glibc-functions/strtold_l.texi: Likewise.
21583         * doc/glibc-functions/strtoll_l.texi: Likewise.
21584         * doc/glibc-functions/strtoul_l.texi: Likewise.
21585         * doc/glibc-functions/strtoull_l.texi: Likewise.
21586         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21587         * doc/glibc-functions/wcstod_l.texi: Likewise.
21588         * doc/glibc-functions/wcstof_l.texi: Likewise.
21589         * doc/glibc-functions/wcstol_l.texi: Likewise.
21590         * doc/glibc-functions/wcstold_l.texi: Likewise.
21591         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21592         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21593         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21594
21595 2009-11-24  Bruno Haible  <bruno@clisp.org>
21596
21597         duplocale: Fix logic bug.
21598         * lib/duplocale.c: Don't include <langinfo.h>.
21599         (_NL_LOCALE_NAME): Remove macro.
21600         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21601         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21602
21603 2009-11-23  Jim Meyering  <meyering@redhat.com>
21604
21605         test-update-copyright: don't hard-code /usr/bin/perl
21606         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21607         perl to print the current year.  Gilles Espinasse reported that
21608         the replaced use of perl was hard-coded as /usr/bin/perl.
21609
21610 2009-11-23  Bruno Haible  <bruno@clisp.org>
21611
21612         duplocale: Add support for glibc 2.3.x.
21613         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21614
21615 2009-11-22  Bruno Haible  <bruno@clisp.org>
21616
21617         vasnprintf: Tiny optimization.
21618         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21619         MacOS X.
21620
21621 2009-11-22  Bruno Haible  <bruno@clisp.org>
21622
21623         Tests for module 'duplocale'.
21624         * modules/duplocale-tests: New file.
21625         * tests/test-duplocale.c: New file.
21626
21627         New module 'duplocale'.
21628         * m4/duplocale.m4: New file.
21629         * lib/locale.in.h (duplocale): New declaration.
21630         * lib/duplocale.c: New file.
21631         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21632         gl_LOCALE_H_DEFAULTS): New macros.
21633         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21634         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21635         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21636         REPLACE_DUPLOCALE.
21637         * modules/duplocale: New file.
21638         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21639
21640 2009-11-22  Bruno Haible  <bruno@clisp.org>
21641
21642         * modules/locale-tests (configure.ac): Test for newlocale function.
21643         * tests/test-locale.c: When the system has extended locale functions,
21644         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21645
21646         locale: Make locale_t available when possible.
21647         * lib/locale.in.h: Include <xlocale.h> when it exists.
21648         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21649         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21650         * modules/locale (Depends-on): Add extensions.
21651         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21652         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21653
21654 2009-11-22  Bruno Haible  <bruno@clisp.org>
21655
21656         Add comments.
21657         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21658         invocation.
21659         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21660         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21661         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21662
21663 2009-11-22  Bruno Haible  <bruno@clisp.org>
21664
21665         error: account for the possibility of freopen (stdout).
21666         * lib/error.c: Include <unistd.h>.
21667         (flush_stdout): New function, extracted from error and error_at_line.
21668         Determine stdout's fd dynamically.
21669         (error, error_at_line): Invoke flush_stdout.
21670         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21671         * modules/error (Depends-on): Add unistd.
21672
21673 2009-11-22  Bruno Haible  <bruno@clisp.org>
21674
21675         diffseq: Add comment.
21676         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21677
21678 2009-11-22  Jim Meyering  <meyering@redhat.com>
21679
21680         c-stack: avoid defining an unused static function
21681         * lib/c-stack.c (find_stack_direction): Do not define this function
21682         when it will not be used.
21683
21684         diffseq: avoid spurious gcc warnings
21685         * lib/diffseq.h (IF_LINT2): Define.
21686         (compareseq): Use it to initialize two members of "part".
21687         This avoids two used-uninitialized warnings.
21688
21689 2009-11-21  Jim Meyering  <meyering@redhat.com>
21690
21691         c-stack: avoid "ignoring return value of `write'" warning
21692         * lib/c-stack.c: Include "ignore-value.h".
21693         (die): Explicitly ignore each write return value.
21694         * modules/c-stack (Depends-on): Add ignore-value.
21695
21696 2009-11-21  Bruno Haible  <bruno@clisp.org>
21697
21698         diffseq: reduce scope of variable 'best'.
21699         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21700         variable, earlier used for two different purposes.
21701
21702 2009-11-21  Jim Meyering  <meyering@redhat.com>
21703
21704         diffseq: remove useless assignment to "best"
21705         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21706         assignment.  At that point "best" is already guaranteed to be zero.
21707
21708 2009-11-20  Eric Blake  <ebb9@byu.net>
21709
21710         build: mention ftp redirector in release announcements
21711         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21712         values that used to come from cfg.mk; mention FTP redirect URL.
21713         * build-aux/announce-gen: Mention the mirror list.
21714         Suggested by Karl Berry.
21715
21716         nanosleep: improve port to mingw
21717         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21719         LIB_NANOSLEEP, but only when needed.
21720         * modules/select (Link): Document LIBSOCKET.
21721         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21722         enough.
21723
21724         nanosleep: work around cygwin bug
21725         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21726         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21727         bug.
21728         (getnow): Delete, not needed.
21729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21730         LIB_CLOCK_GETTIME.
21731         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21732         clock-time, gettime.
21733         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21734         bug.
21735         * modules/nanosleep-tests: New test.
21736         * tests/test-nanosleep.c: New file.
21737
21738         sleep: work around cygwin bug
21739         * lib/sleep.c (rpl_sleep): Work around the bug.
21740         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21741         (gl_PREREQ_SLEEP): Delete unused macro.
21742         * modules/sleep (Depends-on): Add verify.
21743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21744         * modules/unistd (Makefile.am): Substitute witness.
21745         * lib/unistd.in.h (sleep): Update prototype.
21746         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21747         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21748         * modules/sleep-tests (Depends-on): Check for alarm.
21749
21750 2009-11-20  Jim Meyering  <meyering@redhat.com>
21751
21752         maint.mk: improve sc_prohibit_magic_number_exit
21753         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21754         so it does not match uses like System.exit(1).
21755         Add comments showing how to correct all offenders.
21756
21757 2009-11-19  Eric Blake  <ebb9@byu.net>
21758
21759         xalloc-die-tests: add missing library
21760         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21761
21762         test-xvasprintf: silence compiler warnings
21763         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21764         empty string from gcc.
21765
21766 2009-11-19  Jim Meyering  <meyering@redhat.com>
21767
21768         xfreopen: new module, from coreutils
21769         * modules/xfreopen: New module.
21770         * lib/xfreopen.c: New file.
21771         * lib/xfreopen.h: New file.
21772         * MODULES.html.sh (File stream based Input/Output"): Add it.
21773
21774 2009-11-19  Eric Blake  <ebb9@byu.net>
21775
21776         manywarnings: depend on warnings
21777         * modules/manywarnings (Depends-on): Add warnings.
21778
21779         build: avoid compiler warnings
21780         * lib/select.c (rpl_select): Delete unused variable.
21781         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21782
21783 2009-11-18  Eric Blake  <ebb9@byu.net>
21784
21785         tests: avoid false negative with --with-packager
21786         * tests/test-version-etc.sh: Discard packager information.
21787         * tests/test-argp-version-etc-1.sh: Likewise.
21788         Reported by Mike Frysinger.
21789
21790         utimens: fix regression on Solaris
21791         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21792         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21793         can only change fd timestamps via futimesat.  Instead, use an
21794         additional witness macro to avoid BSD bug.
21795         Reported by Jim Meyering.
21796
21797 2009-11-17  Eric Blake  <ebb9@byu.net>
21798
21799         usleep: use it to simplify tests
21800         * modules/stat-time-tests (Depends-on): Add usleep.
21801         (configure.ac): Drop usleep check.
21802         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21803         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21804         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21805         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21806         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21807         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21808         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21809         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21810         Likewise.
21811         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21812         * tests/test-lchown.h (nap): Likewise.
21813         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21814         * tests/test-stat-time.c (nap): Likewise.
21815         * tests/test-utimens-common.h (nap): Update comments.
21816
21817         usleep: new module
21818         * modules/usleep: New file.
21819         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21820         * lib/usleep.c (usleep): Likewise.
21821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21822         * modules/unistd (Makefile.am): Substitute witnesses.
21823         * lib/unistd.in.h (usleep): Add declaration.
21824         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21825         * MODULES.html.sh (Date and time): Likewise.
21826         * modules/usleep-tests (Depends-on): New test.
21827         * tests/test-usleep.c: New file.
21828
21829         chown: work around OpenBSD bug
21830         * lib/chown.c (rpl_chown): Work around the bug.
21831         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21832         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21833         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21834         * modules/chown (Depends-on): Add stdbool.
21835         * modules/lchown (Depends-on): Likewise.
21836         * doc/posix-functions/chown.texi (chown): Document the bug.
21837         * doc/posix-functions/lchown.texi (lchown): Likewise.
21838         * tests/test-lchown.h (test_chown): Relax test.
21839
21840         mkstemp: avoid conflict with C++ keyword template
21841         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21842         * lib/mkostemp.c (mkostemp): Likewise.
21843         * lib/mkostemps.c (mkostemps): Likewise.
21844         * lib/mkstemp.c (mkstemp): Likewise.
21845         * lib/mkstemps.c (mkstemps): Likewise.
21846
21847         xalloc-die-tests: optimize
21848         * tests/test-xalloc-die.sh: Reduce number of processes.
21849
21850 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21851
21852         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21853         patch from ludo@gnu.org (Ludovic Courtès).
21854
21855 2009-11-17  Jim Meyering  <meyering@redhat.com>
21856
21857         version-etc: use proper license string
21858         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21859         * modules/version-etc-fsf: Likewise.
21860
21861 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21862
21863         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21864         printed to stdout.  Deal with EOL differences.
21865
21866 2009-11-17  Eric Blake  <ebb9@byu.net>
21867
21868         unsetenv: work around Solaris bug
21869         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21870         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21871         Reported by Jim Meyering.
21872
21873         vasnprintf: avoid compiler warnings
21874         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21875         variables.
21876         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21877
21878 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21879
21880         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21881         settings since xalloc-die is no longer the self test,
21882         xalloc-die.sh is.
21883
21884 2009-11-17  Jim Meyering  <meyering@redhat.com>
21885
21886         test-xalloc-die.sh: make the code agree with the commit log
21887         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21888         at the end, just in case you happen to have a test-xalloc-die
21889         program in some other PATH directory.
21890
21891         test-xalloc-die.sh: fix a portability bug
21892         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21893         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21894         Otherwise, argv[0] (as often seen in diagnostics) would be too
21895         system-dependent, sometimes with, and sometimes without the leading "./".
21896
21897         version-etc-fsf: relax license to LGPLv3+
21898         * modules/version-etc-fsf (License): Relax license.
21899
21900 2009-11-16  Eric Blake  <ebb9@byu.net>
21901
21902         xalloc-die-tests: avoid printing null pointer
21903         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21904         shell script.
21905         * tests/test-xalloc-die.c (program_name): Declare.
21906         * tests/test-xalloc-die.sh (tmpfiles): New file.
21907
21908         setenv, unsetenv: work around various bugs
21909         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21910         (setenv) [HAVE_SETENV]: Work around bugs.
21911         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21912         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21913         for bugs.
21914         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21915         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21917         * modules/stdlib (Makefile.am): Update substitutions.
21918         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21919         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21920         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21921         * modules/setenv-tests: New test.
21922         * modules/unsetenv-tests: Likewise.
21923         * tests/test-setenv.c: New file.
21924         * tests/test-unsetenv.c: Likewise.
21925
21926 2009-11-16  Jim Meyering  <meyering@redhat.com>
21927
21928         version-etc: relax license to LGPLv3+
21929         * modules/version-etc (License): Relax license.
21930
21931         better AC_REQUIRE expanded-before-required-warning avoidance
21932         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21933         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21934         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21935         which is no longer needed.
21936
21937 2009-11-16  Eric Blake  <ebb9@byu.net>
21938
21939         test-freading: clean up temporary file
21940         * tests/test-freading.c (main): Remove file on success, and use
21941         ASSERT more liberally.
21942         Reported by Jim Meyering.
21943
21944 2009-11-16  Jim Meyering  <meyering@redhat.com>
21945
21946         avoid new AC_REQUIRE expanded-before-required warnings
21947         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21948         merely using it.
21949         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21950         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21951
21952 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21953
21954         * tests/test-xalloc-die.c: New file.
21955         * modules/xalloc-die-tests: New file.
21956         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21957         XFAIL_TESTS so it can be appended by modules.
21958
21959 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21960
21961         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21962         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21963
21964 2009-11-14  Eric Blake  <ebb9@byu.net>
21965
21966         fnmatch: avoid compiler warning
21967         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21968         to silence compiler warning about mismatch signedness in ?:.
21969         Reported by Robert Millan.
21970
21971         intprops: add double-inclusion guard
21972         * lib/intprops.h: Allow idempotent includes.
21973         Suggested by Bruce Korb.
21974
21975         openat: detect Solaris fchownat bug
21976         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21977         penalizing glibc chownat when only lchownat is broken.
21978         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21979         trailing slash bugs.
21980         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21981         * modules/openat-tests (Files): Include more files.
21982         (Depends-on): Add mgetgroups, sleep, stat-time.
21983         (configure.ac): Add additional checks.
21984         (Makefile.am): Build new test.
21985         * tests/test-fchownat.c: New file.
21986
21987         lchown: detect Solaris and FreeBSD bug
21988         * lib/lchown.c (rpl_lchown): Work around bug.
21989         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21991         * modules/unistd (Makefile.am): Populate it.
21992         * lib/unistd.in.h (lchown): Update declaration.
21993         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21994         * modules/lchown-tests: New file.
21995         * tests/test-lchown.h (test_lchown): Likewise.
21996         * tests/test-lchown.c (main): Likewise.
21997
21998         chown: detect Solaris and FreeBSD bug
21999         * lib/chown.c (rpl_chown): Work around bug.
22000         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22001         (gl_PREREQ_CHOWN): Delete.
22002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22003         * modules/unistd (Makefile.am): Populate it.
22004         * lib/unistd.in.h (chown): Update declaration.
22005         * lib/lchown.c (chown): Update client.
22006         * modules/lchown (Depends-on): Add lstat.
22007         * doc/posix-functions/chown.texi (chown): Document the bug.
22008         * doc/posix-functions/getgroups.texi (getgroups): Document
22009         getgroups pitfall.
22010         * modules/chown-tests: New file.
22011         * tests/test-chown.h (test_chown): Likewise.
22012         * tests/test-chown.c (main): Likewise.
22013
22014 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22015
22016         gnulib-tool: correctly detect absence of m4 directories
22017         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22018
22019 2009-11-14  Jim Meyering  <meyering@redhat.com>
22020
22021         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22022         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22023
22024 2009-11-14  John W. Eaton  <jwe@gnu.org>
22025
22026         strftime.h: wrap funtion declaration in extern "C" block
22027         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22028
22029 2009-11-13  Eric Blake  <ebb9@byu.net>
22030
22031         getgroups: avoid compiler warning
22032         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22033
22034         getgroups: work around FreeBSD bug
22035         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22036         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22037         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22038         * tests/test-getgroups.c (main): Fix buffer overrun.
22039
22040         getgroups: avoid compilation failure
22041         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22042         * modules/getgroups (Depends-on): Add stdint.
22043
22044 2009-11-13  Jim Meyering  <meyering@redhat.com>
22045
22046         test-getgroups: avoid compilation failure
22047         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22048
22049 2009-11-13  Eric Blake  <ebb9@byu.net>
22050
22051         mgetgroups: new module, taken from coreutils
22052         * modules/mgetgroups: New file.
22053         * lib/mgetgroups.h: Likewise.
22054         * lib/mgetgroups.c (mgetgroups): Likewise.
22055         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22056         * MODULES.html.sh (Users and groups): Mention it.
22057
22058         getgroups: don't expose GETGROUPS_T to user
22059         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22060         an element at a time if GETGROUPS_T is wrong size.
22061         * lib/getugroups.h (getugroups): Change signature.
22062         * lib/unistd.in.h (getgroups): Likewise.
22063         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22064         signature needs fixing.
22065         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22066         AC_TYPE_GETGROUPS.
22067         * modules/group-member (Depends-on): Add getgroups.
22068         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22069         (group_member): Rely on getgroups replacement.
22070         * lib/getugroups.c (getugroups): Use gid_t.
22071         * tests/test-getgroups.c (main): Likewise.
22072         * NEWS: Mention the signature change.
22073         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22074         problem with signature.
22075         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22076         GETGROUPS_T is still useful for setgroups.
22077
22078         getgroups, getugroups: provide stubs for mingw
22079         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22080         * lib/getugroups.c (getugroups): Likewise.
22081         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22082         function.  Modernize replacement scheme.
22083         (gl_PREREQ_GETGROUPS): Delete.
22084         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22085         * modules/getgroups (configure.ac): Declare witness.
22086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22087         * modules/unistd (Depends-on): Substitute witness.
22088         * lib/unistd.in.h (getgroups): Declare replacement.
22089
22090         getgroups: avoid calling exit
22091         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22092         drop xalloc.
22093         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22094         dependencies.
22095         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22096         exiting, in the rare case of malloc failure.
22097
22098         getgroups: fix logic error
22099         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22100         has more than 20 groups.
22101         * modules/getgroups-tests: New test.
22102         * tests/test-getgroups.c: New file.
22103
22104 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22105
22106         * tests/test-base64.c: Improve.
22107
22108 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22109
22110         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22111         Blake <ebb9@byu.net>.
22112
22113 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22114
22115         * tests/test-xvasprintf.c: Add %s%s related checks.
22116
22117 2009-11-12  Eric Blake  <ebb9@byu.net>
22118
22119         version-etc: match standards.texi style
22120         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22121         and use <> only for URLs.
22122
22123 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22124
22125         fts: do not fail on a submount during traversal
22126         * lib/fts.c (fts_build): Read the stat info again after opening
22127         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22128         Original report at http://bugzilla.redhat.com/501848.
22129
22130 2009-11-12  Jim Meyering  <meyering@redhat.com>
22131
22132         bootstrap: sync from coreutils
22133         * build-aux/bootstrap (bootstrap_epilogue): New function.
22134         Use git_modules_config in one more place.  This make bootstrap's
22135         --gnulib-srcdir option more useful for testing.
22136
22137         bootstrap: generalize autoheader check
22138         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22139         AC_CONFIG_HEADERS.
22140
22141 2009-11-11  Eric Blake  <ebb9@byu.net>
22142
22143         mkfifoat: use new modules for Solaris and BSD bugs
22144         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22145         * lib/mkfifoat.c (mknodat): Split...
22146         * lib/mknodat.c (mknodat): ...into new file.
22147         * modules/mkfifoat (Files): Ship new file.
22148         (Depends-on): Add mkfifo, mknod.
22149         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22150         (Depends-on): Add symlink.
22151         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22152         redundant with test_mkfifo.h.
22153         (do_mkfifoat, do_mknodat): New helpers.
22154
22155         mknod: new module
22156         * modules/mknod: New file.
22157         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22158         * lib/mknod.c (mknod): Likewise.
22159         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22160         defaults.
22161         * modules/sys_stat (Makefile.am): Substitute them.
22162         * lib/sys_stat.in.h (mknod): Declare replacement.
22163         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22164         Document it.
22165         * doc/posix-functions/mknod.texi (mknod): Likewise.
22166         * modules/mknod-tests: New test.
22167         * tests/test-mknod.c: Likewise.
22168
22169         mkfifo: new module
22170         * modules/mkfifo: New file.
22171         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22172         * lib/mkfifo.c (mkfifo): Likewise.
22173         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22174         defaults.
22175         * modules/sys_stat (Makefile.am): Substitute them.
22176         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22177         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22178         Document it.
22179         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22180         * modules/mkfifo-tests: New test.
22181         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22182         from test-mkfifoat.c.
22183         * tests/test-mkfifo.c: New file.
22184
22185         readlink: detect FreeBSD bug
22186         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22187         slash on symlink.
22188         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22189         * tests/test-readlink.h (test_readlink): Enhance test.
22190
22191         symlink: detect FreeBSD bug
22192         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22193         slash on symlink.
22194         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22195         * tests/test-symlink.h (test_symlink): Enhance test.
22196
22197 2009-11-10  Eric Blake  <ebb9@byu.net>
22198
22199         link: detect FreeBSD bug
22200         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22201         symlink.
22202         * doc/posix-functions/link.texi (link): Document the bug.
22203         * tests/test-link.h (test_link): Enhance test.
22204         * tests/test-linkat.c (main): Update caller.
22205
22206         unlink, remove: detect FreeBSD bug
22207         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22208         slash on symlink.
22209         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22210         * doc/posix-functions/remove.texi (remove): Likewise.
22211         * tests/test-unlink.h (test_unlink): Enhance test.
22212         * tests/test-remove.c (main): Likewise.
22213
22214 2009-11-09  Eric Blake  <ebb9@byu.net>
22215
22216         rename: detect FreeBSD bug
22217         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22218         slash on symlink.
22219         * modules/renameat-tests (Depends-on): Add filenamecat.
22220         * tests/test-rename.h (test_rename): Allow one more errno.
22221         * tests/test-renameat.c (main): Likewise.
22222         * doc/posix-functions/rename.texi (rename): Document the bug.
22223
22224         open: detect FreeBSD bug
22225         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22226         symlink.
22227         * doc/posix-functions/open.texi (open): Document the bug.
22228         * doc/posix-functions/utimes.texi (utimes): Likewise.
22229         * tests/test-open.h (test_open): Add parameters, and test symlink
22230         handling.
22231         * tests/test-open.c (main): Adjust caller.
22232         * tests/test-fcntl-safer.c (main): Likewise.
22233         * modules/open-tests (Depends-on): Add stdbool, symlink.
22234         * modules/fcntl-safer-tests (Depends-on): Likewise.
22235         * tests/test-openat.c (main): Add test-open tests.
22236
22237         stat: detect FreeBSD bug
22238         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22239         symlink.
22240         * doc/posix-functions/stat.texi (stat): Document the bug.
22241         * tests/test-stat.h (test_stat_func): Add argument.
22242         * tests/test-stat.c (main): Adjust caller.
22243         * tests/test-fstatat.c (main): Likewise.
22244         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22245         Reported by Jim Meyering.
22246
22247 2009-11-09  James Youngman  <jay@gnu.org>
22248
22249         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22250         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22251
22252 2009-11-08  Jim Meyering  <meyering@redhat.com>
22253
22254         utimens: remove invalid futimesat call
22255         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22256         It used the file descriptor of the target file as the DIR_FD
22257         parameter and NULL as the file name.  That caused failure with
22258         errno == EFAULT on FreeBSD-8.0-rc2
22259
22260 2009-11-07  Eric Blake  <ebb9@byu.net>
22261
22262         fflush, freadseek: use fseeko, not fseek
22263         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22264         (clear_ungetc_buffer): Avoid potential problems on large files.
22265         * lib/freadseek.c (freadseek): Likewise.
22266         * modules/freadseek (Depends-on): Add fseeko.
22267         * modules/fseek (configure.ac): Set a witness.
22268         * tests/test-fflush.c (main): Use fseeko.
22269         * tests/test-fpurge.c (fseek): Disable link warning.
22270         * tests/test-freadable.c (fseek): Likewise.
22271         * tests/test-freading.c (fseek): Likewise.
22272         * tests/test-fseeko.c (fseek): Likewise.
22273         * tests/test-ftell.c (fseek): Likewise.
22274         * tests/test-ftello.c (fseek): Likewise.
22275         * tests/test-fwritable.c (fseek): Likewise.
22276         * tests/test-fwriting.c (fseek): Likewise.
22277
22278 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22279
22280         * modules/memchr (Depends-on): Drop getpagesize dependency.
22281
22282 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22283
22284         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22285         Reported by Ludovic Courtès.
22286         * build-aux/pmccabe2html: Improve example usage.
22287         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22288
22289 2009-11-06  Jim Meyering  <meyering@redhat.com>
22290
22291         do-release-commit-and-tag: New module.
22292         Automate the release-commit and tag process.
22293         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22294         * modules/do-release-commit-and-tag: New file.
22295         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22296
22297 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22298
22299         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22300         because test-select.c uses inet_pton.
22301
22302 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22303
22304         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22305         GETADDRINFO_LIB.  Bump serial number.
22306         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22307         Suggested by Eric Blake <ebb9@byu.net>.
22308
22309 2009-11-05  Eric Blake  <ebb9@byu.net>
22310
22311         strtod: detect darwin bug
22312         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22313         Reported by Leo Davis.
22314
22315         freopen-safer: new module
22316         * modules/freopen-safer: New module.
22317         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22318         * lib/freopen-safer.c (freopen_safer): New file.
22319         * lib/stdio-safer.h (freopen_safer): New declaration.
22320         * lib/stdio--.h (freopen): New override.
22321         * MODULES.html.sh (File stream based Input/Output): Mention it.
22322         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22323         freopen-safer module.
22324         * doc/posix-functions/stderr.texi (stderr): Likewise.
22325         * doc/posix-functions/stdin.texi (stdin): Likewise.
22326         * doc/posix-functions/stdout.texi (stdout): Likewise.
22327         * modules/freopen-safer-tests: New test.
22328         * tests/test-reopen-safer.c: New file.
22329
22330 2009-11-05  Jim Meyering  <meyering@redhat.com>
22331
22332         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22333         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22334
22335 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22336
22337         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22338
22339 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22340
22341         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22342
22343 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22344
22345         Fix link error.
22346         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22347         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22348
22349 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22350
22351         * tests/test-func.c: Also test value of __func__.
22352
22353 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22354
22355         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22356         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22357
22358 2009-11-05  Bruno Haible  <bruno@clisp.org>
22359
22360         Fix link error.
22361         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22362         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22363         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22364
22365 2009-11-05  Bruno Haible  <bruno@clisp.org>
22366
22367         Tests for module 'inet_pton'.
22368         * modules/inet_pton-tests: New file.
22369         * tests/test-inet_pton.c: New file.
22370
22371 2009-11-05  Bruno Haible  <bruno@clisp.org>
22372
22373         Tests for module 'inet_ntop'.
22374         * modules/inet_ntop-tests: New file.
22375         * tests/test-inet_ntop.c: New file.
22376
22377 2009-11-04  Eric Blake  <ebb9@byu.net>
22378
22379         stdlib-safer: wrap all mkstemp variants
22380         * modules/mkostemp (configure.ac): Set witness.
22381         * modules/mkostemps (configure.ac): Likewise.
22382         * modules/mkstemps (configure.ac): Likewise.
22383         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22384         (mkstemps_safer): Wrap more functions.
22385         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22386         wrapping.
22387         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22388         (mkstemps_safer): Implement the wrappers.
22389
22390         mkstemps, mkostemps: new modules
22391         * modules/mkostemps: New module.
22392         * modules/mkstemps: Likewise.
22393         * lib/mkostemps.c (mkostemps): New file.
22394         * lib/mkstemps.c (mkstemps): Likewise.
22395         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22396         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22398         * modules/stdlib (Makefile.am): Substitute them.
22399         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22400         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22401         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22402         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22403         * MODULES.html.sh (File system functions): Mention them.
22404
22405         tempname: resync from glibc
22406         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22407         same values for __GT_FILE as glibc.  Abort even when assertions
22408         are disabled.
22409         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22410         match its value otherwise.  Allow idempotent inclusion.
22411         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22412         * lib/mkostemp.c (mkostemp): Likewise.
22413         * lib/mkstemp.c (mkstemp): Likewise.
22414         * lib/tmpfile.c (tmpfile): Likewise.
22415         * NEWS: Document this.
22416
22417         utimens: fix use of futimens on older Linux
22418         * lib/utimens.c (fdutimens): Use updated, rather than original,
22419         timespec to avoid bug in older Linux kernel.
22420         Reported by Simon Josefsson.
22421
22422 2009-11-04  Bruno Haible  <bruno@clisp.org>
22423
22424         Make num_processors more flexible and consistent.
22425         * lib/nproc.h (enum nproc_query): New type.
22426         (num_processors): Add a 'query' argument.
22427         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22428         (num_processors): Add a 'query' argument. Test the value of the
22429         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22430         mingw, count the number of CPUs available for the current process.
22431         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22432         Check for sched_getaffinity and sched_getaffinity_np.
22433         * modules/nproc (Depends-on): Add c-ctype, extensions.
22434         * NEWS: Mention the change.
22435
22436 2009-11-03  Bruno Haible  <bruno@clisp.org>
22437
22438         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22439
22440 2009-11-03  Jim Meyering  <meyering@redhat.com>
22441
22442         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22443         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22444         if it is defined.
22445
22446 2009-11-02  Eric Blake  <ebb9@byu.net>
22447
22448         mktime, timegm: share common declaration
22449         * lib/mktime-internal.h: New file.
22450         * lib/mktime.c: Use it rather than open-coding a declaration.
22451         * lib/timegm.c: Likewise.
22452         * modules/mktime (Files): Ship it.
22453         * modules/timegm (Files): Likewise.
22454         Suggested by Bruno Haible.
22455
22456         test-update-copyright: update test to match script changes
22457         * tests/test-update-copyright.sh: Avoid hard-coding perl
22458         location.  Don't update *.bak created by earlier runs.
22459
22460 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22461             Simon Josefsson  <simon@josefsson.org>
22462             Bruno Haible  <bruno@clisp.org>
22463
22464         Fix link error on Solaris 8.
22465         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22466         also in libnsl. Define also INET_PTON_LIB.
22467         * modules/inet_pton (Link): New section.
22468
22469 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22470             Bruno Haible  <bruno@clisp.org>
22471
22472         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22473         * modules/inet_ntop (Link): New section.
22474         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22475
22476 2009-11-02  Eric Blake  <ebb9@byu.net>
22477
22478         maint: avoid compiler warnings in m4 macros
22479         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22480         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22481
22482 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22483
22484         * m4/pmccabe2html.m4: Remove file.
22485         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22486         function.  Change maintainer.
22487         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22488         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22489         Courtès).
22490
22491 2009-10-31  Eric Blake  <ebb9@byu.net>
22492
22493         fseeko: fix m4 regression
22494         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22495         regression from 2009-10-27.
22496         Reported by Ralf Wildenhues.
22497
22498 2009-10-31  Jim Meyering  <meyering@redhat.com>
22499
22500         inttostr: aesthetics and improved (compile-time) safety
22501         Define inttype_is_signed rather than inttype_is_unsigned,
22502         since the sole use is via "#if inttype_is_signed".
22503         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22504         inttype_is_unsigned.
22505         * lib/offtostr.c (inttype_is_signed): Likewise.
22506         * lib/uinttostr.c (inttype_is_signed): Likewise.
22507         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22508         * lib/inttostr.c (inttostr): Use verify to cross-check the
22509         inttype_is_signed value and the signedness of the actual type.
22510         * modules/inttostr (Depends-on): Add verify.
22511
22512 2009-10-30  Eric Blake  <ebb9@byu.net>
22513
22514         build: avoid compiler warnings
22515         * lib/fchmodat.c (lchmod): Mark unused variables.
22516         * lib/getopt.c (_getopt_initialize): Likewise.
22517         * lib/mktime.c (__mktime_internal): Provide prototype.
22518         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22519         older gcc that do not understand #pragma GCC diagnostic.
22520         * lib/uinttostr.c (inttype_is_unsigned): Define.
22521         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22522
22523 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22524
22525         stat: fix compilation on AIX
22526         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22527         only see struct stat64.
22528
22529 2009-10-30  Eric Blake  <ebb9@byu.net>
22530
22531         exclude: make more robust
22532         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22533         rather than masking a coding bug.
22534         Suggested by Bruno Haible.
22535
22536 2009-10-30  Jim Meyering  <meyering@redhat.com>
22537
22538         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22539         Rather than putting #!/usr/bin/perl on the first line,
22540         start with a variant of what's recommended by "man perlrun" that
22541         invokes the first "perl" program from your shell's search path.
22542         * build-aux/gitlog-to-changelog: Replace #!... as above.
22543         Add a "Local Variables" perl mode setting.
22544         Prompted by a patch from Ludovic Courtès.
22545         Improved by Eric Blake.
22546         * build-aux/useless-if-before-free: Likewise.
22547         * build-aux/announce-gen: Likewise.
22548         * build-aux/update-copyright: Likewise.
22549
22550 2009-10-29  Eric Blake  <ebb9@byu.net>
22551
22552         filenamecat-lgpl: adjust clients
22553         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22554         filenamecat.
22555         * modules/renameat (Depends-on): Likewise.
22556
22557         filenamecat: split into filenamecat-lgpl
22558         * modules/filenamecat-lgpl: New module.
22559         * modules/filenamecat (Files): Move library-safe files into
22560         filenamecat-lgpl.
22561         (Depends-on): Add filenamecat-lgpl.
22562         (configure.ac): Declare witness.
22563         * lib/filenamecat.h (file_name_concat): Only declare when using
22564         GPL module.
22565         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22566         Move...
22567         * lib/filenamecat-lgpl.c: ...into new file.
22568         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22569         (gl_FILE_NAME_CONCAT): Use it.
22570         * MODULES.html.sh (File system functions): Mention new module.
22571
22572         argp: avoid memory leak
22573         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22574         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22575         base_name, since the latter malloc()s and can call exit().
22576         Leak introduced 2006-07-03.
22577
22578         dirname-lgpl: adjust clients that don't need full dirname
22579         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22580         * modules/filenamecat (Depends-on): Likewise.
22581         * modules/linkat (Depends-on): Likewise.
22582         * modules/mkancesdirs (Depends-on): Likewise.
22583         * modules/mkdir (Depends-on): Likewise.
22584         * modules/openat (Depends-on): Likewise.
22585         * modules/savewd (Depends-on): Likewise.
22586         * modules/rename (Depends-on): Likewise.
22587         (License): Relax license.
22588         * modules/mkdir-tests (Depends-on): Drop progname.
22589         (Makefile.am): Delete unneeded LDADD.
22590         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22591
22592         dirname: split into dirname-lgpl
22593         * modules/dirname-lgpl: New module.
22594         * modules/dirname (Files): Move library-safe files into
22595         dirname-lgpl.
22596         (Depends-on): Add dirname-lgpl.
22597         (configure.ac): Declare witness.
22598         * modules/double-slash-root (License): Relax license.
22599         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22600         module.
22601         * lib/dirname.c (dir_len, mdir_name): Move...
22602         * lib/dirname-lgpl.c: ...into new file.
22603         * lib/basename.c (last_component, base_len): Move...
22604         * lib/basename-lgpl.c: ...into new file.
22605         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22606         (gl_DIRNAME): Use it.
22607         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22608         Mention new module.
22609         * modules/dirname-tests (Depends-on): Add progname.
22610         * tests/test-dirname.c (program_name): Delete.
22611
22612         mkdir: make safe for libraries
22613         * modules/mkdir (Depends-on): Drop xalloc.
22614         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22615         exit.
22616
22617         tests: avoid some compiler warnings
22618         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22619         literals.
22620         * tests/test-memchr.c (main): Avoid type mismatch.
22621         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22622         * tests/test-base64.c (main): Likewise.
22623         * tests/test-getdelim.c (main): Likewise.
22624         * tests/test-gethostname.c (main): Likewise.
22625         * tests/test-getline.c (main): Likewise.
22626         * tests/test-netinet_in.c (main): Likewise.
22627         * tests/test-select.c (open_server_socket, main): Likewise.
22628         * tests/test-select-stdin.c (main): Likewise.
22629         * tests/test-sockets.c (main): Likewise.
22630         * tests/test-strsignal.c (main): Likewise.
22631         * tests/test-sys_select.c (main): Likewise.
22632         * tests/test-sys_socket.c (main): Likewise.
22633         * tests/test-u64.c (main): Likewise.
22634         * tests/test-xfprintf-posix.c (main): Likewise.
22635         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22636
22637         sockets: avoid compiler warning
22638         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22639
22640         maint: detect usage(1) and other suspicious exits
22641         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22642
22643 2009-10-29  Jim Meyering  <meyering@redhat.com>
22644
22645         timespec: long-to-int truncation could make timespec_cmp malfunction
22646         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22647         a multiple of 2^32 nanoseconds as no difference.
22648
22649 2009-10-28  Jim Meyering  <meyering@redhat.com>
22650
22651         fprintftime: wrap macro code argument in "do {...} while(0)"
22652         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22653         cpy macro must be a statement that can be followed by a semicolon.
22654         Now that the else clause contains a comment and is hence longer
22655         than one line, I require curly braces.  That in turn requires
22656         that we wrap this code block in the standard do...while(0).
22657
22658         fprintftime: remove stray semicolon from previous change
22659         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22660
22661         fprintftime: avoid a warning about ignored fwrite return value
22662         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22663         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22664         that is unsafe.
22665         * modules/fprintftime (Depends-on): Add ignore-value.
22666
22667         exclude: avoid an unwarranted warning
22668         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22669
22670 2009-10-27  Eric Blake  <ebb9@byu.net>
22671
22672         fseek: avoid compilation failure when fflush is replaced
22673         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22674         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22675         module is in use.
22676         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22677         module is not in use; since REPLACE_FSEEK worked otherwise.
22678         (GNULIB_FTELLO): Likewise for ftell.
22679         Reported by Ian Beckwith and others.
22680
22681 2009-10-27  Bruno Haible  <bruno@clisp.org>
22682
22683         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22684         Reported by Jim Meyering.
22685
22686 2009-10-27  Jim Meyering  <jim@meyering.net>
22687             Bruno Haible  <bruno@clisp.org>
22688
22689         Avoid warning despite dropping the return value of fwrite.
22690         * lib/unicodeio.c: Include ignore-value.h.
22691         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22692         * modules/unicodeio (Depends-on): Add ignore-value.
22693
22694 2009-10-26  Eric Blake  <ebb9@byu.net>
22695
22696         areadlinkat: fix fallback path
22697         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22698         pointer and zero.
22699
22700 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22701
22702         Use a better IO block size for modern systems
22703         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22704         * lib/md2.c: Likewise.
22705         * lib/md4.c: Likewise.
22706         * lib/md5.c: Likewise.
22707         * lib/sha1.c: Likewise.
22708         * lib/sha256.c: Likewise.
22709         * lib/sha512.c: Likewise.
22710
22711 2009-10-22  Eric Blake  <ebb9@byu.net>
22712
22713         tests: avoid several compiler warnings
22714         * tests/test-getcwd.c (main): Avoid buffer underflow.
22715         * tests/test-getdate.c (main): String literals are not safe with
22716         putenv, so use setenv.  Declare unused argument.
22717         * modules/getdate-tests (Depends-on): Add setenv.
22718         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22719         problems with string literals in char *.
22720         * tests/test-hash.c (main): Avoid shadowing declaration.
22721         (insert_new): Treat string literals as char const *.
22722         * tests/test-getopt.h (test_getopt): Likewise.
22723         (getopt_loop): Alter types to minimize casting elsewhere.
22724         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22725         (test_getopt_long_posix): Likewise.
22726         (do_getopt_long): Add wrapper to minimize casting.
22727         * tests/test-atexit.c (clear_temp_file): Use void.
22728         * tests/test-areadlink-with-size.c (main): Declare unused
22729         arguments.
22730         * tests/test-areadlink.c (main): Likewise.
22731         * tests/test-areadlinkat-with-size.c (main): Likewise.
22732         * tests/test-areadlinkat.c (main): Likewise.
22733         * tests/test-canonicalize-lgpl.c (main): Likewise.
22734         * tests/test-canonicalize.c (main): Likewise.
22735         * tests/test-dirent-safer.c (main): Likewise.
22736         * tests/test-dirname.c (main): Likewise.
22737         * tests/test-dup2.c (main): Likewise.
22738         * tests/test-fchdir.c (main): Likewise.
22739         * tests/test-fcntl-h.c (main): Likewise.
22740         * tests/test-fcntl-safer.c (main): Likewise.
22741         * tests/test-fdopendir.c (main): Likewise.
22742         * tests/test-fdutimensat.c (main): Likewise.
22743         * tests/test-fflush.c (main): Likewise.
22744         * tests/test-filenamecat.c (main): Likewise.
22745         * tests/test-filevercmp.c (main): Likewise.
22746         * tests/test-fopen-safer.c (main): Likewise.
22747         * tests/test-fopen.c (main): Likewise.
22748         * tests/test-fpending.c (main): Likewise.
22749         * tests/test-fpurge.c (main): Likewise.
22750         * tests/test-freading.c (main): Likewise.
22751         * tests/test-fstatat.c (main): Likewise.
22752         * tests/test-fsync.c (main): Likewise.
22753         * tests/test-futimens.c (main): Likewise.
22754         * tests/test-getndelim2.c (main): Likewise.
22755         * tests/test-gettimeofday.c (main): Likewise.
22756         * tests/test-getopt.c (main): Likewise.
22757         * tests/test-i-ring.c (main): Likewise.
22758         * tests/test-inttypes.c (main): Likewise.
22759         * tests/test-link.c (main): Likewise.
22760         * tests/test-lstat.c (main): Likewise.
22761         * tests/test-math.c (main): Likewise.
22762         * tests/test-md5.c (main): Likewise.
22763         * tests/test-memchr2.c (main): Likewise.
22764         * tests/test-memrchr.c (main): Likewise.
22765         * tests/test-mkdir.c (main): Likewise.
22766         * tests/test-mkdirat.c (main): Likewise.
22767         * tests/test-mkfifoat.c (main): Likewise.
22768         * tests/test-open.c (main): Likewise.
22769         * tests/test-openat-safer.c (main): Likewise.
22770         * tests/test-openat.c (main): Likewise.
22771         * tests/test-quotearg.c (main): Likewise.
22772         * tests/test-rawmemchr.c (main): Likewise.
22773         * tests/test-readlink.c (main): Likewise.
22774         * tests/test-remove.c (main): Likewise.
22775         * tests/test-rename.c (main): Likewise.
22776         * tests/test-renameat.c (main): Likewise.
22777         * tests/test-rmdir.c (main): Likewise.
22778         * tests/test-sha1.c (main): Likewise.
22779         * tests/test-signal.c (main): Likewise.
22780         * tests/test-sigaction.c (main): Likewise.
22781         * tests/test-stat.c (main): Likewise.
22782         * tests/test-stat-time.c (main): Likewise.
22783         * tests/test-stddef.c (main): Likewise.
22784         * tests/test-stdint.c (main): Likewise.
22785         * tests/test-stdio.c (main): Likewise.
22786         * tests/test-stdlib.c (main): Likewise.
22787         * tests/test-strchrnul.c (main): Likewise.
22788         * tests/test-strerror.c (main): Likewise.
22789         * tests/test-string.c (main): Likewise.
22790         * tests/test-strtod.c (main): Likewise.
22791         * tests/test-strverscmp.c (main): Likewise.
22792         * tests/test-symlink.c (main): Likewise.
22793         * tests/test-symlinkat.c (main): Likewise.
22794         * tests/test-sys_stat.c (main): Likewise.
22795         * tests/test-sys_time.c (main): Likewise.
22796         * tests/test-time.c (main): Likewise.
22797         * tests/test-unistd.c (main): Likewise.
22798         * tests/test-unlink.c (main): Likewise.
22799         * tests/test-unlinkat.c (main): Likewise.
22800         * tests/test-utimens.c (main): Likewise.
22801         * tests/test-utimensat.c (main): Likewise.
22802         * tests/test-version-etc.c (main): Likewise.
22803         * tests/test-wchar.c (main): Likewise.
22804         * tests/test-wctype.c (main): Likewise.
22805         * tests/test-xprintf-posix.c (main): Likewise.
22806         * tests/test-posixtm.c (main): Likewise.
22807         (STREQ): Delete unused macro.
22808         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22809         shadowed variables.
22810         * tests/test-memchr.c (main): Likewise.
22811
22812 2009-10-21  Eric Blake  <ebb9@byu.net>
22813
22814         areadlinkat: avoid failure on older glibc
22815         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22816         rather than mis-comparing 0 against FUNC_RESULT of char*.
22817
22818 2009-10-21  Bruno Haible  <bruno@clisp.org>
22819
22820         * modules/stpncpy (License): Relicense under LGPLv2+.
22821         Reported by David Lutterkort <lutter@redhat.com>.
22822
22823 2009-10-20  Eric Blake  <ebb9@byu.net>
22824
22825         utimensat: work around Solaris 9 bug
22826         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22827         has trailing slash bugs.
22828         * tests/test-lutimens.h (test_lutimens): Enhance test.
22829         * tests/test-utimens.h (test_utimens): Likewise.
22830         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22831         * doc/posix-functions/utimes.texi (utimes): Likewise.
22832         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22833         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22834         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22835         * doc/posix-functions/futimens.texi (futimens): Likewise.
22836
22837         fdutimensat: new module
22838         * modules/fdutimensat: New file.
22839         * lib/fdutimensat.c (fdutimensat): Likewise.
22840         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22841         * MODULES.html.sh (File system functions): Mention module.
22842         * modules/fdutimensat-tests: New test.
22843         * tests/test-fdutimensat.c: Likewise.
22844
22845         doc: regenerate INSTALL
22846         * doc/INSTALL: Reflect recent autoconf update.
22847         * doc/INSTALL.ISO: Likewise.
22848         * doc/INSTALL.UTF-8: Likewise.
22849
22850 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22851
22852         acl: warn if ACL support is not detected
22853         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22854
22855 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22856
22857         * lib/nproc.h: Add extern "C" block for C++.
22858
22859 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22860             Bruno Haible  <bruno@clisp.org>
22861
22862         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22863         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22864         * doc/posix-functions/isalpha.texi: Likewise.
22865         * doc/posix-functions/isblank.texi: Likewise.
22866         * doc/posix-functions/iscntrl.texi: Likewise.
22867         * doc/posix-functions/isdigit.texi: Likewise.
22868         * doc/posix-functions/isgraph.texi: Likewise.
22869         * doc/posix-functions/islower.texi: Likewise.
22870         * doc/posix-functions/isprint.texi: Likewise.
22871         * doc/posix-functions/ispunct.texi: Likewise.
22872         * doc/posix-functions/isspace.texi: Likewise.
22873         * doc/posix-functions/isupper.texi: Likewise.
22874         * doc/posix-functions/isxdigit.texi: Likewise.
22875
22876 2009-10-18  Bruno Haible  <bruno@clisp.org>
22877
22878         Tests for module 'isblank'.
22879         * modules/isblank-tests: New file.
22880         * tests/test-isblank.c: New file.
22881
22882         New module 'isblank'.
22883         * lib/isblank.c: New file.
22884         * m4/isblank.m4: New file.
22885         * modules/isblank: New file.
22886         * doc/posix-functions/isblank.texi: Mention the new module.
22887
22888 2009-10-18  Bruno Haible  <bruno@clisp.org>
22889
22890         New module 'ctype'.
22891         * lib/ctype.in.h: New file.
22892         * m4/ctype.m4: New file.
22893         * modules/ctype: New file.
22894         * doc/posix-headers/ctype.texi: Mention the new module.
22895
22896 2009-10-18  Jim Meyering  <meyering@redhat.com>
22897
22898         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22899         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22900         right after its initialization, rather than farther down.
22901         Keeping these in close proximity makes it easier to ensure
22902         that each such variable is initialized.  E.g.,
22903
22904             LIB_CLOCK_GETTIME=
22905             AC_SUBST([LIB_CLOCK_GETTIME])
22906
22907         This change also increments these serial numbers.
22908         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22911
22912 2009-10-18  Bruno Haible  <bruno@clisp.org>
22913
22914         Don't let environment variables perturb build.
22915         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22916         (gl_PREREQ_GETHRXTIME): ... not here.
22917
22918 2009-10-18  Bruno Haible  <bruno@clisp.org>
22919
22920         Avoid symlink attack in localcharset module.
22921         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22922         (O_NOFOLLOW): Define fallback.
22923         (get_charset_aliases): Don't open the file if it is a symbolic link.
22924         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22925         gl_FCNTL_H.
22926         (gl_FCNTL_H): Require it.
22927         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22928         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22929         Reported by Fergal Glynn <fglynn@veracode.com>.
22930
22931 2009-10-18  Bruno Haible  <bruno@clisp.org>
22932
22933         Implement nproc for mingw.
22934         * lib/nproc.c: Include <windows.h>
22935         (num_processors): On native Windows platforms, try GetSystemInfo.
22936
22937 2009-10-18  Bruno Haible  <bruno@clisp.org>
22938
22939         Implement nproc for IRIX.
22940         * lib/nproc.c: Include <sys/sysmp.h>.
22941         (num_processors): On IRIX systems, try sysmp.
22942         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22943
22944 2009-10-18  Bruno Haible  <bruno@clisp.org>
22945
22946         Implement nproc for HP-UX.
22947         * lib/nproc.c: Include <sys/pstat.h>
22948         (num_processors): On HP-UX systems, try pstat_getdynamic.
22949         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22950         pstat_getdynamic.
22951
22952 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22953             Bruno Haible  <bruno@clisp.org>
22954
22955         Implement nproc for NetBSD, OpenBSD.
22956         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22957         (ARRAY_SIZE): New macro.
22958         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22959         * m4/nproc.m4: New file.
22960         * modules/nproc (Files): Add m4/nproc.m4.
22961         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22962         (Makefile.am): Instead, augment lib_SOURCES.
22963
22964 2009-10-18  Bruno Haible  <bruno@clisp.org>
22965
22966         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22967         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22968         sys/param.h.
22969
22970 2009-10-16  Eric Blake  <ebb9@byu.net>
22971
22972         utimensat: new module
22973         * modules/utimensat: New file.
22974         * lib/utimensat.c (utimensat): Likewise.
22975         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22976         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22977         so we can work around Linux bugs.
22978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22979         * modules/sys_stat (Makefile.am): Substitute them.
22980         * lib/sys_stat.in.h (utimensat): Declare it.
22981         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22982         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22983         * modules/utimensat-tests: New test.
22984         * tests/test-utimensat.c: Likewise.
22985
22986         utimens: let lutimens work on non-symlinks
22987         * lib/utimens.c (lutimens): Fall back to utimens rather than
22988         failing with ENOSYS, when file is not a symlink.
22989         (utimens): Reduce redirection.
22990         * tests/test-lutimens.h (test_lutimens): Update test to cover
22991         non-symlinks.
22992         * tests/test-utimens.h (test_utimens): Update test to cover
22993         symlinks.
22994         * tests/test-utimens.c (main): Update caller.
22995
22996         utimens: cache whether utimensat syscall works
22997         * lib/utimens.c (utimensat_works_really): New cache variable.
22998         (fdutimens, lutimens): Use it to avoid failing syscall.
22999
23000         test-stat-time, test-utimens: improve portability
23001         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23002         ext4 on alpha, and for cygwin.
23003         * tests/test-utimens-common.h: New file.
23004         (nap): Factor delays into single function.
23005         * tests/test-lutimens.h (test_lutimens): Use new header.
23006         * tests/test-futimens.h (test_futimens): Likewise.
23007         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23008         timestamps to occur from same machine, as was done previously for
23009         test_utimens.
23010         * modules/utimens-tests (Files): Ship new file.
23011         * modules/futimens-tests (Files): Likewise.
23012         Reported in part by Jim Meyering.
23013
23014         sys_stat: sort replacement declarations
23015         * lib/sys_stat.in.h: Sort declarations.
23016         * lib/futimens.c (futimens): Fix typo.
23017
23018 2009-10-15  Jim Meyering  <meyering@redhat.com>
23019
23020         don't let environment settings perturb build
23021         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23022         could cause a configure-time and/or build-time malfunction.
23023         Typically, a configure-time function-in-library test is performed
23024         via code like this:
23025
23026           LIB_VAR=
23027           AC_SUBST([LIB_VAR])
23028           prefix_saved_LIBS=$LIBS
23029             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23030                        [test "$ac_cv_search_FUNC" = "none required" ||
23031                         LIB_VAR=$ac_cv_search_FUNC])
23032           LIBS=$prefix_saved_LIBS
23033
23034         However, in each of the files affected by this change, the LIB_VAR=
23035         initialization was omitted.  Thus, when set in the environment, its
23036         value would propagate into generated Makefiles when FUNC is not found
23037         in LIB_NAME.
23038         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23039         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23041
23042 2009-10-14  Eric Blake  <ebb9@byu.net>
23043
23044         fchdir: avoid infinite recursion in mingw
23045         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23046         recursing.
23047
23048         test-stat-time: port to mingw
23049         * tests/test-stat-time.c (force_unlink): Return a value.
23050         (test_ctime) [W32]: Fix compilation error.
23051         (nap): Don't call usleep with too large an argument.  Use
23052         force_unlink.
23053         * doc/pastposix-functions/usleep.texi (usleep): Document the
23054         portability issue.
23055
23056 2009-10-13  Jim Meyering  <meyering@redhat.com>
23057
23058         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23059         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23060         * modules/pipe-filter-ii: Likewise.
23061         * modules/sys_socket-tests: Likewise.
23062         * modules/tsearch-tests: Likewise.
23063         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23064         (check): Depend on it.
23065
23066 2009-10-12  Eric Blake  <ebb9@byu.net>
23067
23068         utimens-tests: port to NFS file systems
23069         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23070         comparisons to avoid spurious failures from timestamp drift
23071         between NFS machines.
23072
23073 2009-10-12  Eric Blake  <ebb9@byu.net>
23074
23075         stat-time-tests: minor cleanups
23076         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23077         * tests/test-stat-time.c (nap): Separate assignment from call.
23078         Suggested by Paolo Bonzini and Bruno Haible.
23079
23080         sys_stat: guarantee struct timespec
23081         * lib/sys_stat.in.h (includes): Always include <time.h>
23082         * modules/sys_stat (Depends-on): Add time.
23083         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23084         mode_t permission values.
23085         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23086         get at subsecond timestamps.
23087
23088 2009-10-10  Eric Blake  <ebb9@byu.net>
23089
23090         futimens: new module
23091         * modules/futimens: New file.
23092         * lib/futimens.c (futimens): Likewise.
23093         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23094         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23095         we can work around Linux bugs.
23096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23097         * modules/sys_stat (Makefile.am): Substitute them.
23098         * lib/sys_stat.in.h (futimens): Declare it.
23099         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23100         * doc/posix-functions/futimens.texi (futimens): Likewise.
23101         * modules/futimens-tests: New test.
23102         * tests/test-futimens.c: Likewise.
23103
23104         utimens: introduce fdutimens
23105         * lib/utimens.h (fdutimens): New prototype.
23106         * lib/utimens.c (gl_futimens): Move guts...
23107         (fdutimens): ...to new interface.
23108         * tests/test-utimens.c (do_fdutimens): Use it.
23109
23110         utimens: add UTIME_NOW and UTIME_OMIT support
23111         * lib/utimens.c (validate_timespec, update_timespec): New helper
23112         functions.
23113         (gl_futimens, lutimens): Use them.
23114         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23115         stdbool, sys_stat.
23116         (Link): Mention resulting library dependency.
23117         * modules/utimecmp (Link): Likewise.
23118         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23119         (Makefile.am): Pick up library dependency.
23120         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23121         definition.
23122         * tests/test-sys_stat.c: Test the definitions.
23123         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23124         * NEWS: Document library dependency.
23125
23126         utimecmp: support symlink timestamps
23127         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23128         hashing when possible.  Use pathconf when available.
23129         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23130         * modules/utimecmp (Depends-on): Add lstat.
23131
23132         utimens: add lutimens interface
23133         * lib/utimens.c (lutimens): New function.
23134         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23135         * lib/utimens.h (lutimens): Declare new interface.
23136         * tests/test-utimens.c (main): Enhance test.
23137         * tests/test-lutimens.h (test_lutimens): New file.
23138         * modules/utimens-tests (Files): Distribute it.
23139         (Depends-on): Add symlink.
23140         (configure.ac): Check for usleep.
23141
23142         utimens: validate futimens usage
23143         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23144         fewer syscalls on failure later on.  Avoid compiler warning on
23145         mingw.
23146         * modules/utimens (Depends-on): Add dup2.
23147
23148         utimens: add test
23149         * modules/utimens-tests: New test.
23150         * tests/test-utimens.h: New file.
23151         * tests/test-futimens.h: Likewise.
23152         * tests/test-utimens.c: Likewise.
23153
23154         doc: mention timestamp portability issues
23155         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23156         instead.
23157         * doc/posix-functions/utime.texi (utime): Likewise.
23158         * doc/posix-functions/utimes.texi (utimes): Likewise.
23159         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23160         instead.
23161         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23162         module.
23163         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23164         Mention weakness with symlink timestamps.
23165         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23166         to utimensat/futimens instead.
23167         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23168
23169         test-dup2: enhance test
23170         * tests/test-dup2.c (main): Also check AT_FDCWD.
23171
23172         test-stat-time: avoid more spurious failures
23173         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23174         xfs; and avoid race if the two timestamps cross quantization edge.
23175
23176         relocatable: prefer 'file system' over 'filesystem'
23177         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23178         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23179         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23180         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23181         * lib/relocatable.c (compute_curr_prefix): Likewise.
23182
23183 2009-10-10  Jim Meyering  <meyering@redhat.com>
23184
23185         stat-time-tests: check for the usleep function
23186         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23187
23188 2009-10-10  Bruno Haible  <bruno@clisp.org>
23189
23190         * modules/xnanosleep: Put the Link section after the Include section.
23191
23192 2009-10-09  Eric Blake  <ebb9@byu.net>
23193
23194         dup2: work around FreeBSD 6.1 bug
23195         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23196         * doc/posix-functions/dup2.texi (dup2): Document it.
23197         Reported by Nelson H. F. Beebe and Jim Meyering.
23198
23199         test-stat-time: port to buggy NFS clients
23200         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23201         (test_ctime): Also skip test if mtime and ctime are skewed.
23202
23203         maint: prefer 'file system' over 'filesystem'
23204         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23205         * doc/posix-functions/lstat.texi (lstat): Likewise.
23206         * lib/file-has-acl.c (file_has_acl): Likewise.
23207         * lib/fwriteerror.c [TEST]: Likewise.
23208         * tests/test-areadlink.h (test_areadlink): Likewise.
23209         * tests/test-areadlinkat-with-size.c (main): Likewise.
23210         * tests/test-areadlinkat.c (main): Likewise.
23211         * tests/test-canonicalize-lgpl.c (main): Likewise.
23212         * tests/test-canonicalize.c (main): Likewise.
23213         * tests/test-fstatat.c (main): Likewise.
23214         * tests/test-linkat.c (main): Likewise.
23215         * tests/test-lstat.h (test_lstat_func): Likewise.
23216         * tests/test-mkdir.h (test_mkdir): Likewise.
23217         * tests/test-readlink.h (test_readlink): Likewise.
23218         * tests/test-remove.c (main): Likewise.
23219         * tests/test-rename.h (test_rename): Likewise.
23220         * tests/test-renameat.c (main): Likewise.
23221         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23222         * tests/test-symlink.h (test_symlink): Likewise.
23223         * tests/test-symlinkat.c (main): Likewise.
23224         * tests/test-unlink.h (test_unlink_func): Likewise.
23225         * tests/test-unlinkat.c (main): Likewise.
23226
23227         maint: make realtime library usage explicit
23228         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23229         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23230         * modules/settime (Link): Likewise.
23231         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23232
23233         test-stat-time: speed up execution
23234         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23235         warning on mingw.
23236         (nap): New helper function.
23237         (prepare_test): Use it to reduce sleep time.
23238         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23239         execution.
23240         * modules/stat-time-tests (configure.ac): Check for usleep.
23241
23242 2009-10-09  Jim Meyering  <meyering@redhat.com>
23243
23244         selinux-h: always use getfilecon wrappers
23245         * lib/getfilecon.c: New file.
23246         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23247         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23248         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23249         (fgetfilecon): Provide a stub.
23250         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23251         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23252         file unconditionally.
23253         When <selinux/selinux.h> is found, arrange to use wrappers.
23254         * modules/selinux-h (Files): Add getfilecon.c.
23255         (Makefile.am): Substitute include-next-related bits
23256         into the now-always-generated selinux/selinux.h file.
23257         * doc/glibc-functions/lgetfilecon.texi: New file.
23258         * doc/glibc-functions/fgetfilecon.texi: New file.
23259         * doc/glibc-functions/getfilecon.texi: New file.
23260         * doc/glibc-functions/getfilecon-desc.texi: New file.
23261         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23262         which to pull in the new files.
23263         * MODULES.html.sh (Misc): Add selinux-h.
23264
23265 2009-10-08  Jim Meyering  <meyering@redhat.com>
23266
23267         unistd: fix comment typo
23268         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23269
23270 2009-10-08  Eric Blake  <ebb9@byu.net>
23271
23272         areadlink: use SIZE_MAX consistently
23273         * modules/areadlink (Depends-on): Add stdint.
23274         * modules/areadlink-with-size (Depends-on): Likewise.
23275         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23276         gives NULL; drop sys/types, since unistd gives size_t; and add
23277         stdint for SIZE_MAX.
23278         (SIZE_MAX): Rely on headers.
23279         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23280         and add stdint.
23281         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23282         (SIZE_MAX): Likewise.
23283         (INITIAL_BUF_SIZE): Turn into enum.
23284         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23285
23286 2009-10-08  Jim Meyering  <meyering@redhat.com>
23287
23288         areadlinkat: avoid compilation failure
23289         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23290         Fix typo in comment.
23291
23292 2009-10-07  Eric Blake  <ebb9@byu.net>
23293
23294         areadlinkat-with-size: new module
23295         * modules/areadlinkat-with-size: New module.
23296         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23297         * lib/areadlink.h (areadlinkat): Declare it.
23298         * MODULES.html.sh (File system functions): Mention it.
23299         * modules/areadlinkat-with-size-tests: New test.
23300         * tests/test-areadlinkat-with-size.c: New file.
23301
23302         xreadlinkat: new module
23303         * modules/xreadlinkat: New module.
23304         * lib/xreadlinkat.c (xreadlinkat): New file.
23305         * lib/xreadlink.h (xreadlinkat): Declare it.
23306         * MODULES.html.sh (File system functions): Mention it.
23307
23308         areadlinkat: new module
23309         * lib/at-func.c (FUNC_FAIL): New define.
23310         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23311         * modules/areadlinkat: New module.
23312         * lib/linkat.c (areadlinkat): Move...
23313         * lib/areadlinkat.c (areadlinkat): ...to new file.
23314         * lib/areadlink.h (areadlinkat): Declare it.
23315         * modules/linkat (Depends-on): Add areadlinkat.
23316         * MODULES.html.sh (File system functions): Mention it.
23317         * modules/areadlinkat-tests: New test.
23318         * tests/test-areadlinkat.c: New file.
23319
23320         areadlink, areadlink-with-size: add tests
23321         * modules/areadlink-tests: New test.
23322         * modules/areadlink-with-size-tests: Likewise.
23323         * tests/test-areadlink.h: New file.
23324         * tests/test-areadlink.c: Likewise.
23325         * tests/test-areadlink-with-size.c: Likewise.
23326
23327         maint: minor cleanups
23328         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23329         _UNUSED_PARAMETER_ instead.
23330         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23331         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23332         * modules/linkat-tests (Files): Distribute test-link.h.
23333
23334         openat, utimens: whitespace cleanup
23335         * lib/openat.c: Prefer space throughout, rather than mix of 8
23336         spaces vs. tabs.
23337         * lib/at-func.c: Likewise.
23338         * lib/utimens.c: Likewise.
23339
23340         openat: avoid using wrong fd
23341         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23342         working directory chooses same fd.
23343         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23344
23345         mkdir, mkdirat: fix cygwin 1.5.x bug
23346         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23347         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23348         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23349         bug.
23350         (gl_PREREQ_MKDIR): Delete unused macro.
23351         * modules/mkdir (Files): Track file rename.
23352         (configure.ac): Update macro name.
23353         * modules/openat (Depends-on): Add mkdir.
23354         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23355
23356         mkdir, mkdirat: add tests
23357         * modules/mkdir-tests: New test.
23358         * tests/test-mkdir.h: New file.
23359         * tests/test-mkdir.c: Likewise.
23360         * tests/test-mkdirat.c: Likewise.
23361         * modules/openat-tests (Files): Add new files.
23362         (Makefile.am): Run new test.
23363
23364 2009-10-06  Eric Blake  <ebb9@byu.net>
23365
23366         doc: tweak *at function documentation
23367         * doc/posix-functions/faccessat.texi (faccessat): Mention
23368         known issue with replacement.
23369         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23370         * doc/posix-functions/linkat.texi (linkat): Likewise.
23371         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23372         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23373         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23374         * doc/posix-functions/renameat.texi (renameat): Likewise.
23375         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23376
23377         openat: fix GNU/Hurd bug in unlinkat
23378         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23379         broken.
23380         * doc/posix-functions/unlink.texi (unlink): Document this.
23381         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23382
23383         fdopendir: fix GNU/Hurd bug
23384         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23385         allowing non-directory fds.
23386         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23387         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23388         * modules/dirent (Makefile.am): Substitute it.
23389         * lib/dirent.in.h (fdopendir): Declare replacement.
23390         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23391         * tests/test-fdopendir.c (main): Test something other than
23392         /dev/null, since on Hurd that behaves like a directory.
23393
23394         test-symlink: port to GNU/Hurd
23395         * tests/test-symlink.h (test_symlink): Relax expected errno.
23396
23397         doc: tweak more cygwin information
23398         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23399         now compatible with glibc.
23400         * doc/posix-functions/getopt.texi (getopt): Likewise.
23401
23402         getopt-gnu: add another test
23403         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23404         guarantee behavior relied on by m4.
23405         * tests/test-getopt.c (main): Use it.
23406         * modules/getopt-posix-tests (Depends-on): Add setenv.
23407         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23408
23409         getopt: fix compilation on darwin
23410         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23411         include.
23412         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23413         Reported by Ludovic Courtès.
23414
23415 2009-10-06  Bruno Haible  <bruno@clisp.org>
23416
23417         * modules/size_max (Description): Discourage its use.
23418         Reported by Simon Josefsson.
23419
23420 2009-10-06  Jim Meyering  <meyering@redhat.com>
23421
23422         linkat: avoid compilation failure
23423         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23424
23425 2009-10-05  Eric Blake  <ebb9@byu.net>
23426
23427         linkat: support Linux 2.6.17
23428         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23429         linkat on Linux, but allow cache variable override.
23430         * lib/linkat.c (rpl_linkat): Define override.
23431         * modules/linkat (Depends-on): Add symlinkat.
23432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23433         * modules/unistd (Makefile.am): Substitute it.
23434         * lib/unistd.in.h (linkat): Declare replacement.
23435         Reported by Pádraig Brady.
23436
23437         quotearg: port test to systems with C.UTF-8 locale
23438         * tests/test-quotearg.c (struct result_strings): Add another
23439         member, differentiating between C.ASCII and C.UTF-8 handling.
23440         (compare_strings): Add parameter.
23441         (main): Adjust all callers.
23442
23443         getopt: avoid clash with FreeBSD _getopt_internal
23444         * lib/getopt.in.h (_getopt_internal): Override the name.
23445         * lib/getopt_int.h (includes): Pick up any overrides.
23446         Reported by Reuben Thomas.
23447
23448         hash: allow C89 compilation
23449         * lib/hash.c (check_tuning): Move declaration before statement.
23450         Reported by Reuben Thomas.
23451
23452 2009-10-05  Karl Berry  <karl@gnu.org>
23453
23454         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23455
23456 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23457             Bruno Haible  <bruno@clisp.org>
23458
23459         * lib/uname.c (uname): Use a table-driven algorithm to compute
23460         Windows NT versions.
23461
23462 2009-10-04  Bruno Haible  <bruno@clisp.org>
23463
23464         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23465         program_invocation_short_name.
23466         * modules/progname (configure.ac): Test for presence of
23467         program_invocation_short_name.
23468         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23469
23470 2009-10-04  Bruno Haible  <bruno@clisp.org>
23471
23472         * lib/progname.c (set_program_name): Fix comment.
23473         Reported by Jim Meyering.
23474
23475 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23476             Bruno Haible  <bruno@clisp.org>
23477
23478         * lib/uname.c: Include <string.h>.
23479         (uname): Do only one call to GetVersionEx in the common case.
23480
23481 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23482             Bruno Haible  <bruno@clisp.org>
23483
23484         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23485         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23486         (uname): Add support for Windows CE and various non-x86 CPU types.
23487
23488 2009-10-03  Bruno Haible  <bruno@clisp.org>
23489
23490         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23491         invocation to tests/configure.ac.
23492         Reported by Ian Beckwith <ianb@erislabs.net>.
23493
23494 2009-10-02  Eric Blake  <ebb9@byu.net>
23495
23496         fchdir: avoid compiler warning
23497         * lib/fchdir.c (canonicalize_file_name)
23498         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23499
23500         test-open: support mingw errno values
23501         * tests/test-open.h (test_open): Relax test.
23502         * tests/test-fopen.h (test_fopen): Likewise.
23503         * tests/test-openat-safer.c (main): Likewise.
23504
23505         open: fix opening directory on mingw
23506         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23507
23508         test-open: on GNU/Hurd, /dev/null is a directory
23509         * tests/test-fopen.h (main): Rename...
23510         (test_fopen): ...to this.  Use a guaranteed non-directory when
23511         confirming open behavior on trailing slash.
23512         * tests/test-openat-safer.c (main): Likewise.
23513         * tests/test-open.h (main): Likewise....
23514         (test_open): ...to this.
23515         * tests/test-fopen.c (main): Adjust caller.
23516         * tests/test-fopen-safer.c (main): Likewise.
23517         * tests/test-open.c (main): Likewise.
23518         * tests/test-fcntl-safer.c (main): Likewise.
23519         Reported by Samuel Thibault.
23520
23521         rename, fchdir: don't ignore chdir failure
23522         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23523         * lib/rename.c (rpl_rename) [W32]: Likewise.
23524         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23525         an empty destination directory if source cannot be renamed,
23526         although there is still possibility for failure.
23527         * doc/posix-functions/rename.texi (rename): Document the race.
23528         Reported by Jim Meyering.
23529
23530         maint: cleanup whitespace in recent commits
23531         * lib/rename.c (rpl_rename): Remove tabs.
23532         * tests/test-link.h (test_link): Likewise.
23533         * lib/fchdir.c (get_name): Likewise.
23534         Reported by Jim Meyering.
23535
23536 2009-10-02  Ben Pfaff  <blp@gnu.org>
23537
23538         relocatable-prog-wrapper: Add missing dependency on
23539         double-slash-root.
23540         * modules/relocatable-prog-wrapper: Add dependency.
23541         Reported by Ian Beckwith <ianb@erislabs.net>.
23542
23543 2009-10-02  Eric Blake  <ebb9@byu.net>
23544
23545         renameat: fix Solaris bugs
23546         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23547         needed fixing.
23548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23549         * modules/stdio (Makefile.am): Substitute it.
23550         * lib/stdio.in.h (renameat): Declare replacement.
23551         * lib/renameat.c (rpl_renameat): Implement fix.
23552
23553         renameat: new module
23554         * modules/renameat: New file.
23555         * lib/renameat.c (renameat): Likewise.
23556         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23558         * modules/stdio (Makefile.am): Substitute them.
23559         * lib/stdio.in.h (renameat): Declare it.
23560         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23561         * doc/posix-functions/renameat.texi (renameat): Likewise.
23562         * modules/renameat-tests: New test.
23563         * tests/test-renameat.c: Likewise.
23564
23565         rename: fix mingw bugs
23566         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23567         directory overwrite bugs.
23568
23569         rename: fix another cygwin 1.5 bug
23570         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23571         checks.
23572         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23573         unnecessary cygwin workarounds.  Also work around bug with moving
23574         full directory onto an empty one.
23575         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23576
23577         rename-dest-slash: merge into rename module
23578         * modules/rename-dest-slash (Status): Mark obsolete.
23579         (Depends-on): Add rename.
23580         (Files): Let rename do it all.
23581         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23582         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23583         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23584         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23585         * lib/rename.c (rpl_rename): Update comments.
23586
23587         rename: fix cygwin 1.5.x bugs
23588         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23589         * lib/rename.c (rpl_rename): Work around them.
23590         * modules/rename (Depends-on): Add same-inode.
23591
23592         rename: fix Solaris 10 bug
23593         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23594         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23595         was the only bug.
23596
23597         rename: fix Solaris 9 bug
23598         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23599         on non-directory.  Avoid calling exit.
23600         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23601         strdup.
23602         * modules/rename-tests (Depends-on): Drop lstat.
23603         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23604         (gl_PREREQ_RENAME): Delete unused macro.
23605
23606         rename-dest-slash: fix NetBSD bug
23607         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23608         links.
23609         * modules/rename-dest-slash (Depends-on): Add same-inode.
23610
23611         rename-tests: new test, exposes several platform bugs
23612         * modules/rename-tests: New file.
23613         * tests/test-rename.h: Likewise.
23614         * tests/test-rename.c: Likewise.
23615         * doc/posix-functions/rename.texi (rename): Improve documentation,
23616         including bugs that will eventually be fixed in gnulib.
23617
23618 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23619
23620         * lib/uname.c: Include <stdlib.h>
23621         (uname): Assume version info is available.
23622
23623 2009-10-02  Jim Meyering  <meyering@redhat.com>
23624
23625         gnu-web-doc-update: correct --help output
23626         * build-aux/gnu-web-doc-update: Make --help output relevant.
23627
23628         gnu-web-doc-update: add standard options
23629         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23630
23631         gnu-web-doc-update: New module.
23632         Use this script to automatically update the on-line web documentation
23633         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23634         * modules/gnu-web-doc-update: New file, from coreutils.
23635         * build-aux/gnu-web-doc-update: New script.
23636
23637 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23638
23639         link: LoadLibrary is not needed.
23640         * lib/link.c: Use GetModuleHandle.
23641
23642 2009-10-01  Eric Blake  <ebb9@byu.net>
23643
23644         getopt: bump serial number
23645         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23646         change.
23647
23648         tests: tighten link, rmdir, and remove tests
23649         * tests/test-link.h (includes): No need to use <config.h> here.
23650         Clean up if directory hard link was created, otherwise test for
23651         trailing '.'.
23652         * tests/test-linkat.c (main): Simplify.
23653         * tests/test-remove.c (main): Enhance test for trailing '.'.
23654         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23655
23656 2009-10-01  Jim Meyering  <meyering@redhat.com>
23657
23658         maint.mk: requiring "make major" was annoying, for a "minor" release.
23659         What is intended is "stable", to contrast with alpha and beta,
23660         so require "make stable", not "make major".
23661         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23662         (get_tool_versions): Likewise.
23663         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23664
23665 2009-09-30  Ben Pfaff  <blp@gnu.org>
23666
23667         Fix broken build of replacement for Windows tmpfile().
23668         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23669         flags argument added along with the 'mkostemp' module.
23670
23671 2009-09-28  Bruno Haible  <bruno@clisp.org>
23672
23673         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23674         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23675         to 'remove_elt'.
23676         (gl_list_remove): Update.
23677         * lib/gl_list.c (gl_list_remove): Update.
23678         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23679         to 'remove_elt'.
23680         (gl_oset_remove): Update.
23681         * lib/gl_list.c (gl_oset_remove): Update.
23682         Reported by Eric Blake.
23683
23684 2009-09-28  Eric Blake  <ebb9@byu.net>
23685
23686         doc: mention yet more cygwin 1.7 status
23687         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23688         cygwin.
23689         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23690         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23691
23692         argp: fix test failure
23693         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23694         that are not upper-case.  Pass correct range to tolower.
23695
23696 2009-09-27  Jim Meyering  <meyering@redhat.com>
23697
23698         test-yesno: work around sparc-dash here-document infelicity
23699         Without this change, the literal \177 byte in a here document
23700         would make dash 0.5.5.1-3 access uninitialized memory.
23701         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23702         Instead, use a marker, "@", and filter through tr to create the desired
23703         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23704
23705 2009-09-27  Bruno Haible  <bruno@clisp.org>
23706
23707         Disable untested support for new flavours of ACLs on AIX.
23708         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23709         progress.
23710         * lib/set-mode-acl.c (qset_acl): Likewise.
23711
23712 2008-12-07  Bruno Haible  <bruno@clisp.org>
23713
23714         Add support for new flavours of ACLs on AIX. (Untested.)
23715         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23716         (file_has_acl): Add support for newer AIX.
23717         * lib/set-mode-acl.c (qset_acl): Likewise.
23718         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23719         Rainer Tammer <tammer@tammer.net>.
23720
23721 2009-09-26  Eric Blake  <ebb9@byu.net>
23722
23723         argp: fix compilation of getopt
23724         * lib/getopt.in.h (includes): Use different guard than glibc.
23725         Reported by Sergey Poznyakoff.
23726
23727         doc: mention more cygwin 1.7 status
23728         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23729         bug.
23730         * doc/posix-functions/execl.texi (execl): Likewise.
23731         * doc/posix-functions/execle.texi (execle): Likewise.
23732         * doc/posix-functions/execlp.texi (execlp): Likewise.
23733         * doc/posix-functions/execv.texi (execv): Likewise.
23734         * doc/posix-functions/execve.texi (execve): Likewise.
23735         * doc/posix-functions/execvp.texi (execvp): Likewise.
23736         * doc/glibc-functions/canonicalize_file_name.texi
23737         (canonicalize_file_name): Cygwin 1.7 now provides this.
23738         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23739         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23740         on AT_SYMLINK_NOFOLLOW.
23741
23742 2009-09-24  Eric Blake  <ebb9@byu.net>
23743
23744         test-linkat: make test more robust
23745         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23746
23747         getopt: fix inclusion guards for cygwin
23748         * modules/getopt-posix (Depends-on): Add include-next.
23749         (Makefile.am): Substitute more items in replacement header.
23750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23751         <getopt.h>.
23752         * lib/getopt.in.h (includes): Use split inclusion guard, and
23753         prefer <getopt.h> over include <unistd.h> when one is present.
23754         (option): Also override name of 'struct option'.
23755
23756         same-inode: revert prior change; it is not yet ready
23757         * NEWS: Undo mention of this change.
23758         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23759         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23760         * lib/cycle-check.c (cycle_check): Likewise.
23761         * lib/same.c (same_name): Likewise.
23762         * lib/at-func2.c (at_func2): Likewise.
23763
23764 2009-09-23  Eric Blake  <ebb9@byu.net>
23765
23766         linkat: new module
23767         * modules/linkat: New file.
23768         * lib/at-func2.c (at_func2): Likewise.
23769         * lib/linkat.c (linkat): Likewise.
23770         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23771         * lib/openat-priv.h (at_func2): Add declaration.
23772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23773         * modules/unistd (Makefile.am): Substitute them.
23774         * lib/unistd.in.h (linkat): Declare it.
23775         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23776         * doc/posix-functions/linkat.texi (linkat): Likewise.
23777         * doc/posix-functions/link.texi (link): Tweak wording.
23778         * tests/test-link.c (main): Move guts...
23779         * tests/test-link.h (test_link): ...into new file.
23780         * modules/linkat-tests: New test.
23781         * tests/test-linkat.c: Likewise.
23782         * modules/link-tests (Files): Ship new file.
23783         (Depends-on): Add stdbool.
23784
23785         dirname: add library-safe mdir_name
23786         * lib/dirname.h (mdir_name): New prototype.
23787         * lib/dirname.c (dir_name): Move guts...
23788         (mdir_name): ...to new function that avoids xalloc_die.
23789
23790         fchdir: another mingw fix
23791         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23792         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23793         on mingw (where it has not yet been ported), and make it optional
23794         elsewhere.
23795         (_gl_register_fd): Use it.
23796
23797         same-inode: make SAME_INODE tri-state, to port to mingw
23798         * NEWS: Mention this change.
23799         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23800         st_ino always being 0.
23801         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23802         * lib/cycle-check.c (cycle_check): Likewise.
23803         * lib/same.c (same_name): Likewise.
23804
23805         lstat: avoid mingw compilation error
23806         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23807         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23808         lstat ourselves.
23809         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23810         was adequate.
23811         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23812         the checks for lstat.
23813         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23814
23815         link: fix test failure on Solaris 9
23816         * lib/link.c (rpl_link): Don't assume link will catch bogus
23817         trailing slash on source.
23818
23819         test-symlinkat: enhance test
23820         * tests/test-readlink.c (main): Move guts...
23821         * tests/test-readlink.h (test_readlink): ...into new file.
23822         * tests/test-symlink.c (main): Move guts...
23823         * tests/test-symlink.h (test_symlink): ...into new file.
23824         * tests/test-symlinkat.c (main): Use new files for further
23825         coverage.
23826         (do_symlink, do_readlink): New helper functions.
23827         * modules/symlink-tests (Files): Ship new file.
23828         (Depends-on): Add stdbool.
23829         * modules/readlink-tests (Files): Ship new file.
23830         (Depends-on): Add stdbool.
23831         * modules/symlinkat-tests (Files): Use new files.
23832
23833 2009-09-23  Eric Blake  <ebb9@byu.net>
23834
23835         readlink: document portability issue with symlink length
23836         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23837         systems have bogus st_size on symlinks, and mention the
23838         areadlink-with-size module.
23839         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23840         * doc/posix-functions/readlink.texi (readlink): Mention the
23841         areadlink module, and ERANGE failure.
23842         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23843         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23844
23845         readlink: fix Solaris 9 bug with trailing slash
23846         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23847         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23848         * doc/posix-functions/readlink.texi (readlink): Document this.
23849         * modules/readlink-tests: New test.
23850         * tests/test-readlink.c: Likewise.
23851
23852         readlink: fix cygwin 1.5.x bug with return type
23853         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23854         * lib/unistd.in.h (readlink): Use ssize_t.
23855         * lib/readlink.c (readlink): Likewise.
23856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23857         * modules/unistd (Makefile.am): Substitute it.
23858         * lib/unistd.in.h (readlink): Declare replacement.
23859         * doc/posix-functions/readlink.texi (readlink): Document this.
23860
23861         symlink: use throughout gnulib
23862         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23863         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23864         symlink is not used.
23865         * modules/symlinkat (Depends-on): Add symlink.
23866         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23867         * modules/canonicalize-tests (Depends-on): Likewise.
23868         * modules/lstat-tests (Depends-on): Likewise.
23869         * modules/openat-tests (Depends-on): Likewise.
23870         * modules/remove-tests (Depends-on): Likewise.
23871         * modules/rmdir-tests (Depends-on): Likewise.
23872         * modules/unlink-tests (Depends-on): Likewise.
23873         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23874         * tests/test-canonicalize.c (symlink): Likewise.
23875         * tests/test-fstatat.c (symlink): Likewise.
23876         * tests/test-lstat.c (symlink): Likewise.
23877         * tests/test-remove.c (symlink): Likewise.
23878         * tests/test-rmdir.c (symlink): Likewise.
23879         * tests/test-unlink.c (symlink): Likewise.
23880         * tests/test-unlinkat.c (symlink): Likewise.
23881
23882         symlink: new module, for Solaris 9 bug
23883         * modules/symlink: New file.
23884         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23885         * lib/symlink.c: Likewise.
23886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23887         * modules/unistd (Makefile.am): Substitute them.
23888         * lib/unistd.in.h (symlink): Declare replacement.
23889         * MODULES.html.sh (File system functions): Mention it.
23890         * doc/posix-functions/symlink.texi (symlink): Likewise.
23891         * modules/symlink-tests: New test.
23892         * tests/test-symlink.c: Likewise.
23893
23894 2009-09-23  Bruno Haible  <bruno@clisp.org>
23895
23896         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23897         when needed.
23898         Test case: gnulib-tool --import --with-tests atexit inttypes.
23899         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23900
23901 2009-09-23  Bruno Haible  <bruno@clisp.org>
23902
23903         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23904         subcommand, not in a subshell.
23905
23906 2009-09-22  Eric Blake  <ebb9@byu.net>
23907
23908         unistd: sort replacement declarations
23909         * lib/unistd.in.h: Sort declarations.
23910
23911         open, openat: minor optimization
23912         * lib/open.c (open): If open succeeded, len is non-zero.
23913         * lib/openat.c (rpl_openat): Likewise.
23914
23915         link-follow: ensure correct result
23916         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23917         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23918         distinguish between possible failures.
23919
23920 2009-09-21  Eric Blake  <ebb9@byu.net>
23921
23922         fts: avoid compiler warning
23923         * lib/fts.c (dirent_inode_sort_may_be_useful)
23924         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23925
23926 2009-09-19  Bruno Haible  <bruno@clisp.org>
23927
23928         * lib/progreloc.c (canonicalize_file_name): New declaration.
23929
23930 2009-09-19  Eric Blake  <ebb9@byu.net>
23931
23932         link: fix quoting
23933         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23934
23935         openat: fix openat bugs on Solaris 9
23936         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23937         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23938         * modules/openat (Depends-on): Add open.
23939         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23940         * modules/fcntl-h (Makefile.am): Substitute it.
23941         * lib/fcntl.in.h (openat): Declare replacement.
23942         * doc/posix-functions/openat.texi (openat): Document this.
23943
23944         openat: move fstatat and unlinkat into correct files
23945         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23946         compiled.
23947         * lib/openat.c (fstatat, unlinkat): Move...
23948         * lib/fstatat.c (fstatat): ...into correct files.
23949         * lib/unlinkat.c (unlinkat): Likewise.
23950
23951         openat: fix unlinkat bugs on Solaris 9
23952         * lib/unlinkat.c (unlinkat): New file.
23953         * modules/openat (Depends-on): Add unlink.
23954         (Files): Distribute it.
23955         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23956         trailing slash behavior is broken.
23957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23958         * modules/unistd (Makefile.am): Substitute it.
23959         * lib/unistd.in.h (unlinkat): Declare replacement.
23960         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23961
23962         openat: fix fstatat bugs on Solaris 9
23963         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23964         stat.
23965         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23966
23967         test-unlinkat: enhance test, to expose Solaris 9 bug
23968         * tests/test-unlink.c (main): Factor guts...
23969         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23970         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23971         * tests/test-rmdir.c (main): Adjust caller.
23972         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23973         (unlinker): New helper function.
23974         (rmdirat): Enhance check.
23975         * modules/rmdir-tests (Depends-on): Add stdbool.
23976         * modules/unlink-tests (Depends-on): Likewise.
23977         (Files): Add test-unlink.h.
23978         * modules/openat-tests (Files): Likewise.
23979         (Depends-on): Add unlinkdir.
23980
23981         test-fstatat: new test, to expose Solaris 9 bugs
23982         * tests/test-stat.c (main): Factor guts...
23983         * tests/test-stat.h (test_stat_func): ...into new file.
23984         * tests/test-lstat.c (main): Factor guts...
23985         * tests/test-lstat.h (test_lstat_func): ...into new file.
23986         * tests/test-fstatat.c: New file.
23987         * modules/stat-tests (Files): Add test-stat.h.
23988         * modules/lstat-tests (Files): Add test-lstat.h.
23989         (Depends-on): Add stdbool.
23990         * modules/openat-tests (Depends-on): Add pathmax.
23991         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23992         (Makefile.am): Run new test.
23993
23994         remove: new module, for mingw and Solaris 9 bugs
23995         * modules/remove: New file.
23996         * lib/remove.c: Likewise.
23997         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23999         * modules/stdio (Makefile.am): Use them.
24000         * lib/stdio.in.h (remove): Declare replacement.
24001         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24002         * doc/posix-functions/remove.texi (remove): Likewise.
24003         * modules/remove-tests: New test.
24004         * tests/test-remove.c: Likewise.
24005
24006         unlink: new module, for Solaris 9 bug
24007         * modules/unlink: New file.
24008         * lib/unlink.c: Likewise.
24009         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24011         * modules/unistd (Makefile.am): Use them.
24012         * lib/unistd.in.h (stat): Declare replacement.
24013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24014         * doc/posix-functions/unlink.texi (unlink): Likewise.
24015         * modules/unlink-tests: New test.
24016         * tests/test-unlink.c: Likewise.
24017
24018         lstat: fix Solaris 9 bug
24019         * lib/lstat.c (lstat): Also check for trailing slash on
24020         non-symlink, non-directories.  Use stat module to simplify logic.
24021         * doc/posix-functions/lstat.texi (lstat): Document it.
24022         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24023         (configure.ac): Check for symlink.
24024         * tests/test-lstat.c (main): Add more tests.
24025
24026         stat: add as dependency to other modules
24027         * modules/chown (Depends-on): Add stat.
24028         * modules/euidaccess (Depends-on): Likewise.
24029         * modules/fchdir (Depends-on): Likewise.
24030         * modules/isdir (Depends-on): Likewise.
24031         * modules/link (Depends-on): Likewise.
24032         * modules/lstat (Depends-on): Likewise.
24033         * modules/mkdir-p (Depends-on): Likewise.
24034         * modules/modechange (Depends-on): Likewise.
24035         * modules/open (Depends-on): Likewise.
24036         * modules/readlink (Depends-on): Likewise.
24037         * modules/same (Depends-on): Likewise.
24038
24039         stat: fix Solaris 9 bug
24040         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24041         slash.
24042         * lib/stat.c (rpl_stat): Work around it.
24043         * doc/posix-functions/stat.texi (stat): Update documentation.
24044
24045         stat: new module, for mingw bug
24046         * modules/stat: New file.
24047         * lib/stat.c: Likewise.
24048         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24050         * modules/sys_stat (Makefile.am): Use them.
24051         * lib/sys_stat.in.h (stat): Declare replacement.
24052         * lib/openat.c (fstatat): Deal with lstat and stat being function
24053         macros.
24054         * modules/openat (Depends-on): Add inline.
24055         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24056         * doc/posix-functions/stat.texi (stat): Likewise.
24057         * modules/stat-tests: New test.
24058         * tests/test-stat.c: Likewise.
24059
24060 2009-09-19  Jim Meyering  <meyering@redhat.com>
24061
24062         syntax-check: detect unnecessary inclusion of canonicalize.h
24063         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24064
24065 2009-09-19  Eric Blake  <ebb9@byu.net>
24066
24067         canonicalize-lgpl: adjust clients to use correct header
24068         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24069         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24070         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24071         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24072         * lib/progreloc.c (includes): Likewise.
24073
24074 2009-09-19  Jim Meyering  <meyering@redhat.com>
24075
24076         test-posixtm.c: correct a comment
24077         * tests/test-posixtm.c: Correct first-line comment.
24078         Spotted by Eric Blake.
24079
24080 2009-09-16  Jim Meyering  <meyering@redhat.com>
24081
24082         posixtm-tests: make T const-correct; add a test case
24083         * tests/test-posixtm.c (T): Declare const.
24084         Add a test for -(2^31+1).
24085         Remove useless can-succeed-only-in-2002 test.
24086
24087         posixtm-tests: adjust the sole failing test
24088         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24089         expected output matches what mktime now produces.  Cross-checked via
24090         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24091
24092         posixtm: move #ifdef'd tests into a new module
24093         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24094         * tests/test-posixtm.c: ... this new file.
24095         * modules/posixtm-tests: New module.
24096
24097 2009-09-19  Eric Blake  <ebb9@byu.net>
24098
24099         openat: simplify use of at-func.c
24100         * lib/at-func.c (includes): Include prerequisites here, to
24101         simplify requirements on client files.
24102         * lib/openat-priv.h: Add double-inclusion guard.
24103         * lib/faccessat.c (includes): Simplify.
24104         * lib/fchmodat.c (includes): Likewise.
24105         * lib/fchownat.c (includes): Likewise.
24106         * lib/mkdirat.c (includes): Likewise.
24107         * lib/mkfifoat.c (includes): Likewise.
24108         * lib/symlinkat.c (includes): Likewise.
24109
24110         openat: allow return of fd 0
24111         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24112         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24113         unistd-safer.
24114         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24115         <fcntl.h>; this module does not leak fds.
24116         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24117         must be allowed to return 0, leaving openat_safer to add the
24118         safety.
24119         (openat_permissive): Avoid writing to just-opened fd 2 if
24120         restoring the current directory fails.
24121         * lib/openat-die.c (openat_restore_fail): Add comment.
24122         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24123         (save_cwd): Guarantee safe fd, but without use of open_safer.
24124         * tests/test-openat.c: New test.
24125         * modules/openat-tests (Files, Makefile.am): Distribute and build
24126         new file.
24127
24128         relocatable-prog-wrapper: fix build
24129         * modules/relocatable-prog-wrapper (Files): Update name of
24130         canonicalize m4 file, broken on 2009-09-17.
24131         Reported by emad hajjar <aleppos@hotmail.com>.
24132
24133 2009-09-19  Bruno Haible  <bruno@clisp.org>
24134
24135         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24136         * lib/safe-alloc.c: Likewise.
24137         Reported by Ian Beckwith <ianb@erislabs.net>.
24138
24139 2009-09-18  Bruno Haible  <bruno@clisp.org>
24140
24141         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24142         Reported by <erobles@sensacd.com.mx>.
24143
24144 2009-09-17  Eric Blake  <ebb9@byu.net>
24145
24146         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24147         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24148         slashes when checking if last component is missing.
24149         * tests/test-canonicalize.c (main): Test this.
24150
24151         canonicalize, canonicalize-lgpl: honor // if distinct from /
24152         * modules/canonicalize (Files): Add double-slash-root.m4.
24153         * modules/canonicalize-lgpl (Files): Likewise.
24154         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24155         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24156         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24157         fallback definition.
24158         (canonicalize_filename_mode): Use it to protect //.
24159         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24160         (__realpath): Likewise.
24161         * tests/test-canonicalize.c (main): Test this.
24162         * tests/test-canonicalize-lgpl.c (main): Likewise.
24163         * modules/canonicalize-tests (Depends-on): Add same-inode.
24164         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24165
24166         canonicalize-lgpl: fix glibc bug with trailing slash
24167         * m4/canonicalize-lgpl.m4: Move contents...
24168         * m4/canonicalize.m4: ...here.
24169         (gl_CANONICALIZE_LGPL): Factor realpath check...
24170         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24171         glibc 2.3.5 bug, fixed 2005-04-27.
24172         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24173         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24174         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24175         * modules/canonicalize-lgpl (Files): Manage file rename.
24176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24177         * modules/stdlib (Makefile.am): Substitute witness.
24178         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24179         is needed.
24180         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24181         replacement is required.
24182         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24183         * doc/glibc-functions/canonicalize_file_name.texi
24184         (canonicalize_file_name): Document this.
24185         * doc/posix-functions/realpath.texi (realpath): Likewise.
24186
24187         canonicalize-lgpl: reject non-directory with trailing slash
24188         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24189         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24190         catches failures in glibc 2.3.5.
24191         * tests/test-canonicalize.c (main): Likewise.
24192
24193         canonicalize-lgpl: use native realpath if it works
24194         * lib/canonicalize-lgpl.c (realpath): Guard with
24195         FUNC_REALPATH_WORKS.
24196         * lib/stdlib.in.h (realpath): Make declaration optional based on
24197         HAVE_REALPATH.
24198         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24199         native realpath works.
24200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24201         * modules/stdlib (Makefile.am): Substitute witness.
24202
24203         canonicalize, canonicalize-lgpl: use <stdlib.h>
24204         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24205         (Include): Mention <stdlib.h>.
24206         (configure.ac): Mention functions we provide.
24207         * modules/canonicalize (configure.ac): Likewise.
24208         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24209         realpath if canonicalize_file_name is missing.
24210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24211         * modules/stdlib (Makefile.am): Substitute witnesses.
24212         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24213         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24214         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24215         * NEWS: Document this.
24216         * doc/glibc-functions/canonicalize_file_name.texi
24217         (canonicalize_file_name): Likewise.
24218         * doc/posix-functions/realpath.texi (realpath): Likewise.
24219         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24220
24221         test-canonicalize: consolidate into single C program
24222         * tests/test-canonicalize.sh: Delete; move setup into...
24223         * tests/test-canonicalize.c (main): ...the program, making it
24224         easier to run in debugger.  Add some tests.
24225         * modules/canonicalize-tests (Files): Remove unused file.
24226         (Depends-on): Add progname.
24227         (configure.ac, Makefile.am): Simplify.
24228
24229         test-canonicalize-lgpl: consolidate into single C program
24230         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24231         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24232         easier to run in debugger.  Add some tests.
24233         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24234         (configure.ac, Makefile.am): Simplify.
24235
24236         canonicalize: avoid resolvepath
24237         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24238         unnecessary checks.
24239         * lib/canonicalize.c (includes): Simplify.
24240         (canonicalize_file_name): Drop resolvepath implementation.
24241         * modules/canonicalize (Depends-on): Drop filenamecat.
24242
24243         canonicalize: don't lose errno
24244         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24245         over calls to free.
24246
24247         canonicalize: simplify errno handling
24248         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24249         assignment.
24250
24251         canonicalize, canonicalize-lgpl: update module dependencies
24252         * modules/canonicalize (Depends-on): Add extensions, lstat,
24253         pathmax, stdlib.
24254         (Files): Drop pathmax.h.
24255         (configure.ac): Adjust macro name.
24256         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24257         lstat, stdlib, sys_stat.
24258         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24259         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24260         extensions.
24261         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24262         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24263         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24264         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24265         declaration, if available.
24266         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24267         we can rely on the readlink module.
24268         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24269         (includes): Use <unistd.h> unconditionally.
24270
24271 2009-09-17  Eric Blake  <ebb9@byu.net>
24272
24273         maint: make Include sections of modules consistent
24274         * modules/alloca: Use only header name; no need to list #include.
24275         * modules/alloca-opt: Likewise.
24276         * modules/arpa_inet: Likewise.
24277         * modules/canon-host: Likewise.
24278         * modules/configmake: Likewise.
24279         * modules/dirent: Likewise.
24280         * modules/eealloc: Likewise.
24281         * modules/environ: Likewise.
24282         * modules/fchdir: Likewise.
24283         * modules/fcntl: Likewise.
24284         * modules/fcntl-h: Likewise.
24285         * modules/gethrxtime: Likewise.
24286         * modules/gettime: Likewise.
24287         * modules/ignore-value: Likewise.
24288         * modules/inet_ntop: Likewise.
24289         * modules/inet_pton: Likewise.
24290         * modules/inttypes: Likewise.
24291         * modules/isnand-nolibm: Likewise.
24292         * modules/isnanf-nolibm: Likewise.
24293         * modules/mbchar: Likewise.
24294         * modules/mbfile: Likewise.
24295         * modules/mbiter: Likewise.
24296         * modules/mbuiter: Likewise.
24297         * modules/netdb: Likewise.
24298         * modules/netinet_in: Likewise.
24299         * modules/nproc: Likewise.
24300         * modules/pagealign_alloc: Likewise.
24301         * modules/poll: Likewise.
24302         * modules/printf-frexp: Likewise.
24303         * modules/pthread: Likewise.
24304         * modules/putenv: Likewise.
24305         * modules/random_r: Likewise.
24306         * modules/relocatable-prog: Likewise.
24307         * modules/search: Likewise.
24308         * modules/select: Likewise.
24309         * modules/selinux-h: Likewise.
24310         * modules/settime: Likewise.
24311         * modules/signal: Likewise.
24312         * modules/size_max: Likewise.
24313         * modules/socklen: Likewise.
24314         * modules/ssize_t: Likewise.
24315         * modules/stdarg: Likewise.
24316         * modules/stdbool: Likewise.
24317         * modules/stddef: Likewise.
24318         * modules/stdint: Likewise.
24319         * modules/stdio: Likewise.
24320         * modules/stdlib: Likewise.
24321         * modules/string: Likewise.
24322         * modules/strings: Likewise.
24323         * modules/sys_file: Likewise.
24324         * modules/sys_ioctl: Likewise.
24325         * modules/sys_select: Likewise.
24326         * modules/sys_socket: Likewise.
24327         * modules/sys_stat: Likewise.
24328         * modules/sys_time: Likewise.
24329         * modules/sys_times: Likewise.
24330         * modules/sys_utsname: Likewise.
24331         * modules/sys_wait: Likewise.
24332         * modules/sysexits: Likewise.
24333         * modules/time: Likewise.
24334         * modules/times: Likewise.
24335         * modules/tmpfile: Likewise.
24336         * modules/trim: Likewise.
24337         * modules/unistd: Likewise.
24338         * modules/wchar: Likewise.
24339         * modules/wctype: Likewise.
24340
24341 2009-09-17  Bruno Haible  <bruno@clisp.org>
24342
24343         Make getdate.y compile on QNX and NetBSD 5 / i386.
24344         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24345         TIME_T_FITS_IN_LONG_INT.
24346         * lib/getdate.y (long_time_t): New type.
24347         (relative_time): Change type of 'seconds' field to long_time_t.
24348         (get_date): Update types of local variables. Check against overflow
24349         during conversion from long_time_t to time_t.
24350         Reported by Matt Kraai <kraai@ftbfs.org>
24351         and Hasso Tepper <hasso@netbsd.org>.
24352
24353 2009-09-17  Bruno Haible  <bruno@clisp.org>
24354
24355         * modules/COPYING: Update copyright years.
24356         * modules/README: Likeiwse.
24357         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24358         Reported by Ian Beckwith <ianb@erislabs.net>.
24359
24360 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24361
24362         * users.txt: Update references for gnuit package.
24363
24364 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24365
24366         * m4/getdelim.m4: Fix typo in copyright line.
24367
24368 2009-09-17  Bruno Haible  <bruno@clisp.org>
24369
24370         * lib/atoll.c: Use the standard header with GPL copyright.
24371         * lib/argz.in.h: Likewise.
24372         * lib/glob.c: Likewise.
24373         * lib/glob-libc.h: Likewise.
24374         * lib/random_r.c: Likewise.
24375         * lib/siglist.h: Likewise.
24376         * lib/strsignal.c: Likewise.
24377         Reported by Ian Beckwith <ianb@erislabs.net>.
24378
24379 2009-09-17  Eric Blake  <ebb9@byu.net>
24380
24381         rmdir: ensure correct dependency order
24382         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24383
24384 2009-09-17  Bruno Haible  <bruno@clisp.org>
24385
24386         Disable assertion that fails on NetBSD 5 / i386.
24387         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24388         Reported by Sam Steingold <sds@gnu.org>
24389         and Hasso Tepper <hasso@netbsd.org>.
24390
24391 2009-09-16  Eric Blake  <ebb9@byu.net>
24392
24393         unlinkdir: port to mingw
24394         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24395         on which no one can unlink a directory.
24396
24397         stdlib: sort witness names
24398         * modules/stdlib (Makefile.am): Sort replacements.
24399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24400         * lib/stdlib.in.h: Likewise.
24401
24402         parse-duration-tests: avoid link failure
24403         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24404         LIBINTL.
24405         Reported by Tom G. Christensen.
24406
24407         openat-tests: ensure unlinkat behaves like rmdir
24408         * tests/test-rmdir.c (main): Factor guts...
24409         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24410         * modules/rmdir-tests (Files): Ship new file.
24411         * modules/openat-tests: New test.
24412         * tests/test-unlinkat.c: Likewise.
24413
24414         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24415         * modules/rmdir-errno (Status, Notice): Now obsolete.
24416
24417         rmdir: work around cygwin 1.5.x and mingw bugs
24418         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24419         * lib/rmdir.c (rmdir): Work around it.
24420         * modules/rmdir (Status, Notice): No longer obsolete.
24421         (Files): Add dos.m4.
24422         (Depends-on): Add unistd.
24423         (configure.ac): Set witnesses.
24424         (License): Relax to LGPLv2+.
24425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24426         * modules/unistd (Makefile.am): Substitute witnesses.
24427         * lib/unistd.in.h (rmdir): Declare replacement.
24428         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24429         * modules/rmdir-tests: New tests.
24430         * tests/test-rmdir.c: Likewise.
24431
24432 2009-09-15  Eric Blake  <ebb9@byu.net>
24433
24434         fchdir: improve use of replacement functions
24435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24436         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24437         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24438         REPLACE_CLOSEDIR.
24439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24440         * modules/sys_stat (Makefile.am): Substitute correct witness.
24441         * modules/dirent (Makefile.am): Likewise.
24442         * modules/unistd (Makefile.am): Likewise.
24443         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24444         * lib/unistd.in.h (dup): Likewise.
24445         * lib/sys_stat.in.h (fstat): Likewise.
24446
24447         maint: ignore gnulib-tool temp files
24448         * .gitignore: Ignore files created during gnulib-tool --test.
24449
24450 2009-09-13  Jim Meyering  <meyering@redhat.com>
24451
24452         posixtm: don't reject a time that specify "60" as the number of seconds
24453         * lib/posixtm.c (posixtime): The code to reject invalid dates
24454         would also reject a time specified with the .60 suffix.
24455         But POSIX allows that, in order to accommodate leap seconds.
24456         So don't reject it.
24457         (main): Adjust tests accordingly.
24458         * modules/posixtm (Depends-on): Add stpcpy.
24459
24460 2009-09-11  Jim Meyering  <meyering@redhat.com>
24461
24462         announce-gen: include [$release_type] in emitted Subject:
24463         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24464         e.g., [stable] in the emitted Subject: line.
24465
24466 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24467
24468         Remove obsolete macros from several modules.
24469         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24470         obsolete Autoconf macros with their modern counterparts.
24471         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24472         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24474         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24475         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24476         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24478         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24479         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24480         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24481         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24483         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24484         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24485         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24486         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24487         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24488         * m4/time_r.m4 (gl_TIME_R): Likewise.
24489         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24490         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24491         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24492
24493         Fix copyright header in build-aux scripts.
24494         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24495         recommendation.
24496         * build-aux/ncftpput-ftp: Likewise.
24497         * build-aux/update-copyright: Likewise.
24498
24499 2009-09-09  Eric Blake  <ebb9@byu.net>
24500
24501         test-link: allow Linux choice of errno
24502         * tests/test-link.c (main): Relax test for alternate error.
24503
24504         strndup: fix improper m4 caching
24505         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24506         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24507         (gl_PREREQ_STRNDUP): Delete.
24508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24509         * modules/string (Makefile.am): Substitute it.
24510         * lib/string.in.h (strndup): Modernize prototype.
24511
24512         getcwd: port to mingw
24513         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24514         different from the POSIX assumptions made throughout the getcwd
24515         module; fortunately, the mingw getcwd does not need replacement.
24516         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24517         * modules/getcwd-tests: New test.
24518         * tests/test-getcwd.c: Likewise.
24519
24520         link: fix platform bugs
24521         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24522         * lib/link.c (link): Work around them.  Fix related mingw bug.
24523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24524         * modules/unistd (Makefile.am): Substitute it.
24525         * lib/unistd.in.h (link): Declare replacement.
24526         * doc/posix-functions/link.texi (link): Document this.
24527         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24528
24529         test-link: consolidate into single C program, test more cases
24530         * tests/test-link.sh: Delete.
24531         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24532         at least Cygwin and Solaris.
24533         * modules/link-tests (Files): Remove unused file.
24534         (Depends-on): Add errno, sys_stat.
24535         (Makefile.am): Simplify.
24536
24537 2009-09-08  Bruno Haible  <bruno@clisp.org>
24538
24539         Work around towlower, towupper bug on mingw.
24540         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24541         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24542         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24543         * doc/posix-functions/towupper.texi: Likewise.
24544         Reported by Eric Blake.
24545
24546 2009-09-08  Jim Meyering  <meyering@redhat.com>
24547
24548         build: don't try to run autoheader if we don't use it
24549         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24550         is not used in configure.ac.
24551
24552 2009-09-08  Eric Blake  <ebb9@byu.net>
24553
24554         euidaccess: fix compilation error
24555         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24556
24557         rawmemchr: relax license
24558         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24559         okay.
24560         Reported by Jim Meyering.
24561
24562         mkfifoat: new module
24563         * modules/mkfifoat: New file.
24564         * lib/mkfifoat.c: Likewise.
24565         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24566         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24567         * modules/sys_stat (Makefile.am): Use them.
24568         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24569         * MODULES.html.sh (File system functions): Mention module.
24570         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24571         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24572         * modules/mkfifoat-tests: New test.
24573         * tests/test-mkfifoat.c: Likewise.
24574
24575         strchrnul: relax license
24576         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24577         okay.
24578         Reported by Jim Meyering.
24579
24580 2009-09-08  Eric Blake  <ebb9@byu.net>
24581
24582         fstatat: fix compilation on Solaris
24583         * lib/fstatat.c (includes): Add fcntl.h.
24584         Reported by Pádraig Brady.
24585
24586 2009-09-07  Eric Blake  <ebb9@byu.net>
24587
24588         rename: modernize replacement
24589         * modules/rename (Depends-on): Add stdio.
24590         (configure.ac): Declare witness.
24591         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24592         stdio take care of replacement.
24593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24594         * modules/stdio (Makefile.am): Substitute them.
24595         * lib/stdio.in.h (rename): Declare replacement.
24596         * lib/rename.c (includes): Allow cross-compilation to non-windows
24597         machines.
24598         * doc/posix-functions/rename.texi (rename): Improve
24599         documentation.
24600
24601         stdio: sort witness names
24602         * modules/stdio (Makefile.am): Sort replacements.
24603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24604         * lib/stdio.in.h: Likewise.
24605
24606         getcwd: minor cleanups
24607         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24608         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24609
24610         openat: provide more convenience names
24611         * modules/faccessat (configure.ac): Add C witness.
24612         * lib/unistd.in.h (readlinkat): Fix typo.
24613         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24614         convenience wrappers.
24615         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24616         wrappers in syntax checks.
24617
24618 2009-09-06  Eric Blake  <ebb9@byu.net>
24619
24620         doc: fix comments in recent patches
24621         * lib/faccessat.c: Mention correct function.
24622         * lib/fchmodat.c: Likewise.
24623         * lib/fchownat.c: Likewise.
24624         * lib/symlinkat.c: Likewise.
24625         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24626         constants.
24627
24628         faccessat, symlinkat: continue cleanup of previous patch
24629         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24630         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24631         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24633         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24634         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24635         set.
24636
24637 2009-09-06  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24640         (fstatat): Declare if GNULIB_FSTATAT is set.
24641         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24642         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24643         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24644         * modules/fcntl-h (Files): Remove m4/openat.m4.
24645         * modules/sys_stat (Files): Remove m4/openat.m4.
24646         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24647         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24648         * modules/unistd (Files): Remove m4/openat.m4.
24649         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24650         GNULIB_OPENAT.
24651         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24652         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24654         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24655         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24656         gl_OPENAT_DEFAULTS.
24657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24658         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24659         Don't require gl_OPENAT_DEFAULTS.
24660         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24661         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24662         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24663         (gl_OPENAT_DEFAULTS): Remove macro.
24664
24665 2009-09-06  Bruno Haible  <bruno@clisp.org>
24666
24667         * modules/openat (configure.ac): Remove unneeded witness.
24668
24669 2009-09-06  Bruno Haible  <bruno@clisp.org>
24670
24671         Set errno to ENOSYS when a function is entirely unsupported.
24672         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24673         EOPNOTSUPP.
24674         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24675         * modules/chown (Depends-on): Remove errno.
24676
24677 2009-09-06  Bruno Haible  <bruno@clisp.org>
24678
24679         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24680
24681 2009-09-06  Bruno Haible  <bruno@clisp.org>
24682
24683         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24684
24685 2009-09-06  Ben Pfaff  <blp@gnu.org>
24686             Bruno Haible  <bruno@clisp.org>
24687
24688         Work around a glibc bug in strtok_r.
24689         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24690         Undefine if UNDEFINE_STRTOK_R is set.
24691         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24693         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24694         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24695         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24696         UNDEFINE_STRTOK_R.
24697         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24698
24699 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24700
24701         exclude: minor fix
24702         * lib/exclude.c: Include wctype.h
24703
24704 2009-09-06  Akim Demaille  <demaille@gostai.com>
24705
24706         bootstrap: improve error message
24707         * build-aux/bootstrap (find_tool): Upon failure, report the list
24708         of candidates.
24709         Honor the initial value of the envvar.
24710
24711 2009-09-05  Eric Blake  <ebb9@byu.net>
24712
24713         symlinkat: new module
24714         * modules/symlinkat: New file.
24715         * lib/symlinkat.c: Likewise.
24716         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24718         * modules/unistd (Makefile.am): Use them.
24719         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24720         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24721         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24722         * MODULES.html.sh (File system functions): Mention module.
24723         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24724         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24725         * modules/symlinkat-tests: New test.
24726         * tests/test-symlinkat.c: Likewise.
24727
24728         test-openat-safer: add more checks
24729         * tests/test-openat-safer.c (main): Check more code paths.
24730
24731 2009-09-05  Jim Meyering  <meyering@redhat.com>
24732
24733         syntax-check: detect unnecessary inclusion of openat.h
24734         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24735
24736 2009-09-05  Bruno Haible  <bruno@clisp.org>
24737
24738         Support towlower, towupper.
24739         * doc/posix-functions/towlower.texi: Mention module wctype.
24740         * doc/posix-functions/towupper.texi: Likewise.
24741         * lib/wctype.in.h (towlower, towupper): New functions.
24742         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24743         (ASSERT): New macro.
24744         (e): New variable.
24745         (main): Test also towlower, towupper. Test WEOF argument.
24746         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24747
24748 2009-09-05  Bruno Haible  <bruno@clisp.org>
24749
24750         Fix conversion behaviour when the input is invalid.
24751         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24752         mark occurring in first pass of indirect conversion.
24753         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24754         input.
24755         Found by clang's static analyzer.
24756
24757 2009-09-05  Bruno Haible  <bruno@clisp.org>
24758
24759         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24760         where direct conversion is possible.
24761
24762 2009-09-04  Eric Blake  <ebb9@byu.net>
24763
24764         openat: fail with ENOENT on empty name
24765         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24766         buffer.
24767
24768         link-follow: fix logic bug in prior patch
24769         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24770         reversed sense of yes and no in prior patch.  Avoid confusing
24771         compilation failure with desired semantics.
24772
24773         link-follow: accomodate mingw and cross-compilation
24774         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24775         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24776         cross-compilation results to -1, to make linkat easier to
24777         implement when cross-compiling.  Trivially support mingw.
24778         * modules/link-follow (configure.ac): Call new name.
24779         * NEWS: Mention this.
24780
24781 2009-09-03  Eric Blake  <ebb9@byu.net>
24782
24783         faccessat: compile replacement
24784         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24785         needed.
24786
24787         fts: fix compilation error
24788         * lib/fts.c (includes): Re-add "openat.h", for
24789         openat_needs_fchdir.
24790
24791         faccessat: new module
24792         * modules/faccessat: New file.
24793         * lib/faccessat.c: Likewise.
24794         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24796         * modules/unistd (Makefile.am): Use it.
24797         * lib/unistd.in.h (faccessat): Declare it.
24798         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24799         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24800         * MODULES.html.sh (File system functions): Mention it.
24801         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24802         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24803
24804         euidaccess: prefer POSIX over non-standard implementation
24805         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24806         * lib/euidaccess.c (euidaccess): Use it if available.
24807
24808         openat: make template easier to use
24809         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24810         AT_FUNC_F2 to be undefined.
24811         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24812         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24813         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24814         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24815         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24816         Likewise.
24817         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24818         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24819         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24820         Likewise.
24821
24822         openat: declare in POSIX headers
24823         * NEWS: Mention this.
24824         * modules/openat (configure.ac): Declare witnesses.
24825         (Depends-on): Add fcntl-h, sys_stat, unistd.
24826         (Include): Mention correct headers.
24827         * modules/fcntl-h (Depends-on): Add link-warning.
24828         (Files): Add openat.m4.
24829         (Makefile.am): Substitute witnesses.
24830         * modules/sys_stat (Files, Makefile.am): Likewise.
24831         * modules/unistd (Files, Makefile.am): Likewise.
24832         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24833         (gl_OPENAT_DEFAULTS): New macro.
24834         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24837         (SYS_STAT_H): Remove unused variable.
24838         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24839         * lib/fcntl--.h (includes): Remove unneeded header.
24840         * lib/openat-safer.c (includes): Likewise.
24841         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24842         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24843         appropriate headers.
24844         (__OPENAT_PREFIX): Delete.
24845         * lib/fcntl.in.h (openat): Provide declaration.
24846         (AT_FDCWD): Fix Solaris bug.
24847         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24848         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24849         * lib/fchmodat.c (includes):  Adjust to find declaration.
24850         * lib/fchownat.c (includes): Likewise.
24851         * lib/mkdirat.c (includes): Likewise.
24852         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24853         still visible.
24854
24855 2009-09-02  Eric Blake  <ebb9@byu.net>
24856
24857         errno: use consistently
24858         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24859         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24860         * lib/canonicalize.c (ELOOP): Likewise.
24861         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24862         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24863         * lib/lchown.c (EOPNOTSUPP): Likewise.
24864         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24865         * lib/savewd.c (ESTALE): Likewise.
24866         * lib/settime.c (ENOSYS): Likewise.
24867         * lib/utimens.c (ENOSYS): Likewise.
24868         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24869         * lib/chdir-safer.c (ELOOP): Likewise.
24870         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24871         * modules/c-stack (Depends-on): Add errno.
24872         * modules/canonicalize (Depends-on): Likewise.
24873         * modules/chdir-safer (Depends-on): Likewise.
24874         * modules/fdopendir (Depends-on): Likewise.
24875         * modules/inet_ntop (Depends-on): Likewise.
24876         * modules/inet_pton (Depends-on): Likewise.
24877         * modules/lchown (Depends-on): Likewise.
24878         * modules/openat (Depends-on): Likewise.
24879         * modules/savewd (Depends-on): Likewise.
24880         * modules/settime (Depends-on): Likewise.
24881         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24882
24883         fts: avoid leaking fds
24884         * modules/fts (Depends-on): Add cloexec.
24885         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24886         flag.
24887
24888         fts: make directory fds more robust
24889         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24890         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24891
24892         backupfile, chdir-long, fts, savedir: make safer
24893         * lib/backupfile.c (includes): Use "dirent--.h", since
24894         numbered_backup can write to stderr during readdir.
24895         * lib/savedir.c (includes): Likewise.
24896         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24897         emulation can write to stderr on failure.
24898         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24899         * lib/getcwd.c: Document why opendir_safer is unused.
24900         * lib/glob.c: Likewise.
24901         * lib/scandir.c: Likewise.
24902         * lib/openat-proc.c: Likewise, for open_safer.
24903         * modules/backupfile (Depends-on): Add dirent-safer.
24904         * modules/savedir (Depends-on): Likewise.
24905         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24906         * modules/chdir-long (Depends-on): Add openat-safer.
24907
24908         openat-safer: new module
24909         * modules/openat-safer: New file.
24910         * lib/openat-safer.c: Likewise.
24911         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24912         * lib/fcntl-safer.h (openat_safer): Declare.
24913         * lib/fcntl--.h (openat): Override.
24914         * MODULES.html.sh (File descriptor based I/O): Mention it.
24915         * lib/openat.h: Add double-inclusion guards.
24916         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24917         "fcntl--.h", so we can implement openat.
24918         * modules/openat-safer-tests: New test.
24919         * tests/test-openat-safer.c: New file.
24920
24921         dirent-safer: new module
24922         * modules/dirent-safer: New file.
24923         * lib/dirent--.h: Likewise.
24924         * lib/dirent-safer.h: Likewise.
24925         * lib/opendir-safer.c: Likewise.
24926         * m4/dirent-safer.m4: Likewise.
24927         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24928         * modules/dirent-safer-tests: New test.
24929         * tests/test-dirent-safer.c: New file.
24930         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24931
24932         fdopendir: optimize on mingw
24933         * lib/unistd.in.h (_gl_directory_name): New prototype.
24934         * lib/fchdir.c (_gl_directory_name): Implement it.
24935         (fchdir): Use it to simplify implementation.
24936         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24937         fchdir, when available, to avoid calling [f]chdir().
24938
24939         fdopendir: split into its own module
24940         * lib/openat.c (fdopendir): Move...
24941         * lib/fdopendir.c: ...into new file.
24942         * modules/fdopendir: New module.
24943         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24944         * modules/openat (Depends-on): Add fdopendir.
24945         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24946         fdopendir here.
24947         * modules/savedir (Depends-on): Only need fdopendir, not full
24948         openat.
24949         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24950         * lib/openat.h (fdopendir): Drop prototype.
24951         * lib/dirent.in.h (fdopendir): Provide prototype.
24952         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24953         * modules/dirent (Makefile.am): Substitute them.
24954         * MODULES.html.sh (File system functions): Mention it.
24955         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24956         * modules/fdopendir-tests: New file.
24957         * tests/test-fdopendir.c: Likewise.
24958
24959         fchdir: use more consistent macro convention
24960         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24961         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24962         REPLACE_FCHDIR, rather than relying on config.h macros.
24963         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24964         inside a single make-time REPLACE_FCHDIR block, rather than using
24965         the config.h FCHDIR_REPLACEMENT.
24966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24967         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24968         Manage fstat replacement.
24969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24970         REPLACE_FCHDIR.
24971         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24972         (Makefile.am): Substitute REPLACE_FCHDIR.
24973         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24974         FCHDIR_REPLACEMENT.
24975         * lib/dup-safer.c (dup_safer): Likewise.
24976         * lib/dup2.c (rpl_dup2): Likewise.
24977         * lib/dup3.c (rpl_dup3): Likewise.
24978         * lib/open.c (rpl_open): Likewise.
24979
24980         fchdir: simplify error handling, and support dup3
24981         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24982         stdbool, malloc-posix, realloc-posix.
24983         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24984         (ensure_dirs_slot): Return false on allocation failure.
24985         (rpl_dup2): Delete.
24986         (_gl_register_dup): New function.
24987         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24988         (_gl_register_fd): Close fd on allocation failure.
24989         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24990         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24991         prototype.
24992         (rpl_dup2_fchdir): Delete prototype.
24993         * lib/open.c (open): Update caller.
24994         * lib/dup2.c (dup2): Track fchdir metadata.
24995         * lib/dup3.c (dup3): Likewise.
24996         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24997         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24998
24999 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25000
25001         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25002         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25003         don't pass arguments to AC_OUTPUT.
25004
25005 2009-09-02  Bruno Haible  <bruno@clisp.org>
25006
25007         * modules/mkdtemp (License): Relicense under LGPLv2+.
25008         Reported by Paolo Bonzini.
25009
25010 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25011
25012         Replace uses of obsolete autoconf macros in Jim's modules.
25013         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25014         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25015         can evoke a warning from autoconf when run with -Wobsolete
25016         enabled.  They were declared obsolete for good reasons (see
25017         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25018         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25019         should not continue using the deprecated macros.
25020         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25021         obsolete Autoconf macros with modern counterparts.
25022         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25023         * m4/dos.m4 (gl_AC_DOS): Likewise.
25024         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25026         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25027         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25028         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25029         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25030         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25031         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25032         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25033         Likewise.
25034         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25035         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25036         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25037         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25038         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25039         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25040
25041 2009-09-01  Eric Blake  <ebb9@byu.net>
25042
25043         fchdir: fix off-by-one bug in previous patch
25044         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25045         (_gl_unregister_fd): Delete useless if.
25046
25047 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25048
25049         maint.mk: sort the list of syntax-check rules
25050         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25051         easier to get a sense of progress when the rules are run sequentially
25052         and take a long time.
25053
25054 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25055
25056         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25057         * modules/netinet_in: Likewise.
25058         * modules/sys_file: Likewise.
25059         * modules/sys_ioctl: Likewise.
25060         * modules/sys_select: Likewise.
25061         * modules/sys_socket: Likewise.
25062         * modules/sys_stat: Likewise.
25063         * modules/sys_time: Likewise.
25064         * modules/sys_times: Likewise.
25065         * modules/sys_utsname: Likewise.
25066         * modules/sys_wait: Likewise.
25067
25068 2009-09-01  Jim Meyering  <meyering@redhat.com>
25069
25070         fts: help ensure that return values are not ignored
25071         * lib/fts_.h (__GNUC_PREREQ): Define.
25072         (__attribute_warn_unused_result__): Define.
25073         (fts_children, fts_close, fts_open, fts_read): Declare with
25074         __attribute_warn_unused_result__.
25075
25076         fts: fts_close now fails also when closing a dir file descriptor fails
25077         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25078         and propagate to caller, along with errno.
25079
25080         announce-gen: correct formatting in --help output
25081         * build-aux/announce-gen (usage): Move the one-line description in
25082         --help output "up", to where it belongs, just after Usage:.
25083
25084 2009-08-31  Eric Blake  <ebb9@byu.net>
25085
25086         fchdir: port to mingw
25087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25088         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25089         opened, then use a substitute.
25090         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25091         replacement.
25092         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25093         (_gl_register_fd): No need to check stat if open already filters
25094         all directories.
25095         (fchdir): Fix error condition to match POSIX.
25096         * modules/fchdir (Depends-on): Add sys_stat.
25097         * doc/posix-functions/open.texi (open): Document the limitation.
25098         * modules/fchdir-tests: New file.
25099         * tests/test-fchdir.c: Likewise.
25100
25101         canonicalize: allow cross-testing from cygwin to mingw
25102         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25103         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25104         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25105         Likewise.
25106         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25107         target does not support symlinks.
25108         * tests/test-canonicalize-lgpl.sh: Likewise.
25109
25110         chown: avoid compilation warning on mingw
25111         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25112         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25113         mingw.
25114         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25115         * modules/chown (Depends-on): Add errno.
25116
25117 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25118
25119         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25120         command.
25121
25122 2009-08-31  Jim Meyering  <meyering@redhat.com>
25123
25124         canonicalize: remove useless initialization
25125         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25126         initialization of local, "end".
25127
25128 2009-08-30  Bruno Haible  <bruno@clisp.org>
25129
25130         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25131         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25132         ENOSYS.
25133
25134 2009-08-30  Bruno Haible  <bruno@clisp.org>
25135
25136         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25137         /usr/xpg4/bin/tr when it exists.
25138         * tests/test-pipe-filter-gi1.sh: Likewise.
25139
25140 2009-08-30  Bruno Haible  <bruno@clisp.org>
25141
25142         Work around deficient /usr/bin/id program on Solaris.
25143         * tests/test-file-has-acl.sh (ID): New variable.
25144         * tests/test-set-mode-acl.sh (ID): Likewise.
25145         * tests/test-copy-acl.sh (ID): Likewise.
25146         * tests/test-copy-file.sh (ID): Likewise.
25147
25148 2009-08-30  Bruno Haible  <bruno@clisp.org>
25149
25150         New module 'xstriconveh'.
25151         * lib/xstriconveh.h: New file.
25152         * lib/xstriconveh.c: New file.
25153         * modules/xstriconveh: New file.
25154
25155 2009-08-30  Bruno Haible  <bruno@clisp.org>
25156
25157         Make it easier to use mem_cd_iconveh.
25158         * lib/striconveh.h (iconveh_t): New type.
25159         (iconveh_open, iconveh_close): New declarations.
25160         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25161         with a single 'const iconveh_t *' argument.
25162         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25163         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25164         with a single 'const iconveh_t *' argument.
25165         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25166         * tests/test-striconveh.c (main): Update.
25167         * NEWS: Mention the change.
25168
25169 2009-08-30  Bruno Haible  <bruno@clisp.org>
25170
25171         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25172         problem.
25173
25174 2009-08-30  Bruno Haible  <bruno@clisp.org>
25175
25176         Work around iconv_open problem on Solaris.
25177         * lib/iconv_open-solaris.gperf: New file.
25178         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25179         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25180         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25181         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25182         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25183         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25184
25185 2009-08-29  Jim Meyering  <meyering@redhat.com>
25186
25187         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25188         * top/maint.mk (cvs-check): Remove target; it was just an alias
25189         to the better-named vc-diff-check.
25190         (maintainer-distcheck): Remove rule.  It was used only from
25191         the (alpha/beta/major) target, and all of its commands but one
25192         were coreutils-specific.
25193         (vc-dist): Remove rule.
25194         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25195         Run vc-diff-check, not vc-dist.
25196         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25197
25198 2009-08-27  Bruno Haible  <bruno@clisp.org>
25199
25200         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25201         of 0.
25202
25203 2009-08-27  Bruno Haible  <bruno@clisp.org>
25204
25205         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25206         compilers.
25207         * doc/func.texi: Document the SunPRO C bug.
25208
25209 2009-08-27  Bruno Haible  <bruno@clisp.org>
25210
25211         Fix link error on Solaris.
25212         * tests/test-parse-duration.c (xstrdup): Remove function.
25213
25214 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25215
25216         ignore-value: handle pointer types, too
25217         * lib/ignore-value.h (__attribute__): Remove definition.
25218         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25219         of a more concise and more-often effective "(void) i" statement.
25220         (ignore_ptr): New function to suppress warnings from functions that
25221         return pointers, and to make it explicit that one function doesn't
25222         handle all cases.
25223
25224 2009-08-25  Bruno Haible  <bruno@clisp.org>
25225
25226         dup2: work around a Linux bug.
25227         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25228         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25229         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25230         Reported by Simon Josefsson.
25231
25232 2009-08-25  Jim Meyering  <meyering@redhat.com>
25233
25234         libguestfs uses gnulib
25235         * users.txt: Add libguestfs.
25236
25237 2009-08-24  Eric Blake  <ebb9@byu.net>
25238
25239         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25240         * lib/pipe2.c (includes): Add binary-io.h.
25241         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25242
25243 2009-08-24  Bruno Haible  <bruno@clisp.org>
25244
25245         Tolerate declared but missing accept4 syscall.
25246         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25247         available.
25248         * lib/sys_socket.in.h (accept4): If the function is already present,
25249         override it.
25250         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25251         * modules/accept4 (Makefile.am): Compile accept4.c always.
25252         Reported by Paolo Bonzini and Eric Blake.
25253
25254 2009-08-23  Bruno Haible  <bruno@clisp.org>
25255
25256         New module 'accept4'.
25257         * lib/sys_socket.in.h (accept4): New declaration.
25258         * lib/accept4.c: New file.
25259         * m4/accept4.m4: New file.
25260         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25261         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25262         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25263         HAVE_ACCEPT4.
25264         * modules/accept4: New file.
25265         * doc/glibc-functions/accept4.texi: Mention the new module.
25266
25267 2009-08-24  Jim Meyering  <meyering@redhat.com>
25268
25269         progname: also set global program_invocation_name, when possible
25270         Before this change, a libtool-enabled program that calls glibc's
25271         error function would report the program name as
25272         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25273         * modules/progname (configure.ac): Check for a declaration of
25274         program_invocation_name.
25275         * lib/progname.c:  Include <errno.h>.
25276         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25277         Set program_invocation_name.
25278
25279 2009-08-23  Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/dup3.c: Include <string.h>.
25282
25283 2009-08-23  Bruno Haible  <bruno@clisp.org>
25284
25285         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25286         * lib/pipe2.c (pipe2): Likewise.
25287         Suggested by Eric Blake.
25288
25289 2009-08-23  Bruno Haible  <bruno@clisp.org>
25290
25291         Tolerate declared but missing dup3 syscall.
25292         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25293         * lib/unistd.in.h (dup3): If the function is already present,
25294         override it.
25295         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25296         * modules/dup3 (Makefile.am): Compile dup3.c always.
25297         Reported by Paolo Bonzini.
25298
25299 2009-08-23  Bruno Haible  <bruno@clisp.org>
25300
25301         Tolerate declared but missing pipe2 syscall.
25302         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25303         available.
25304         * lib/unistd.in.h (pipe2): If the function is already present,
25305         override it.
25306         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25307         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25308         Reported by Paolo Bonzini.
25309
25310 2009-08-23  Bruno Haible  <bruno@clisp.org>
25311
25312         * lib/pipe2.c (pipe2): Move #ifs inside function.
25313
25314 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25315
25316         quotearg: document limitations of quote_these_too
25317         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25318         those limitations are created.
25319         * lib/quotearg.h (set_char_quoting): Document that digits and
25320         letters that are special after backslash are not permitted.
25321         (quotearg_char): Cross-reference set_char_quoting documentation.
25322
25323 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25324
25325         quotearg: implement custom_quoting_style
25326         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25327         right_quote fields.
25328         (set_custom_quoting): New public function.
25329         (quotearg_buffer_restyled): Add left_quote and right_quote
25330         arguments, handle them very much like locale quoting, and update
25331         all uses.
25332         (quotearg_n_custom): New public function.
25333         (quotearg_n_custom_mem): New public function.
25334         (quotearg_custom): New public function.
25335         (quotearg_custom_mem): New public function.
25336         * lib/quotearg.h: Prototype and document new public functions.
25337         (enum quoting_style): For escape_quoting_style and
25338         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25339         ignored even though they're otherwise like c_quoting_style.
25340         Add custom_quoting_style member and document with comparison to
25341         clocale_quoting_style.
25342         * tests/test-quotearg.c (custom_quotes): New array.
25343         (custom_results): New array.
25344         (main): Extend to test custom quoting.
25345
25346 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25347
25348         quotearg: fix right quote escaping when it's in quote_these_too
25349         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25350         quote, be sure to prepend only one backslash.
25351         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25352         (main): Test it.
25353
25354 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25355
25356         quotearg-tests: test escaping of embedded locale quotes
25357         * tests/test-quotearg.c (struct result_strings): Add member for
25358         new input.
25359         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25360         (inputs): Add new input.
25361         (results_g): Add expected results.
25362         (flag_results): Likewise.
25363         (locale_results): Likewise.
25364         (compare_strings): Check those.
25365
25366 2009-08-23  Bruno Haible  <bruno@clisp.org>
25367
25368         Tests for module 'dup3'.
25369         * modules/dup3-tests: New file.
25370         * tests/test-dup3.c: New file.
25371
25372         New module 'dup3'.
25373         * lib/unistd.in.h (dup3): New declaration.
25374         * lib/dup3.c: New file.
25375         * m4/dup3.m4: New file.
25376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25377         HAVE_DUP3.
25378         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25379         * modules/dup3: New file.
25380         * doc/glibc-functions/dup3.texi: Mention the new module.
25381
25382 2009-08-23  Bruno Haible  <bruno@clisp.org>
25383
25384         Tweak the dup2 test.
25385         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25386         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25387         the test file is still empty. Fix argument order of lseek.
25388
25389 2009-08-23  Bruno Haible  <bruno@clisp.org>
25390
25391         Avoid test link errors when the modules getopt-gnu, gettext are used.
25392         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25394
25395 2009-08-23  Bruno Haible  <bruno@clisp.org>
25396
25397         Fix getdtablesize() on mingw.
25398         * lib/getdtablesize.c (getdtablesize): Implement differently.
25399         * lib/unistd.in.h (getdtablesize): Improve comment.
25400
25401 2009-08-23  Bruno Haible  <bruno@clisp.org>
25402
25403         New module 'mkostemp'.
25404         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25405         * lib/stdlib.in.h (mksotemp): New declaration.
25406         * lib/mkostemp.c: New file, from glibc with modifications.
25407         * lib/tempname.h (GT_FILE): Remove outdated comment.
25408         (gen_tempname): Add flags argument.
25409         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25410         (__GT_FILE): Map to 1.
25411         (small_open, large_open): Remove macros.
25412         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25413         * lib/mkstemp.c (mkstemp): Update.
25414         * lib/mkdtemp.c (mkdtemp): Likewise.
25415         * m4/mkostemp.m4: New file.
25416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25417         HAVE_MKOSTEMP.
25418         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25419         HAVE_MKOSTEMP.
25420         * modules/mkostemp: New file, based on modules/mkstemp.
25421         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25422         * NEWS: Mention the change.
25423
25424 2009-08-23  Bruno Haible  <bruno@clisp.org>
25425
25426         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25427         Reported by Eric Blake.
25428
25429 2009-08-23  Bruno Haible  <bruno@clisp.org>
25430
25431         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25432         Reported by Eric Blake.
25433
25434 2009-08-23  Bruno Haible  <bruno@clisp.org>
25435
25436         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25437         * modules/pipe2 (Depends-on): Likewise.
25438
25439 2009-08-23  Eric Blake  <ebb9@byu.net>
25440
25441         fcntl-h: add O_TTY_INIT support
25442         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25443         * tests/test-fcntl-h.c (o): Test it.
25444         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25445
25446         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25447         * modules/fcntl: Move <fcntl.h> header replacement...
25448         * modules/fcntl-h: ...to new name, so as not to collide with
25449         like-named function.
25450         * tests/test-fcntl.c: Rename...
25451         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25452         * modules/fcntl-tests: Rename...
25453         * modules/fcntl-h-tests: ...to this.  Update test file name.
25454         * modules/chdir-long (Depends-on): Update clients.
25455         * modules/chdir-safer (Depends-on): Likewise.
25456         * modules/fcntl-safer (Depends-on): Likewise.
25457         * modules/fts (Depends-on): Likewise.
25458         * modules/mkancesdirs (Depends-on): Likewise.
25459         * modules/mkdir-p (Depends-on): Likewise.
25460         * modules/open (Depends-on): Likewise.
25461         * modules/savewd (Depends-on): Likewise.
25462         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25463         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25464
25465 2009-08-22  Bruno Haible  <bruno@clisp.org>
25466
25467         * modules/binary-io (License): Relicense under LGPL.
25468         * modules/pipe2 (License): Likewise.
25469
25470 2009-08-22  Bruno Haible  <bruno@clisp.org>
25471
25472         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25473         return value.
25474         * lib/pipe-filter-gi.c (filter_init): Likewise.
25475         Reported by Eric Blake.
25476
25477 2009-08-22  Bruno Haible  <bruno@clisp.org>
25478
25479         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25480         * modules/pipe (Depends-on): Add pipe2.
25481
25482 2009-08-22  Bruno Haible  <bruno@clisp.org>
25483
25484         Tests for module 'pipe2'.
25485         * modules/pipe2-tests: New file.
25486         * tests/test-pipe2.c: New file.
25487
25488         New module 'pipe2'.
25489         * lib/unistd.in.h (pipe2): New declaration.
25490         * lib/pipe2.c: New file.
25491         * m4/pipe2.m4: New file.
25492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25493         HAVE_PIPE2.
25494         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25495         * modules/pipe2: New file.
25496         * doc/glibc-functions/pipe2.texi: Mention the new module.
25497
25498 2009-08-22  Bruno Haible  <bruno@clisp.org>
25499
25500         Reference some new glibc functions.
25501         * doc/glibc-functions/accept4.texi: New file.
25502         * doc/glibc-functions/dup3.texi: New file.
25503         * doc/glibc-functions/mkostemp.texi: New file.
25504         * doc/glibc-functions/pipe2.texi: New file.
25505         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25506         (Glibc sys/socket.h): Refer to accept4.
25507         (Glibc unistd.h): Refer to dup3, pipe2.
25508         Reported by Eric Blake.
25509
25510 2009-08-22  Jim Meyering  <meyering@redhat.com>
25511             Bruno Haible  <bruno@clisp.org>
25512
25513         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25514         This makes it so packages using automake-1.11's silent-rules option
25515         can print e.g., a single "GEN    configmake.h" line, rather than
25516         the 30+ statements that perform the job.  If you want to see the
25517         actual commands, you can still run "make V=1".
25518         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25519         so that make output is abbreviated when those variables are defined
25520         appropriately.
25521         * modules/argz: Likewise.
25522         * modules/arpa_inet: Likewise.
25523         * modules/byteswap: Likewise.
25524         * modules/configmake: Likewise.
25525         * modules/dirent: Likewise.
25526         * modules/errno: Likewise.
25527         * modules/fcntl: Likewise.
25528         * modules/float: Likewise.
25529         * modules/fnmatch: Likewise.
25530         * modules/getopt-posix: Likewise.
25531         * modules/glob: Likewise.
25532         * modules/iconv_open: Likewise.
25533         * modules/inttypes: Likewise.
25534         * modules/localcharset: Likewise.
25535         * modules/locale: Likewise.
25536         * modules/math: Likewise.
25537         * modules/netdb: Likewise.
25538         * modules/netinet_in: Likewise.
25539         * modules/poll: Likewise.
25540         * modules/posix_spawnp-tests: Likewise.
25541         * modules/sched: Likewise.
25542         * modules/search: Likewise.
25543         * modules/selinux-h: Likewise.
25544         * modules/signal: Likewise.
25545         * modules/spawn: Likewise.
25546         * modules/stdarg: Likewise.
25547         * modules/stdbool: Likewise.
25548         * modules/stddef: Likewise.
25549         * modules/stdint: Likewise.
25550         * modules/stdio: Likewise.
25551         * modules/stdlib: Likewise.
25552         * modules/string: Likewise.
25553         * modules/strings: Likewise.
25554         * modules/sys_file: Likewise.
25555         * modules/sys_ioctl: Likewise.
25556         * modules/sys_select: Likewise.
25557         * modules/sys_socket: Likewise.
25558         * modules/sys_stat: Likewise.
25559         * modules/sys_time: Likewise.
25560         * modules/sys_times: Likewise.
25561         * modules/sys_utsname: Likewise.
25562         * modules/sys_wait: Likewise.
25563         * modules/sysexits: Likewise.
25564         * modules/time: Likewise.
25565         * modules/unistd: Likewise.
25566         * modules/wchar: Likewise.
25567         * modules/wctype: Likewise.
25568
25569 2009-08-22  Jim Meyering  <meyering@redhat.com>
25570
25571         announce-gen: detect write failure
25572         * build-aux/announce-gen: Add Coda at end.
25573         Remove equivalent-but-more-verbose block at top.
25574
25575 2009-08-19  Akim Demaille  <demaille@gostai.com>
25576
25577         bootstrap: --help to stdout.
25578         * bootstrap (usage): Don't send --help to stderr.
25579         Use a here doc instead of a long string.
25580
25581 2009-08-21  Eric Blake  <ebb9@byu.net>
25582
25583         test-popen-safer: split from test-popen
25584         * tests/test-popen.c (main): Move...
25585         * tests/test-popen.h: ...into new file.
25586         * tests/test-popen-safer2.c: New file.
25587         * modules/popen-tests (Files): Add test-popen.h.
25588         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25589         Suggested by Bruno Haible.
25590
25591         test-fcntl-safer: split from test-open
25592         * tests/test-open.c (main): Move...
25593         * tests/test-open.h: ...into new file.
25594         * tests/test-fcntl-safer.c: New file.
25595         * modules/open-tests (Files): Add test-open.h.
25596         * modules/fcntl-safer-tests: New file.
25597         Suggested by Bruno Haible.
25598
25599         test-fopen-safer: split from test-fopen
25600         * tests/test-fopen.c (main): Move...
25601         * tests/test-fopen.h: ...into new file.
25602         * tests/test-fopen-safer.c: New file.
25603         * modules/fopen-tests (Files): Add test-fopen.h.
25604         * modules/fopen-safer-tests: New file.
25605         Suggested by Bruno Haible.
25606
25607 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25608
25609         popen-safer: test O_CLOEXEC at run-time.
25610         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25611
25612 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25613
25614         fcntl: move more flags to the header
25615         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25616         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25617         * lib/fcntl.in.h: Do both things here.
25618
25619 2009-08-21  Jim Meyering  <meyering@redhat.com>
25620
25621         consistently remove $@-t before redirecting to it
25622         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25623         * modules/alloca-opt: Likewise.
25624         * modules/byteswap: Likewise.
25625         * modules/fnmatch: Likewise.
25626         * modules/getopt-posix: Likewise.
25627         * modules/glob: Likewise.
25628         * modules/poll: Likewise.
25629         * modules/posix_spawnp-tests: Likewise.
25630         * modules/sys_socket: Likewise.
25631         * modules/sysexits: Likewise.
25632
25633 2009-08-21  Eric Blake  <ebb9@byu.net>
25634
25635         popen: simplify access to original popen
25636         * lib/popen.c (rpl_popen): No need to worry about popen being a
25637         macro.
25638         Reported by Bruno Haible.
25639
25640 2009-08-20  Eric Blake  <ebb9@byu.net>
25641
25642         build: avoid some compiler warnings
25643         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25644         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25645         type.
25646         (new_exclude_segment, excluded_file_pattern_p)
25647         (excluded_file_name_p): Reduce scope.
25648         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25649         old-style declaration.
25650
25651 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25652
25653         * tests/test-exclude1.sh: Handle Windows EOL.
25654         * tests/test-exclude2.sh: Likewise.
25655         * tests/test-exclude3.sh: Likewise.
25656         * tests/test-exclude4.sh: Likewise.
25657         * tests/test-exclude5.sh: Likewise.
25658         * tests/test-exclude6.sh: Likewise.
25659         * tests/test-exclude7.sh: Likewise.
25660
25661 2009-08-19  Akim Demaille  <demaille@gostai.com>
25662
25663         bootstrap: find sha1sum when named gsha1sum.
25664         * bootstrap (find_tool): New.
25665         ($SHA1SUM): New.
25666         Use it.
25667
25668 2009-08-20  Jim Meyering  <meyering@redhat.com>
25669
25670         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25671         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25672         expression that converts "." in a file name to "\." in the resulting
25673         regexp.  Start with a dummy statement, so that prior shell variable
25674         definitions are expanded portably.  Reported by Simon Josefsson.
25675
25676 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25677
25678         Fix polling for writeability of a screen buffer.
25679         * lib/poll.c: Distinguish input and screen buffers for the
25680         Win32 implementation.
25681         * lib/select.c: Likewise.
25682
25683 2009-08-19  Eric Blake  <ebb9@byu.net>
25684
25685         popen-safer: prevent popen from clobbering std descriptors
25686         * modules/popen-safer: New file.
25687         * lib/popen-safer.c: Likewise.
25688         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25689         * lib/stdio--.h (popen): Provide override.
25690         * lib/stdio-safer.h (popen_safer): Provide declaration.
25691         * tests/test-popen.c (includes): Partially test this.
25692         * modules/popen-safer-tests: New file, for more tests.
25693         * tests/test-popen-safer.c: Likewise.
25694         * MODULES.html.sh (file stream based Input/Output): Mention it.
25695
25696         tests: test some of the *-safer modules
25697         * modules/fopen-safer (Depends-on): Add fopen.
25698         * modules/fcntl-safer (Depends-on): Add fcntl.
25699         * modules/stdlib-safer (Depends-on): Add stdlib.
25700         (configure.ac): Set indicator.
25701         * modules/unistd-safer (configure.ac): Likewise.
25702         * modules/tmpfile-safer (configure.ac): Likewise.
25703         (Depends-on): Add tmpfile.
25704         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25705         active.
25706         * tests/test-fopen.c (includes): Test safer versions when they are
25707         in use.
25708         * tests/test-open.c (includes): Likewise.
25709
25710         popen: fix cygwin 1.5 bug when stdin closed
25711         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25712         * modules/popen: New file.
25713         * modules/popen-tests: Likewise.
25714         * tests/test-popen.c: Likewise.
25715         * m4/popen.m4: Likewise.
25716         * lib/popen.c: Likewise.
25717         * lib/stdio.in.h (popen): New declaration.
25718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25719         * modules/stdio (Makefile.am): Likewise.
25720         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25721
25722 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25723
25724         maint.mk: give full control over update-copyright exclusions
25725         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25726         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25727         (update-copyright): Don't force inclusion of top-level
25728         ChangeLog.  Don't force exclusion of all COPYING files, but make
25729         them the default exclusion instead.
25730
25731 2009-08-16  Bruno Haible  <bruno@clisp.org>
25732
25733         Fix test failures on Solaris 10.
25734         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25735         tests when Solaris iconv() is used.
25736         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25737         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25738         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25739         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25740         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25741
25742 2009-08-16  Bruno Haible  <bruno@clisp.org>
25743
25744         Fix test failures on Solaris 10.
25745         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25746         'tr' program and pass it as first argument.
25747         * tests/test-pipe-filter-gi1.sh: Likewise.
25748         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25749         program as first argument.
25750         * tests/test-pipe-filter-gi1.c (main): Likewise.
25751
25752 2009-08-16  Eric Blake  <ebb9@byu.net>
25753
25754         fpurge: fix previous commits
25755         * modules/fpurge (Makefile.am): Make replacement conditional,
25756         partially reverting 2007-04-29 change; missed in previous
25757         attempt.
25758         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25759         is missing.
25760
25761 2009-08-16  Bruno Haible  <bruno@clisp.org>
25762
25763         Clarify fpurge's effect on the file position.
25764         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25765         * tests/test-fpurge.c (main): Make a second pass for checking the file
25766         position.
25767
25768 2009-08-16  Bruno Haible  <bruno@clisp.org>
25769
25770         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25771         declaration of fpurge is missing.
25772         * tests/test-fpurge.c (main): Check that the file has not more contents
25773         than expected. Close the file before removing it.
25774
25775 2009-08-15  Eric Blake  <ebb9@byu.net>
25776
25777         fpurge: don't wrap working cygwin implementation
25778         * lib/fpurge.c (fpurge): Fix comment typo.
25779         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25780         1.7 to avoid replacement.
25781         * tests/test-fpurge.c (main): Enhance test.
25782
25783 2009-08-15  Eric Blake  <ebb9@byu.net>
25784         and Jim Meyering  <meyering@redhat.com>
25785
25786         test-update-copyright: skip if perl is insufficient
25787         * tests/test-update-copyright.sh: Failure to run maintainer tool
25788         should not cause testsuite failure on cygwin 1.5.
25789
25790 2009-08-14  Eric Blake  <ebb9@byu.net>
25791
25792         doc: mention more functions added in cygwin 1.7.0
25793         * doc/posix-headers/limits.texi (limits.h): Update for recent
25794         cygwin additions.
25795         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25796         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25797         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25798         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25799         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25800
25801 2009-08-14  Eric Blake  <ebb9@byu.net>
25802
25803         maint.mk: simplify update-copyright rule
25804         * top/maint.mk (update-copyright-local): Delete, and document how
25805         to do it in cfg.mk instead.
25806         (update-copyright-exclude-regexp): Delete, and document how to do
25807         it in .x-update-copyright instead.
25808         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25809         exclude ChangeLog.
25810
25811 2009-08-14  Bruno Haible  <bruno@clisp.org>
25812
25813         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25814
25815 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25816
25817         maint.mk: support update-copyright-env
25818         * top/maint.mk (update-copyright-env): Define place-holder.
25819         (update-copyright): Expand $(update-copyright-env) before
25820         invoking update-copyright.
25821
25822 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25823
25824         update-copyright: implement forced reformatting
25825         * build-aux/update-copyright: Implement and document
25826         UPDATE_COPYRIGHT_FORCE.
25827         * tests/test-update-copyright.sh: Test it.
25828
25829 2009-08-14  Eric Blake  <ebb9@byu.net>
25830         and Bruno Haible  <bruno@clisp.org>
25831
25832         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25833         * tests/test-locale.c: Revert previous patch related to NULL.
25834         * tests/test-stdio.c: Likewise.
25835         * tests/test-stdlib.c: Likewise.
25836         * tests/test-string.c: Likewise.
25837         * tests/test-unistd.c: Likewise.
25838         * modules/time-tests (Depends-on): Add verify.
25839         * modules/wchar-tests (Depends-on): Likewise.
25840         * tests/test-time.c: Test for NULL compliance.
25841         * tests/test-wchar.c: Likewise.
25842         * modules/locale (Depends-on): Add stddef.
25843         * modules/stdio (Depends-on): Likewise.
25844         * modules/stdlib (Depends-on): Likewise.
25845         * modules/string (Depends-on): Likewise.
25846         * modules/time (Depends-on): Likewise.
25847         * modules/unistd (Depends-on): Likewise.
25848         * modules/wchar (Depends-on): Likewise.
25849         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25850         * lib/stdlib.in.h (includes): Likewise.
25851         * lib/string.in.h (includes): Likewise.
25852         * lib/time.in.h (includes): Likewise.
25853         * lib/unistd.in.h (includes): Likewise.
25854         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25855         replaced.
25856         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25857         * m4/stddef_h.m4: New file.
25858         * modules/stddef: Likewise.
25859         * lib/stddef.in.h: Likewise.
25860         * modules/stddef-tests: Likewise.
25861         * tests/test-stddef.c: Likewise.
25862         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25863         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25864         * doc/posix-headers/locale.texi (locale.h): Likewise.
25865         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25866         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25867         * doc/posix-headers/string.texi (string.h): Likewise.
25868         * doc/posix-headers/time.texi (time.h): Likewise.
25869         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25870         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25871
25872 2009-08-14  Eric Blake  <ebb9@byu.net>
25873
25874         doc: improve git diff of texinfo files
25875         * .gitattributes: Add rule for *.texi files, with hint on how to
25876         use it.
25877         Copied from m4, and based on a report by Bruno Haible.
25878
25879 2009-08-14  Bruno Haible  <bruno@clisp.org>
25880
25881         Disable multithread support by default on Cygwin 1.5.x for real.
25882         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25883
25884 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25885
25886         update-copyright: much ado about intervals
25887         * build-aux/update-copyright: Implement and document
25888         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25889         of copyright year intervals.
25890         Also, document UPDATE_COPYRIGHT_YEAR.
25891         * tests/test-update-copyright.sh: Test it.
25892
25893         update-copyright: convert 2-digit to 4-digit years
25894         * build-aux/update-copyright: Implement and document.
25895         * tests/test-update-copyright.sh: Update.
25896
25897 2009-08-14  Jim Meyering  <meyering@redhat.com>
25898
25899         test-exclude: avoid coreutils "make check" failure
25900         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25901         just as in test-argmatch.c.
25902
25903 2009-08-13  Eric Blake  <ebb9@byu.net>
25904
25905         test-dup2: fix bad assumption
25906         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25907         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25908
25909         test-version-etc: fix CRLF portability issue
25910         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25911         recognize \r.
25912         * tests/test-argp-version-etc-1.sh: Likewise.
25913
25914         getopt: update client modules
25915         * modules/argp (Depends-on): Use getopt-gnu.
25916         * modules/git-merge-changelog (Depends-on): Likewise.
25917         * modules/long-options (Depends-on): Likewise.
25918         * modules/xstrtol (Depends-on): Likewise.
25919
25920 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25921
25922         * tests/test-version-etc.sh: Don't fail on different
25923         project/version.  Don't fail on CRLF differences.  Rewrite to use
25924         multiple -e instead of multiple sed forks, suggested by Eric Blake
25925         <ebb9@byu.net>.
25926         * tests/test-argp-version-etc-1.sh: Likewise.
25927
25928 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25929
25930         * tests/test-version-etc.sh: Don't fail on different
25931         project/version.
25932
25933 2009-08-12  Bruno Haible  <bruno@clisp.org>
25934
25935         Tests for modules 'getopt-posix', 'getopt-gnu'.
25936         * modules/getopt-posix-tests: New file.
25937         * tests/test-getopt.c: New file.
25938         * tests/test-getopt.h: New file.
25939         * tests/test-getopt_long.h: New file.
25940
25941         New modules 'getopt-posix', 'getopt-gnu'.
25942         * modules/getopt-gnu: New file, renamed from modules/getopt.
25943         * modules/getopt-posix: New file.
25944         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25945         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25946         (gl_GETOPT): Remove macro.
25947         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25948         Disable the test against BSD systems that declare optreset. Test
25949         against mingw bug. Test against lack of support of optional arguments
25950         on many platforms.
25951         * doc/glibc-headers/getopt.texi: Update module name and list of
25952         relevant platforms.
25953         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25954         'getopt-gnu' and more portability problems.
25955         * NEWS: Mention the changes.
25956
25957 2009-08-12  Bruno Haible  <bruno@clisp.org>
25958
25959         Ensure that optarg etc. get declared by <unistd.h>.
25960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25961         AC_USE_SYSTEM_EXTENSIONS.
25962         * modules/getopt (Depends-on): Add 'extensions'.
25963
25964 2009-08-12  Bruno Haible  <bruno@clisp.org>
25965
25966         Avoid test link errors.
25967         * modules/pipe-filter-ii-tests (Makefile.am): Define
25968         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25969         * modules/pipe-filter-gi-tests (Makefile.am): Define
25970         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25972
25973 2009-08-12  Bruno Haible  <bruno@clisp.org>
25974
25975         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25976         gl_GETOPT_SUBSTITUTE before.
25977         (gl_GETOPT): Use it.
25978         * m4/argp.m4 (gl_ARGP): Update.
25979         Reported by Sergey Poznyakoff.
25980
25981         * m4/getopt.m4: Reorder macros.
25982         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25983         (gl_GETOPT_SUBSTITUTE): Remove macro.
25984
25985 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25986
25987         Minor improvement in gitlog-to-changelog
25988
25989         * build-aux/gitlog-to-changelog: New option `--format' makes
25990         output format string configurable.
25991
25992 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25993
25994         Optimize exclude: use hash tables for non-wildcard patterns.
25995
25996         * lib/exclude.c: Include hash.h and mbuiter.h
25997         (struct exclude_pattern, exclude_segment): New data types.
25998         (struct exclude): Rewrite.
25999         (fnmatch_pattern_has_wildcards): New function.
26000         (new_exclude_segment, free_exclude_segment): New functions.
26001         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26002         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26003         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26004         * modules/exclude: Depend on hash and mbuiter.
26005
26006         * modules/exclude-tests: New file.
26007         * tests/test-exclude.c: New file.
26008         * tests/test-exclude1.sh: New file.
26009         * tests/test-exclude2.sh: New file.
26010         * tests/test-exclude3.sh: New file.
26011         * tests/test-exclude4.sh: New file.
26012         * tests/test-exclude5.sh: New file.
26013         * tests/test-exclude6.sh: New file.
26014         * tests/test-exclude7.sh: New file.
26015
26016 2009-08-12  Bruno Haible  <bruno@clisp.org>
26017
26018         Ensure that getopt() gets declared by <unistd.h>.
26019         * lib/unistd.in.h: Conditionally include getopt.h.
26020         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26021         Set GNULIB_UNISTD_H_GETOPT.
26022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26023         GNULIB_UNISTD_H_GETOPT.
26024         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26025
26026 2009-08-12  Bruno Haible  <bruno@clisp.org>
26027
26028         Clarify logic.
26029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26030         gl_replace_getopt instead of GETOPT_H.
26031
26032 2009-08-12  Bruno Haible  <bruno@clisp.org>
26033
26034         * m4/getopt.m4: Add comments.
26035
26036 2009-08-12  Bruno Haible  <bruno@clisp.org>
26037
26038         Disable multithread support by default on Cygwin 1.5.x.
26039         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26040         set gl_use_threads=no if not specified otherwise.
26041
26042 2009-08-11  Bruno Haible  <bruno@clisp.org>
26043
26044         Avoid compilation error on NetBSD 5.0.
26045         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26046         * tests/test-stdio.c: Likewise.
26047         * tests/test-stdlib.c: Likewise.
26048         * tests/test-string.c: Likewise.
26049         * tests/test-unistd.c: Likewise.
26050         Reported by Greg Troxel <gdt@ir.bbn.com>
26051         at <https://savannah.gnu.org/support/?106973>.
26052
26053 2009-08-11  Bruno Haible  <bruno@clisp.org>
26054
26055         * modules/dup2-tests (Depends-on): Remove close.
26056
26057         Undo 2009-07-19 commit.
26058         * modules/acl-tests (Depends-on): Remove close.
26059         * modules/binary-io-tests (Depends-on): Likewise.
26060         * modules/closein-tests (Depends-on): Likewise.
26061         * modules/flock-tests (Depends-on): Likewise.
26062         * modules/fsync-tests (Depends-on): Likewise.
26063         * modules/lseek-tests (Depends-on): Likewise.
26064         * modules/pipe-tests (Depends-on): Likewise.
26065         * modules/posix_spawn-tests (Depends-on): Likewise.
26066         * modules/posix_spawnp-tests (Depends-on): Likewise.
26067         * modules/stat-time-tests (Depends-on): Likewise.
26068         * modules/yesno-tests (Depends-on): Likewise.
26069
26070 2009-08-10  Bruno Haible  <bruno@clisp.org>
26071
26072         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26073
26074 2009-08-10  Bruno Haible  <bruno@clisp.org>
26075
26076         Fix a gcc warning.
26077         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26078
26079 2009-08-10  Bruno Haible  <bruno@clisp.org>
26080
26081         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26082         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26083         not only the first time.
26084         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26085         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26086         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26087         is 1, not only the the first time.
26088
26089 2009-08-10  Bruno Haible  <bruno@clisp.org>
26090
26091         Make it possible to use module 'gethostname' without module 'close'.
26092         * lib/unistd.in.h (close): Evoke a link error only if
26093         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26095         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26096         * modules/unistd (Makefile.am): Substitute
26097         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26098         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26099         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26100         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26101         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26102         * modules/sys_ioctl (Makefile.am): Substitute
26103         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26104         * modules/socket (configure.ac): On native Windows, set
26105         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26106         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26107         Reported by Sam Steingold <sds@gnu.org>.
26108
26109 2009-08-10  Bruno Haible  <bruno@clisp.org>
26110
26111         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26112         * modules/ioctl (configure.ac): Likewise.
26113
26114 2009-08-10  Bruno Haible  <bruno@clisp.org>
26115
26116         Avoid collision between gnulib wrapper and libintl wrapper.
26117         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26118         already defined in intl/printf.c.
26119         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26120         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26121
26122 2009-08-09  Bruno Haible  <bruno@clisp.org>
26123
26124         Make <sys/select.h> really self-contained, also on Solaris 10.
26125         * lib/sys_select.in.h: Include <string.h>.
26126         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26127         Solaris 10 problem.
26128         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26129         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26130         Reported by Jim Meyering.
26131
26132 2009-08-09  Bruno Haible  <bruno@clisp.org>
26133
26134         Avoid warnings from 'aclocal' that are due to a use of macro name
26135         AM_XGETTEXT_OPTION that is not defined in automake.
26136         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26137         automake.
26138         * modules/error (configure.ac): Likewise.
26139         * modules/propername (configure.ac): Likewise.
26140         * modules/vasprintf (configure.ac): Likewise.
26141         * modules/verror (configure.ac): Likewise.
26142         * modules/xprintf (configure.ac): Likewise.
26143         * modules/xvasprintf (configure.ac): Likewise.
26144
26145 2009-08-08  Bruno Haible  <bruno@clisp.org>
26146
26147         Avoid compilation error in C++ mode.
26148         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26149         Reported by Sam Steingold <sds@gnu.org>.
26150
26151 2009-08-08  Bruno Haible  <bruno@clisp.org>
26152
26153         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26154         for the various Unix platforms.
26155         * doc/posix-headers/limits.texi: Update platforms list regarding
26156         HOST_NAME_MAX.
26157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26158
26159 2009-08-07  Jim Meyering  <meyering@redhat.com>
26160
26161         selinux-at: fix typo in a comment
26162         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26163         Spotted by Paolo Bonzini.
26164
26165         selinux-at: remove redundant m4 code, add documentation
26166         * modules/selinux-at (configure.ac): Remove redundant code.
26167         LIB_SELINUX is already set via the dependent module, selinux-h.
26168         (Include): Add quotes around selinux-at.h.
26169         * lib/selinux-at.h: Add documentation.
26170         Reported by Bruno Haible in
26171         http://marc.info/?l=gnulib-bug&m=124958988300749
26172
26173 2009-08-07  Bruno Haible  <bruno@clisp.org>
26174
26175         Avoid link error on MacOS X 10.3 and 10.4.
26176         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26177         on non-ELF systems.
26178         * lib/argp-pv.c (argp_program_version): Likewise.
26179         Reported by Simon Josefsson.
26180
26181 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26182
26183         * tests/test-version-etc.sh: Use $EXEEXT.
26184
26185 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26186
26187         update-copyright: update documentation to point to maint.mk
26188         * build-aux/update-copyright: Here.
26189
26190 2009-08-06  Jim Meyering  <meyering@redhat.com>
26191
26192         maint.mk: support update-copyright-local
26193         * top/maint.mk (update-copyright-local): Define place-holder.
26194         (update-copyright): Depend on $(update-copyright-local).
26195
26196 2009-08-06  Jim Meyering  <meyering@redhat.com>
26197
26198         selinux-at: new module
26199         Initially written for coreutils, this module will soon be
26200         used by findutils, too.
26201         * MODULES.html.sh [Misc]: Add selinux-at.
26202         * lib/selinux-at.h: New file, from coreutils.
26203         * lib/selinux-at.c: Likewise.
26204         * modules/selinux-at: Likewise.
26205         (License): Change from LGPL to GPL, since it depends
26206         on the GPL'd openat module.
26207
26208         doc: update README
26209         * README: Remove references to cogito.
26210         Remove cvs-repo-updating instructions from 2007.
26211         Don't imply that CVS is better if you have limited disk space.
26212
26213 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26214
26215         update-copyright: support C-style comments
26216         * build-aux/update-copyright: Implement and document.
26217         * tests/test-update-copyright.sh: Test.
26218
26219 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26220
26221         update-copyright: support omitted "(C)"
26222         * build-aux/update-copyright: Implement and document.  Also,
26223         allow variable whitespace before "(C)".
26224         * tests/test-update-copyright.sh: Test.
26225
26226 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26227
26228         update-copyright: don't trip on non-FSF copyright statements
26229         * build-aux/update-copyright: Fix so that the first correctly
26230         formatted FSF copyright statement is recognized no matter what
26231         appears before it.  Update documentation.
26232         * tests/test-update-copyright.sh: Test that.
26233
26234 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26235
26236         update-copyright: clean up code a little
26237         * build-aux/update-copyright: Append "_re" to the name of any
26238         variable holding a regular expression.
26239         Replace "old" and "new" with "stmt" in variable names.
26240         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26241         handled correctly.
26242         Format code more consistently.
26243
26244 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26245
26246         update-copyright-tests: improve portability
26247         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26248         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26249
26250 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26251
26252         update-copyright: support @copyright{} and &copy;
26253         * build-aux/update-copyright: Implement and document.
26254         * tests/test-update-copyright.sh: Test.
26255
26256 2009-08-04  Jim Meyering  <meyering@redhat.com>
26257
26258         update-copyright-tests: correctly test EOL=\r\n handling
26259         * tests/test-update-copyright.sh: Put \r at the end of some lines
26260         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26261
26262         maint.mk: make update-copyright exclusion list more configurable
26263         * top/maint.mk (update-copyright): Default to excluding COPYING,
26264         but allow an override, in case someone does want to update that file.
26265
26266         maint.mk: don't update copyright date in COPYING
26267         * top/maint.mk (update-copyright): Exclude COPYING.
26268
26269         maint.mk: add a copyright-updating rule
26270         * top/maint.mk (update-copyright): New rule.
26271         Derived from coreutils/Makefile.am.
26272
26273         update-copyright: rename some variables
26274         * build-aux/update-copyright: Rename a few variables for clarity.
26275         Tweak syntax.  List Joel E. Denny as coauthor.
26276
26277 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26278
26279         update-copyright: fix bug for 2-digit last year and add tests
26280         * build-aux/update-copyright: Fix bug.
26281         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26282         specified.
26283         * modules/update-copyright-tests: New
26284         * tests/test-update-copyright.sh: New.
26285
26286 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26287
26288         update-copyright: handle leading tabs in line prefix
26289         * build-aux/update-copyright: Count leading tabs as 8 spaces
26290         when computing margin.  This helps with the formatting of
26291         ChangeLogs, for example.
26292         Fix documentation a little.
26293
26294 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26295
26296         update-copyright: support EOL=\r\n
26297         * build-aux/update-copyright: Implement that.
26298
26299 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26300
26301         update-copyright: automatically format copyright statements
26302         * build-aux/update-copyright: Implement that.
26303         Also, be a little more predictable and safer by always failing
26304         when the full copyright format is not perfectly recognized as an
26305         unbroken whole.  Discussed at
26306         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26307         Rewrite documentation.
26308
26309 2009-08-03  Bruno Haible  <bruno@clisp.org>
26310
26311         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26312
26313 2009-08-02  Bruno Haible  <bruno@clisp.org>
26314
26315         Tests for module 'uname'.
26316         * modules/uname-tests: New file.
26317         * tests/test-uname.c: New file.
26318
26319         New module 'uname'.
26320         * lib/uname.c: New file.
26321         * m4/uname.m4: New file.
26322         * modules/uname: New file.
26323         * doc/posix-functions/uname.texi: Mention the new module.
26324
26325 2009-08-02  Bruno Haible  <bruno@clisp.org>
26326
26327         Tests for module 'sys_utsname'.
26328         * modules/sys_utsname-tests: New file.
26329         * tests/test-sys_utsname.c: New file.
26330
26331         New module 'sys_utsname'.
26332         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26333         * m4/sys_utsname_h.m4: New file.
26334         * modules/sys_utsname: New file.
26335         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26336
26337 2009-08-02  Bruno Haible  <bruno@clisp.org>
26338
26339         Implicitly initialize the sockets library.
26340         * lib/gethostname.c: Include sockets.h.
26341         (rpl_gethostname): Invoke gl_sockets_startup.
26342         * lib/socket.c: Include sockets.h.
26343         (rpl_socket): Invoke gl_sockets_startup.
26344         * modules/gethostname (Depends-on): Add sockets.
26345         * modules/socket (Depends-on): Likewise.
26346         * tests/test-poll.c: Don't include sockets.h.
26347         (main): Don't invoke gl_sockets_startup.
26348         * tests/test-select.c: Don't include sockets.h.
26349         (main): Don't invoke gl_sockets_startup.
26350
26351 2009-08-02  Bruno Haible  <bruno@clisp.org>
26352
26353         Allow multiple calls to gl_sockets_startup.
26354         * lib/sockets.c (initialized_sockets_version): New variable.
26355         (gl_sockets_startup): Do nothing if already called for this or a higher
26356         version.
26357         (gl_sockets_cleanup): Reset initialized_sockets_version.
26358
26359 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26360
26361         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26362         different project/version.
26363
26364 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26365             Bruno Haible  <bruno@clisp.org>
26366
26367         Tests for module 'pipe-filter-gi'.
26368         * modules/pipe-filter-gi-tests: New file.
26369         * tests/test-pipe-filter-gi1.sh: New file.
26370         * tests/test-pipe-filter-gi1.c: New file.
26371         * tests/test-pipe-filter-gi2.sh: New file.
26372         * tests/test-pipe-filter-gi2-main.c: New file.
26373         * tests/test-pipe-filter-gi2-child.c: New file.
26374
26375         New module 'pipe-filter-gi'.
26376         * lib/pipe-filter-gi.c: New file.
26377         * modules/pipe-filter-gi: New file.
26378
26379 2009-08-02  Bruno Haible  <bruno@clisp.org>
26380             Paolo Bonzini  <bonzini@gnu.org>
26381
26382         Tests for module 'pipe-filter-ii'.
26383         * modules/pipe-filter-ii-tests: New file.
26384         * tests/test-pipe-filter-ii1.sh: New file.
26385         * tests/test-pipe-filter-ii1.c: New file.
26386         * tests/test-pipe-filter-ii2.sh: New file.
26387         * tests/test-pipe-filter-ii2-main.c: New file.
26388         * tests/test-pipe-filter-ii2-child.c: New file.
26389
26390         New module 'pipe-filter-ii'.
26391         * lib/pipe-filter.h: New file.
26392         * lib/pipe-filter-ii.c: New file.
26393         * lib/pipe-filter-aux.h: New file.
26394         * modules/pipe-filter-ii: New file.
26395
26396 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26397
26398         * lib/gc-libgcrypt.c: Change copyright to FSF.
26399         * lib/gc-gnulib.c: Likewise.
26400
26401 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26402
26403         * lib/gethostname.c: Include limits.h.
26404
26405 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26406             Bruno Haible  <bruno@clisp.org>
26407
26408         Ensure HOST_NAME_MAX as part of the gethostname module.
26409         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26410         define also HOST_NAME_MAX.
26411         * tests/test-gethostname.c: Include <limits.h>.
26412         (main): Check also HOST_NAME_MAX.
26413         * doc/posix-headers/limits.texi: Document the mingw problem.
26414
26415 2009-08-02  Bruno Haible  <bruno@clisp.org>
26416
26417         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26418         Add comments.
26419
26420 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26421
26422         * lib/gethostname.c: Add Windows wrapper.
26423         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26424         * modules/gethostname: Depend on sys_socket & errno, for also
26425         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26426         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26427
26428 2009-07-31  Jim Meyering  <meyering@redhat.com>
26429
26430         getloadavg: fix symbol name in comment
26431         * lib/getloadavg.c: Correct a typo I introduced when adding
26432         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26433         Matt Kraai spotted the problem.
26434
26435 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26436
26437         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26438         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26439         code also if ! defined N_NAME_POINTER.
26440         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26441         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26442         but the n_name member is a 12-byte array.
26443
26444 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26445
26446         update-copyright: generalize comment handling
26447         * build-aux/update-copyright: Handle copyright statements
26448         within more comment styles.
26449         Document usage.
26450         Report any file with an external copyright holder or parse failure.
26451
26452 2009-07-29  Jim Meyering  <meyering@redhat.com>
26453
26454         mktime: correct setting of REPLACE_MKTIME
26455         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26456
26457         update-copyright: new module
26458         * modules/update-copyright: New file.
26459         * build-aux/update-copyright: New file.
26460         * MODULES.html.sh (maint+release support): Add update-copyright.
26461
26462 2009-07-27  Bruno Haible  <bruno@clisp.org>
26463
26464         Fix compilation error when <ctime> is used and mktime is replaced.
26465         * lib/time.in.h (mktime): New declaration.
26466         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26467         REPLACE_MKTIME instead of defining mktime in config.h.
26468         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26469         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26470         Reported by Ross McFarland <rwmcfa1@neces.com>.
26471
26472 2009-07-27  Bruno Haible  <bruno@clisp.org>
26473
26474         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26475         Reported by Matt Kraai <mkraai@beckman.com>.
26476
26477 2009-07-25  Jim Meyering  <meyering@redhat.com>
26478
26479         maint.mk: avoid warnings about missing files
26480         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26481         diagnostic when .prev-version does not exist.
26482         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26483         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26484         nonexistent cfg.mk.
26485         Suggestions from Simon Josefsson.
26486
26487 2009-07-25  Bruno Haible  <bruno@clisp.org>
26488
26489         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26490         defined as macros. Needed on QNX 6.4.1.
26491         Reported by Matt Kraai <mkraai@beckman.com>.
26492
26493 2009-07-23  Jim Meyering  <meyering@redhat.com>
26494
26495         maint.mk: invoke "make dist" with a working value of XZ_OPT
26496         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26497
26498 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26499
26500         Make fseeko.c compile on QNX.
26501         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26502
26503 2009-07-22  Peter Simons  <simons@cryp.to>
26504
26505         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26506         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26507         * lib/md4.h: Likewise.
26508         * lib/md5.h: Likewise.
26509         * lib/sha1.h: Likewise.
26510         * lib/sha256.h: Likewise.
26511         * lib/sha512.h: Likewise.
26512
26513         tests-sha1: don't assign literal string to 'char *' variable
26514         * tests/test-sha1.c (main): Declare locals with "const" to match
26515         attributes of the right hand side.
26516
26517 2009-07-21  Eric Blake  <ebb9@byu.net>
26518
26519         dup2: fix more mingw problems
26520         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26521         fd to itself.
26522         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26523         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26524         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26525         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26526         care of mingw bugs.
26527
26528 2009-07-21  Jim Meyering  <meyering@redhat.com>
26529
26530         vc-list-files: avoid failure when /bin/sh is dash
26531         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26532         On some Debian based systems, /bin/sh is a symlink to dash, and running
26533         this command would omit the "/" following each 'tests' prefix:
26534           dash -x build-aux/vc-list-files -C . tests
26535         That is because bash and dash work differently:
26536           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26537           bash ok
26538           dash odd
26539
26540 2009-07-21  Eric Blake  <ebb9@byu.net>
26541
26542         dup2-tests: test previous patch
26543         * modules/dup2-tests: New file.
26544         * tests/test-dup2.c: Likewise.
26545         * tests/test-open.c (main): Avoid unspecified behavior.
26546         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26547         test.
26548
26549         dup2: work around mingw and cygwin 1.5 bug
26550         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26552         * modules/unistd (Makefile.am): Substitute it.
26553         * lib/unistd.in.h (dup2): Declare the replacement.
26554         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26555         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26556         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26557         * modules/execute (Depends-on): Add dup2.
26558         * modules/fseterr (Depends-on): Likewise.
26559         * modules/pipe (Depends-on): Likewise.
26560         * modules/posix_spawn-internal (Depends-on): Likewise.
26561
26562 2009-07-21  Bruno Haible  <bruno@clisp.org>
26563
26564         * modules/.gitattributes: New file.
26565
26566 2009-07-20  Bruno Haible  <bruno@clisp.org>
26567
26568         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26569         (main): Use it.
26570
26571 2009-07-20  Eric Blake  <ebb9@byu.net>
26572
26573         test-pipe: make a bit more robust.
26574         * tests/test-pipe.c (myerr): Allow error messages regardless of
26575         what we do to stderr.
26576         (test_pipe): Rearrange to avoid deadlock.
26577         (child_main): Try a larger read, to ensure we avoided deadlock.
26578         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26579         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26580         if misused.
26581
26582 2009-07-19  Jim Meyering  <meyering@redhat.com>
26583
26584         fts: avoid false-positive cycle-detection
26585         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26586         for each new command line argument.
26587
26588 2009-07-19  Bruno Haible  <bruno@clisp.org>
26589
26590         Fix build error on mingw with the modules sys_select and unistd.
26591         * modules/acl-tests (Depends-on): Add close.
26592         * modules/binary-io-tests (Depends-on): Likewise.
26593         * modules/closein-tests (Depends-on): Likewise.
26594         * modules/flock-tests (Depends-on): Likewise.
26595         * modules/fsync-tests (Depends-on): Likewise.
26596         * modules/lseek-tests (Depends-on): Likewise.
26597         * modules/pipe-tests (Depends-on): Likewise.
26598         * modules/posix_spawn-tests (Depends-on): Likewise.
26599         * modules/posix_spawnp-tests (Depends-on): Likewise.
26600         * modules/stat-time-tests (Depends-on): Likewise.
26601         * modules/yesno-tests (Depends-on): Likewise.
26602
26603 2009-07-19  Bruno Haible  <bruno@clisp.org>
26604
26605         Unify conditionals.
26606         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26607         macros, not at the compiler macros.
26608         * lib/pipe.c: Likewise.
26609         * lib/execute.c: Likewise.
26610         * lib/spawni.c: Likewise.
26611
26612 2009-07-19  Bruno Haible  <bruno@clisp.org>
26613
26614         Fix handling of closed stdin/stdout/stderr on mingw.
26615         * lib/w32spawn.h: Include unistd.h.
26616         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26617         file descriptor with O_NOINHERIT flag.
26618         (fd_safer_noinherit): New function, based on fd-safer.c.
26619         (dup_safer_noinherit): New function, based on dup-safer.c.
26620         (undup_safer_noinherit): New function.
26621         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26622         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26623         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26624         instead of fd_safer.
26625         * tests/test-pipe.c: Include <windows.h>.
26626         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26627
26628         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26629         from main.
26630         (test_pipe): Pass an extra argument for disambiguation.
26631         (main): Invoke parent_main or child_main.
26632
26633         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26634         consistently.
26635
26636 2009-07-18  Eric Blake  <ebb9@byu.net>
26637
26638         test-pipe: fix mingw build
26639         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26640
26641 2009-07-18  Bruno Haible  <bruno@clisp.org>
26642
26643         * modules/pipe-tests (Makefile.am): Fix typo.
26644
26645 2009-07-18  Eric Blake  <ebb9@byu.net>
26646
26647         error: fix mingw build
26648         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26649         Reported by Bruno Haible.
26650
26651         error: avoid undefined use of stdout
26652         * lib/error.c (error, error_at_line): Check that fd 1 is open
26653         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26654         is handling faults and the close_stdout module wants to report the
26655         detection of closed stdout as an error.
26656
26657 2009-07-17  Eric Blake  <ebb9@byu.net>
26658
26659         pipe: be robust in face of closed fds
26660         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26661         should cause child to misbehave.
26662         * modules/pipe-tests: New module.
26663         * tests/test-pipe.c: New file.
26664         * tests/test-pipe.sh: New file.
26665         Reported by Akim Demaille.
26666
26667 2009-07-14  Bruno Haible  <bruno@clisp.org>
26668
26669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26670         Reported by anonymous kc.
26671
26672 2009-07-07  Jim Meyering  <meyering@redhat.com>
26673
26674         maint.mk: don't look for translatable strings in *.m4 or *.mk
26675         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26676         when searching for translatable strings.
26677
26678 2009-07-05  Jim Meyering  <meyering@redhat.com>
26679
26680         remove superfluous parentheses in STREQ definition
26681         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26682         * lib/getugroups.c (STREQ): Likewise.
26683         * lib/fnmatch.c (STREQ): Likewise.
26684         Spotted by Bruno Haible.
26685
26686 2009-07-04  Jim Meyering  <meyering@redhat.com>
26687
26688         argv-iter: new module
26689         * MODULES.html.sh: Add argv-iter.
26690         * lib/argv-iter.c, lib/argv-iter.h: New files.
26691         * modules/argv-iter: New file.
26692         * modules/argv-iter-tests: New file.
26693         * tests/test-argv-iter.c: Test it.
26694
26695 2009-07-04  Bruno Haible  <bruno@clisp.org>
26696
26697         Fix assertion.
26698         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26699         contains more exact copies of a given entry than file2, leave the extra
26700         copies unpaired rather than aborting.
26701         Reported by Eric Blake.
26702
26703 2009-07-02  Bruno Haible  <bruno@clisp.org>
26704
26705         Speedup git-merge-changelog for git cherry-pick.
26706         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26707         (entries_mapping_get): New function, extracted from compute_mapping.
26708         (entries_mapping_reverse_get): New function.
26709         (compute_mapping): Add a 'full' argument. Return the result in a
26710         'struct entries_mapping'.
26711         (main): Update. Access the mappings through entries_mapping_get.
26712         Reported by Eric Blake.
26713
26714 2009-07-02  Bruno Haible  <bruno@clisp.org>
26715
26716         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26717         best_i.
26718
26719 2009-07-02  Bruno Haible  <bruno@clisp.org>
26720
26721         Speed up approximate search for matching ChangeLog entries.
26722         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26723         argument. Call fstrcmp_bounded instead of fstrcmp.
26724         (compute_mapping, try_split_merged_entry, main): Update callers.
26725
26726 2009-07-02  Bruno Haible  <bruno@clisp.org>
26727
26728         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26729
26730 2009-06-30  Bruno Haible  <bruno@clisp.org>
26731
26732         Reduce the number of uc_is_cased calls.
26733         * lib/unicase.h (casing_suffix_context_t): Add
26734         'first_char_except_ignorable' field.
26735         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26736         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26737         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26738         Update initializer.
26739         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26740         case-ignorable characters.
26741         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26742         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26743         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26744         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26745         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26746
26747 2009-06-30  Bruno Haible  <bruno@clisp.org>
26748
26749         Tests for module 'unicase/ignorable'.
26750         * modules/unicase/ignorable-tests: New file.
26751         * tests/unicase/test-ignorable.c: New file, generated by
26752         gen-uni-tables.
26753
26754         Tests for module 'unicase/cased'.
26755         * modules/unicase/cased-tests: New file.
26756         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26757         * tests/unicase/test-predicate-part1.h: New file, derived from
26758         tests/unictype/test-predicate-part1.h.
26759         * tests/unicase/test-predicate-part2.h: New file, same as
26760         tests/unictype/test-predicate-part2.h.
26761
26762         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26763         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26764         (output_casing_properties): New function.
26765         (main): Call it.
26766         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26767         * lib/unicase/cased.c: Include unictype/bitmap.h.
26768         (uc_is_cased): Define through a bitmap lookup.
26769         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26770         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26771         (uc_is_case_ignorable): Define through a bitmap lookup.
26772         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26773         lib/unictype/bitmap.h.
26774         (Depends-on): Add inline. Clean up.
26775         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26776         lib/unictype/bitmap.h.
26777         (Depends-on): Add inline. Clean up.
26778         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26779         recognition.
26780         * tests/unicase/test-u16-tolower.c (main): Likewise.
26781         * tests/unicase/test-u32-tolower.c (main): Likewise.
26782
26783 2009-06-30  Bruno Haible  <bruno@clisp.org>
26784
26785         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26786         * lib/unicase/u16-casemap.c: Likewise.
26787         * lib/unicase/u32-casemap.c: Likewise.
26788
26789 2009-06-29  Bruno Haible  <bruno@clisp.org>
26790
26791         Define u32_casefold as a wrapper around u32_ct_casefold.
26792         * lib/unicase/u32-casefold.c: Update.
26793         * modules/unicase/u32-casefold (Depends-on): Add
26794         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26795         unicase/empty-suffix-context. Clean up.
26796
26797         Define u16_casefold as a wrapper around u16_ct_casefold.
26798         * lib/unicase/u16-casefold.c: Update.
26799         * modules/unicase/u16-casefold (Depends-on): Add
26800         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26801         unicase/empty-suffix-context. Clean up.
26802
26803         Define u8_casefold as a wrapper around u8_ct_casefold.
26804         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26805         * lib/unicase/u8-casefold.c: Update.
26806         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26807         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26808
26809         Define u32_totitle as a wrapper around u32_ct_totitle.
26810         * lib/unicase/u32-totitle.c: Update.
26811         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26812         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26813
26814         Define u16_totitle as a wrapper around u16_ct_totitle.
26815         * lib/unicase/u16-totitle.c: Update.
26816         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26817         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26818
26819         Define u8_totitle as a wrapper around u8_ct_totitle.
26820         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26821         functions.
26822         (FUNC): Delegate to U_CT_TOTITLE.
26823         * lib/unicase/u8-totitle.c: Update.
26824         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26825         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26826
26827         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26828         invocation.
26829         * modules/unicase/u32-tolower (Depends-on): Add
26830         unicase/empty-prefix-context, unicase/empty-suffix-context.
26831
26832         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26833         invocation.
26834         * modules/unicase/u16-tolower (Depends-on): Add
26835         unicase/empty-prefix-context, unicase/empty-suffix-context.
26836
26837         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26838         * modules/unicase/u8-tolower (Depends-on): Add
26839         unicase/empty-prefix-context, unicase/empty-suffix-context.
26840
26841         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26842         invocation.
26843         * modules/unicase/u32-toupper (Depends-on): Add
26844         unicase/empty-prefix-context, unicase/empty-suffix-context.
26845
26846         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26847         invocation.
26848         * modules/unicase/u16-toupper (Depends-on): Add
26849         unicase/empty-prefix-context, unicase/empty-suffix-context.
26850
26851         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26852         * modules/unicase/u8-toupper (Depends-on): Add
26853         unicase/empty-prefix-context, unicase/empty-suffix-context.
26854
26855         New module 'unicase/u32-ct-casefold'.
26856         * lib/unicase/u32-ct-casefold.c: New file.
26857         * modules/unicase/u32-ct-casefold: New file.
26858
26859         New module 'unicase/u16-ct-casefold'.
26860         * lib/unicase/u16-ct-casefold.c: New file.
26861         * modules/unicase/u16-ct-casefold: New file.
26862
26863         New module 'unicase/u8-ct-casefold'.
26864         * lib/unicase/u8-ct-casefold.c: New file.
26865         * lib/unicase/u-ct-casefold.h: New file, derived from
26866         lib/unicase/u-casefold.h.
26867         * modules/unicase/u8-ct-casefold: New file.
26868
26869         New module 'unicase/u32-ct-totitle'.
26870         * lib/unicase/u32-ct-totitle.c: New file.
26871         * modules/unicase/u32-ct-totitle: New file.
26872
26873         New module 'unicase/u16-ct-totitle'.
26874         * lib/unicase/u16-ct-totitle.c: New file.
26875         * modules/unicase/u16-ct-totitle: New file.
26876
26877         New module 'unicase/u8-ct-totitle'.
26878         * lib/unicase/u8-ct-totitle.c: New file.
26879         * lib/unicase/u-ct-totitle.h: New file, derived from
26880         lib/unicase/u-totitle.h.
26881         * modules/unicase/u8-ct-totitle: New file.
26882
26883         New module 'unicase/u32-ct-tolower'.
26884         * lib/unicase/u32-ct-tolower.c: New file.
26885         * modules/unicase/u32-ct-tolower: New file.
26886
26887         New module 'unicase/u16-ct-tolower'.
26888         * lib/unicase/u16-ct-tolower.c: New file.
26889         * modules/unicase/u16-ct-tolower: New file.
26890
26891         New module 'unicase/u8-ct-tolower'.
26892         * lib/unicase/u8-ct-tolower.c: New file.
26893         * modules/unicase/u8-ct-tolower: New file.
26894
26895         New module 'unicase/u32-ct-toupper'.
26896         * lib/unicase/u32-ct-toupper.c: New file.
26897         * modules/unicase/u32-ct-toupper: New file.
26898
26899         New module 'unicase/u16-ct-toupper'.
26900         * lib/unicase/u16-ct-toupper.c: New file.
26901         * modules/unicase/u16-ct-toupper: New file.
26902
26903         New module 'unicase/u8-ct-toupper'.
26904         * lib/unicase/u8-ct-toupper.c: New file.
26905         * modules/unicase/u8-ct-toupper: New file.
26906
26907         Add context arguments to u*_casemap functions.
26908         * lib/unicase/unicasemap.h: Include unicase.h.
26909         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26910         suffix_context arguments.
26911         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26912         functions.
26913         (FUNC): Add prefix_context and suffix_context arguments. Use
26914         uc_is_cased and uc_is_case_ignorable.
26915         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26916         * lib/unicase/u16-casemap.c: Likewise.
26917         * lib/unicase/u32-casemap.c: Likewise.
26918         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26919         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26920         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26921         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26922         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26923         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26924
26925         New module 'unicase/u32-suffix-context'.
26926         * lib/unicase/u32-suffix-context.c: New file.
26927         * modules/unicase/u32-suffix-context: New file.
26928
26929         New module 'unicase/u16-suffix-context'.
26930         * lib/unicase/u16-suffix-context.c: New file.
26931         * modules/unicase/u16-suffix-context: New file.
26932
26933         New module 'unicase/u8-suffix-context'.
26934         * lib/unicase/u8-suffix-context.c: New file.
26935         * lib/unicase/u-suffix-context.h: New file.
26936         * modules/unicase/u8-suffix-context: New file.
26937
26938         New module 'unicase/empty-suffix-context'.
26939         * lib/unicase/empty-suffix-context.c: New file.
26940         * modules/unicase/empty-suffix-context: New file.
26941
26942         New module 'unicase/u32-prefix-context'.
26943         * lib/unicase/u32-prefix-context.c: New file.
26944         * modules/unicase/u32-prefix-context: New file.
26945
26946         New module 'unicase/u16-prefix-context'.
26947         * lib/unicase/u16-prefix-context.c: New file.
26948         * modules/unicase/u16-prefix-context: New file.
26949
26950         New module 'unicase/u8-prefix-context'.
26951         * lib/unicase/u8-prefix-context.c: New file.
26952         * lib/unicase/u-prefix-context.h: New file.
26953         * lib/unicase/context.h: New file.
26954         * modules/unicase/u8-prefix-context: New file.
26955
26956         New module 'unicase/empty-prefix-context'.
26957         * lib/unicase/empty-prefix-context.c: New file.
26958         * modules/unicase/empty-prefix-context: New file.
26959
26960         New module 'unicase/ignorable'.
26961         * lib/unicase/ignorable.c: New file.
26962         * modules/unicase/ignorable: New file.
26963
26964         New module 'unicase/cased'.
26965         * lib/unicase/caseprop.h: New file.
26966         * lib/unicase/cased.c: New file.
26967         * modules/unicase/cased: New file.
26968
26969         New functions for case mapping of substrings.
26970         * lib/unicase.h (casing_prefix_context_t): New type.
26971         (unicase_empty_prefix_context): New variable.
26972         (u8_casing_prefix_context, u16_casing_prefix_context,
26973         u32_casing_prefix_context, u8_casing_prefixes_context,
26974         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26975         declarations.
26976         (casing_suffix_context_t): New type.
26977         (unicase_empty_suffix_context): New variable.
26978         (u8_casing_suffix_context, u16_casing_suffix_context,
26979         u32_casing_suffix_context, u8_casing_suffixes_context,
26980         u16_casing_suffixes_context, u32_casing_suffixes_context,
26981         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26982         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26983         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26984         declarations.
26985
26986 2009-06-28  Jim Meyering  <meyering@redhat.com>
26987
26988         boostrap: indent only with spaces
26989         * build-aux/bootstrap: Indent only with spaces, never TABs.
26990
26991         bootstrap: split long lines
26992         * build-aux/bootstrap: Keep line length < 80.
26993
26994         bootstrap: sync from coreutils
26995         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26996         just as autoreconf does.  Verify a list of prerequisite
26997         package-name,version-number pairs if defined in bootstrap.conf.
26998         Refer to README-prereq, if prerequisites are not satisfied.
26999
27000 2009-06-27  Eric Blake  <ebb9@byu.net>
27001
27002         tests: add test for bogus NULL definition
27003         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27004         * tests/test-stdlib.c: Likewise.
27005         * tests/test-string.c: Likewise.
27006         * tests/test-locale.c: Likewise.
27007         * tests/test-unistd.c: Likewise.
27008         * modules/stdio-tests (Depends-on): Add verify.
27009         * modules/stdlib-tests (Depends-on): Likewise.
27010         * modules/string-tests (Depends-on): Likewise.
27011         * modules/locale-tests (Depends-on): Likewise.
27012         * modules/unistd-tests (Depends-on): Likewise.
27013
27014 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27015
27016         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27017         self-explaining comment.
27018         * m4/selinux-selinux-h: Update serial.
27019         (gl_LIBSELINUX): New macro, adding a warning for missing development
27020         packages to code extracted from...
27021         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27022         Add warning for missing development packages here, too.
27023
27024 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27025
27026         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27027
27028 2009-06-25  Eric Blake  <ebb9@byu.net>
27029
27030         version-etc: fix regression
27031         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27032         gcc.
27033         (version_etc): Use it, to catch bugs with trailing NULL.
27034         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27035         (version_etc_va): Fix logic bug.
27036         * modules/version-etc-tests: Add test.
27037         * tests/test-version-etc.c: New file.
27038         * tests/test-version-etc.sh: Likewise.
27039
27040 2009-06-25  Sam Steingold  <sds@gnu.org>
27041
27042         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27043         mbtowc declaration.
27044
27045 2009-06-25  Eric Blake  <ebb9@byu.net>
27046
27047         fpurge: migrate into <stdio.h>
27048         * lib/fpurge.h: Delete...
27049         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27050         * lib/fpurge.c (fpurge): Change declaring header.
27051         * modules/fpurge (Files): Drop deleted file.
27052         (Depends-on): Add stdio.
27053         (configure.ac): Set witness.
27054         * modules/stdio (Makefile.am): Support fpurge macros.
27055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27056         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27057         * lib/fflush.c: Update client.
27058         * tests/test-fpurge.c: Likewise.
27059         * NEWS: Mention the change.
27060
27061 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27062
27063         * lib/argp-version-etc.c (program_authors): Add const
27064         qualifier.
27065         * lib/version-etc.c: Fix typos in the comments.
27066         * modules/argp-version-etc: Depends on version-etc.
27067
27068 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27069
27070         argp-version-etc: new module.
27071
27072         * lib/argp-version-etc.c: New file.
27073         * lib/argp-version-etc.h: New file.
27074         * modules/argp-version-etc: New file.
27075         * modules/argp-version-etc-tests: New file.
27076         * tests/test-argp-version-etc.c: New test.
27077         * tests/test-argp-version-etc-1.sh: New test.
27078
27079 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27080
27081         Provide additional interfaces and documentation for version-etc
27082         module.
27083
27084         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27085         interfaces.
27086         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27087         prototypes.
27088
27089 2009-06-24  Bruno Haible  <bruno@clisp.org>
27090
27091         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27092         HAVE_LIB${NAME} macro.
27093         Reported by Sam Steingold <sds@gnu.org>.
27094
27095 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27096
27097         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27098         needed.
27099
27100 2009-06-21  Bruno Haible  <bruno@clisp.org>
27101
27102         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27103         work.
27104         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27105         together with LIB${NAME}, LTLIB${NAME}.
27106         Reported by Sam Steingold <sds@gnu.org>.
27107
27108 2009-06-20  Jim Meyering  <meyering@redhat.com>
27109
27110         tests: make sc_require_test_exit_idiom more generic
27111         * top/maint.mk (Exit_witness_file): New overridable variable.
27112         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27113         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27114
27115 2009-06-19  Jim Meyering  <meyering@redhat.com>
27116
27117         hash: reverse order of src/dst parameters in an internal interface
27118         * lib/hash.c (transfer_entries): Reverse order of parameters to
27119         put DST before SRC.  Adjust callers.
27120
27121         tests: test-hash: avoid wholesale duplication
27122         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27123         Instead, use a loop and add a single conditional.
27124
27125         tests: test-hash: allow seed selection via a command line argument
27126         * tests/test-hash.c (get_seed): New function.
27127         (main): Use it.
27128
27129 2009-06-19  Eric Blake  <ebb9@byu.net>
27130
27131         hash: avoid memory leak on allocation failure
27132         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27133         failure.  Factor repeated algorithm...
27134         (transfer_entries): ...into new helper routine.
27135         (hash_delete): React to hash_rehash return value.
27136
27137         hash: reduce memory pressure in hash_rehash no-op case
27138         * lib/hash.c (next_prime): Avoid overflow.
27139         (hash_initialize): Factor bucket size computation...
27140         (compute_bucket_size): ...into new helper function.
27141         (hash_rehash): Use new function and open coding to reduce memory
27142         pressure, and avoid a memory leak in USE_OBSTACK code.
27143         Reported by Jim Meyering.
27144
27145 2009-06-18  Eric Blake  <ebb9@byu.net>
27146
27147         hash: make rotation more obvious
27148         * modules/hash (Depends-on): Add bitrotate and stdint.
27149         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27150         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27151         (SIZE_MAX): Rely on headers for definition.
27152         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27153         (raw_hasher): Use rotr_sz.
27154         Suggested by Jim Meyering.
27155
27156         hash: fix memory leak in last patch
27157         * lib/hash.c (hash_rehash): Avoid memory leak.
27158
27159         hash: avoid no-op rehashing
27160         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27161
27162         hash: provide default callback functions
27163         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27164         (hash_initialize): Use them as defaults.
27165         * tests/test-hash.c (main): Test this.
27166
27167         hash: minor optimization
27168         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27169         when possible.
27170         (hash_initialize): Document this promise.
27171         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27172         * tests/test-hash.c (hash_compare_strings): Test this.
27173
27174 2009-06-18  Bruno Haible  <bruno@clisp.org>
27175
27176         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27177         going to be replaced anyway.
27178
27179 2009-06-18  Bruno Haible  <bruno@clisp.org>
27180
27181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27182         in one place.
27183         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27184         be replaced anyway.
27185
27186 2009-06-18  Eric Blake  <ebb9@byu.net>
27187
27188         hash: check for resize before insertion
27189         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27190         threshold before insertion, so that a pathological hash_rehash
27191         that fills every bucket can still trigger another rehash.
27192
27193 2009-06-18  Jim Meyering  <meyering@redhat.com>
27194
27195         hash-tests: add a loop around the small tests
27196         * tests/test-hash.c (main): Repeat small tests with selected
27197         small initial table sizes.
27198
27199 2009-06-17  Eric Blake  <ebb9@byu.net>
27200
27201         hash: minor cleanups
27202         * lib/hash.h (hash_entry): Make opaque, by moving...
27203         * lib/hash.c (hash_entry): ...here.
27204         (hash_insert): Clarify restrictions on what can be inserted.
27205         (hash_get_next): Clarify when it is safe to remove an element
27206         during traversal.
27207         (check_tuning): Skip verification when tuning is known safe.
27208         (hash_initialize): Clarify restrictions on tuning.
27209
27210 2009-06-17  Jim Meyering  <jim@meyering.net>
27211         and Eric Blake  <ebb9@byu.net>
27212
27213         hash-tests: new module
27214         * modules/hash-tests: New file.
27215         * tests/test-hash.c: New file.
27216
27217 2009-06-17  Eric Blake  <ebb9@byu.net>
27218
27219         strstr-simple: document new module
27220         * MODULES.html.sh: Document new module.
27221
27222         strstr, strcasestr: replace on platforms with broken memchr
27223         * modules/strstr: Split into...
27224         * modules/strstr-simple: ...new module that does not care about
27225         performance, but does care about glibc bug.
27226         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27227         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27228         if platform memchr is broken, per Debian bug 521737.
27229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27230         memchr.
27231         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27232         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27233         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27234         * modules/mountlist (Depends-on): Add strstr-simple.
27235         * modules/gen-uni-tables (Depends-on): Likewise.
27236         * modules/argz (Depends-on): Add strstr.
27237
27238 2009-06-17  Bruno Haible  <bruno@clisp.org>
27239
27240         * modules/posix_spawn-internal (Depends-on): Add errno.
27241
27242 2009-06-17  Bruno Haible  <bruno@clisp.org>
27243
27244         Define missing ESTALE on Interix 3.5.
27245         * lib/errno.in.h (ESTALE): Assign a value if missing.
27246         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27247         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27248         missing.
27249         * doc/posix-headers/errno.texi: Mention the Interix bug.
27250         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27251
27252 2009-06-15  Eric Blake  <ebb9@byu.net>
27253
27254         memchr, memchr2: add valgrind exception
27255         * lib/memchr.valgrind: New file.
27256         * lib/memchr2.valgrind: New file.
27257         * modules/memchr (Files): Distribute valgrind file.
27258         * modules/memchr2 (Files): Likewise.
27259
27260         docs: memchr is no longer obsolete
27261         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27262         * lib/string.in.h (memchr): Simplify logic.
27263
27264 2009-06-14  Jim Meyering  <meyering@redhat.com>
27265
27266         link-follow: fix the "checking..." message to not mention trailing slash
27267         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27268         never considered trailing slashes.
27269
27270 2009-06-14  Bruno Haible  <bruno@clisp.org>
27271
27272         * m4/memchr.m4: Mention also the bug on IA-64.
27273         * doc/posix-functions/memchr.texi: Likewise.
27274
27275 2009-06-12  Eric Blake  <ebb9@byu.net>
27276
27277         memchr: detect broken x86_64 and alpha implementations
27278         * modules/memchr-tests (Depends-on): Move mmap detection...
27279         * modules/memchr (Depends-on): ...here.
27280         (configure.ac): Set indicator.
27281         * lib/string.in.h (memchr): Declare replacement.
27282         * modules/string (Makefile.am): Trigger replacement.
27283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27284         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27285         bugs.
27286         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27287         * modules/getpagesize (License): Relax license.
27288
27289 2009-06-11  Bruno Haible  <bruno@clisp.org>
27290
27291         * lib/idpriv.h: Add more references.
27292
27293 2009-06-08  Bruno Haible  <bruno@clisp.org>
27294
27295         Tests for module 'idpriv-droptemp'.
27296         * modules/idpriv-droptemp-tests: New file.
27297         * tests/test-idpriv-droptemp.sh: New file.
27298         * tests/test-idpriv-droptemp.su.sh: New file.
27299         * tests/test-idpriv-droptemp.c: New file.
27300
27301         New module 'idpriv-droptemp'.
27302         * lib/idpriv-droptemp.c: New file.
27303         * modules/idpriv-droptemp: New file.
27304
27305 2009-06-08  Bruno Haible  <bruno@clisp.org>
27306
27307         Tests for module 'idpriv-drop'.
27308         * modules/idpriv-drop-tests: New file.
27309         * tests/test-idpriv-drop.sh: New file.
27310         * tests/test-idpriv-drop.su.sh: New file.
27311         * tests/test-idpriv-drop.c: New file.
27312
27313         New module 'idpriv-drop'.
27314         * lib/idpriv.h: New file.
27315         * lib-idpriv-drop.c: New file.
27316         * m4/idpriv.m4: New file.
27317         * modules/idpriv-drop: New file.
27318
27319 2009-06-08  Bruno Haible  <bruno@clisp.org>
27320
27321         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27322         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27323         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27324         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27325         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27326         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27327         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27328
27329 2009-06-08  Eric Blake  <ebb9@byu.net>
27330
27331         test-strstr: use memory fence, when possible
27332         * tests/test-strstr.c (main): Use memory fence, in order to be
27333         more likely to trigger Debian bug 521737.
27334         * modules/strstr-tests (Files): Pull in additional files.
27335
27336         memchr: no longer obsolete, for wider field testing
27337         * modules/memchr (Status, Notice): Delete, this module is no
27338         longer obsolete.
27339         * modules/vasnprintf (Depends-on): Add memchr.
27340
27341 2009-06-07  Jim Meyering  <meyering@redhat.com>
27342
27343         hash: declare some functions with the warn_unused_result attribute
27344         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27345
27346 2009-06-07  Bruno Haible  <bruno@clisp.org>
27347
27348         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27349         Reported by Eric Blake.
27350
27351 2009-06-06  Eric Blake  <ebb9@byu.net>
27352
27353         test-alignof: fix typo with long double
27354         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27355         compiler error.
27356
27357 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27358
27359         Escape non-texinfo { and }s.
27360         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27361         markup error.
27362
27363 2009-06-04  Jim Meyering  <meyering@redhat.com>
27364
27365         gitlog-to-changelog: don't infloop on an empty commit log
27366         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27367         Reported by Boris Petersen <transacid@centerim.org>.
27368
27369 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27370
27371         version-etc: extend for packagers
27372         Add three new configure options, intended for packagers:
27373           --with-packager="packager name"
27374           --with-packager-version="packager-specific version"
27375           --with-packager-bug-reports="packager bug reporting"
27376         An example with coreutils:
27377           $ ./configure \
27378             --with-packager=Gentoo \
27379             --with-packager-bug-report=http://bugs.gentoo.org/ \
27380             --with-packager-version="patchset 1.6"
27381           $ ./src/ls --version | head -n2
27382           ls (GNU coreutils) 7.1-dirty
27383           Packaged by Gentoo (patchset 1.6)
27384         Note that the bug reporting info via --help doesn't show up because
27385         coreutils uses its own custom emit_bug_reporting_address() implementation
27386         in src/system.h.  If it didn't, it'd look like:
27387           $ ./src/ls --help | tail -n4
27388           Report bugs to <bug-coreutils@gnu.org>.
27389           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27390           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27391           General help using GNU software: <http://www.gnu.org/gethelp/>.
27392         * lib/version-etc.c: Print new information, if provided.
27393         * m4/version-etc.m4: New file.
27394         * modules/version-etc (Files): Add m4/version-etc.m4.
27395         (configure.ac): Add gl_VERSION_ETC.
27396
27397 2009-05-31  Bruno Haible  <bruno@clisp.org>
27398
27399         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27400         and 'int64_t'.
27401         * modules/alignof-tests (Dependencies): Add stdint.
27402         Reported by Eric Blake.
27403
27404 2009-05-31  Bruno Haible  <bruno@clisp.org>
27405
27406         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27407         restriction due to compiler bugs.
27408         Reported by Eric Blake.
27409
27410 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27411             Bruno Haible  <bruno@clisp.org>
27412
27413         Fix test-alignof failure.
27414         * lib/alignof.h (alignof_slot): New macro.
27415         (alignof_type): New macro, with the same semantics as the previous
27416         'alignof'.
27417         (alignof): Alias to alignof_slot.
27418         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27419         check that the results are usable as constant expressions.
27420
27421 2009-05-31  Bruno Haible  <bruno@clisp.org>
27422
27423         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27424         * tests/test-memchr.c (main): Check that memchr does not read past the
27425         first occurrence of the byte.
27426         * tests/test-strstr.c (main): Update comment.
27427         Suggested by Eric Blake.
27428
27429 2009-05-30  Bruno Haible  <bruno@clisp.org>
27430
27431         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27432         detail how to use dumpbin.
27433         Reported by David Byron <dbyron@dbyron.com>.
27434
27435 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27436
27437         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27438
27439 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27440
27441         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27442
27443 2009-05-28  Bruno Haible  <bruno@clisp.org>
27444
27445         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27446         build-aux/ files.
27447
27448 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27449
27450         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27451
27452 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27453
27454         * gnulib-tool (sed_transform_main_lib_file)
27455         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27456         regexps.
27457
27458 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27459
27460         * tests/test-strstr.c: Add another self-test.
27461         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27462         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27463
27464 2009-05-23  Bruno Haible  <bruno@clisp.org>
27465
27466         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27467         change.
27468
27469 2009-05-21  Bruno Haible  <bruno@clisp.org>
27470
27471         Simplify use of mode_t varargs.
27472         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27473         uses 'mode_t' or 'int'.
27474         * lib/openat.c (openat): Likewise.
27475         * lib/open-safer.c (open_safer): Likewise.
27476         * m4/mode_t.m4: New file.
27477         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27478         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27479         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27480         * modules/open (Files): Add m4/mode_t.m4.
27481         * modules/openat (Files): Likewise.
27482         * modules/fcntl-safer (Files): Likewise.
27483         Suggested by Eric Blake.
27484
27485 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27486
27487         * doc/glibc-functions/fallocate.texi: New file.
27488         * doc/gnulib.texi: Include it.
27489
27490 2009-05-21  Eric Blake  <ebb9@byu.net>
27491             Bruno Haible  <bruno@clisp.org>
27492
27493         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27494         invocations.
27495         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27496
27497 2009-05-21  Eric Blake  <ebb9@byu.net>
27498             Bruno Haible  <bruno@clisp.org>
27499
27500         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27501         include_next. Fix of 2008-11-20 commit.
27502         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27503         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27504         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27505         NEXT_MATH_H.
27506         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27507         instead of NEXT_MATH_H.
27508
27509 2009-05-21  Bruno Haible  <bruno@clisp.org>
27510
27511         Avoid redefinition warnings for SIZE_MAX.
27512         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27513         Reported by Simon Josefsson.
27514
27515 2009-05-21  Bruno Haible  <bruno@clisp.org>
27516
27517         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27518         AC_CACHE_VAL.
27519
27520 2009-05-20  Bruno Haible  <bruno@clisp.org>
27521
27522         Make zeroptr.h work on mingw.
27523         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27524         mprotect.
27525         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27526         * modules/memchr2-tests (configure.ac): Likewise.
27527         * modules/memcmp-tests (configure.ac): Likewise.
27528         * modules/memmem-tests (configure.ac): Likewise.
27529         * modules/memrchr-tests (configure.ac): Likewise.
27530         Reported by Simon Josefsson.
27531
27532 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27533
27534         * tests/test-glob.c: Include string.h for strcmp prototype.
27535
27536 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27537
27538         * modules/getdelim (Depends-on): Add explicit stdint, although it
27539         was implicitly already pulled in via realloc-posix.
27540         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27541
27542 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27543
27544         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27545         G. Christensen" <tgc@jupiterrise.com>.
27546         * m4/sys_socket_h.m4: Check for sa_family_t.
27547         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27548         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27549         * tests/test-sys_socket.c: Check that sa_family_t works.
27550
27551 2009-05-18  Eric Blake  <ebb9@byu.net>
27552
27553         maint.mk: allow gnulib_dir in VPATH build
27554         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27555
27556 2009-05-15  Jim Meyering  <meyering@redhat.com>
27557
27558         maint.mk: Give gnulib_dir a default definition.
27559         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27560         Thus, most packages no longer need to specify this variable in cfg.mk
27561
27562 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27563
27564         rename.m4: fix typos that would make non-mingw cross-configure fail
27565         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27566
27567 2009-05-13  Eric Blake  <ebb9@byu.net>
27568
27569         mmap-anon: avoid out-of-order autoconf expansion
27570         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27571         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27572         * modules/memchr-tests (Depends-on): Add extensions.
27573         * modules/memchr2-tests (Depends-on): Add extensions.
27574         * modules/memcmp-tests (Depends-on): Add extensions.
27575         * modules/memmem-tests (Depends-on): Add extensions.
27576         * modules/memrchr-tests (Depends-on): Add extensions.
27577
27578 2009-05-13  Bruno Haible  <bruno@clisp.org>
27579
27580         Make some tests ISO C 99 compliant.
27581         * tests/zerosize-ptr.h: New file.
27582         * tests/test-memchr.c: Include zerosize-ptr.h.
27583         (main): Use a zero-size object pointer instead of NULL.
27584         * tests/test-memchr2.c: Include zerosize-ptr.h.
27585         (main): Use a zero-size object pointer instead of NULL.
27586         * tests/test-memcmp.c: Include zerosize-ptr.h.
27587         (main): Use a zero-size object pointer instead of NULL.
27588         * tests/test-memmem.c: Include zerosize-ptr.h.
27589         (main): Use a zero-size object pointer instead of NULL.
27590         * tests/test-memrchr.c: Include zerosize-ptr.h.
27591         (main): Use a zero-size object pointer instead of NULL.
27592         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27593         m4/mmap-anon.m4.
27594         (Depends-on): Add getpagesize.
27595         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27596         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27597         m4/mmap-anon.m4.
27598         (Depends-on): Add getpagesize.
27599         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27600         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27601         m4/mmap-anon.m4.
27602         (Depends-on): Add getpagesize.
27603         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27604         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27605         m4/mmap-anon.m4.
27606         (Depends-on): Add getpagesize.
27607         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27608         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27609         m4/mmap-anon.m4.
27610         (Depends-on): Add getpagesize.
27611         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27612
27613 2009-05-12  Bruno Haible  <bruno@clisp.org>
27614
27615         Tests for module 'alignof'.
27616         * modules/alignof-tests: New file.
27617         * tests/test-alignof.c: New file.
27618
27619 2009-05-12  Bruno Haible  <bruno@clisp.org>
27620
27621         Fix alignof macro.
27622         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27623         vendor compilers that are always correct.
27624
27625 2009-05-12  Bruno Haible  <bruno@clisp.org>
27626
27627         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27628         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27629         not whether its fully works.
27630
27631 2009-05-12  Bruno Haible  <bruno@clisp.org>
27632
27633         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27634
27635 2009-05-12  Jim Meyering  <meyering@redhat.com>
27636
27637         * top/maint.mk: Adjust backslash alignment.
27638
27639 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27640
27641         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27642
27643 2009-05-11  Eric Blake  <ebb9@byu.net>
27644
27645         argp: avoid undefined behavior
27646         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27647         macros.
27648
27649 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27650
27651         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27652         user.name to prevent git commit from complaining.
27653
27654 2009-05-10  Bruno Haible  <bruno@clisp.org>
27655
27656         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27657         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27658         it rewrites every file name only once.
27659         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27660
27661 2009-05-08  Bruno Haible  <bruno@clisp.org>
27662
27663         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27664         instead of 'max'.
27665
27666 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27667
27668         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27669         sockaddr_storage test.
27670
27671 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27672
27673         * modules/sys_socket (Makefile.am): Substitute
27674         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27675         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27676         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27677         * tests/test-sys_socket.c: Check sockaddr_storage.
27678
27679 2009-05-08  Bruno Haible  <bruno@clisp.org>
27680
27681         New module 'alignof'.
27682         * lib/alignof.h: New file.
27683         * modules/alignof: New file.
27684
27685 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27686             Bruno Haible  <bruno@clisp.org>
27687
27688         Fix test-file-has-acl on FreeBSD.
27689         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27690         mask is implicitly added.
27691         * tests/test-file-has-acl.c: Include <signal.h>.
27692         (main): Terminate the test after 5 seconds.
27693         * modules/acl-tests (configure.ac): Check for alarm function.
27694
27695 2009-05-04  Bruno Haible  <bruno@clisp.org>
27696
27697         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27698         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27699         * modules/errno (configure.ac): Drop AC_REQUIRE.
27700         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27701         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27702
27703 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27704
27705         * modules/glob-tests: New module.
27706         * tests/test-glob.c: Add.
27707
27708 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27709
27710         * modules/fnmatch-tests: New module.
27711         * tests/test-fnmatch.c: Add.
27712
27713 2009-05-04  Eric Blake  <ebb9@byu.net>
27714
27715         maint: make the new no-submodule-changes rule VPATH-safe
27716         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27717
27718 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27719             Bruno Haible  <bruno@clisp.org>
27720
27721         acl: Fix infinite loop on FreeBSD.
27722         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27723         of return value from acl_get_entry.
27724         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27725         Likewise.
27726
27727 2009-05-03  Bruno Haible  <bruno@clisp.org>
27728
27729         * lib/acl-internal.h (acl_entries): Clarify return value.
27730         * lib/acl_entries.c (acl_entries): Likewise.
27731
27732 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27733
27734         Bug fix in acl module.
27735         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27736
27737 2009-05-03  Bruno Haible  <bruno@clisp.org>
27738
27739         Create gperf-generated file in the source dir, not in the build dir.
27740         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27741         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27742         * modules/unicase/locale-language (unicase/locale-languages.h):
27743         Likewise.
27744         * modules/unicase/special-casing (unicase/special-casing-table.h):
27745         Likewise.
27746         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27747         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27748         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27749         Reported by Ralf Wildenhues.
27750
27751 2009-05-03  Bruno Haible  <bruno@clisp.org>
27752
27753         * modules/fnmatch (Description, configure.ac): Taken from
27754         fnmatch-posix.
27755         * modules/fnmatch-posix: Turn into a symbolic reference to the
27756         'fnmatch' module, and deprecate.
27757         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27758
27759 2009-05-03  Bruno Haible  <bruno@clisp.org>
27760
27761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27762         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27763         Reported by Ralf Wildenhues.
27764
27765 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27766
27767         * m4/fnmatch.m4: Fix fnmatch re-define.
27768
27769 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27770
27771         priv-set: new module and tests; adapt write-any-file
27772         * lib/priv-set.c: New file.
27773         * lib/priv-set.h: New file.
27774         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27775         * lib/write-any-file.c: Simplify by using priv-set module.
27776         * m4/priv-set.m4: New file.
27777         * modules/priv-set: New file.
27778         * modules/unlinkdir: Add dependency on priv-set module.
27779         * modules/write-any-file: Likewise.
27780
27781         Tests for module 'priv-set'.
27782         * modules/priv-set-tests: New file.
27783         * tests/test-priv-set.c: New file.
27784
27785 2009-05-03  Jim Meyering  <meyering@redhat.com>
27786             Bruno Haible  <bruno@clisp.org>
27787
27788         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27789         use the converted UTF-8 variant of the name instead.
27790
27791 2009-05-03  Jim Meyering  <meyering@redhat.com>
27792
27793         tests: tighten some getdate tests
27794         * tests/test-getdate.c (main): Tighten tests: require equality,
27795         not just greater than.  Set TZ envvar to UTC0.
27796
27797 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27798
27799         getdate: correctly interpret "next monday" when run on a Monday
27800         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27801         that e.g., "next tues" (when run on a tuesday) results in a date
27802         that is one week in the future, and not today's date.
27803         I.e., add a week when the wday is the same as the current one.
27804         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27805         and earlier by Martin Bernreuther and Jan Minář.
27806         * tests/test-getdate.c (main): Check that "next DAY" is always in
27807         the future and that "last DAY" is always in the past.
27808
27809 2009-05-02  Jim Meyering  <meyering@redhat.com>
27810
27811         build: ensure that a release build fails when a submodule is unclean
27812         * top/maint.mk (no-submodule-changes): New rule.
27813         (alpha beta major): Depend on it.
27814
27815 2009-05-02  Bruno Haible  <bruno@clisp.org>
27816
27817         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27818         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27819         shell variable gl_fnmatch_required to detect which variant is
27820         requested.
27821         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27822         gl_FUNC_FNMATCH_POSIX.
27823         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27824         exclude fnmatch-posix.
27825
27826 2009-05-02  Bruno Haible  <bruno@clisp.org>
27827
27828         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27829         * modules/mbsrtowcs (License): Change to LGPLv2+.
27830         * modules/strnlen1 (License): Likewise.
27831         Reported by Simon Josefsson.
27832
27833 2009-05-02  Bruno Haible  <bruno@clisp.org>
27834
27835         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27836         "cross".
27837         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27838         gnulib-tool was called with option --source-base=lib.
27839
27840 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27841
27842         Use automake *-local hooks without commands, for extensibility.
27843         * modules/localcharset (Makefile.am): Rename install-exec-local
27844         rule to install-exec-localcharset, and make it a prerequisite of
27845         install-exec-local.  Likewise, rename the uninstall-local rule to
27846         uninstall-localcharset, and make it a prerequisite of the former.
27847
27848 2009-05-01  Bruno Haible  <bruno@clisp.org>
27849
27850         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27851         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27852         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27853         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27854         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27855         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27856         m4/locale-zh.m4, m4/codeset.m4.
27857
27858         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27859         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27860         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27861         m4/locale-zh.m4.
27862
27863         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27864         REPLACE_WCRTOMB if mbstate_t must be replaced.
27865         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27866         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27867
27868 2009-05-01  Bruno Haible  <bruno@clisp.org>
27869
27870         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27871         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27872         dngettext, dcngettext, textdomain, bindtextdomain,
27873         bind_textdomain_codeset): Undefine before redefining.
27874
27875 2009-04-30  Bruno Haible  <bruno@clisp.org>
27876
27877         Fix bug introduced on 2009-04-25.
27878         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27879         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27880         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27881         is defined.
27882         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27883         is defined.
27884         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27885         is defined.
27886         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27887
27888 2009-04-28  Bruno Haible  <bruno@clisp.org>
27889
27890         Comment tweaks.
27891         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27892         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27893         * lib/unicase.h (u*_casexfrm): Likewise.
27894         Reported by Paolo Bonzini.
27895
27896 2009-04-28  Bruno Haible  <bruno@clisp.org>
27897
27898         Fix a compilation error.
27899         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27900         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27901         Reported by Jim Meyering.
27902
27903 2009-04-27  Bruno Haible  <bruno@clisp.org>
27904
27905         New module 'libunistring'.
27906         * modules/libunistring: New file.
27907         * m4/libunistring.m4: New file.
27908         * MODULES.html.sh (Unicode string functions): Add it.
27909
27910 2009-04-27  Eric Blake  <ebb9@byu.net>
27911
27912         maint.mk: allow package-specific header to provide <config.h>
27913         * top/maint.mk (sc_require_config_h): New variable.
27914         (sc_require_config_h, sc_require_config_h_first): Use it.
27915
27916 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27917
27918         * top/maint.mk (sc_avoid_if_before_free): Except
27919         useless-if-before-free script.
27920
27921 2009-04-27  Eric Blake  <ebb9@byu.net>
27922
27923         maintainer-makefile: depend on all required helper scripts
27924         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27925         useless-if-before-free.
27926         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27927         version, rather than assuming gnulib checkout is available.
27928         Reported by Simen Josefsson.
27929
27930 2009-04-26  Bruno Haible  <bruno@clisp.org>
27931
27932         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27933         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27934         "../" or "..".
27935
27936 2009-04-26  Bruno Haible  <bruno@clisp.org>
27937
27938         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27939         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27940         AC_LIB_HAVE_LINKFLAGS.
27941
27942 2009-04-26  Bruno Haible  <bruno@clisp.org>
27943
27944         Simplify calling convention of u*_conv_from_encoding.
27945         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27946         u32_conv_from_encoding): Expect a resultbuf argument and return the
27947         result directly as a pointer.
27948         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27949         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27950         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27951         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27952         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27953         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27954         Update.
27955         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27956         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27957         * lib/vasnprintf.c (VASNPRINTF): Update.
27958         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27959         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27960         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27961         * NEWS: Mention the change.
27962
27963 2009-04-26  Bruno Haible  <bruno@clisp.org>
27964
27965         Simplify calling convention of u*_conv_to_encoding.
27966         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27967         u32_conv_to_encoding): Expect a resultbuf argument and return the
27968         result directly as a pointer.
27969         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27970         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27971         freeing scaled_offsets if mem_iconveha failed.
27972         * lib/unicase/u-casexfrm.h (FUNC): Update.
27973         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27974         * lib/vasnprintf.c (VASNPRINTF): Update.
27975         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27976         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27977         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27978         * NEWS: Mention the change.
27979
27980 2009-04-26  Bruno Haible  <bruno@clisp.org>
27981
27982         Avoid test failures on AIX and OSF/1.
27983         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27984         malloc(0).
27985         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27986         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27987         Likewise.
27988         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27989         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27990         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27991         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27992         * doc/posix-functions/malloc.texi: Document the portability problem
27993         related to malloc(0).
27994
27995 2009-04-26  Bruno Haible  <bruno@clisp.org>
27996
27997         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27998         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27999         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28000
28001 2009-04-25  Bruno Haible  <bruno@clisp.org>
28002
28003         Avoid link error when creating a namespace clean library.
28004         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28005         as macro with arguments if already defined as an alias.
28006         * lib/signbitf.c (gl_signbitf): Don't undefine.
28007         * lib/signbitd.c (gl_signbitd): Don't undefine.
28008         * lib/signbitl.c (gl_signbitl): Don't undefine.
28009
28010 2009-04-25  Jim Meyering  <meyering@redhat.com>
28011
28012         vc-list-files: fix another quoting bug
28013         * build-aux/vc-list-files: Avoid sed backslash expansion
28014         of pathological directory names.
28015
28016 2009-04-25  Eric Blake  <ebb9@byu.net>
28017
28018         vc-list-files: fix shell quoting error
28019         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28020         timestamp.
28021
28022 2009-04-25  Jim Meyering  <meyering@redhat.com>
28023
28024         vc-list-files: restore lost functionality with subdir argument
28025         * build-aux/vc-list-files: When given a non-"." sub-directory
28026         argument, substitute the $dir/ prefix back onto each resulting name.
28027         Otherwise, coreutils' root_tests check would fail.
28028
28029 2009-04-24  Eric Blake  <ebb9@byu.net>
28030
28031         vc-list-files: ignore git symlinks
28032         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28033         than ls-files, to ignore git symlinks.
28034
28035         maint.mk: import improvements from m4
28036         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28037         (move_if_change): Delete unused macro.
28038         (news-date-check, vc-diff-check): Support VPATH builds.
28039         (announcement): Likewise.  Split --bootstrap-tools list...
28040         (boostrap-tools): ...into separate list, which can be overridden
28041         in cfg.mk.
28042         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28043         requiring dependency on useless-if-before-free module.
28044         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28045         Support VPATH builds.
28046
28047 2009-04-24  Jim Meyering  <meyering@redhat.com>
28048
28049         maint.mk: remove coreutils-specific rules and variables
28050         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28051         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28052         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28053
28054         maint.mk: remove obsolete rule
28055         * top/maint.mk (rel-check): Remove rule.
28056         (WGET, WGETFLAGS): Remove now-unused variables.
28057
28058 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28059
28060         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28061         consistency.
28062
28063         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28064         '$(PATH_SEPARATOR)' instead of ':'.
28065
28066 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28067
28068         * lib/getopt1.c (main): Use 'const' for static array.
28069
28070 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28071
28072         * top/maint.mk: Sync with coreutils.
28073         * NEWS: Explain incompatibilities.
28074
28075 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28076             Bruno Haible  <bruno@clisp.org>
28077
28078         Fix cross-compilation results.
28079         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28080         statement, as third argument of AC_TRY_RUN.
28081         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28082         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28083         Likewise.
28084         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28085         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28086         Likewise.
28087         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28088         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28089         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28090
28091 2009-04-20  Bruno Haible  <bruno@clisp.org>
28092
28093         Avoid test failure on mingw.
28094         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28095
28096 2009-04-20  Bruno Haible  <bruno@clisp.org>
28097
28098         Avoid compilation error on mingw.
28099         * modules/localename-tests (Depends-on): Add locale.
28100
28101 2009-04-19  Bruno Haible  <bruno@clisp.org>
28102
28103         Support for building a shared library on Windows platforms.
28104         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28105         (main): Test the presence of UNINORM_NFC here.
28106         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28107         (main): Test the presence of UNINORM_NFD here.
28108         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28109         (main): Test the presence of UNINORM_NFKC here.
28110         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28111         (main): Test the presence of UNINORM_NFKD here.
28112
28113 2009-04-19  Bruno Haible  <bruno@clisp.org>
28114
28115         Avoid a compiler warning.
28116         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28117         Change type of variable 'sequence'.
28118
28119 2009-04-19  Bruno Haible  <bruno@clisp.org>
28120
28121         * modules/configmake (Makefile.am): When the contents of configmake.h
28122         does not change, arrange to preserve its modification time.
28123
28124 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28125
28126         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28127         gettext domain.
28128
28129 2009-04-16  Jim Meyering  <meyering@redhat.com>
28130
28131         useless-if-before-free: improve conversion code
28132         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28133         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28134
28135 2009-04-14  Bruno Haible  <bruno@clisp.org>
28136
28137         * modules/fcntl (Depends-on): Add extensions.
28138         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28139
28140 2009-04-12  Ben Pfaff  <blp@gnu.org>
28141
28142         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28143         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28144
28145 2009-03-20  Ben Pfaff  <blp@gnu.org>
28146
28147         Make rename replace existing destinations on Windows.
28148         * m4/rename.m4: Add test for Mingw.
28149         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28150         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28151         * doc/posix-functions/rename.texi: Document.
28152
28153 2009-04-10  Bruno Haible  <bruno@clisp.org>
28154
28155         New include file "iconveh.h".
28156         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28157         * lib/striconveh.h: Include it.
28158         (enum iconv_ilseq_handler): Remove definition.
28159         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28160         striconveh.h.
28161         * lib/striconveha.c: Include striconveh.h.
28162         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28163         * modules/striconveh (Files): Add lib/iconveh.h.
28164         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28165         lib/striconveh.h.
28166
28167 2009-04-10  Bruno Haible  <bruno@clisp.org>
28168
28169         * lib/uniconv.h: Update comment.
28170
28171 2009-04-10  Bruno Haible  <bruno@clisp.org>
28172
28173         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28174         always.
28175         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28176         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28177         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28178         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28179         "unistring-notinline.h", so that the function gets defined always.
28180         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28181         * lib/unistr/u8-uctomb.c: Likewise.
28182         * lib/unistr/u16-mbtouc.c: Likewise.
28183         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28184         * lib/unistr/u16-uctomb.c: Likewise.
28185         * lib/unistr/u32-mbtouc.c: Likewise.
28186         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28187         * lib/unistr/u32-uctomb.c: Likewise.
28188
28189 2009-04-10  Bruno Haible  <bruno@clisp.org>
28190
28191         Mark 'utime' obsolete.
28192         * modules/utime (Status, Notice): New sections.
28193         Suggested by Jim Meyering.
28194
28195         Fix cross-compile guess for utime test.
28196         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28197         autoconf.
28198         * doc/posix-functions/utime.texi: Give more precisions.
28199         Reported by Jan <ipif@ymail.com>.
28200
28201 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28202
28203         filevercmp: correct today's change
28204         * lib/filevercmp.c: Also handle coreutils' test inputs.
28205         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28206
28207         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28208         for reporting it.
28209         * lib/filevercmp.c: Special handle for "", "." and "..".
28210         * tests/test-filevercmp.c: Enlarge the set suite.
28211
28212 2009-04-07  Jim Meyering  <meyering@redhat.com>
28213
28214         useless-if-before-free: show how to remove braced useless free, too
28215         * build-aux/useless-if-before-free: still only in a comment, though.
28216
28217 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28218
28219         maint.mk: import changes to syntax-check macros from coreutils
28220         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28221         Use them in the relevant macros.
28222
28223 2009-04-06  Bruno Haible  <bruno@clisp.org>
28224
28225         Fix unportable use of bit-fields.
28226         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28227         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28228         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28229
28230 2009-04-06  Bruno Haible  <bruno@clisp.org>
28231
28232         Avoid test failures on AIX and OSF/1.
28233         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28234         that malloc(0) = NULL.
28235         * tests/unicase/test-u8-tolower.c (check): Likewise.
28236         * tests/unicase/test-u8-totitle.c (check): Likewise.
28237         * tests/unicase/test-u8-toupper.c (check): Likewise.
28238         * tests/unicase/test-u16-casefold.c (check): Likewise.
28239         * tests/unicase/test-u16-tolower.c (check): Likewise.
28240         * tests/unicase/test-u16-totitle.c (check): Likewise.
28241         * tests/unicase/test-u16-toupper.c (check): Likewise.
28242         * tests/unicase/test-u32-casefold.c (check): Likewise.
28243         * tests/unicase/test-u32-tolower.c (check): Likewise.
28244         * tests/unicase/test-u32-totitle.c (check): Likewise.
28245         * tests/unicase/test-u32-toupper.c (check): Likewise.
28246         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28247         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28248         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28249         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28250         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28251         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28252         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28253         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28254         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28255         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28256         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28257         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28258
28259 2009-04-05  Bruno Haible  <bruno@clisp.org>
28260
28261         Work around an autoconf limitation.
28262         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28263         comment line if it would be longer than 3 KB.
28264
28265 2009-04-05  Bruno Haible  <bruno@clisp.org>
28266
28267         Avoid test failure with libiconv-1.13.
28268         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28269         of the expected test results.
28270
28271 2009-04-05  Bruno Haible  <bruno@clisp.org>
28272
28273         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28274         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28275         that it should be installed.
28276
28277 2009-04-05  Bruno Haible  <bruno@clisp.org>
28278
28279         * gnulib-tool: New option --copy-file.
28280         (func_usage): Document it.
28281         (func_dest_tmpfilename): Moved out of func_import.
28282         (func_add_file, func_update_file): New functions, extracted from
28283         func_import.
28284         (func_import): Update.
28285
28286 2009-04-05  Karl Berry  <karl@gnu.org>
28287
28288         * README: prominently mention gnulib-tool.
28289         Rearrange sections so getting the code is near the top.
28290
28291 2009-04-05  Bruno Haible  <bruno@clisp.org>
28292
28293         * lib/unicase.h: Mention u*_cmp2.
28294         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28295         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28296         * lib/unicase/ulc-casecmp.c: Likewise.
28297         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28298         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28299         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28300         unistr/u8-cmp.
28301         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28302         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28303         unistr/u16-cmp.
28304         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28305         unistr/u32-cmp.
28306
28307         * lib/uninorm.h: Mention u*_cmp2.
28308         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28309         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28310         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28311         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28312         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28313         unistr/u8-cmp.
28314         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28315         unistr/u16-cmp.
28316         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28317         unistr/u32-cmp.
28318
28319         New module 'unistr/u32-cmp2'.
28320         * lib/unistr/u32-cmp2.c: New file.
28321         * modules/unistr/u32-cmp2: New file.
28322
28323         New module 'unistr/u16-cmp2'.
28324         * lib/unistr/u16-cmp2.c: New file.
28325         * modules/unistr/u16-cmp2: New file.
28326
28327         New module 'unistr/u8-cmp2'.
28328         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28329         * lib/unistr/u8-cmp2.c: New file.
28330         * lib/unistr/u-cmp2.h: New file.
28331         * modules/unistr/u8-cmp2: New file.
28332
28333 2009-04-05  Bruno Haible  <bruno@clisp.org>
28334
28335         * lib/unictype.h (uc_property_is_valid): New macro.
28336         * tests/unictype/test-pr_byname.c (main): Use it.
28337
28338         * lib/unistr.h: Doc fixes.
28339         * lib/uniconv.h: Doc fixes.
28340         * lib/unictype.h: Doc fixes.
28341
28342 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28343
28344         Port coreutils 7.2 to Solaris 8.
28345
28346         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28347         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28348         for Solaris 8.  This is a bit of a hack, as it means it's the
28349         caller's responsibility to add -lnsl if needed, but most likely it
28350         won't be needed since only getaddrinfo uses this and getaddrinfo
28351         isn't needed on Solaris 8.
28352
28353         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28354         problem to Solaris 8 encountered with coreutils 7.2, which
28355         resulted in a message "fnmatch.c:292: warning: passing argument 4
28356         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28357         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28358
28359 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28360
28361         * m4/ld-version-script.m4: Add FIXME comment.
28362
28363 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28364
28365         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28366         SOVERSION variable.
28367
28368 2009-04-02  Bruno Haible  <bruno@clisp.org>
28369
28370         * Makefile (info, html, dvi, pdf): Combine the rules.
28371         Suggested by Jim Meyering.
28372
28373 2009-04-01  Bruno Haible  <bruno@clisp.org>
28374
28375         * Makefile (info, html, dvi, pdf): New targets.
28376         Reported by Reuben Thomas <rrt@sc3d.org>.
28377
28378 2009-04-01  Bruno Haible  <bruno@clisp.org>
28379
28380         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28381         can be put into PATH.
28382         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28383
28384 2009-04-01  Bruno Haible  <bruno@clisp.org>
28385
28386         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28387
28388 2009-04-01  Bruno Haible  <bruno@clisp.org>
28389
28390         Rename module 'visibility'.
28391         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28392         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28393         * doc/gnulib.texi: Update.
28394         * MODULES.html.sh (Misc): Update.
28395         * NEWS: Mention the change.
28396
28397 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28398
28399         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28400         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28401         Eric Blake <ebb9@byu.net> for review.
28402         * MODULES.html.sh: Add lib-msvc-compat.
28403         * doc/gnulib.texi: Link to new section.
28404         * m4/ld-output-def.m4: New file.
28405         * doc/ld-output-def.texi: New file.
28406
28407 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28408
28409         Rename ld-version-script to lib-symbol-versions.  Suggested by
28410         Bruno Haible <bruno@clisp.org>.
28411         * modules/ld-version-script: Renamed to lib-symbol-versions.
28412         * doc/ld-version-script.texi: Fix module name.
28413         * MODULES.html.sh: Add lib-symbol-versions.
28414
28415 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28416
28417         * modules/u64-tests: New file.
28418         * tests/test-u64.c: New file.
28419
28420 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28421
28422         * MODULES.html.sh: Mention u64.
28423         * modules/u64: New module.
28424         * modules/crypto/sha512: Depend on u64 module instead of providing
28425         u64.h.
28426
28427 2009-03-27  Eric Blake  <ebb9@byu.net>
28428
28429         test-strerror: make debugging EAI_SYSTEM easier
28430         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28431         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28432         failure was EAI_SYSTEM.
28433
28434 2009-03-25  Bruno Haible  <bruno@clisp.org>
28435
28436         Fix a problem with --enable-relocatable on Solaris 7.
28437         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28438         since 2008-02-24.
28439
28440 2009-03-25  Eric Blake  <ebb9@byu.net>
28441
28442         test-sockets: avoid gcc warning
28443         * tests/test-sockets.c (main): Silence compiler warning.
28444
28445 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28446
28447         New modules nproc, pthread, contributed by Glen Lenker.
28448
28449         * MODULES.html.sh: Add pthread, nproc.
28450         * lib/nproc.c: New file.
28451         * lib/nproc.h: New file.
28452         * lib/pthread.in.h: New file.
28453         * m4/pthread.m4: New file.
28454         * modules/nproc: New file.
28455         * modules/pthread: New file.
28456
28457 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28458
28459         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28460         New variable.
28461
28462 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28463
28464         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28465         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28466         * tests/test-filevercmp.c: Add tests for backup suffixes.
28467
28468 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28469
28470         * modules/stdlib (Depends-on): Add stdint, needed when defining
28471         struct random_data on, for example, HP-UX 10.20.  Reported by
28472         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28473
28474 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28475
28476         * lib/readline.c (readline): Call fflush on stdout after printing
28477         prompt.
28478
28479 2009-03-20  Bruno Haible  <bruno@clisp.org>
28480
28481         Remove dependency from 'close' module to -lws2_32 on native Windows.
28482         * lib/close-hook.h: New file.
28483         * lib/close-hook.c: New file.
28484         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28485         w32sock.h.
28486         (_gl_close_fd_maybe_socket): Remove function.
28487         (rpl_close): Invoke execute_all_close_hooks instead of
28488         _gl_close_fd_maybe_socket.
28489         * lib/sockets.c: Include close-hook.h, w32sock.h.
28490         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28491         (close_sockets_hook): New variable.
28492         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28493         (gl_sockets_cleanup): Unregister it.
28494         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28495         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28496         * modules/close-hook: New file.
28497         * modules/close (Files): Remove lib/w32sock.h.
28498         (Depends-on): Add close-hook.
28499         (Link): Remove section.
28500         * modules/sockets (Files): Add lib/w32sock.h.
28501         (Depends-on): Add close-hook.
28502         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28503         invocation.
28504         * NEWS: Mention that LIB_CLOSE is gone.
28505
28506 2009-03-23  Eric Blake  <ebb9@byu.net>
28507
28508         signal-tests: test previous patch
28509         * tests/test-signal.c: New file.
28510         * modules/signal-tests: Likewise.
28511
28512         signal.h: always support 'volatile sig_atomic_t'
28513         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28514         (gl_SIGNAL_H_DEFAULTS): Add a default.
28515         * modules/signal (Makefile.am): Substitute if needed.
28516         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28517         users can blindly add volatile.
28518         * doc/posix-headers/signal.texi (signal.h): Document it.
28519         Reported by Matthew Woehlke.
28520
28521 2009-03-23  Jim Meyering  <meyering@redhat.com>
28522
28523         pathmax: PATH_MAX: use pathconf only when available
28524         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28525         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28526         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28527         This avoids a link failure in a PSP cross-compilation environment
28528         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28529
28530         * lib/vasnprintf.c (divide): Fix typo in comment.
28531
28532 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28533
28534         * gnulib-tool (func_filter_filelist): Fix comment.
28535
28536 2009-03-20  Bruno Haible  <bruno@clisp.org>
28537
28538         Make sockets.h self-contained.
28539         * lib/sockets.c: Include sockets.h first.
28540         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28541
28542 2009-03-19  Eric Blake  <ebb9@byu.net>
28543
28544         doc: mention more functions added in cygwin 1.7.0
28545         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28546         addition.
28547         * doc/posix-functions/log2f.texi: Likewise.
28548
28549 2009-03-19  Jim Meyering  <meyering@redhat.com>
28550
28551         fsusage: avoid syntax error due to statement-before-declaration
28552         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28553         after all declarations.  Reported by Matthew Woehlke in
28554         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28555
28556 2009-03-18  Eric Blake  <ebb9@byu.net>
28557
28558         build-aux/compile: sync from automake
28559         * build-aux/compile: New file, from automake.
28560         * config/srclist.txt: Mention build-aux/compile.
28561
28562 2009-03-17  Bruno Haible  <bruno@clisp.org>
28563
28564         * lib/git-merge-changelog.c: Fix typo in comment.
28565         Reported by Reuben Thomas <rrt@sc3d.org>.
28566
28567 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28568
28569         * m4/regex.m4: update and improve help for
28570         --without-included-regex.
28571
28572 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28573
28574         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28575         failure on missing include files.
28576
28577 2009-03-17  Eric Blake  <ebb9@byu.net>
28578
28579         doc: mention more functions added in cygwin 1.7.0
28580         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28581         addition.
28582         * doc/posix-functions/fwscanf.texi: Likewise.
28583         * doc/posix-functions/swprintf.texi: Likewise.
28584         * doc/posix-functions/swscanf.texi: Likewise.
28585         * doc/posix-functions/vfwprintf.texi: Likewise.
28586         * doc/posix-functions/vfwscanf.texi: Likewise.
28587         * doc/posix-functions/vswprintf.texi: Likewise.
28588         * doc/posix-functions/vswscanf.texi: Likewise.
28589         * doc/posix-functions/vwprintf.texi: Likewise.
28590         * doc/posix-functions/vwscanf.texi: Likewise.
28591         * doc/posix-functions/wcscasecmp.texi: Likewise.
28592         * doc/posix-functions/wcsdup.texi: Likewise.
28593         * doc/posix-functions/wcsftime.texi: Likewise.
28594         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28595         * doc/posix-functions/wprintf.texi: Likewise.
28596         * doc/posix-functions/wscanf.texi: Likewise.
28597         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28598
28599 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28600
28601         maint.mk: really add $(AM_MAKEFLAGS)
28602         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28603         was inadvertently omitted in the last commit.
28604         Spotted by Bruno Haible.
28605
28606         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28607         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28608         $(AM_MAKEFLAGS)' rather than plain `make'.
28609
28610         gnulib-tool: execute $MAKE not make
28611         * gnulib-tool: Default $MAKE to 'make'.
28612         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28613         than make.  Initialize $MAKE in the do-autobuild script.
28614
28615         gnulib-tool: use $MAKE not make in generated files
28616         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28617         make, in generated files.  Initialize $MAKE in the do-autobuild
28618         script.
28619
28620         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28621
28622         GNUmakefile: disable parallelism only for multiple, recursive targets
28623         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28624         additions in the Makefile.
28625         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28626         by Automake.
28627         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28628         are listed on the command line and at least one of them is
28629         listed in $(ALL_RECURSIVE_TARGETS).
28630
28631 2009-03-14  Bruno Haible  <bruno@clisp.org>
28632
28633         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28634         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28635         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28636         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28637         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28638         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28639         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28640         unistr/u8-uctomb.
28641         * modules/unistr/u8-strchr (Depends-on): Likewise.
28642         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28643         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28644         unistr/u16-uctomb.
28645         * modules/unistr/u16-strchr (Depends-on): Likewise.
28646         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28647
28648 2009-03-12  Bruno Haible  <bruno@clisp.org>
28649
28650         Work around select() bug on Interix 3.5.
28651         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28652         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28653         * m4/select.m4: New file.
28654         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28655         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28656         * modules/select (Files): Add m4/select.m4.
28657         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28658         * modules/nanosleep (Depends-on): Add select.
28659         * modules/poll (Depends-on): Likewise.
28660         * doc/posix-functions/select.texi: Mention the Interix bug.
28661         Reported by Markus Duft <mduft@gentoo.org>.
28662
28663         * lib/select.c: Renamed from lib/winsock-select.c.
28664         * modules/select (Files): Add lib/select.c, remove
28665         lib/winsock-select.c.
28666         (configure.ac): Update.
28667
28668 2009-03-12  Jim Meyering  <meyering@redhat.com>
28669
28670         avoid gcc warnings about unused macro definitions
28671         * lib/readtokens.c (STREQ): Remove unused definition.
28672         * lib/xmalloc.c (SIZE_MAX): Likewise.
28673         * lib/openat-die.c (N_): Likewise.
28674         * lib/mountlist.c (SIZE_MAX): Remove definition.
28675         Instead, include <stdint.h>.
28676         * lib/readutmp.c: Likewise.
28677         * modules/readutmp (Depends-on): Add stdint.
28678         * modules/mountlist (Depends-on): Add stdint.
28679         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28680
28681 2009-03-10  Bruno Haible  <bruno@clisp.org>
28682
28683         Tests for module 'mbmemcasecoll'.
28684         * modules/mbmemcasecoll-tests: New file.
28685         * tests/test-mbmemcasecoll1.sh: New file.
28686         * tests/test-mbmemcasecoll2.sh: New file.
28687         * tests/test-mbmemcasecoll3.sh: New file.
28688         * tests/test-mbmemcasecoll.c: New file.
28689
28690         New module 'mbmemcasecoll'.
28691         * lib/mbmemcasecoll.h: New file.
28692         * lib/mbmemcasecoll.c: New file.
28693         * modules/mbmemcasecoll: New file.
28694
28695         * tests/test-mbmemcasecmp.h: New file, extracted from
28696         tests/test-mbmemcasecmp.c.
28697         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28698         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28699         (main): Update.
28700         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28701
28702 2009-03-09  Bruno Haible  <bruno@clisp.org>
28703
28704         Tests for module 'mbmemcasecmp'.
28705         * modules/mbmemcasecmp-tests: New file.
28706         * tests/test-mbmemcasecmp1.sh: New file.
28707         * tests/test-mbmemcasecmp2.sh: New file.
28708         * tests/test-mbmemcasecmp3.sh: New file.
28709         * tests/test-mbmemcasecmp.c: New file.
28710
28711         New module 'mbmemcasecmp'.
28712         * lib/mbmemcasecmp.h: New file.
28713         * lib/mbmemcasecmp.c: New file.
28714         * modules/mbmemcasecmp: New file.
28715
28716 2009-03-09  Bruno Haible  <bruno@clisp.org>
28717
28718         Tests for module 'unicase/ulc-casecoll'.
28719         * modules/unicase/ulc-casecoll-tests: New file.
28720         * tests/unicase/test-ulc-casecoll1.sh: New file.
28721         * tests/unicase/test-ulc-casecoll2.sh: New file.
28722         * tests/unicase/test-ulc-casecoll.c: New file.
28723
28724         New module 'unicase/ulc-casecoll'.
28725         * lib/unicase.h (ulc_casecoll): New declaration.
28726         * lib/unicase/ulc-casecoll.c: New file.
28727         * modules/unicase/ulc-casecoll: New file.
28728
28729         New module 'unicase/ulc-casexfrm'.
28730         * lib/unicase.h (ulc_casexfrm): New declaration.
28731         * lib/unicase/ulc-casexfrm.c: New file.
28732         * modules/unicase/ulc-casexfrm: New file.
28733
28734 2009-03-09  Bruno Haible  <bruno@clisp.org>
28735
28736         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28737         invocations.
28738
28739         * m4/mbscasecmp.m4: Remove file.
28740         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28741         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28742
28743         * m4/mbscasestr.m4: Remove file.
28744         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28745         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28746
28747         * m4/mbschr.m4: Remove file.
28748         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28749         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28750
28751         * m4/mbscspn.m4: Remove file.
28752         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28753         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28754
28755         * m4/mbslen.m4: Remove file.
28756         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28757         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28758
28759         * m4/mbsncasecmp.m4: Remove file.
28760         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28761         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28762
28763         * m4/mbsnlen.m4: Remove file.
28764         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28765         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28766
28767         * m4/mbspbrk.m4: Remove file.
28768         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28769         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28770
28771         * m4/mbspcasecmp.m4: Remove file.
28772         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28773         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28774
28775         * m4/mbsrchr.m4: Remove file.
28776         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28777         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28778
28779         * m4/mbssep.m4: Remove file.
28780         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28781         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28782
28783         * m4/mbsspn.m4: Remove file.
28784         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28785         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28786
28787         * m4/mbsstr.m4: Remove file.
28788         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28789         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28790
28791         * m4/mbstok_r.m4: Remove file.
28792         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28793         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28794
28795         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28796
28797         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28798         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28799
28800         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28801
28802 2009-03-08  Bruno Haible  <bruno@clisp.org>
28803
28804         Tests for module 'unicase/ulc-casecmp'.
28805         * modules/unicase/ulc-casecmp-tests: New file.
28806         * tests/unicase/test-ulc-casecmp1.sh: New file.
28807         * tests/unicase/test-ulc-casecmp2.sh: New file.
28808         * tests/unicase/test-ulc-casecmp.c: New file.
28809
28810         New module 'unicase/ulc-casecmp'.
28811         * lib/unicase.h (ulc_casecmp): New declaration.
28812         * lib/unicase/ulc-casecmp.c: New file.
28813         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28814         'const SRC_UNIT *'.
28815         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28816         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28817         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28818         * modules/unicase/ulc-casecmp: New file.
28819
28820         Tests for module 'unicase/u32-is-cased'.
28821         * modules/unicase/u32-is-cased-tests: New file.
28822         * tests/unicase/test-u32-is-cased.c: New file.
28823
28824         Tests for module 'unicase/u16-is-cased'.
28825         * modules/unicase/u16-is-cased-tests: New file.
28826         * tests/unicase/test-u16-is-cased.c: New file.
28827
28828         Tests for module 'unicase/u8-is-cased'.
28829         * modules/unicase/u8-is-cased-tests: New file.
28830         * tests/unicase/test-u8-is-cased.c: New file.
28831         * tests/unicase/test-is-cased.h: New file.
28832
28833         New module 'unicase/u32-is-cased'.
28834         * lib/unicase/u32-is-cased.c: New file.
28835         * modules/unicase/u32-is-cased: New file.
28836
28837         New module 'unicase/u16-is-cased'.
28838         * lib/unicase/u16-is-cased.c: New file.
28839         * modules/unicase/u16-is-cased: New file.
28840
28841         New module 'unicase/u8-is-cased'.
28842         * lib/unicase/u8-is-cased.c: New file.
28843         * lib/unicase/u-is-cased.h: New file.
28844         * modules/unicase/u8-is-cased: New file.
28845
28846         Tests for module 'unicase/u32-is-casefolded'.
28847         * modules/unicase/u32-is-casefolded-tests: New file.
28848         * tests/unicase/test-u32-is-casefolded.c: New file.
28849
28850         Tests for module 'unicase/u16-is-casefolded'.
28851         * modules/unicase/u16-is-casefolded-tests: New file.
28852         * tests/unicase/test-u16-is-casefolded.c: New file.
28853
28854         Tests for module 'unicase/u8-is-casefolded'.
28855         * modules/unicase/u8-is-casefolded-tests: New file.
28856         * tests/unicase/test-u8-is-casefolded.c: New file.
28857         * tests/unicase/test-is-casefolded.h: New file.
28858
28859         New module 'unicase/u32-is-casefolded'.
28860         * lib/unicase/u32-is-casefolded.c: New file.
28861         * modules/unicase/u32-is-casefolded: New file.
28862
28863         New module 'unicase/u16-is-casefolded'.
28864         * lib/unicase/u16-is-casefolded.c: New file.
28865         * modules/unicase/u16-is-casefolded: New file.
28866
28867         New module 'unicase/u8-is-casefolded'.
28868         * lib/unicase/u8-is-casefolded.c: New file.
28869         * modules/unicase/u8-is-casefolded: New file.
28870
28871         Tests for module 'unicase/u32-is-titlecase'.
28872         * modules/unicase/u32-is-titlecase-tests: New file.
28873         * tests/unicase/test-u32-is-titlecase.c: New file.
28874
28875         Tests for module 'unicase/u16-is-titlecase'.
28876         * modules/unicase/u16-is-titlecase-tests: New file.
28877         * tests/unicase/test-u16-is-titlecase.c: New file.
28878
28879         Tests for module 'unicase/u8-is-titlecase'.
28880         * modules/unicase/u8-is-titlecase-tests: New file.
28881         * tests/unicase/test-u8-is-titlecase.c: New file.
28882         * tests/unicase/test-is-titlecase.h: New file.
28883
28884         New module 'unicase/u32-is-titlecase'.
28885         * lib/unicase/u32-is-titlecase.c: New file.
28886         * modules/unicase/u32-is-titlecase: New file.
28887
28888         New module 'unicase/u16-is-titlecase'.
28889         * lib/unicase/u16-is-titlecase.c: New file.
28890         * modules/unicase/u16-is-titlecase: New file.
28891
28892         New module 'unicase/u8-is-titlecase'.
28893         * lib/unicase/u8-is-titlecase.c: New file.
28894         * modules/unicase/u8-is-titlecase: New file.
28895
28896         Tests for module 'unicase/u32-is-lowercase'.
28897         * modules/unicase/u32-is-lowercase-tests: New file.
28898         * tests/unicase/test-u32-is-lowercase.c: New file.
28899
28900         Tests for module 'unicase/u16-is-lowercase'.
28901         * modules/unicase/u16-is-lowercase-tests: New file.
28902         * tests/unicase/test-u16-is-lowercase.c: New file.
28903
28904         Tests for module 'unicase/u8-is-lowercase'.
28905         * modules/unicase/u8-is-lowercase-tests: New file.
28906         * tests/unicase/test-u8-is-lowercase.c: New file.
28907         * tests/unicase/test-is-lowercase.h: New file.
28908
28909         New module 'unicase/u32-is-lowercase'.
28910         * lib/unicase/u32-is-lowercase.c: New file.
28911         * modules/unicase/u32-is-lowercase: New file.
28912
28913         New module 'unicase/u16-is-lowercase'.
28914         * lib/unicase/u16-is-lowercase.c: New file.
28915         * modules/unicase/u16-is-lowercase: New file.
28916
28917         New module 'unicase/u8-is-lowercase'.
28918         * lib/unicase/u8-is-lowercase.c: New file.
28919         * modules/unicase/u8-is-lowercase: New file.
28920
28921         Tests for module 'unicase/u32-is-uppercase'.
28922         * modules/unicase/u32-is-uppercase-tests: New file.
28923         * tests/unicase/test-u32-is-uppercase.c: New file.
28924
28925         Tests for module 'unicase/u16-is-uppercase'.
28926         * modules/unicase/u16-is-uppercase-tests: New file.
28927         * tests/unicase/test-u16-is-uppercase.c: New file.
28928
28929         Tests for module 'unicase/u8-is-uppercase'.
28930         * modules/unicase/u8-is-uppercase-tests: New file.
28931         * tests/unicase/test-u8-is-uppercase.c: New file.
28932         * tests/unicase/test-is-uppercase.h: New file.
28933
28934         New module 'unicase/u32-is-uppercase'.
28935         * lib/unicase/u32-is-uppercase.c: New file.
28936         * modules/unicase/u32-is-uppercase: New file.
28937
28938         New module 'unicase/u16-is-uppercase'.
28939         * lib/unicase/u16-is-uppercase.c: New file.
28940         * modules/unicase/u16-is-uppercase: New file.
28941
28942         New module 'unicase/u8-is-uppercase'.
28943         * lib/unicase/u8-is-uppercase.c: New file.
28944         * modules/unicase/u8-is-uppercase: New file.
28945
28946         New module 'unicase/u32-is-invariant'.
28947         * lib/unicase/u32-is-invariant.c: New file.
28948         * modules/unicase/u32-is-invariant: New file.
28949
28950         New module 'unicase/u16-is-invariant'.
28951         * lib/unicase/u16-is-invariant.c: New file.
28952         * modules/unicase/u16-is-invariant: New file.
28953
28954         New module 'unicase/u8-is-invariant'.
28955         * lib/unicase/u8-is-invariant.c: New file.
28956         * lib/unicase/invariant.h: New file.
28957         * lib/unicase/u-is-invariant.h: New file.
28958         * modules/unicase/u8-is-invariant: New file.
28959
28960         Tests for module 'unicase/u32-casecoll'.
28961         * modules/unicase/u32-casecoll-tests: New file.
28962         * tests/unicase/test-u32-casecoll.c: New file.
28963
28964         Tests for module 'unicase/u16-casecoll'.
28965         * modules/unicase/u16-casecoll-tests: New file.
28966         * tests/unicase/test-u16-casecoll.c: New file.
28967
28968         Tests for module 'unicase/u8-casecoll'.
28969         * modules/unicase/u8-casecoll-tests: New file.
28970         * tests/unicase/test-u8-casecoll.c: New file.
28971
28972         New module 'unicase/u32-casecoll'.
28973         * lib/unicase/u32-casecoll.c: New file.
28974         * modules/unicase/u32-casecoll: New file.
28975
28976         New module 'unicase/u16-casecoll'.
28977         * lib/unicase/u16-casecoll.c: New file.
28978         * modules/unicase/u16-casecoll: New file.
28979
28980         New module 'unicase/u8-casecoll'.
28981         * lib/unicase/u8-casecoll.c: New file.
28982         * lib/unicase/u-casecoll.h: New file.
28983         * modules/unicase/u8-casecoll: New file.
28984
28985         New module 'unicase/u32-casexfrm'.
28986         * lib/unicase/u32-casexfrm.c: New file.
28987         * modules/unicase/u32-casexfrm: New file.
28988
28989         New module 'unicase/u16-casexfrm'.
28990         * lib/unicase/u16-casexfrm.c: New file.
28991         * modules/unicase/u16-casexfrm: New file.
28992
28993         New module 'unicase/u8-casexfrm'.
28994         * lib/unicase/u8-casexfrm.c: New file.
28995         * lib/unicase/u-casexfrm.h: New file.
28996         * modules/unicase/u8-casexfrm: New file.
28997
28998         Tests for module 'unicase/u32-casecmp'.
28999         * modules/unicase/u32-casecmp-tests: New file.
29000         * tests/unicase/test-u32-casecmp.c: New file.
29001
29002         Tests for module 'unicase/u16-casecmp'.
29003         * modules/unicase/u16-casecmp-tests: New file.
29004         * tests/unicase/test-u16-casecmp.c: New file.
29005
29006         Tests for module 'unicase/u8-casecmp'.
29007         * modules/unicase/u8-casecmp-tests: New file.
29008         * tests/unicase/test-u8-casecmp.c: New file.
29009         * tests/unicase/test-casecmp.h: New file.
29010
29011         New module 'unicase/u32-casecmp'.
29012         * lib/unicase/u32-casecmp.c: New file.
29013         * modules/unicase/u32-casecmp: New file.
29014
29015         New module 'unicase/u16-casecmp'.
29016         * lib/unicase/u16-casecmp.c: New file.
29017         * modules/unicase/u16-casecmp: New file.
29018
29019         New module 'unicase/u8-casecmp'.
29020         * lib/unicase/u8-casecmp.c: New file.
29021         * lib/unicase/u-casecmp.h: New file.
29022         * modules/unicase/u8-casecmp: New file.
29023
29024         Tests for module 'unicase/u32-casefold'.
29025         * modules/unicase/u32-casefold-tests: New file.
29026         * tests/unicase/test-u32-casefold.c: New file.
29027
29028         Tests for module 'unicase/u16-casefold'.
29029         * modules/unicase/u16-casefold-tests: New file.
29030         * tests/unicase/test-u16-casefold.c: New file.
29031
29032         Tests for module 'unicase/u8-casefold'.
29033         * modules/unicase/u8-casefold-tests: New file.
29034         * tests/unicase/test-u8-casefold.c: New file.
29035
29036         New module 'unicase/u32-casefold'.
29037         * lib/unicase/u32-casefold.c: New file.
29038         * modules/unicase/u32-casefold: New file.
29039
29040         New module 'unicase/u16-casefold'.
29041         * lib/unicase/u16-casefold.c: New file.
29042         * modules/unicase/u16-casefold: New file.
29043
29044         New module 'unicase/u8-casefold'.
29045         * lib/unicase/u8-casefold.c: New file.
29046         * lib/unicase/u-casefold.h: New file.
29047         * modules/unicase/u8-casefold: New file.
29048
29049         New module 'unicase/tocasefold'.
29050         * lib/unicase/casefold.h: New file.
29051         * lib/unicase/tocasefold.c: New file.
29052         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29053         * modules/unicase/tocasefold: New file.
29054
29055         Tests for module 'unicase/u32-totitle'.
29056         * modules/unicase/u32-totitle-tests: New file.
29057         * tests/unicase/test-u32-totitle.c: New file.
29058
29059         Tests for module 'unicase/u16-totitle'.
29060         * modules/unicase/u16-totitle-tests: New file.
29061         * tests/unicase/test-u16-totitle.c: New file.
29062
29063         Tests for module 'unicase/u8-totitle'.
29064         * modules/unicase/u8-totitle-tests: New file.
29065         * tests/unicase/test-u8-totitle.c: New file.
29066
29067         New module 'unicase/u32-totitle'.
29068         * lib/unicase/u32-totitle.c: New file.
29069         * modules/unicase/u32-totitle: New file.
29070
29071         New module 'unicase/u16-totitle'.
29072         * lib/unicase/u16-totitle.c: New file.
29073         * modules/unicase/u16-totitle: New file.
29074
29075         New module 'unicase/u8-totitle'.
29076         * lib/unicase/u8-totitle.c: New file.
29077         * lib/unicase/u-totitle.h: New file.
29078         * modules/unicase/u8-totitle: New file.
29079
29080         Tests for module 'unicase/u32-tolower'.
29081         * modules/unicase/u32-tolower-tests: New file.
29082         * tests/unicase/test-u32-tolower.c: New file.
29083
29084         Tests for module 'unicase/u16-tolower'.
29085         * modules/unicase/u16-tolower-tests: New file.
29086         * tests/unicase/test-u16-tolower.c: New file.
29087
29088         Tests for module 'unicase/u8-tolower'.
29089         * modules/unicase/u8-tolower-tests: New file.
29090         * tests/unicase/test-u8-tolower.c: New file.
29091
29092         New module 'unicase/u32-tolower'.
29093         * lib/unicase/u32-tolower.c: New file.
29094         * modules/unicase/u32-tolower: New file.
29095
29096         New module 'unicase/u16-tolower'.
29097         * lib/unicase/u16-tolower.c: New file.
29098         * modules/unicase/u16-tolower: New file.
29099
29100         New module 'unicase/u8-tolower'.
29101         * lib/unicase/u8-tolower.c: New file.
29102         * modules/unicase/u8-tolower: New file.
29103
29104         Tests for module 'unicase/u32-toupper'.
29105         * modules/unicase/u32-toupper-tests: New file.
29106         * tests/unicase/test-u32-toupper.c: New file.
29107
29108         Tests for module 'unicase/u16-toupper'.
29109         * modules/unicase/u16-toupper-tests: New file.
29110         * tests/unicase/test-u16-toupper.c: New file.
29111
29112         Tests for module 'unicase/u8-toupper'.
29113         * modules/unicase/u8-toupper-tests: New file.
29114         * tests/unicase/test-u8-toupper.c: New file.
29115
29116         New module 'unicase/u32-toupper'.
29117         * lib/unicase/u32-toupper.c: New file.
29118         * modules/unicase/u32-toupper: New file.
29119
29120         New module 'unicase/u16-toupper'.
29121         * lib/unicase/u16-toupper.c: New file.
29122         * modules/unicase/u16-toupper: New file.
29123
29124         New module 'unicase/u8-toupper'.
29125         * lib/unicase/u8-toupper.c: New file.
29126         * modules/unicase/u8-toupper: New file.
29127
29128         New module 'unicase/u32-casemap'.
29129         * lib/unicase/u32-casemap.c: New file.
29130         * modules/unicase/u32-casemap: New file.
29131
29132         New module 'unicase/u16-casemap'.
29133         * lib/unicase/u16-casemap.c: New file.
29134         * modules/unicase/u16-casemap: New file.
29135
29136         New module 'unicase/u8-casemap'.
29137         * lib/unicase/unicasemap.h: New file.
29138         * lib/unicase/u8-casemap.c: New file.
29139         * lib/unicase/u-casemap.h: New file.
29140         * modules/unicase/u8-casemap: New file.
29141
29142         New module 'unicase/special-casing'.
29143         * lib/unicase/special-casing.h: New file.
29144         * lib/unicase/special-casing.c: New file.
29145         * lib/unicase/special-casing-table.gperf: New file, generated by
29146         gen-uni-tables.c.
29147         * modules/unicase/special-casing: New file.
29148
29149         Tests for module 'unicase/locale-language'.
29150         * modules/unicase/locale-language-tests: New file.
29151         * tests/unicase/test-locale-language.sh: New file.
29152         * tests/unicase/test-locale-language.c: New file.
29153
29154         New module 'unicase/locale-language'.
29155         * lib/unicase/locale-language.c: New file.
29156         * lib/unicase/locale-languages.gperf: New file.
29157         * modules/unicase/locale-language: New file.
29158
29159         Generate more tables for case conversion and case folding.
29160         * lib/gen-uni-tables.c (SCC_*): New enum items.
29161         (struct special_casing_rule): New type.
29162         (casing_rules, num_casing_rules, allocated_casing_rules): New
29163         variables.
29164         (add_casing_rule, fill_casing_rules): New functions.
29165         (struct casefold_rule): New type.
29166         (casefolding_rules, num_casefolding_rules,
29167         allocated_casefolding_rules): New variables.
29168         (fill_casefolding_rules): New function.
29169         (unicode_casefold): New variable.
29170         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29171         sort_casing_rules, output_casing_rules): New functions.
29172         (main): Accept to more arguments: SpecialCasing.txt and
29173         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29174         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29175         Output mapping for casefolding.
29176
29177         * lib/unicase.h: Include stdbool.h, uninorm.h.
29178         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29179         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29180         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29181         arguments.
29182         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29183         resultp arguments.
29184         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29185         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29186         resultp arguments.
29187         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29188         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29189         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29190         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29191         declarations.
29192         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29193
29194 2009-03-08  Bruno Haible  <bruno@clisp.org>
29195
29196         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29197         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29198         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29199         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29200
29201 2009-03-07  Bruno Haible  <bruno@clisp.org>
29202
29203         Adjust u*_normcmp, u*_normcoll API.
29204         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29205         u16_normcoll, u32_normcoll): Change failure conventions.
29206         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29207         errno and return -1.
29208         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29209
29210 2009-03-07  Bruno Haible  <bruno@clisp.org>
29211
29212         Tests for module 'uninorm/u32-normcoll'.
29213         * modules/uninorm/u32-normcoll-tests: New file.
29214         * tests/uninorm/test-u32-normcoll.c: New file.
29215
29216         Tests for module 'uninorm/u16-normcoll'.
29217         * modules/uninorm/u16-normcoll-tests: New file.
29218         * tests/uninorm/test-u16-normcoll.c: New file.
29219
29220         Tests for module 'uninorm/u8-normcoll'.
29221         * modules/uninorm/u8-normcoll-tests: New file.
29222         * tests/uninorm/test-u8-normcoll.c: New file.
29223
29224 2009-03-07  Bruno Haible  <bruno@clisp.org>
29225
29226         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29227         tests/uninorm/test-u32-normcmp.c.
29228         * tests/uninorm/test-u32-normcmp.c: Include it.
29229         (test_nonascii): New function, extracted from main. Add some more
29230         tests.
29231         (main): Invoke test_ascii and test_nonascii.
29232         * modules/uninorm/u32-normcmp-tests (Files): Add
29233         tests/uninorm/test-u32-normcmp.h.
29234         (Depends-on): Remove uninorm/u32-normcmp.
29235
29236         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29237         tests/uninorm/test-u16-normcmp.c.
29238         * tests/uninorm/test-u16-normcmp.c: Include it.
29239         (test_nonascii): New function, extracted from main. Add some more
29240         tests.
29241         (main): Invoke test_ascii and test_nonascii.
29242         * modules/uninorm/u16-normcmp-tests (Files): Add
29243         tests/uninorm/test-u16-normcmp.h.
29244         (Depends-on): Remove uninorm/u16-normcmp.
29245
29246         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29247         tests/uninorm/test-u8-normcmp.c.
29248         * tests/uninorm/test-u8-normcmp.c: Include it.
29249         (test_nonascii): New function, extracted from main. Add some more
29250         tests.
29251         (main): Invoke test_ascii and test_nonascii.
29252         * modules/uninorm/u8-normcmp-tests (Files): Add
29253         tests/uninorm/test-u8-normcmp.h.
29254         (Depends-on): Remove uninorm/u8-normcmp.
29255
29256 2009-03-07  Bruno Haible  <bruno@clisp.org>
29257
29258         New module 'uninorm/u32-normcoll'.
29259         * lib/uninorm/u32-normcoll.c: New file.
29260         * modules/uninorm/u32-normcoll: New file.
29261
29262         New module 'uninorm/u16-normcoll'.
29263         * lib/uninorm/u16-normcoll.c: New file.
29264         * modules/uninorm/u16-normcoll: New file.
29265
29266         New module 'uninorm/u8-normcoll'.
29267         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29268         declarations.
29269         * lib/uninorm/u8-normcoll.c: New file.
29270         * lib/uninorm/u-normcoll.h: New file.
29271         * modules/uninorm/u8-normcoll: New file.
29272
29273         New module 'uninorm/u32-normxfrm'.
29274         * lib/uninorm/u32-normxfrm.c: New file.
29275         * modules/uninorm/u32-normxfrm: New file.
29276
29277         New module 'uninorm/u16-normxfrm'.
29278         * lib/uninorm/u16-normxfrm.c: New file.
29279         * modules/uninorm/u16-normxfrm: New file.
29280
29281         New module 'uninorm/u8-normxfrm'.
29282         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29283         declarations.
29284         * lib/uninorm/u8-normxfrm.c: New file.
29285         * lib/uninorm/u-normxfrm.h: New file.
29286         * modules/uninorm/u8-normxfrm: New file.
29287
29288 2009-03-07  Bruno Haible  <bruno@clisp.org>
29289
29290         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29291         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29292         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29293
29294 2009-03-07  Bruno Haible  <bruno@clisp.org>
29295
29296         New module 'memxfrm'.
29297         * lib/memxfrm.h: New file.
29298         * lib/memxfrm.c: New file.
29299         * modules/memxfrm: New file.
29300
29301 2009-03-07  Bruno Haible  <bruno@clisp.org>
29302
29303         New module 'memcmp2'.
29304         * lib/memcmp2.h: New file.
29305         * lib/memcmp2.c: New file.
29306         * modules/memcmp2: New file.
29307
29308 2009-03-07  Bruno Haible  <bruno@clisp.org>
29309
29310         Tests for module 'uninorm/decomposing-form'.
29311         * modules/uninorm/decomposing-form-tests: New file.
29312         * tests/uninorm/test-decomposing-form.c: New file.
29313
29314         New module 'uninorm/decomposing-form'.
29315         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29316         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29317         Add 'decomposing_variant' field.
29318         * lib/uninorm/decomposing-form.c: New file.
29319         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29320         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29321         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29322         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29323         * modules/uninorm/decomposing-form: New file.
29324         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29325         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29326
29327 2009-03-07  Bruno Haible  <bruno@clisp.org>
29328
29329         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29330         strings.
29331
29332 2009-03-06  Bruno Haible  <bruno@clisp.org>
29333
29334         Tests for module 'uninorm/u32-normcmp'.
29335         * tests/uninorm/test-u32-normcmp.c: New file.
29336         * modules/uninorm/u32-normcmp-tests: New file.
29337
29338         Tests for module 'uninorm/u16-normcmp'.
29339         * tests/uninorm/test-u16-normcmp.c: New file.
29340         * modules/uninorm/u16-normcmp-tests: New file.
29341
29342         Tests for module 'uninorm/u8-normcmp'.
29343         * tests/uninorm/test-u8-normcmp.c: New file.
29344         * modules/uninorm/u8-normcmp-tests: New file.
29345
29346         New module 'uninorm/u32-normcmp'.
29347         * lib/uninorm/u32-normcmp.c: New file.
29348         * modules/uninorm/u32-normcmp: New file.
29349
29350         New module 'uninorm/u16-normcmp'.
29351         * lib/uninorm/u16-normcmp.c: New file.
29352         * modules/uninorm/u16-normcmp: New file.
29353
29354         New module 'uninorm/u8-normcmp'.
29355         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29356         declarations.
29357         * lib/uninorm/u8-normcmp.c: New file.
29358         * lib/uninorm/u-normcmp.h: New file.
29359         * modules/uninorm/u8-normcmp: New file.
29360
29361 2009-03-06  Bruno Haible  <bruno@clisp.org>
29362
29363         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29364         Reported by Eric Blake.
29365
29366 2009-03-06  Eric Blake  <ebb9@byu.net>
29367             Bruno Haible  <bruno@clisp.org>
29368
29369         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29370         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29371         condition.
29372         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29373         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29374         condition.
29375         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29376
29377 2009-03-06  Eric Blake  <ebb9@byu.net>
29378
29379         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29380         to avoid compiler warnings.
29381         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29382
29383 2009-03-05  Bruno Haible  <bruno@clisp.org>
29384
29385         * tests/test-ftell.c (main): Disable test beyond end of file on
29386         FreeMiNT.
29387         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29388
29389 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29390
29391         * lib/filevercmp.c: Move hidden files up in ordering.
29392         * tests/test-filevercmp.c: Add tests for hidden files.
29393
29394 2009-03-04  Bruno Haible  <bruno@clisp.org>
29395
29396         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29397         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29398         AM_CFLAGS.
29399         Reported by Simon Josefsson.
29400
29401 2009-03-03  Bruno Haible  <bruno@clisp.org>
29402
29403         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29404         Reported by Simon Josefsson.
29405
29406         * doc/ld-version-script.texi: Update node reference.
29407
29408 2009-03-03  Bruno Haible  <bruno@clisp.org>
29409
29410         * modules/visibility (License): Change to 'unlimited'.
29411         Suggested by Simon Josefsson.
29412
29413 2009-03-03  Jim Meyering  <meyering@redhat.com>
29414
29415         unlinkdir: cannot_unlink_dir may modify process state
29416         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29417         it's neither thread-safe nor appropriate for use in a library.
29418
29419 2009-03-03  Eric Blake  <ebb9@byu.net>
29420
29421         test-closein: silence test under Darwin
29422         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29423         care if it dies from EPIPE or EBADF.
29424
29425 2009-03-03  Bruno Haible  <bruno@clisp.org>
29426
29427         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29428         earlier.
29429         * doc/visibility.texi: Fix @node and @section.
29430
29431 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29432
29433         * doc/gnulib.texi: Link to sections for ld version script and
29434         visibility.
29435         * doc/visibility.texi: Add @node and @section.
29436         * modules/ld-version-script: New module.
29437         * m4/ld-version-script.m4: New file.
29438         * doc/ld-version-script.texi: New file.
29439
29440 2009-03-02  David Lutterkort  <lutter@redhat.com>
29441
29442         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29444
29445 2009-03-02  Bruno Haible  <bruno@clisp.org>
29446
29447         * doc/visibility.texi: Mention libtool's -export-symbols option.
29448
29449 2009-03-02  Jim Meyering  <meyering@redhat.com>
29450
29451         announce-gen: new option: --no-print-checksums
29452         * build-aux/announce-gen (usage): Describe it.
29453         (print_checksums): Print a newline here, not in the [*] footnote.
29454         (main): Honor it.
29455
29456 2009-03-01  Bruno Haible  <bruno@clisp.org>
29457
29458         Use socklen_t in the native Windows replacements prototypes.
29459         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29460         instead of 'int'.
29461         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29462         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29463         * modules/getsockopt (Depends-on): Add socklen.
29464         * modules/setsockopt (Depends-on): Add socklen.
29465
29466 2009-03-01  Bruno Haible  <bruno@clisp.org>
29467
29468         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29469         least 4.2.
29470
29471 2009-03-01  Eric Blake  <ebb9@byu.net>
29472             Bruno Haible  <bruno@clisp.org>
29473
29474         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29475         error messages.
29476         * lib/wait-process.c (wait_subprocess): Omit error message about
29477         deadly signal sent to the child of termsigp != NULL.
29478
29479 2009-03-01  Eric Blake  <ebb9@byu.net>
29480
29481         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29482
29483 2009-03-01  Bruno Haible  <bruno@clisp.org>
29484
29485         Avoid a gcc warning.
29486         * tests/test-sched.c (b): Make global.
29487         Reported by Eric Blake.
29488
29489 2009-01-19  Martin Lambers  <marlam@marlam.de>
29490
29491         Provide POSIX semantics for socket timeout options on W32.
29492         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29493         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29494         * modules/setsockopt: Depend on sys_time module for struct timeval.
29495         * modules/getsockopt: Depend on sys_time module for struct timeval.
29496
29497 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29498
29499         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29500         __USE_GNU, for consistency with netdb.in.h.
29501         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29502
29503 2009-03-01  Bruno Haible  <bruno@clisp.org>
29504
29505         More support for FreeMiNT.
29506         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29507         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29508
29509 2009-03-01  Bruno Haible  <bruno@clisp.org>
29510
29511         More support for FreeMiNT.
29512         * lib/fpurge.c (fpurge): Correct last commit.
29513         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29514
29515 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29516
29517         Fix unportable awk script in vc-list-files.
29518         * build-aux/vc-list-files: In the replacement awk script, use
29519         substr with a second argument of 1, not zero.
29520         Report by Simon Josefsson.
29521
29522 2009-02-28  Bruno Haible  <bruno@clisp.org>
29523
29524         More support for FreeMiNT.
29525         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29526         to FreeMiNT today.
29527         * lib/fwriting.c (fwriting): Likewise.
29528         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29529
29530 2009-02-28  Bruno Haible  <bruno@clisp.org>
29531
29532         * tests/test-freadseek.c (main): Disable test beyond end of file on
29533         FreeMiNT.
29534         * tests/test-ftello.c (main): Likewise.
29535         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29536
29537 2009-02-28  Bruno Haible  <bruno@clisp.org>
29538
29539         Add tentative support for FreeMiNT.
29540         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29541         * lib/fpurge.c (fpurge): Likewise.
29542         * lib/freadable.c (freadable): Likewise.
29543         * lib/freading.c (freading): Likewise.
29544         * lib/freadptr.c (freadptr): Likewise.
29545         * lib/freadseek.c (freadptrinc): Likewise.
29546         * lib/fseeko.c (rpl_fseeko): Likewise.
29547         * lib/fseterr.c (fseterr): Likewise.
29548         * lib/fwritable.c (fwritable): Likewise.
29549         * lib/fwriting.c (fwriting): Likewise.
29550         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29551         Hourihane.
29552         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29553
29554 2009-02-28  Bruno Haible  <bruno@clisp.org>
29555
29556         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29557         SIGCHLD.
29558         Reported by Jim Meyering.
29559
29560 2009-02-28  Bruno Haible  <bruno@clisp.org>
29561
29562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29563         Mention the results of these tests on various platforms.
29564         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29565         order.
29566         * doc/posix-functions/printf.texi: Likewise.
29567         * doc/posix-functions/snprintf.texi: Likewise.
29568         * doc/posix-functions/sprintf.texi: Likewise.
29569         * doc/posix-functions/vfprintf.texi: Likewise.
29570         * doc/posix-functions/vprintf.texi: Likewise.
29571         * doc/posix-functions/vsnprintf.texi: Likewise.
29572         * doc/posix-functions/vsprintf.texi: Likewise.
29573         * doc/glibc-functions/obstack_printf.texi: Likewise.
29574         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29575
29576 2009-02-28  Bruno Haible  <bruno@clisp.org>
29577
29578         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29579         Reported by Loïc Minier <lool@dooz.org>.
29580
29581 2009-02-27  Bruno Haible  <bruno@clisp.org>
29582
29583         * gnulib-tool (func_import): Make the sed expression used to create the
29584         sed script for updating the .gitignore file POSIX compliant.
29585         Reported by Eric Blake.
29586
29587 2009-02-27  Bruno Haible  <bruno@clisp.org>
29588
29589         * gnulib-tool (sed): Don't alias as "sed --posix".
29590         Reported by Eric Blake.
29591
29592 2009-02-27  Bruno Haible  <bruno@clisp.org>
29593
29594         Avoid test link errors.
29595         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29596         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29597         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29598         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29599         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29600
29601 2009-02-27  Bruno Haible  <bruno@clisp.org>
29602
29603         Avoid spurious "(cached)" in configure output.
29604         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29605         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29606         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29607         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29608         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29609         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29610         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29611         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29612         Reported by Eric Blake.
29613
29614 2009-02-27  Eric Blake  <ebb9@byu.net>
29615
29616         printf: fix regression in previous patch
29617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29618
29619 2009-02-27  Bruno Haible  <bruno@clisp.org>
29620
29621         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29622         value.
29623         * lib/stdint.in.h: Likewise.
29624         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29625
29626 2009-02-27  Eric Blake  <ebb9@byu.net>
29627
29628         doc: mention more functions added in cygwin 1.7.0
29629         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29630         addition.
29631         * doc/posix-functions/open_wmemstream.texi: Likewise.
29632         * doc/posix-functions/wcsnlen.texi: Likewise.
29633         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29634         * doc/posix-functions/wcstod.texi: Likewise.
29635         * doc/posix-functions/wcstof.texi: Likewise.
29636         * doc/posix-functions/wcstoimax.texi: Likewise.
29637         * doc/posix-functions/wcstok.texi: Likewise.
29638         * doc/posix-functions/wcstoumax.texi: Likewise.
29639
29640         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29642         * doc/posix-functions/fprintf.texi: Update.
29643         * doc/posix-functions/printf.texi: Update.
29644         * doc/posix-functions/snprintf.texi: Update.
29645         * doc/posix-functions/sprintf.texi: Update.
29646         * doc/posix-functions/vfprintf.texi: Update.
29647         * doc/posix-functions/vprintf.texi: Update.
29648         * doc/posix-functions/vsnprintf.texi: Update.
29649         * doc/posix-functions/vsprintf.texi: Update.
29650         * doc/glibc-functions/obstack_printf.texi: Update.
29651         * doc/glibc-functions/obstack_vprintf.texi: Update.
29652
29653 2009-02-26  Eric Blake  <ebb9@byu.net>
29654
29655         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29656         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29657         compilation bug by using runtime conversion.
29658         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29659         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29660         * modules/ceill-tests (Files): Use nan.h.
29661         * modules/floorl-tests (Files): Likewise.
29662         * modules/frexpl-tests (Files): Likewise.
29663         * modules/isnanl-tests (Files): Likewise.
29664         * modules/ldexpl-tests (Files): Likewise.
29665         * modules/roundl-tests (Files): Likewise.
29666         * modules/truncl-tests (Files): Likewise.
29667         * tests/test-ceill.c (main): Use a working NaN.
29668         * tests/test-floorl.c (main): Likewise.
29669         * tests/test-frexpl.c (main): Likewise.
29670         * tests/test-isnan.c (test_long_double): Likewise.
29671         * tests/test-isnanl.h (main): Likewise.
29672         * tests/test-ldexpl.h (main): Likewise.
29673         * tests/test-roundl.h (main): Likewise.
29674         * tests/test-truncl.h (main): Likewise.
29675         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29676
29677 2009-02-26  Eric Blake  <ebb9@byu.net>
29678             Bruno Haible  <bruno@clisp.org>
29679
29680         Work around a *printf bug with %ls on Solaris.
29681         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29682         precision is specified, sprintf stops converting the wide string
29683         argument when the number of bytes that have been produced by this
29684         conversion equals or exceeds the precision.
29685         * doc/posix-functions/fprintf.texi: Update.
29686         * doc/posix-functions/printf.texi: Update.
29687         * doc/posix-functions/snprintf.texi: Update.
29688         * doc/posix-functions/sprintf.texi: Update.
29689         * doc/posix-functions/vfprintf.texi: Update.
29690         * doc/posix-functions/vprintf.texi: Update.
29691         * doc/posix-functions/vsnprintf.texi: Update.
29692         * doc/posix-functions/vsprintf.texi: Update.
29693         * doc/glibc-functions/obstack_printf.texi: Update.
29694         * doc/glibc-functions/obstack_vprintf.texi: Update.
29695
29696 2009-02-26  Eric Blake  <ebb9@byu.net>
29697
29698         stdlib: favor compiler check of random.h
29699         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29700         to avoid an ObjC random.h installed by Swarm.
29701
29702 2009-02-26  Bruno Haible  <bruno@clisp.org>
29703
29704         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29705         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29706         Reported by Gary V. Vaughan <gary@gnu.org>.
29707
29708 2009-02-26  Bruno Haible  <bruno@clisp.org>
29709
29710         Fix *printf behaviour regarding the %ls directive.
29711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29712         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29713         NEED_PRINTF_DIRECTIVE_LS.
29714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29715         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29716         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29717         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29718         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29719         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29720         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29721         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29722         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29723         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29724         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29725         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29726         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29729         * doc/posix-functions/fprintf.texi: Update.
29730         * doc/posix-functions/printf.texi: Update.
29731         * doc/posix-functions/snprintf.texi: Update.
29732         * doc/posix-functions/sprintf.texi: Update.
29733         * doc/posix-functions/vfprintf.texi: Update.
29734         * doc/posix-functions/vprintf.texi: Update.
29735         * doc/posix-functions/vsnprintf.texi: Update.
29736         * doc/posix-functions/vsprintf.texi: Update.
29737         * doc/glibc-functions/obstack_printf.texi: Update.
29738         * doc/glibc-functions/obstack_vprintf.texi: Update.
29739         Reported by Eric Blake.
29740
29741 2009-02-25  Bruno Haible  <bruno@clisp.org>
29742
29743         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29744         with known value.
29745         Reported by Gary V. Vaughan <gary@gnu.org>.
29746
29747 2009-02-25  Bruno Haible  <bruno@clisp.org>
29748
29749         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29750         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29751         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29752         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29753         Reported by Gary V. Vaughan <gary@gnu.org>.
29754
29755 2009-02-25  Bruno Haible  <bruno@clisp.org>
29756
29757         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29758         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29759         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29760         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29761         Reported by Gary V. Vaughan <gary@gnu.org>.
29762
29763 2009-02-25  Eric Blake  <ebb9@byu.net>
29764
29765         tests: skip fseek/ftell tests if ungetc is broken
29766         * m4/ungetc.m4: New file.
29767         * modules/fseek-tests: Split test, so ungetc dependency is
29768         separate from rest of test.
29769         * modules/fseeko-tests: Likewise.
29770         * modules/ftell-tests: Likewise.
29771         * modules/ftello-tests: Likewise.
29772         * tests/test-fseek.c (main): Isolate ungetc dependency.
29773         * tests/test-fseeko.c (main): Likewise.
29774         * tests/test-ftell.c (main): Likewise.
29775         * tests/test-ftello.c (main): Likewise.
29776         * tests/test-fseek2.sh: New file.
29777         * tests/test-fseeko2.sh: Likewise.
29778         * tests/test-ftell2.sh: Likewise.
29779         * tests/test-ftello2.sh: Likewise.
29780
29781 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29782
29783         test-getaddrinfo: fix usage of skip return code 77
29784         * tests/test-gettaddrinfo.c: Return skip code 77 only
29785         for first occurance of skip (4x77 is not 77)
29786
29787 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29788
29789         strtod: avoid C99 decl-after-statement
29790         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29791
29792 2009-02-24  Eric Blake  <ebb9@byu.net>
29793
29794         strtod: detect HP-UX 11.31 bug
29795         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29796         Reported by Gary V. Vaughan.
29797
29798 2009-02-23  Bruno Haible  <bruno@clisp.org>
29799
29800         Fix invalid read past end of memory block.
29801         * lib/vasnprintf.c (DCHAR_SET): Define.
29802         (local_wcslen): Define only when needed.
29803         (local_strnlen, local_wcsnlen): New functions.
29804         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29805         directives that involve a conversion ourselves.
29806         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29807         wcsnlen, mbrtowc, wcrtomb.
29808         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29809         * tests/test-vasprintf-posix.c (test_function): Likewise.
29810         * tests/test-snprintf-posix.h (test_function): Likewise.
29811         * tests/test-sprintf-posix.h (test_function): Likewise.
29812         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29813
29814 2009-02-22  Bruno Haible  <bruno@clisp.org>
29815
29816         Implement new clarified decomposition of Hangul syllables.
29817         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29818         of type LTV, return only a pairwise decomposition.
29819         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29820         Likewise.
29821         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29822         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29823         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29824
29825 2009-02-22  Bruno Haible  <bruno@clisp.org>
29826
29827         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29828         zero-length results and shrink excess allocated memory.
29829         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29830         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29831         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29832         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29833         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29834         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29835         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29836         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29837         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29838         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29839         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29840         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29841
29842 2009-02-21  Bruno Haible  <bruno@clisp.org>
29843
29844         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29845         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29846         spaces after a period. Put a space between a macro name and its
29847         argument list. Trivial rewordings.
29848         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29849         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29850         (main): Return 0 explicitly.
29851
29852 2009-02-21  Bruno Haible  <bruno@clisp.org>
29853
29854         Tests for module 'uninorm/filter'.
29855         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29856         * modules/uninorm/filter-tests: New file.
29857
29858         New module 'uninorm/filter'.
29859         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29860         uninorm_filter_flush, uninorm_filter_free): New declarations.
29861         * lib/uninorm/uninorm-filter.c: New file.
29862         * modules/uninorm/filter: New file.
29863
29864 2009-02-21  Bruno Haible  <bruno@clisp.org>
29865
29866         Tests for module 'uninorm/nfkc'.
29867         * tests/uninorm/test-nfkc.c: New file.
29868         * tests/uninorm/test-u8-nfkc.c: New file.
29869         * tests/uninorm/test-u16-nfkc.c: New file.
29870         * tests/uninorm/test-u32-nfkc.c: New file.
29871         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29872         * tests/uninorm/test-u32-nfkc-big.c: New file.
29873         * modules/uninorm/nfkc-tests: New file.
29874
29875         New module 'uninorm/nfkc'.
29876         * lib/uninorm/nfkc.c: New file.
29877         * modules/uninorm/nfkc: New file.
29878
29879         Tests for module 'uninorm/nfkd'.
29880         * tests/uninorm/test-nfkd.c: New file.
29881         * tests/uninorm/test-u8-nfkd.c: New file.
29882         * tests/uninorm/test-u16-nfkd.c: New file.
29883         * tests/uninorm/test-u32-nfkd.c: New file.
29884         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29885         * tests/uninorm/test-u32-nfkd-big.c: New file.
29886         * modules/uninorm/nfkd-tests: New file.
29887
29888         New module 'uninorm/nfkd'.
29889         * lib/uninorm/nfkd.c: New file.
29890         * modules/uninorm/nfkd: New file.
29891
29892         Tests for module 'uninorm/nfc'.
29893         * tests/uninorm/test-nfc.c: New file.
29894         * tests/uninorm/test-u8-nfc.c: New file.
29895         * tests/uninorm/test-u16-nfc.c: New file.
29896         * tests/uninorm/test-u32-nfc.c: New file.
29897         * tests/uninorm/test-u32-nfc-big.sh: New file.
29898         * tests/uninorm/test-u32-nfc-big.c: New file.
29899         * modules/uninorm/nfc-tests: New file.
29900
29901         New module 'uninorm/nfc'.
29902         * lib/uninorm/nfc.c: New file.
29903         * modules/uninorm/nfc: New file.
29904
29905         Tests for module 'uninorm/nfd'.
29906         * tests/uninorm/test-nfd.c: New file.
29907         * tests/uninorm/test-u8-nfd.c: New file.
29908         * tests/uninorm/test-u16-nfd.c: New file.
29909         * tests/uninorm/test-u32-nfd.c: New file.
29910         * tests/uninorm/test-u32-nfd-big.sh: New file.
29911         * tests/uninorm/test-u32-nfd-big.c: New file.
29912         * tests/uninorm/test-u32-normalize-big.h: New file.
29913         * tests/uninorm/test-u32-normalize-big.c: New file.
29914         * tests/uninorm/NormalizationTest.txt: New file, created from
29915         Unicode 5.1.0 NormalizationTest.txt.
29916         * modules/uninorm/nfd-tests: New file.
29917
29918         New module 'uninorm/nfd'.
29919         * lib/uninorm/nfd.c: New file.
29920         * modules/uninorm/nfd: New file.
29921
29922         New module 'uninorm/u32-normalize'.
29923         * lib/uninorm/u32-normalize.c: New file.
29924         * modules/uninorm/u32-normalize: New file.
29925
29926         New module 'uninorm/u16-normalize'.
29927         * lib/uninorm/u16-normalize.c: New file.
29928         * modules/uninorm/u16-normalize: New file.
29929
29930         New module 'uninorm/u8-normalize'.
29931         * lib/uninorm/u8-normalize.c: New file.
29932         * lib/uninorm/normalize-internal.h: New file.
29933         * lib/uninorm/u-normalize-internal.h: New file.
29934         * modules/uninorm/u8-normalize: New file.
29935
29936         New module 'uninorm/decompose-internal'.
29937         * lib/uninorm/decompose-internal.c: New file.
29938         * modules/uninorm/decompose-internal: New file.
29939
29940         Tests for module 'uninorm/composition'.
29941         * tests/uninorm/test-composition.c: New file.
29942         * modules/uninorm/composition-tests: New file.
29943
29944         New module 'uninorm/composition'.
29945         * lib/uninorm/composition.c: New file.
29946         * lib/uninorm/composition-table.gperf: New file, generated by
29947         gen-uni-tables.
29948         * modules/uninorm/composition: New file.
29949
29950         Tests for module 'uninorm/compat-decomposition'.
29951         * tests/uninorm/test-compat-decomposition.c: New file.
29952         * modules/uninorm/compat-decomposition-tests: New file.
29953
29954         New module 'uninorm/compat-decomposition'.
29955         * lib/uninorm/decompose-internal.h: New file.
29956         * lib/uninorm/compat-decomposition.c: New file.
29957         * modules/uninorm/compat-decomposition: New file.
29958
29959         Tests for module 'uninorm/canonical-decomposition'.
29960         * tests/uninorm/test-canonical-decomposition.c: New file.
29961         * modules/uninorm/canonical-decomposition-tests: New file.
29962
29963         New module 'uninorm/canonical-decomposition'.
29964         * lib/uninorm/canonical-decomposition.c: New file.
29965         * modules/uninorm/canonical-decomposition: New file.
29966
29967         Tests for module 'uninorm/decomposition'.
29968         * tests/uninorm/test-decomposition.c: New file.
29969         * modules/uninorm/decomposition-tests: New file.
29970
29971         New module 'uninorm/decomposition'.
29972         * lib/uninorm/decomposition.c: New file.
29973         * modules/uninorm/decomposition: New file.
29974
29975         New module 'uninorm/decomposition-table'.
29976         * lib/uninorm/decomposition-table.h: New file.
29977         * lib/uninorm/decomposition-table.c: New file.
29978         * lib/uninorm/decomposition-table1.h: New file, generated by
29979         gen-uni-tables.
29980         * lib/uninorm/decomposition-table2.h: New file, generated by
29981         gen-uni-tables.
29982         * modules/uninorm/decomposition-table: New file.
29983
29984         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29985         (UC_DECOMP_*): New enumeration items.
29986         (get_decomposition): New function.
29987         (struct decomp_table): New type.
29988         (output_decomposition, output_decomposition_tables): New functions.
29989         (unicode_composition_exclusions): New variable.
29990         (fill_composition_exclusions, debug_output_composition_tables): New
29991         functions.
29992         (main): Accept one more argument. Invoke fill_composition_exclusions.
29993         Output decomposition and composition tables.
29994
29995         New module 'uninorm/base'.
29996         * lib/uninorm.h: New file.
29997         * lib/unictype.h: Update comment.
29998         * modules/uninorm/base: New file.
29999
30000 2009-02-21  David Lutterkort  <lutter@redhat.com>
30001
30002         Tests for module 'safe-alloc'.
30003         * tests/test-safe-alloc.c: New file.
30004         * modules/safe-alloc-tests: New file.
30005
30006         New module 'safe-alloc'.
30007         * lib/safe-alloc.h: New file.
30008         * lib/safe-alloc.c: New file.
30009         * m4/safe-alloc.m4: New file.
30010         * modules/safe-alloc: New file.
30011         * doc/safe-alloc.texi: New file.
30012         * doc/gnulib.texi: Include it.
30013         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30014         safe-alloc.
30015
30016 2009-02-18  Bruno Haible  <bruno@clisp.org>
30017
30018         Fix link error on non-glibc systems.
30019         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30020         variable.
30021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30022
30023 2009-02-18  Jim Meyering  <meyering@redhat.com>
30024
30025         fts: avoid used-uninitialized error due to recent change
30026         * lib/fts.c (fts_read): Guard uses of the new member,
30027         parent->fts_n_dirs_remaining, since it's not relevant for
30028         the parent of a directory specified on the command-line.
30029
30030 2009-02-17  James Youngman  <jay@gnu.org>
30031             Bruno Haible  <bruno@clisp.org>
30032
30033         * m4/include_next.m4: Reformulate comment.
30034
30035 2009-02-16  Jim Meyering  <meyering@redhat.com>
30036
30037         fts: add #if guards so that the fts_lgpl module still builds
30038         * lib/fts.c: Guard just-added hash-table-using parts with
30039         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30040         Reported by Simon Josefsson.
30041
30042 2009-02-15  Bruno Haible  <bruno@clisp.org>
30043
30044         * modules/array-mergesort-tests: New file.
30045         * tests/test-array-mergesort.c: New file.
30046
30047         New module 'array-mergesort'.
30048         * modules/array-mergesort: New file.
30049         * lib/array-mergesort.h: New file.
30050
30051 2009-02-15  Bruno Haible  <bruno@clisp.org>
30052
30053         Fix 2009-02-07 commit.
30054         * lib/gen-uni-tables.c (output_predicate, output_category,
30055         output_combclass, output_bidi_category, output_decimal_digit,
30056         output_digit, output_numeric, output_mirror, output_scripts,
30057         output_ident_category, output_simple_mapping): Fix format directives.
30058         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30059
30060 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30061
30062         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30063         fixes are available from IBM.
30064
30065 2009-02-13  Jim Meyering  <meyering@redhat.com>
30066
30067         fts: arrange not to stat non-directories in more cases
30068         This makes GNU find (when it doesn't need to stat each file)
30069         *much* more efficient at traversing reiserfs file systems.
30070         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30071         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30072         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30073         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30074         (leaf_optimization_applies): New function.
30075         (LCO_hash, LCO_compare): New helper functions.
30076         (link_count_optimize_ok): New function.
30077         (fts_stat): Initialize new member (if dir).
30078         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30079         we've just stat'ed a directory.  Skip the stat call when possible.
30080         ---
30081         Note this AFS-related exchange:
30082         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30083         and note find's pioctl call in find/fstype.c.
30084         But that is necessary only if you want to enable the
30085         optimization for AFS, and for now, I don't.
30086
30087         fts: move a function definition "up" (no semantic change)
30088         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30089         "up" to precede upcoming use of a related function.
30090
30091 2009-02-11  Jim Meyering  <meyering@redhat.com>
30092
30093         fts: correct internal computation of nlinks (optimization-related)
30094         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30095         whether the current entry is a directory, so don't test it.
30096
30097 2009-02-10  Bruno Haible  <bruno@clisp.org>
30098
30099         Tests for module 'uniwbrk/ulc-wordbreaks'.
30100         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30101         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30102         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30103
30104         Tests for module 'uniwbrk/u32-wordbreaks'.
30105         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30106         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30107
30108         Tests for module 'uniwbrk/u16-wordbreaks'.
30109         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30110         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30111
30112         Tests for module 'uniwbrk/u8-wordbreaks'.
30113         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30114         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30115
30116 2009-02-10  Bruno Haible  <bruno@clisp.org>
30117
30118         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30119         property.
30120         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30121         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30122         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30123
30124 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30125
30126         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30127         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30128
30129 2009-02-10  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30132         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30133         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30134         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30135         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30136         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30137
30138 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30139
30140         * lib/sockets.h (gl_fd_to_handle): New function.
30141
30142         * tests/test-sockets.c: Call gl_fd_to_handle.
30143
30144 2009-02-09  Bruno Haible  <bruno@clisp.org>
30145
30146         * doc/havelib.texi: Document the conventions on bi-arch systems.
30147
30148 2009-02-08  Bruno Haible  <bruno@clisp.org>
30149
30150         Document the AC_LIB_LINKFLAGS macro.
30151         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30152         * doc/gnulib.texi: Include it.
30153
30154 2009-02-08  Bruno Haible  <bruno@clisp.org>
30155
30156         Fix wrong order of sections, compared to TOC.
30157         * doc/gnulib.texi: Include relocatable-maint.texi after the
30158         "Regular expressions" node, not before.
30159
30160 2009-02-08  Bruno Haible  <bruno@clisp.org>
30161
30162         Tests for module 'unicase/totitle'.
30163         * modules/unicase/totitle-tests: New file.
30164
30165         Tests for module 'unicase/tolower'.
30166         * modules/unicase/tolower-tests: New file.
30167
30168         Tests for module 'unicase/toupper'.
30169         * modules/unicase/toupper-tests: New file.
30170         * tests/unicase/test-mapping-part1.h: New file.
30171         * tests/unicase/test-mapping-part2.h: New file.
30172
30173         New module 'unicase/totitle'.
30174         * modules/unicase/totitle: New file.
30175         * lib/unicase/totitle.c: New file.
30176
30177         New module 'unicase/tolower'.
30178         * modules/unicase/tolower: New file.
30179         * lib/unicase/tolower.c: New file.
30180
30181         New module 'unicase/toupper'.
30182         * modules/unicase/toupper: New file.
30183         * lib/unicase/toupper.c: New file.
30184         * lib/unicase/simple-mapping.h: New file.
30185
30186         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30187         (mapping_table): New structure.
30188         (output_simple_mapping): New function.
30189         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30190         * modules/gen-uni-tables (Description): Update.
30191         * lib/unicase/toupper.h: New file, automatically generated by
30192         gen-uni-tables.
30193         * lib/unicase/tolower.h: New file, automatically generated by
30194         gen-uni-tables.
30195         * lib/unicase/totitle.h: New file, automatically generated by
30196         gen-uni-tables.
30197         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30198         gen-uni-tables.
30199         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30200         gen-uni-tables.
30201         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30202         gen-uni-tables.
30203
30204         New module 'unicase/base'.
30205         * modules/unicase/base: New file.
30206         * lib/unicase.h: New file.
30207
30208 2009-02-08  Bruno Haible  <bruno@clisp.org>
30209
30210         New module 'uniwbrk/ulc-wordbreaks'.
30211         * modules/uniwbrk/ulc-wordbreaks: New file.
30212         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30213
30214         New module 'uniwbrk/u32-wordbreaks'.
30215         * modules/uniwbrk/u32-wordbreaks: New file.
30216         * lib/uniwbrk/u32-wordbreaks.c: New file.
30217
30218         New module 'uniwbrk/u16-wordbreaks'.
30219         * modules/uniwbrk/u16-wordbreaks: New file.
30220         * lib/uniwbrk/u16-wordbreaks.c: New file.
30221
30222         New module 'uniwbrk/u8-wordbreaks'.
30223         * modules/uniwbrk/u8-wordbreaks: New file.
30224         * lib/uniwbrk/u8-wordbreaks.c: New file.
30225         * lib/uniwbrk/u-wordbreaks.h: New file.
30226
30227         New module 'uniwbrk/table'.
30228         * modules/uniwbrk/table: New file.
30229         * lib/uniwbrk/wbrktable.h: New file.
30230         * lib/uniwbrk/wbrktable.c: New file.
30231
30232         New module 'uniwbrk/wordbreak-property'.
30233         * modules/uniwbrk/wordbreak-property: New file.
30234         * lib/uniwbrk/wordbreak-property.c: New file.
30235
30236         * lib/gen-uni-tables.c (WBP_*): New enum items.
30237         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30238         (unicode_org_wbp): New variable.
30239         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30240         New functions.
30241         (wbp_table): New structure.
30242         (output_wbp, output_wbrk_tables): New functions.
30243         (main): Accept additional argument. Invoke fill_org_wbp,
30244         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30245         output_wbrk_tables.
30246         * modules/gen-uni-tables (Description): Update.
30247         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30248         gen-uni-tables.
30249
30250         New module 'uniwbrk/base'.
30251         * modules/uniwbrk/base: New file.
30252         * lib/uniwbrk.h: New file.
30253
30254 2009-02-08  Bruno Haible  <bruno@clisp.org>
30255
30256         Update to Unicode 5.1.0.
30257         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30258         U+2185..U+2188.
30259         (is_property_default_ignorable_code_point): Don't include characters
30260         of category Cc or Cs and not-a-characters.
30261         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30262         U+0D79, U+109E, U+109F, U+A60C.
30263         * lib/unictype/bidi_of.h: Regenerated.
30264         * lib/unictype/blocks.h: Regenerated.
30265         * lib/unictype/categ_C.h: Regenerated.
30266         * lib/unictype/categ_Cf.h: Regenerated.
30267         * lib/unictype/categ_Cn.h: Regenerated.
30268         * lib/unictype/categ_L.h: Regenerated.
30269         * lib/unictype/categ_Ll.h: Regenerated.
30270         * lib/unictype/categ_Lm.h: Regenerated.
30271         * lib/unictype/categ_Lo.h: Regenerated.
30272         * lib/unictype/categ_Lu.h: Regenerated.
30273         * lib/unictype/categ_M.h: Regenerated.
30274         * lib/unictype/categ_Mc.h: Regenerated.
30275         * lib/unictype/categ_Me.h: Regenerated.
30276         * lib/unictype/categ_Mn.h: Regenerated.
30277         * lib/unictype/categ_N.h: Regenerated.
30278         * lib/unictype/categ_Nd.h: Regenerated.
30279         * lib/unictype/categ_Nl.h: Regenerated.
30280         * lib/unictype/categ_No.h: Regenerated.
30281         * lib/unictype/categ_P.h: Regenerated.
30282         * lib/unictype/categ_Pd.h: Regenerated.
30283         * lib/unictype/categ_Pe.h: Regenerated.
30284         * lib/unictype/categ_Pf.h: Regenerated.
30285         * lib/unictype/categ_Pi.h: Regenerated.
30286         * lib/unictype/categ_Po.h: Regenerated.
30287         * lib/unictype/categ_Ps.h: Regenerated.
30288         * lib/unictype/categ_S.h: Regenerated.
30289         * lib/unictype/categ_Sk.h: Regenerated.
30290         * lib/unictype/categ_Sm.h: Regenerated.
30291         * lib/unictype/categ_So.h: Regenerated.
30292         * lib/unictype/categ_of.h: Regenerated.
30293         * lib/unictype/combining.h: Regenerated.
30294         * lib/unictype/ctype_alnum.h: Regenerated.
30295         * lib/unictype/ctype_alpha.h: Regenerated.
30296         * lib/unictype/ctype_graph.h: Regenerated.
30297         * lib/unictype/ctype_lower.h: Regenerated.
30298         * lib/unictype/ctype_print.h: Regenerated.
30299         * lib/unictype/ctype_punct.h: Regenerated.
30300         * lib/unictype/ctype_upper.h: Regenerated.
30301         * lib/unictype/decdigit.h: Regenerated.
30302         * lib/unictype/digit.h: Regenerated.
30303         * lib/unictype/mirror.h: Regenerated.
30304         * lib/unictype/numeric.h: Regenerated.
30305         * lib/unictype/pr_alphabetic.h: Regenerated.
30306         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30307         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30308         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30309         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30310         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30311         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30312         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30313         * lib/unictype/pr_combining.h: Regenerated.
30314         * lib/unictype/pr_dash.h: Regenerated.
30315         * lib/unictype/pr_decimal_digit.h: Regenerated.
30316         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30317         * lib/unictype/pr_deprecated.h: Regenerated.
30318         * lib/unictype/pr_diacritic.h: Regenerated.
30319         * lib/unictype/pr_extender.h: Regenerated.
30320         * lib/unictype/pr_format_control.h: Regenerated.
30321         * lib/unictype/pr_grapheme_base.h: Regenerated.
30322         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30323         * lib/unictype/pr_grapheme_link.h: Regenerated.
30324         * lib/unictype/pr_id_continue.h: Regenerated.
30325         * lib/unictype/pr_id_start.h: Regenerated.
30326         * lib/unictype/pr_ideographic.h: Regenerated.
30327         * lib/unictype/pr_ignorable_control.h: Regenerated.
30328         * lib/unictype/pr_lowercase.h: Regenerated.
30329         * lib/unictype/pr_math.h: Regenerated.
30330         * lib/unictype/pr_numeric.h: Regenerated.
30331         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30332         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30333         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30334         * lib/unictype/pr_other_id_continue.h: Regenerated.
30335         * lib/unictype/pr_other_lowercase.h: Regenerated.
30336         * lib/unictype/pr_other_math.h: Regenerated.
30337         * lib/unictype/pr_punctuation.h: Regenerated.
30338         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30339         * lib/unictype/pr_soft_dotted.h: Regenerated.
30340         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30341         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30342         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30343         * lib/unictype/pr_uppercase.h: Regenerated.
30344         * lib/unictype/pr_xid_continue.h: Regenerated.
30345         * lib/unictype/pr_xid_start.h: Regenerated.
30346         * lib/unictype/pr_zero_width.h: Regenerated.
30347         * lib/unictype/scripts.h: Regenerated.
30348         * lib/unictype/scripts_byname.gperf: Regenerated.
30349         * lib/unictype/sy_java_ident.h: Regenerated.
30350         * lib/unilbrk/lbrkprop1.h: Regenerated.
30351         * lib/unilbrk/lbrkprop2.h: Regenerated.
30352         * tests/unictype/test-categ_C.c: Regenerated.
30353         * tests/unictype/test-categ_Cf.c: Regenerated.
30354         * tests/unictype/test-categ_Cn.c: Regenerated.
30355         * tests/unictype/test-categ_L.c: Regenerated.
30356         * tests/unictype/test-categ_Ll.c: Regenerated.
30357         * tests/unictype/test-categ_Lm.c: Regenerated.
30358         * tests/unictype/test-categ_Lo.c: Regenerated.
30359         * tests/unictype/test-categ_Lu.c: Regenerated.
30360         * tests/unictype/test-categ_M.c: Regenerated.
30361         * tests/unictype/test-categ_Mc.c: Regenerated.
30362         * tests/unictype/test-categ_Me.c: Regenerated.
30363         * tests/unictype/test-categ_Mn.c: Regenerated.
30364         * tests/unictype/test-categ_N.c: Regenerated.
30365         * tests/unictype/test-categ_Nd.c: Regenerated.
30366         * tests/unictype/test-categ_Nl.c: Regenerated.
30367         * tests/unictype/test-categ_No.c: Regenerated.
30368         * tests/unictype/test-categ_P.c: Regenerated.
30369         * tests/unictype/test-categ_Pd.c: Regenerated.
30370         * tests/unictype/test-categ_Pe.c: Regenerated.
30371         * tests/unictype/test-categ_Pf.c: Regenerated.
30372         * tests/unictype/test-categ_Pi.c: Regenerated.
30373         * tests/unictype/test-categ_Po.c: Regenerated.
30374         * tests/unictype/test-categ_Ps.c: Regenerated.
30375         * tests/unictype/test-categ_S.c: Regenerated.
30376         * tests/unictype/test-categ_Sk.c: Regenerated.
30377         * tests/unictype/test-categ_Sm.c: Regenerated.
30378         * tests/unictype/test-categ_So.c: Regenerated.
30379         * tests/unictype/test-ctype_alnum.c: Regenerated.
30380         * tests/unictype/test-ctype_alpha.c: Regenerated.
30381         * tests/unictype/test-ctype_graph.c: Regenerated.
30382         * tests/unictype/test-ctype_lower.c: Regenerated.
30383         * tests/unictype/test-ctype_print.c: Regenerated.
30384         * tests/unictype/test-ctype_punct.c: Regenerated.
30385         * tests/unictype/test-ctype_upper.c: Regenerated.
30386         * tests/unictype/test-decdigit.h: Regenerated.
30387         * tests/unictype/test-digit.h: Regenerated.
30388         * tests/unictype/test-numeric.h: Regenerated.
30389         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30390         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30391         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30392         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30393         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30394         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30395         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30396         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30397         * tests/unictype/test-pr_combining.c: Regenerated.
30398         * tests/unictype/test-pr_dash.c: Regenerated.
30399         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30400         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30401         * tests/unictype/test-pr_deprecated.c: Regenerated.
30402         * tests/unictype/test-pr_diacritic.c: Regenerated.
30403         * tests/unictype/test-pr_extender.c: Regenerated.
30404         * tests/unictype/test-pr_format_control.c: Regenerated.
30405         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30406         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30407         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30408         * tests/unictype/test-pr_id_continue.c: Regenerated.
30409         * tests/unictype/test-pr_id_start.c: Regenerated.
30410         * tests/unictype/test-pr_ideographic.c: Regenerated.
30411         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30412         * tests/unictype/test-pr_lowercase.c: Regenerated.
30413         * tests/unictype/test-pr_math.c: Regenerated.
30414         * tests/unictype/test-pr_numeric.c: Regenerated.
30415         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30416         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30417         Regenerated.
30418         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30419         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30420         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30421         * tests/unictype/test-pr_other_math.c: Regenerated.
30422         * tests/unictype/test-pr_punctuation.c: Regenerated.
30423         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30424         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30425         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30426         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30427         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30428         * tests/unictype/test-pr_uppercase.c: Regenerated.
30429         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30430         * tests/unictype/test-pr_xid_start.c: Regenerated.
30431         * tests/unictype/test-pr_zero_width.c: Regenerated.
30432
30433         Update to Unicode 5.1.0.
30434         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30435         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30436         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30437         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30438         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30439         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30440         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30441         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30442         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30443         (nonspacing_table_ind): Update.
30444         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30445
30446         Update to Unicode 5.1.0.
30447         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30448         code transform.
30449         * lib/uniname/uniname.c (unicode_character_name,
30450         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30451         * lib/uniname/uninames.h: Regenerated.
30452         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30453
30454 2009-02-07  Bruno Haible  <bruno@clisp.org>
30455
30456         Merge gen-ctype and gen-lbrk into a single program.
30457         * lib/gen-uni-tables.c: New file, incorporating
30458         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30459         Add directory prefixes to the names of the generated files.
30460         * lib/unictype/gen-ctype.c: Remove file.
30461         * lib/unilbrk/gen-lbrk.c: Remove file.
30462         * modules/gen-uni-tables: New file.
30463         * modules/unictype/gen-ctype: Remove file.
30464         * modules/unilbrk/gen-lbrk: Remove file.
30465
30466 2009-02-07  Bruno Haible  <bruno@clisp.org>
30467
30468         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30469
30470         New module 'unistr/u32-strcoll'.
30471         * modules/unistr/u32-strcoll: New file.
30472         * lib/unistr/u32-strcoll.c: New file.
30473
30474         New module 'unistr/u16-strcoll'.
30475         * modules/unistr/u16-strcoll: New file.
30476         * lib/unistr/u16-strcoll.c: New file.
30477
30478         New module 'unistr/u8-strcoll'.
30479         * modules/unistr/u8-strcoll: New file.
30480         * lib/unistr/u8-strcoll.c: New file.
30481         * lib/unistr/u-strcoll.h: New file.
30482
30483 2009-02-07  Bruno Haible  <bruno@clisp.org>
30484
30485         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30486         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30487         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30488         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30489         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30490         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30491
30492 2009-02-07  Bruno Haible  <bruno@clisp.org>
30493
30494         Make 64-bit clean.
30495         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30496         output_combclass, output_bidi_category, output_decimal_digit,
30497         output_digit, output_numeric, output_mirror, output_scripts,
30498         output_ident_category): Use proper width specifier in format strings.
30499
30500 2009-02-07  Bruno Haible  <bruno@clisp.org>
30501
30502         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30503         failure behaviour.
30504
30505 2009-02-07  Jim Meyering  <meyering@redhat.com>
30506
30507         regex: avoid compilation failure with upcoming gcc-4.4
30508         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30509         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30510         "... error: integer overflow in preprocessor expression".
30511
30512 2009-02-05  Ben Pfaff  <blp@gnu.org>
30513
30514         Fix link errors on Windows when close module is used.
30515         * modules/close: Add $(LIB_CLOSE) to Link section.
30516         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30517         $(LIB_CLOSE) on Windows.
30518
30519 2009-02-05  Jim Meyering  <meyering@redhat.com>
30520
30521         still avoid unused-parameter warnings, but do it cleanly
30522         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30523         (get_fs_usage): Cast to void instead.
30524         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30525         (dev_from_mount_options, read_file_system_list): Cast to void.
30526         Prompted by Bruno Haible.
30527
30528 2009-02-04  Jim Meyering  <meyering@redhat.com>
30529
30530         fsusage.c: correct copyright year
30531         * lib/fsusage.c: Reflect year in which the change is pushed into
30532
30533         avoid misc. warnings
30534         * lib/fsusage.c (UNUSED_PARAM): Define.
30535         (get_fs_usage): Mark parameter "disk" as unused.
30536         * lib/getugroups.c (getgrent): Use "void" in prototype.
30537         * lib/mountlist.c: Mark unused parameters.
30538         (read_file_system_list): Declare a local with "const".
30539         * lib/nanosleep.c (getnow): Declare static.
30540         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30541
30542         dirfd: set errno upon failure
30543         * lib/dirfd.c: Include <errno.h>.
30544         Set errno to ENOTSUP when returning -1.
30545         * modules/dirfd (Depends-on): Add errno.
30546         Suggested by John Kodis <kodis@comcast.net>.
30547
30548 2009-02-01  Bruno Haible  <bruno@clisp.org>
30549
30550         Don't assume sizeof (long) >= sizeof (void *).
30551         * lib/memcmp.c: Include stdint.h.
30552         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30553         srcp2 to 'const byte *'.
30554         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30555         types to uintptr_t.
30556         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30557         * modules/memcmp (Depends-on): Add stdint.
30558         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30559
30560 2009-01-30  Eric Blake  <ebb9@byu.net>
30561
30562         fix more require-before-expand issues
30563         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30564         expand, AC_PROG_AWK.
30565         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30566
30567 2009-01-28  Eric Blake  <ebb9@byu.net>
30568
30569         version-etc: use consistent URL formatting
30570         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30571         Improve formatting.  Use fputs for string without %.
30572
30573 2009-01-28  Jim Meyering  <meyering@redhat.com>
30574
30575         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30576         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30577         "underquoted definition of NAME" from autoconf-2.59.
30578
30579 2009-01-28  Bruno Haible  <bruno@clisp.org>
30580
30581         * doc/gnulib.texi: Add "Obsolete modules" to index.
30582
30583 2009-01-28  Jim Meyering  <meyering@redhat.com>
30584
30585         useless-if-before-free: recognize more variants
30586         * build-aux/useless-if-before-free: Also recognize e.g.,
30587         if (NULL != p) free (p);
30588
30589 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30590
30591         test-getaddrinfo: skip (don't fail) this test when there's no network
30592         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30593         on the presumption that it means you lack network access.
30594
30595 2009-01-26  Jim Meyering  <meyering@redhat.com>
30596
30597         fflush: avoid warnings on modern systems
30598         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30599         pos and result, into scopes where they're used.
30600
30601 2009-01-26  Eric Blake  <ebb9@byu.net>
30602
30603         Silence warning reintroduced by recent extensions patch.
30604         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30605         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30606         autoconf.
30607
30608         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30609         * m4/00gnulib.m4: New file.
30610         * gnulib-tool (func_get_filelist): Always use it.
30611         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30612         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30613
30614 2009-01-25  Bruno Haible  <bruno@clisp.org>
30615
30616         Make test-quotearg work on MacOS X and AIX.
30617         * tests/test-quotearg.sh: New file.
30618         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30619         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30620         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30621         include <libintl.h>.
30622         (fake_locale): Remove variable.
30623         (gettext, dgettext, dcgettext): Remove functions.
30624         (main): Instead of setting a fake locale, set a real locale. Call
30625         textdomain and bindtextdomain.
30626         * modules/quotearg-tests (Files): Add the new files.
30627         (Depends-on): Add gettext, setenv, unsetenv.
30628         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30629         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30630         Augment TESTS_ENVIRONMENT.
30631
30632 2009-01-25  Bruno Haible  <bruno@clisp.org>
30633
30634         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30635         fr_FR.ISO8859-1 locale on MacOS X.
30636         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30637         ja_JP.eucJP locale on MacOS X.
30638         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30639         zh_CN.GB18030 locale on MacOS X.
30640
30641 2009-01-25  Bruno Haible  <bruno@clisp.org>
30642
30643         Avoid link errors on MacOS X 10.3.
30644         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30645         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30646
30647 2009-01-25  Bruno Haible  <bruno@clisp.org>
30648
30649         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30650         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30651         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30652         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30653         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30654         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30655         posix_spawnattr_init, posix_spawnattr_setsigmask,
30656         posix_spawnattr_setflags, posix_spawnattr_destroy.
30657
30658         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30659         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30660         * modules/execute (Files): Remove m4/posix_spawn.m4.
30661         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30662         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30663         posix_spawnattr_init, posix_spawnattr_setsigmask,
30664         posix_spawnattr_setflags, posix_spawnattr_destroy.
30665
30666 2009-01-25  Bruno Haible  <bruno@clisp.org>
30667
30668         * lib/glthread/threadlib.c: Include <stdlib.h>.
30669
30670 2009-01-25  Bruno Haible  <bruno@clisp.org>
30671
30672         * lib/glthread/threadlib.c (dummy): New declaration.
30673
30674 2009-01-25  Bruno Haible  <bruno@clisp.org>
30675
30676         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30677         multibyte characters also for the GB18030 encoding. Don't crash when
30678         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30679
30680 2009-01-25  Bruno Haible  <bruno@clisp.org>
30681
30682         Avoid redefining 'struct random_data' on OSF/1 5.1.
30683         * lib/stdlib.in.h: Include <random.h> if it exists.
30684         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30685         HAVE_RANDOM_H. Include <random.h> when testing whether
30686         'struct random_data' exists.
30687         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30688
30689 2009-01-25  Bruno Haible  <bruno@clisp.org>
30690
30691         Don't install charset.alias on MacOS X >= 10.3.
30692         * lib/localcharset.c (DARWIN7): New macro.
30693         (get_charset_aliases): Hardcode the result for Darwin7.
30694         * modules/localcharset (install-exec-local): Don't install
30695         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30696
30697 2009-01-25  Bruno Haible  <bruno@clisp.org>
30698
30699         Don't install charset.alias on mingw and Cygwin.
30700         * modules/localcharset (install-exec-local): Don't install
30701         charset.alias on mingw and Cygwin, if the file does not yet exist.
30702         The result for these platforms is hardcoded in localcharset.c.
30703
30704 2009-01-25  Bruno Haible  <bruno@clisp.org>
30705
30706         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30707         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30708         before requiring AC_USE_SYSTEM_EXTENSIONS.
30709
30710 2009-01-25  Jim Meyering  <meyering@redhat.com>
30711
30712         c-strtod: avoid warnings
30713         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30714         "assignment discards qualifiers from pointer target type" warnings.
30715
30716 2009-01-24  Bruno Haible  <bruno@clisp.org>
30717
30718         Add support for non-UTF-8 locales on MacOS X.
30719         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30720         canonical encodings. For Darwin 7 and newer, don't map traditional
30721         encodings to UTF-8.
30722         Reported by Vincent Lefevre <vincent@vinc17.org>
30723         at <http://savannah.gnu.org/bugs/?25235>.
30724
30725 2009-01-24  Bruno Haible  <bruno@clisp.org>
30726
30727         * doc/gnulib.texi (Obsolete modules): New section.
30728         Reported by Mike Frysinger <vapier@gentoo.org>.
30729
30730 2009-01-24  Bruno Haible  <bruno@clisp.org>
30731
30732         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30733         (%.dvi): New rule.
30734
30735 2009-01-24  Bruno Haible  <bruno@clisp.org>
30736
30737         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30738         Reported by Eric Blake.
30739
30740 2009-01-24  Bruno Haible  <bruno@clisp.org>
30741
30742         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30743         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30744         Reported by Gary V. Vaughan <gary@gnu.org>.
30745
30746 2009-01-24  Bruno Haible  <bruno@clisp.org>
30747
30748         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30749
30750 2009-01-23  Bruno Haible  <bruno@clisp.org>
30751
30752         Make c-strtod, c-strtold usable in libraries.
30753         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30754         (C_STRTOD): Call strdup instead of xstrdup.
30755         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30756         * modules/c-strtold (Depends-on): Likewise.
30757         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30758         * NEWS: Mention the change.
30759         Reported by Michael Gold <mgold@ncf.ca>.
30760
30761 2009-01-23  Jim Meyering  <meyering@redhat.com>
30762
30763         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30764         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30765         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30766
30767 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30768
30769         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30770         GNU CoreUtils.
30771         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30772         * modules/version-etc (Description): Update.
30773
30774 2009-01-22  Bruno Haible  <bruno@clisp.org>
30775
30776         Cache the C locale object.
30777         * lib/c-strtod.c (c_locale_cache): New variable.
30778         (c_locale): New function.
30779         (C_STRTOD): Use it, and don't call freelocale.
30780         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30781         Suggested by Paolo Bonzini.
30782
30783 2009-01-21  Bruno Haible  <bruno@clisp.org>
30784
30785         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30786         conditions other than overflow.
30787
30788 2009-01-21  Bruno Haible  <bruno@clisp.org>
30789
30790         * lib/c-strtod.c: Include errno.h.
30791         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30792         value from STRTOD_L and STRTOD.
30793
30794 2009-01-21  Bruno Haible  <bruno@clisp.org>
30795         and Jim Meyering  <meyering@redhat.com>
30796
30797         nanosleep: skip configure test (fail it) for apple universal builds
30798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30799         universal builds, assume that nanosleep does not work.
30800         * modules/nanosleep (Depends-on): Add multiarch.
30801
30802         mktime: skip configure test (fail it) for apple universal builds
30803         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30804         universal builds, assume that mktime does not work.
30805         * modules/mktime (Depends-on): Add multiarch.
30806
30807 2009-01-21  Eric Blake  <ebb9@byu.net>
30808
30809         multiarch: avoid expand-before-require warning
30810         * modules/multiarch (configure.ac): Require, rather than expand,
30811         gl_MULTIARCH.
30812         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30813         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30814         enforce that all clients require it.  Partial reversion of
30815         2008-12-29 patch.
30816
30817         error: avoid expand-before-require warning
30818         * modules/errno (configure.ac): Require, rather than expand,
30819         gl_HEADER_ERRNO_H.
30820         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30821         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30822         enforce that all clients require it.
30823
30824         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30825         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30826         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30827         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30828
30829 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30830
30831         Revert:
30832         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30833
30834         regex: do not depend on obsolete modules.
30835         * modules/regex: Remove memcmp and memmove.
30836
30837 2009-01-20  Bruno Haible  <bruno@clisp.org>
30838
30839         Make the 'link' module link on Windows NT 4.
30840         * lib/link.c (_WIN32_WINNT): Don't define.
30841         (CreateHardLinkFuncType): New type.
30842         (CreateHardLinkFunc, initialized): New variables.
30843         (initialize): New function.
30844         (link): Invoke CreateHardLink indirectly through the function pointer.
30845
30846 2009-01-20  Bruno Haible  <bruno@clisp.org>
30847
30848         Fix compilation failure on mingw.
30849         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30850
30851 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30852
30853         * doc/c-strtod.texi: Mention a couple of restrictions.
30854
30855 2009-01-20  Jim Meyering  <meyering@redhat.com>
30856
30857         gettimeofday: move more declarations out of functions
30858         * lib/gettimeofday.c: Move extern declarations of tzset and
30859         gmtime out of containing functions.  Prompted by Bruno Haible.
30860
30861 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30862
30863         regex: do not depend on obsolete modules.
30864         * modules/regex: Remove memcmp and memmove.
30865
30866 2009-01-19  Bruno Haible  <bruno@clisp.org>
30867
30868         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30869         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30870         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30871         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30872         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30873
30874 2009-01-19  Bruno Haible  <bruno@clisp.org>
30875
30876         * tests/test-link.c: Include <errno.h>.
30877         (main): Exit with code 77 when a hard link cannot be created due to
30878         the file system.
30879         * tests/test-link.sh: Skip test when a hard link cannot be created due
30880         to the file system.
30881         Suggested by Eric Blake.
30882
30883 2009-01-19  Martin Lambers  <marlam@marlam.de>
30884
30885         * modules/link-tests: New file.
30886         * tests/test-link.sh: New file.
30887         * tests/test-link.c: New file.
30888
30889 2009-01-19  Eric Blake  <ebb9@byu.net>
30890
30891         doc: mention another function added in cygwin 1.7.0
30892         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30893         Another new function in cygwin 1.7.
30894
30895 2009-01-19  Bruno Haible  <bruno@clisp.org>
30896
30897         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30898         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30899         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30900         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30901         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30902         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30903         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30904         * m4/md4.m4 (gl_MD4): Likewise.
30905         * m4/md5.m4 (gl_MD5): Likewise.
30906         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30907         * m4/sha1.m4 (gl_SHA1): Likewise.
30908         * m4/sha256.m4 (gl_SHA256): Likewise.
30909         * m4/sha512.m4 (gl_SHA512): Likewise.
30910
30911 2009-01-19  Bruno Haible  <bruno@clisp.org>
30912
30913         * modules/uniname/uniname-tests (Depends-on): Add progname.
30914         * tests/uniname/test-uninames.c: Include progname.h.
30915         (main): Call set_program_name.
30916
30917         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30918         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30919         (main): Call set_program_name.
30920
30921         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30922         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30923         (main): Call set_program_name.
30924
30925         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30926         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30927         (main): Call set_program_name.
30928
30929         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30930         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30931         (main): Call set_program_name.
30932
30933         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30934         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30935         (main): Call set_program_name.
30936
30937         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30938         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30939         (main): Call set_program_name.
30940
30941         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30942         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30943         (main): Call set_program_name.
30944
30945         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30946         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30947         (main): Call set_program_name.
30948
30949 2009-01-19  Eric Blake  <ebb9@byu.net>
30950
30951         test-unistd: test previous patch
30952         * tests/test-unistd.c: Test *_FILENO macros.
30953
30954         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30955         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30956         Guarantee a definition.
30957         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30958         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30959         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30960         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30961         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30962         Likewise.
30963         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30964         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30965         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30966         Likewise.
30967         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30968         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30969         (STDERR_FILENO): Likewise.
30970         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30971         (STDERR_FILENO): Likewise.
30972         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30973         (STDERR_FILENO): Likewise.
30974         Reported by Elbert Pol.
30975
30976 2009-01-19  Eric Blake  <ebb9@byu.net>
30977
30978         doc: mention more functions added in cygwin 1.7.0
30979         * doc/posix-functions/abort.texi (abort): Update wording related
30980         to cygwin.
30981         * doc/posix-functions/daylight.texi (daylight): Likewise.
30982         * doc/posix-functions/optarg.texi (optarg): Likewise.
30983         * doc/posix-functions/optarg.texi (opterr): Likewise.
30984         * doc/posix-functions/optarg.texi (optind): Likewise.
30985         * doc/posix-functions/optarg.texi (optopt): Likewise.
30986         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30987         worked in 1.5.x, and was withdrawn in 1.7.
30988         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30989         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30990         cygwin versions.
30991         * doc/posix-functions/perror.texi (perror): Likewise.
30992         * doc/posix-functions/printf.texi (printf): Likewise.
30993         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30994         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30995         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30996         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30997         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30998         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30999         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31000         Likewise.
31001         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31002         Likewise.
31003         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31004         this function.
31005         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31006         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31007         Likewise.
31008         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31009         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31010         * doc/posix-functions/confstr.texi (confstr): Likewise.
31011         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31012         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31013         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31014         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31015         * doc/posix-functions/fputws.texi (fputws): Likewise.
31016         * doc/posix-functions/fwide.texi (fwide): Likewise.
31017         * doc/posix-functions/getwc.texi (getwc): Likewise.
31018         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31019         * doc/posix-functions/putwc.texi (putwc): Likewise.
31020         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31021         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31022         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31023         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31024         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31025         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31026         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31027         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31028         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31029         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31030         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31031
31032 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31033
31034         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31035         * lib/ioctl.c: Include <sys/ioctl.h>.
31036
31037 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31038
31039         * modules/getdate-tests (Depends-on): Add progname.
31040         * tests/test-getdate.c: Use progname module, to avoid link errors
31041         on non-glibc systems.
31042
31043 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31044
31045         * modules/filenamecat-tests (Depends-on): Add progname.
31046         * modules/fstrcmp-tests (Depends-on): Likewise.
31047
31048         * tests/test-filenamecat.c: Use progname module, to avoid link
31049         errors on non-glibc systems.
31050         * tests/test-fstrcmp.c: Likewise.
31051
31052 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31053
31054         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31055         * lib/gettimeofday.c: Move extern declaration out of function.
31056
31057 2009-01-18  Bruno Haible  <bruno@clisp.org>
31058
31059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31060         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31061         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31062
31063 2009-01-18  Bruno Haible  <bruno@clisp.org>
31064
31065         * lib/strftime.c (MEMPCPY): Remove unused macro.
31066         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31067
31068 2009-01-18  Martin Lambers  <marlam@marlam.de>
31069
31070         New module 'link'.
31071         * lib/unistd.in.h (link): New declaration.
31072         * lib/link.c: New file.
31073         * m4/link.m4: New file.
31074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31075         HAVE_LINK.
31076         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31077         * modules/link: New file.
31078         * doc/posix-functions/link.texi: Mention the new module.
31079
31080 2009-01-18  Bruno Haible  <bruno@clisp.org>
31081
31082         * tests/test-avltree_list.c (main): Call set_program_name.
31083         * tests/test-avltree_oset.c (main): Likewise.
31084         * tests/test-obstack-printf.c: Include progname.h.
31085         (main): Call set_program_name.
31086         * tests/test-quotearg.c: Include progname.h.
31087         (main): Call set_program_name.
31088         * tests/test-xmemdup0.c: Include progname.h.
31089         (main): Call set_program_name.
31090
31091 2009-01-18  Bruno Haible  <bruno@clisp.org>
31092
31093         New module 'alphasort'.
31094         * lib/dirent.in.h (alphasort): New declaration.
31095         * lib/alphasort.c: New file, from glibc with modifications.
31096         * m4/alphasort.m4: New file.
31097         * modules/alphasort: New file.
31098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31099         HAVE_ALPHASORT.
31100         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31101         HAVE_ALPHASORT.
31102         * doc/posix-functions/alphasort.texi: Mention the new module and the
31103         portability problems.
31104
31105 2009-01-18  Bruno Haible  <bruno@clisp.org>
31106
31107         New module 'scandir'.
31108         * lib/dirent.in.h (scandir): New declaration.
31109         * lib/scandir.c: New file, from glibc with modifications.
31110         * m4/scandir.m4: New file.
31111         * modules/scandir: New file.
31112         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31113         HAVE_SCANDIR.
31114         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31115         HAVE_SCANDIR.
31116         * doc/posix-functions/scandir.texi: Mention the new module and the
31117         portability problems.
31118
31119 2009-01-17  Bruno Haible  <bruno@clisp.org>
31120
31121         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31122         Update documentation.
31123         (func_remove_suffix): Escape all dots in the suffix. Update
31124         documentation.
31125         (func_filter_filelist): Update documentation.
31126         Reported by Ralf Wildenhues.
31127
31128 2009-01-17  Bruno Haible  <bruno@clisp.org>
31129
31130         * modules/dprintf-posix-tests: New file.
31131         * tests/test-dprintf-posix.sh: New file.
31132         * tests/test-dprintf-posix.c: New file.
31133
31134         New modules 'dprintf', 'dprintf-posix'.
31135         * lib/stdio.in.h (dprintf): New declaration.
31136         * lib/dprintf.c: New file.
31137         * m4/dprintf.m4: New file.
31138         * m4/dprintf-posix.m4: New file.
31139         * modules/dprintf: New file.
31140         * modules/dprintf-posix: New file.
31141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31142         HAVE_DPRINTF, REPLACE_DPRINTF.
31143         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31144         HAVE_DPRINTF, REPLACE_DPRINTF.
31145         * doc/posix-functions/dprintf.texi: Mention the new modules.
31146
31147 2009-01-17  Bruno Haible  <bruno@clisp.org>
31148
31149         * modules/vdprintf-posix-tests: New file.
31150         * tests/test-vdprintf-posix.sh: New file.
31151         * tests/test-vdprintf-posix.c: New file.
31152
31153         New modules 'vdprintf', 'vdprintf-posix'.
31154         * lib/stdio.in.h (vdprintf): New declaration.
31155         * lib/vdprintf.c: New file.
31156         * m4/vdprintf.m4: New file.
31157         * m4/vdprintf-posix.m4: New file.
31158         * modules/vdprintf: New file.
31159         * modules/vdprintf-posix: New file.
31160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31161         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31162         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31163         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31164         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31165
31166 2009-01-17  Bruno Haible  <bruno@clisp.org>
31167
31168         Fix replacement of fopen on mingw.
31169         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31170         mingw.
31171
31172 2009-01-17  Bruno Haible  <bruno@clisp.org>
31173
31174         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31175         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31176
31177 2009-01-17  Bruno Haible  <bruno@clisp.org>
31178
31179         Avoid test-fflush2.sh failure on mingw.
31180         * tests/test-fflush2.c: Include binary-io.h.
31181         (main): Put standard input into binary mode.
31182         * modules/fflush-tests (Depends-on): Add binary-io.
31183
31184 2009-01-17  Bruno Haible  <bruno@clisp.org>
31185
31186         * lib/wchar.in.h: In another particular situation, include only the
31187         system's <wchar.h> file.
31188         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31189         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31190         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31191
31192 2009-01-17  Bruno Haible  <bruno@clisp.org>
31193
31194         Support for stripping executables in --enable-relocatable.
31195         * build-aux/install-reloc: Expect one more argument, or an environment
31196         variable RELOC_STRIP_PROG. If set, strip the destination program and
31197         its wrapper.
31198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31199         RELOC_STRIP_PROG.
31200         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31201         to set RELOCATABLE_STRIP.
31202         * NEWS: Mention the new Makefile requirement.
31203
31204 2009-01-17  Bruno Haible  <bruno@clisp.org>
31205
31206         * build-aux/install-reloc: Remove debugging information left over by
31207         C compiler on MacOS X.
31208
31209 2009-01-17  Bruno Haible  <bruno@clisp.org>
31210
31211         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31212         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31213         _NSGetExecutablePath.
31214
31215 2009-01-16  Jim Meyering  <meyering@redhat.com>
31216
31217         strerror: avoid warnings about discarding "const"
31218         * lib/strerror.c (rpl_strerror): Instead of returning a const
31219         string from each and every "case", use a variable, and add a single
31220         cast after the switch.
31221
31222 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31223
31224         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31225
31226 2009-01-16  Bruno Haible  <bruno@clisp.org>
31227
31228         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31229         array initializer syntax that also works in C++ mode.
31230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31231
31232 2009-01-16  Jim Meyering  <meyering@redhat.com>
31233
31234         poll: suppress a warning
31235         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31236         to ignore "...unsigned expression < 0 is always false" warnings.
31237
31238 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31239
31240         poll: remove declarations of unused variables
31241         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31242         sockbuf and optlen.
31243
31244 2009-01-15  Bruno Haible  <bruno@clisp.org>
31245
31246         Make fflush-after-ungetc POSIX compliant on BSD systems.
31247         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31248         (clear_ungetc_buffer): Implement also for other systems.
31249         (rpl_fflush): On glibc systems, invoke
31250         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31251         clear_ungetc_buffer after fetching the stream's position, not before.
31252
31253 2009-01-15  Bruno Haible  <bruno@clisp.org>
31254
31255         Make fflush-after-ungetc POSIX compliant on glibc systems.
31256         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31257         after ungetc.
31258         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31259         (rpl_fflush): On glibc systems, simply call the system's fflush
31260         function after clearing the ungetc buffer.
31261         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31262         Instead, lseek only to the end of file, then use the system's fseeko
31263         for the rest. On glibc systems, reset the EOF indicator bit.
31264
31265 2009-01-15  Jim Meyering  <meyering@redhat.com>
31266
31267         openmp.m4: revert quote-adding change, for portability to older autoconf
31268         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31269         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31270         Simon Josefsson noticed the problem when using autoconf-2.61.
31271
31272 2009-01-15  Bruno Haible  <bruno@clisp.org>
31273
31274         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31275         * tests/test-fflush2.c (ASSERT): Always fail.
31276         (main): Add two tests for fflush() after ungetc(), taking into account
31277         the Austin Group's clarification.
31278         Suggested by Eric Blake.
31279
31280 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31281
31282         mktime.m4: remove K&R-style function prototypes
31283         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31284         for the Sun C++ compiler.
31285
31286 2009-01-14  Bruno Haible  <bruno@clisp.org>
31287
31288         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31289         while including <wchar.h>.
31290         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31291         the system's <wchar.h> file.
31292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31293
31294 2009-01-14  Bruno Haible  <bruno@clisp.org>
31295
31296         * m4/csharp.m4: Don't mention gettext on the serial number line.
31297         * m4/csharpexec.m4: Likewise.
31298         * m4/eaccess.m4: Likewise.
31299         * m4/javaexec.m4: Likewise.
31300         * m4/sig_atomic_t.m4: Likewise.
31301         * m4/tmpdir.m4: Likewise.
31302         * m4/intldir.m4: Bump gettext version.
31303         * m4/lib-ld.m4: Likewise.
31304
31305 2009-01-14  Bruno Haible  <bruno@clisp.org>
31306
31307         * lib/progname.c (set_program_name): Add more comments.
31308         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31309
31310 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31311
31312         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31313         were sys/stat.h does not define it.
31314
31315 2009-01-14  Jim Meyering  <meyering@redhat.com>
31316
31317         many *.m4 files: improve m4 quoting
31318         99% of this change was performed by running the following commands:
31319         git ls-files | grep '\.m4$' | xargs perl -pi \
31320           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31321           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31322           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31323           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31324         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31325         The remainder were to add Copyright dates, increment serial numbers,
31326         undo some changes in comments, exclude m4/intl.m4, and add quotes
31327         around the "1" in ",1" where the unusual spacing prohibited the
31328         above regexps from doing the job.  For more details, see
31329         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31330         * m4/acl.m4: Modified.
31331         * m4/afs.m4: Likewise.
31332         * m4/alloca.m4: Likewise.
31333         * m4/argp.m4: Likewise.
31334         * m4/argz.m4: Likewise.
31335         * m4/atexit.m4: Likewise.
31336         * m4/bison-i18n.m4: Likewise.
31337         * m4/bison.m4: Likewise.
31338         * m4/byteswap.m4: Likewise.
31339         * m4/c-stack.m4: Likewise.
31340         * m4/c-strtod.m4: Likewise.
31341         * m4/calloc.m4: Likewise.
31342         * m4/canonicalize-lgpl.m4: Likewise.
31343         * m4/chown.m4: Likewise.
31344         * m4/clock_time.m4: Likewise.
31345         * m4/codeset.m4: Likewise.
31346         * m4/copy-file.m4: Likewise.
31347         * m4/csharp.m4: Likewise.
31348         * m4/csharpcomp.m4: Likewise.
31349         * m4/csharpexec.m4: Likewise.
31350         * m4/d-ino.m4: Likewise.
31351         * m4/d-type.m4: Likewise.
31352         * m4/dirfd.m4: Likewise.
31353         * m4/double-slash-root.m4: Likewise.
31354         * m4/eaccess.m4: Likewise.
31355         * m4/eealloc.m4: Likewise.
31356         * m4/environ.m4: Likewise.
31357         * m4/errno_h.m4: Likewise.
31358         * m4/euidaccess.m4: Likewise.
31359         * m4/execute.m4: Likewise.
31360         * m4/fatal-signal.m4: Likewise.
31361         * m4/fchdir.m4: Likewise.
31362         * m4/fcntl_h.m4: Likewise.
31363         * m4/fileblocks.m4: Likewise.
31364         * m4/filenamecat.m4: Likewise.
31365         * m4/findprog.m4: Likewise.
31366         * m4/flexmember.m4: Likewise.
31367         * m4/fnmatch.m4: Likewise.
31368         * m4/fopen.m4: Likewise.
31369         * m4/fpending.m4: Likewise.
31370         * m4/fprintf-posix.m4: Likewise.
31371         * m4/free.m4: Likewise.
31372         * m4/frexp.m4: Likewise.
31373         * m4/frexpl.m4: Likewise.
31374         * m4/fsusage.m4: Likewise.
31375         * m4/ftruncate.m4: Likewise.
31376         * m4/gc-camellia.m4: Likewise.
31377         * m4/gc-random.m4: Likewise.
31378         * m4/gc.m4: Likewise.
31379         * m4/getaddrinfo.m4: Likewise.
31380         * m4/getcwd-abort-bug.m4: Likewise.
31381         * m4/getcwd-path-max.m4: Likewise.
31382         * m4/getdate.m4: Likewise.
31383         * m4/getdomainname.m4: Likewise.
31384         * m4/getgroups.m4: Likewise.
31385         * m4/gethostname.m4: Likewise.
31386         * m4/gethrxtime.m4: Likewise.
31387         * m4/getline.m4: Likewise.
31388         * m4/getloadavg.m4: Likewise.
31389         * m4/getndelim2.m4: Likewise.
31390         * m4/getpass.m4: Likewise.
31391         * m4/gettext.m4: Likewise.
31392         * m4/gettime.m4: Likewise.
31393         * m4/gettimeofday.m4: Likewise.
31394         * m4/gnulib-common.m4: Likewise.
31395         * m4/group-member.m4: Likewise.
31396         * m4/host-os.m4: Likewise.
31397         * m4/iconv.m4: Likewise.
31398         * m4/iconv_open.m4: Likewise.
31399         * m4/inet_ntop.m4: Likewise.
31400         * m4/inet_pton.m4: Likewise.
31401         * m4/inline.m4: Likewise.
31402         * m4/intldir.m4: Likewise.
31403         * m4/intlmacosx.m4: Likewise.
31404         * m4/intmax.m4: Likewise.
31405         * m4/intmax_t.m4: Likewise.
31406         * m4/inttypes.m4: Likewise.
31407         * m4/inttypes_h.m4: Likewise.
31408         * m4/inttypes-pri.m4: Likewise.
31409         * m4/isapipe.m4: Likewise.
31410         * m4/isnand.m4: Likewise.
31411         * m4/isnanf.m4: Likewise.
31412         * m4/isnanl.m4: Likewise.
31413         * m4/javacomp.m4: Likewise.
31414         * m4/javaexec.m4: Likewise.
31415         * m4/jm-winsz1.m4: Likewise.
31416         * m4/jm-winsz2.m4: Likewise.
31417         * m4/lchown.m4: Likewise.
31418         * m4/lcmessage.m4: Likewise.
31419         * m4/ldexpl.m4: Likewise.
31420         * m4/lib-ld.m4: Likewise.
31421         * m4/lib-link.m4: Likewise.
31422         * m4/libsigsegv.m4: Likewise.
31423         * m4/link-follow.m4: Likewise.
31424         * m4/localcharset.m4: Likewise.
31425         * m4/locale-fr.m4: Likewise.
31426         * m4/locale-ja.m4: Likewise.
31427         * m4/locale-tr.m4: Likewise.
31428         * m4/locale-zh.m4: Likewise.
31429         * m4/lock.m4: Likewise.
31430         * m4/longlong.m4: Likewise.
31431         * m4/ls-mntd-fs.m4: Likewise.
31432         * m4/lstat.m4: Likewise.
31433         * m4/malloc.m4: Likewise.
31434         * m4/mathl.m4: Likewise.
31435         * m4/mbrtowc.m4: Likewise.
31436         * m4/mbstate_t.m4: Likewise.
31437         * m4/mbswidth.m4: Likewise.
31438         * m4/memchr.m4: Likewise.
31439         * m4/memcmp.m4: Likewise.
31440         * m4/memcpy.m4: Likewise.
31441         * m4/memmem.m4: Likewise.
31442         * m4/memmove.m4: Likewise.
31443         * m4/mempcpy.m4: Likewise.
31444         * m4/memrchr.m4: Likewise.
31445         * m4/memset.m4: Likewise.
31446         * m4/minmax.m4: Likewise.
31447         * m4/mkdir-slash.m4: Likewise.
31448         * m4/mkdtemp.m4: Likewise.
31449         * m4/mktime.m4: Likewise.
31450         * m4/mmap-anon.m4: Likewise.
31451         * m4/mountlist.m4: Likewise.
31452         * m4/nanosleep.m4: Likewise.
31453         * m4/nls.m4: Likewise.
31454         * m4/nocrash.m4: Likewise.
31455         * m4/open.m4: Likewise.
31456         * m4/openat.m4: Likewise.
31457         * m4/openmp.m4: Likewise.
31458         * m4/pathmax.m4: Likewise.
31459         * m4/perl.m4: Likewise.
31460         * m4/physmem.m4: Likewise.
31461         * m4/pipe.m4: Likewise.
31462         * m4/po.m4: Likewise.
31463         * m4/poll.m4: Likewise.
31464         * m4/posixtm.m4: Likewise.
31465         * m4/posixver.m4: Likewise.
31466         * m4/printf-frexp.m4: Likewise.
31467         * m4/printf-frexpl.m4: Likewise.
31468         * m4/printf-posix.m4: Likewise.
31469         * m4/printf-posix-rpl.m4: Likewise.
31470         * m4/printf.m4: Likewise.
31471         * m4/progtest.m4: Likewise.
31472         * m4/putenv.m4: Likewise.
31473         * m4/readline.m4: Likewise.
31474         * m4/readlink.m4: Likewise.
31475         * m4/readutmp.m4: Likewise.
31476         * m4/realloc.m4: Likewise.
31477         * m4/regex.m4: Likewise.
31478         * m4/relocatable.m4: Likewise.
31479         * m4/relocatable-lib.m4: Likewise.
31480         * m4/rename-dest-slash.m4: Likewise.
31481         * m4/rename.m4: Likewise.
31482         * m4/rmdir-errno.m4: Likewise.
31483         * m4/rmdir.m4: Likewise.
31484         * m4/roundf.m4: Likewise.
31485         * m4/roundl.m4: Likewise.
31486         * m4/rpmatch.m4: Likewise.
31487         * m4/save-cwd.m4: Likewise.
31488         * m4/selinux-selinux-h.m4: Likewise.
31489         * m4/setenv.m4: Likewise.
31490         * m4/settime.m4: Likewise.
31491         * m4/sig2str.m4: Likewise.
31492         * m4/sig_atomic_t.m4: Likewise.
31493         * m4/signalblocking.m4: Likewise.
31494         * m4/signbit.m4: Likewise.
31495         * m4/sigpipe.m4: Likewise.
31496         * m4/sockets.m4: Likewise.
31497         * m4/sockpfaf.m4: Likewise.
31498         * m4/st_dm_mode.m4: Likewise.
31499         * m4/stat-time.m4: Likewise.
31500         * m4/stdbool.m4: Likewise.
31501         * m4/stdint.m4: Likewise.
31502         * m4/stdint_h.m4: Likewise.
31503         * m4/stpcpy.m4: Likewise.
31504         * m4/stpncpy.m4: Likewise.
31505         * m4/strcase.m4: Likewise.
31506         * m4/strchrnul.m4: Likewise.
31507         * m4/strcspn.m4: Likewise.
31508         * m4/strdup.m4: Likewise.
31509         * m4/strftime.m4: Likewise.
31510         * m4/strndup.m4: Likewise.
31511         * m4/strnlen.m4: Likewise.
31512         * m4/strpbrk.m4: Likewise.
31513         * m4/strptime.m4: Likewise.
31514         * m4/strsep.m4: Likewise.
31515         * m4/strtod.m4: Likewise.
31516         * m4/strtoimax.m4: Likewise.
31517         * m4/strtok_r.m4: Likewise.
31518         * m4/strtol.m4: Likewise.
31519         * m4/strtoll.m4: Likewise.
31520         * m4/strtoul.m4: Likewise.
31521         * m4/strtoull.m4: Likewise.
31522         * m4/strtoumax.m4: Likewise.
31523         * m4/strverscmp.m4: Likewise.
31524         * m4/threadlib.m4: Likewise.
31525         * m4/timegm.m4: Likewise.
31526         * m4/tm_gmtoff.m4: Likewise.
31527         * m4/tmpdir.m4: Likewise.
31528         * m4/tmpfile.m4: Likewise.
31529         * m4/tzset.m4: Likewise.
31530         * m4/uintmax_t.m4: Likewise.
31531         * m4/unlinkdir.m4: Likewise.
31532         * m4/unlocked-io.m4: Likewise.
31533         * m4/uptime.m4: Likewise.
31534         * m4/userspec.m4: Likewise.
31535         * m4/utimbuf.m4: Likewise.
31536         * m4/utime.m4: Likewise.
31537         * m4/utimes-null.m4: Likewise.
31538         * m4/utimes.m4: Likewise.
31539         * m4/vararrays.m4: Likewise.
31540         * m4/vasnprintf.m4: Likewise.
31541         * m4/vfprintf-posix.m4: Likewise.
31542         * m4/vprintf-posix.m4: Likewise.
31543         * m4/wait-process.m4: Likewise.
31544         * m4/wchar_t.m4: Likewise.
31545         * m4/wint_t.m4: Likewise.
31546         * m4/write-any-file.m4: Likewise.
31547         * m4/yield.m4: Likewise.
31548
31549 2009-01-13  Bruno Haible  <bruno@clisp.org>
31550
31551         Avoid test-copy-file.sh failures when ACL support insufficient.
31552         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31553         TESTS_ENVIRONMENT.
31554         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31555         Reported by Jim Meyering.
31556
31557 2009-01-13  Bruno Haible  <bruno@clisp.org>
31558
31559         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31560         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31561         * modules/unistdio/u8-printf-parse (Files): Likewise.
31562         * modules/unistdio/u32-printf-parse (Files): Likewise.
31563         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31564
31565 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31566
31567         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31568         and m4/inttypes_h.m4 too.
31569
31570 2009-01-12  Eric Blake  <ebb9@byu.net>
31571
31572         tests: IRIX 6.2 cc can't compile -0.0 into .data
31573         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31574         rather than at compile-time.
31575         * tests/test-floorl.c (minus_zero): Likewise.
31576         * tests/test-frexpl.c (minus_zero): Likewise.
31577         * tests/test-isnan.c (minus_zerol): Likewise.
31578         * tests/test-isnanl.h (minus_zero): Likewise.
31579         * tests/test-ldexpl.c (minus_zero): Likewise.
31580         * tests/test-roundl.c (minus_zero): Likewise.
31581         * tests/test-signbit.c (minus_zerol): Likewise.
31582         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31583         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31584         * tests/test-truncl.c (minus_zero): Likewise.
31585         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31586         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31587         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31588
31589 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31590
31591         regex: fix glibc bug 9697
31592         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31593         handling.
31594
31595 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31596
31597         regex: fix glibc bug 697
31598         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31599         being NULL also if there are no backreferences.
31600
31601 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31602
31603         regex: merge glibc changes
31604         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31605         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31606         re_string_skip_chars, re_string_reconstruct): Likewise.
31607         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31608
31609 2009-01-07  Jim Meyering  <meyering@redhat.com>
31610
31611         poll: filter through cppi
31612         * lib/poll.c: Indent cpp directives to reflect nesting.
31613
31614 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31615
31616         poll: don't return uninitialized
31617         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31618
31619 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31620
31621         avoid compile failure on AIX 6.1
31622         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31623         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31624
31625 2009-01-04  Jim Meyering  <meyering@redhat.com>
31626
31627         remove duplicate inclusion of <stdio.h>
31628         * tests/test-fprintf-posix.c: Likewise.
31629         * tests/test-printf-posix.c: Likewise.
31630         * tests/test-snprintf-posix.c: Likewise.
31631         * tests/test-sprintf-posix.c: Likewise.
31632         * tests/test-vasprintf-posix.c: Likewise.
31633         * tests/test-vfprintf-posix.c: Likewise.
31634         * tests/test-vprintf-posix.c: Likewise.
31635         * tests/test-vsnprintf-posix.c: Likewise.
31636         * tests/test-vsprintf-posix.c: Likewise.
31637
31638 2009-01-03  Jim Meyering  <meyering@redhat.com>
31639
31640         gnulib-tool: fix sed-based filtering
31641         * gnulib-tool (func_filter_filelist): Remove extra backslash
31642         in sed_fff_filter definition.
31643
31644 2009-01-02  Jim Meyering  <meyering@redhat.com>
31645
31646         strftime: avoid compilation failure on Solaris 2.6
31647         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31648         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31649         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31650         be available.  Reported by Tom G. Christensen.  Details in
31651         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31652
31653 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31654             Bruno Haible  <bruno@clisp.org>
31655
31656         Speed up gnulib-tool by doing more string processing through shell
31657         built-ins.
31658         * gnulib-tool (fast_func_append): New variable.
31659         (func_remove_prefix, func_remove_suffix): New functions.
31660         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31661         (func_filter_filelist): New function.
31662         (func_get_dependencies): Use func_remove_suffix instead of sed.
31663         (func_get_automake_snippet): Use func_filter_filelist instead of a
31664         subshell and sed invocation.
31665
31666 2009-01-01  Bruno Haible  <bruno@clisp.org>
31667
31668         Fix a security bug.
31669         * gnulib-tool (func_import, import, update): Don't allow the characters
31670         '"', '$', '`', '\' in macro arguments that become part of commands that
31671         are evaluated.
31672
31673 2009-01-01  Bruno Haible  <bruno@clisp.org>
31674
31675         * gnulib-tool (func_reset_sigpipe): Add more comments.
31676
31677 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31678
31679         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31680         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31681         already know the answer.
31682
31683 2009-01-01  Jim Meyering  <meyering@redhat.com>
31684
31685         * lib/version-etc.c (version_etc_va): Update copyright year.
31686
31687 2008-12-30  Bruno Haible  <bruno@clisp.org>
31688
31689         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31690         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31691         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31692
31693 2008-12-29  Eric Blake  <ebb9@byu.net>
31694
31695         multiarch: avoid autoconf AC_REQUIRE bug
31696         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31697         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31698         2.63 and older.
31699         Reported by Bruno Haible, and analyzed in
31700         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31701
31702 2008-12-29  Bruno Haible  <bruno@clisp.org>
31703
31704         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31705         files in subdirectories correctly.
31706         Reported by Ralf Wildenhues.
31707
31708 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31709
31710         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31711         rather than 'join FILE -', for Solaris join.
31712
31713 2008-12-29  Bruno Haible  <bruno@clisp.org>
31714
31715         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31716         quoting.
31717         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31718         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31719         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31720         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31721         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31722         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31723         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31724         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31725         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31726         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31727         * m4/nls.m4 (AM_NLS): Likewise.
31728         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31729         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31730         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31731         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31732         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31733         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31734         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31735         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31736         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31737         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31738         * m4/xsize.m4 (gl_XSIZE): Likewise.
31739         Suggested by Jim Meyering.
31740
31741 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31742
31743         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31744         * lib/parse-duration.c: use a switch instead of cascading if's.
31745
31746 2008-12-29  Eric Blake  <ebb9@byu.net>
31747
31748         wchar.h: supply WEOF on Irix 5.3
31749         * lib/wchar.in.h (wint_t): Also supply WEOF.
31750         * lib/wctype.in.h (wint_t): Likewise.
31751         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31752         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31753         Reported by Tom G. Christensen.
31754
31755 2008-12-26  Bruno Haible  <bruno@clisp.org>
31756
31757         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31758         i486, i586, i686.
31759
31760 2008-12-26  Bruno Haible  <bruno@clisp.org>
31761
31762         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31763
31764 2008-12-26  Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31767         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31768         not __STDC_CONSTANT_MACROS.
31769         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31770
31771 2008-12-25  Bruno Haible  <bruno@clisp.org>
31772
31773         Add support for universal builds to vasnprintf.
31774         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31775         universal builds, guess no.
31776         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31777         * modules/vasprintf-posix (Depends-on): Likewise.
31778         * modules/fprintf-posix (Depends-on): Likewise.
31779         * modules/vfprintf-posix (Depends-on): Likewise.
31780         * modules/snprintf-posix (Depends-on): Likewise.
31781         * modules/vsnprintf-posix (Depends-on): Likewise.
31782         * modules/sprintf-posix (Depends-on): Likewise.
31783         * modules/vsprintf-posix (Depends-on): Likewise.
31784         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31785         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31786         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31787         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31788         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31789         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31790         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31791
31792         Add support for universal builds to <inttypes.h>.
31793         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31794         _SCNu64_PREFIX): In Apple
31795         universal builds, define directly, using _LP64.
31796         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31797         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31798         * modules/inttypes (Depends-on): Add multiarch.
31799         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31800
31801         Add support for universal builds to <stdint.h>.
31802         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31803         universal builds, define directly, using _LP64.
31804         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31805         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31806         and size_t.
31807         * modules/stdint (Depends-on): Add multiarch.
31808         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31809
31810         New module 'multiarch'.
31811         * modules/multiarch: New file.
31812         * m4/multiarch.m4: New file.
31813
31814 2008-12-25  Bruno Haible  <bruno@clisp.org>
31815
31816         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31817
31818 2008-12-25  Bruno Haible  <bruno@clisp.org>
31819
31820         * modules/btowc (License): Relicense under LGPLv2+.
31821         * modules/mbsinit (License): Likewise.
31822         * modules/mbrtowc (License): Likewise.
31823         * modules/wcrtomb (License): Likewise.
31824         * modules/streq (License): Likewise.
31825         Reported by David Lutterkort <lutter@redhat.com>.
31826
31827 2008-12-23  Bruno Haible  <bruno@clisp.org>
31828
31829         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31830
31831 2008-12-23  Bruno Haible  <bruno@clisp.org>
31832
31833         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31834         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31835         GETADDRINFO_LIB, not in LIBS.
31836         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31837         * modules/canon-host (Link): Likewise.
31838         * NEWS: Mention the change.
31839         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31840         GETADDRINFO_LIB.
31841
31842 2008-12-22  Bruno Haible  <bruno@clisp.org>
31843
31844         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31845         * doc/posix-functions/iswalpha_l.texi: Likewise.
31846         * doc/posix-functions/iswblank_l.texi: Likewise.
31847         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31848         * doc/posix-functions/iswctype_l.texi: Likewise.
31849         * doc/posix-functions/iswdigit_l.texi: Likewise.
31850         * doc/posix-functions/iswgraph_l.texi: Likewise.
31851         * doc/posix-functions/iswlower_l.texi: Likewise.
31852         * doc/posix-functions/iswprint_l.texi: Likewise.
31853         * doc/posix-functions/iswpunct_l.texi: Likewise.
31854         * doc/posix-functions/iswspace_l.texi: Likewise.
31855         * doc/posix-functions/iswupper_l.texi: Likewise.
31856         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31857         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31858         * doc/posix-functions/open_wmemstream.texi: Likewise.
31859         * doc/posix-functions/swscanf.texi: Likewise.
31860         * doc/posix-functions/towctrans_l.texi: Likewise.
31861         * doc/posix-functions/towlower.texi: Likewise.
31862         * doc/posix-functions/towlower_l.texi: Likewise.
31863         * doc/posix-functions/towupper.texi: Likewise.
31864         * doc/posix-functions/towupper_l.texi: Likewise.
31865         * doc/posix-functions/vfwprintf.texi: Likewise.
31866         * doc/posix-functions/vfwscanf.texi: Likewise.
31867         * doc/posix-functions/vswscanf.texi: Likewise.
31868         * doc/posix-functions/vwprintf.texi: Likewise.
31869         * doc/posix-functions/vwscanf.texi: Likewise.
31870         * doc/posix-functions/wcpcpy.texi: Likewise.
31871         * doc/posix-functions/wcpncpy.texi: Likewise.
31872         * doc/posix-functions/wcscasecmp.texi: Likewise.
31873         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31874         * doc/posix-functions/wcscoll_l.texi: Likewise.
31875         * doc/posix-functions/wcsdup.texi: Likewise.
31876         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31877         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31878         * doc/posix-functions/wcsnlen.texi: Likewise.
31879         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31880         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31881         * doc/posix-functions/wctrans_l.texi: Likewise.
31882         * doc/posix-functions/wctype_l.texi: Likewise.
31883         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31884         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31885         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31886         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31887         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31888         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31889         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31890         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31891         * doc/glibc-functions/wcschrnul.texi: Likewise.
31892         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31893         * doc/glibc-functions/wcstod_l.texi: Likewise.
31894         * doc/glibc-functions/wcstof_l.texi: Likewise.
31895         * doc/glibc-functions/wcstol_l.texi: Likewise.
31896         * doc/glibc-functions/wcstold_l.texi: Likewise.
31897         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31898         * doc/glibc-functions/wcstoq.texi: Likewise.
31899         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31900         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31901         * doc/glibc-functions/wcstouq.texi: Likewise.
31902         * doc/glibc-functions/wmempcpy.texi: Likewise.
31903
31904 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31905             Eric Blake  <ebb9@byu.net>
31906             Paolo Bonzini  <bonzini@gnu.org>
31907             Bruno Haible  <bruno@clisp.org>
31908
31909         Make c-stack work on Haiku.
31910         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31911         (c_stack_action): Use SA_ONSTACK flag.
31912
31913 2008-12-22  Bruno Haible  <bruno@clisp.org>
31914
31915         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31916
31917 2008-12-22  Bruno Haible  <bruno@clisp.org>
31918
31919         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31920         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31921         being overridden.
31922         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31923         New macros.
31924         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31926         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31927         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31928
31929 2008-12-22  Bruno Haible  <bruno@clisp.org>
31930
31931         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31932         from test code.
31933
31934 2008-12-22  Eric Blake  <ebb9@byu.net>
31935
31936         Avoid gcc warnings on cygwin.
31937         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31938         Avoid unused variable.
31939         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31940         Likewise.
31941
31942 2008-12-22  Bruno Haible  <bruno@clisp.org>
31943
31944         Remove HAVE_MBRTOWC conditionals.
31945         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31946         (mbscasecmp): Assume mbrtowc function.
31947         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31948         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31949         * lib/mbschr.c: Include mbuiter.h unconditionally.
31950         (mbschr): Assume mbrtowc function.
31951         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31952         (mbscspn): Assume mbrtowc function.
31953         * lib/mbslen.c: Include mbuiter.h unconditionally.
31954         (mbslen): Assume mbrtowc function.
31955         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31956         (mbsncasecmp): Assume mbrtowc function.
31957         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31958         (mbsnlen): Assume mbrtowc function.
31959         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31960         (mbspbrk): Assume mbrtowc function.
31961         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31962         (mbspcasecmp): Assume mbrtowc function.
31963         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31964         (mbsrchr): Assume mbrtowc function.
31965         * lib/mbssep.c: Include mbuiter.h unconditionally.
31966         (mbssep): Assume mbrtowc function.
31967         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31968         (mbsspn): Assume mbrtowc function.
31969         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31970         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31971         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31972         (mbstok_r): Assume mbrtowc function.
31973         * lib/propername.c: Include mbuiter.h unconditionally.
31974         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31975         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31976         (trim2): Assume mbrtowc function.
31977         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31978         (mbsnwidth): Assume mbrtowc function.
31979         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31980         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31981         fallback definitions.
31982         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31983
31984 2008-12-22  Bruno Haible  <bruno@clisp.org>
31985
31986         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31987
31988 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31989
31990         * modules/regex: Request emulations for the mb*/wc* functions we need.
31991         * m4/regex.m4: Don't look for those functions here.
31992         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31993
31994 2008-12-22  Bruno Haible  <bruno@clisp.org>
31995
31996         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31997
31998 2008-12-21  Bruno Haible  <bruno@clisp.org>
31999
32000         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32001         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32002         (Include): Remove conditionalization.
32003         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32004         (Include): Remove conditionalization.
32005         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32006         (Include): Remove conditionalization.
32007         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32008         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32009         * NEWS: Mention the change.
32010         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32011         via Sergey Poznyakoff <gray@gnu.org.ua>.
32012
32013 2008-12-21  Bruno Haible  <bruno@clisp.org>
32014
32015         * MODULES.html.sh (Extended multibyte and wide character utilities
32016         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32017         wcrtomb, wcsrtombs.
32018         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32019         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32020         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32021         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32022
32023 2008-12-21  Bruno Haible  <bruno@clisp.org>
32024
32025         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32026
32027 2008-12-21  Bruno Haible  <bruno@clisp.org>
32028
32029         * modules/wcsnrtombs-tests: New file.
32030         * tests/test-wcsnrtombs1.sh: New file.
32031         * tests/test-wcsnrtombs2.sh: New file.
32032         * tests/test-wcsnrtombs3.sh: New file.
32033         * tests/test-wcsnrtombs4.sh: New file.
32034         * tests/test-wcsnrtombs.c: New file.
32035
32036         New module 'wcsnrtombs'.
32037         * lib/wchar.in.h (wcsnrtombs): New declaration.
32038         * lib/wcsnrtombs.c: New file.
32039         * lib/wcsrtombs-state.c: New file.
32040         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32041         (internal_state): Remove variable.
32042         * m4/wcsnrtombs.m4: New file.
32043         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32044         compilation units.
32045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32046         HAVE_WCSNRTOMBS.
32047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32048         HAVE_WCSNRTOMBS.
32049         * modules/wcsnrtombs: New file.
32050         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32051         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32052
32053 2008-12-21  Bruno Haible  <bruno@clisp.org>
32054
32055         * modules/wcsrtombs-tests: New file.
32056         * tests/test-wcsrtombs1.sh: New file.
32057         * tests/test-wcsrtombs2.sh: New file.
32058         * tests/test-wcsrtombs3.sh: New file.
32059         * tests/test-wcsrtombs4.sh: New file.
32060         * tests/test-wcsrtombs.c: New file.
32061
32062         New module 'wcsrtombs'.
32063         * lib/wchar.in.h (wcsrtombs): New declaration.
32064         * lib/wcsrtombs.c: New file.
32065         * m4/wcsrtombs.m4: New file.
32066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32067         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32068         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32069         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32070         * modules/wcsrtombs: New file.
32071         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32072         bugs.
32073
32074 2008-12-21  Bruno Haible  <bruno@clisp.org>
32075
32076         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32077         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32078         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32079         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32080         if not correct.
32081         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32082         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32083         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32084         m4/locale-zh.m4, m4/codeset.m4.
32085         * doc/posix-functions/wcrtomb.texi: Document the bug.
32086
32087 2008-12-21  Bruno Haible  <bruno@clisp.org>
32088
32089         Work around a btowc() bug on IRIX 6.5.
32090         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32091         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32092         REPLACE_WTOBC if not.
32093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32094         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32095         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32096
32097 2008-12-21  Bruno Haible  <bruno@clisp.org>
32098
32099         * modules/wcrtomb-tests: New file.
32100         * tests/test-wcrtomb.sh: New file.
32101         * tests/test-wcrtomb.c: New file.
32102
32103         New module 'wcrtomb'.
32104         * lib/wchar.in.h (wcrtomb): New declaration.
32105         * lib/wcrtomb.c: New file.
32106         * m4/wcrtomb.m4: New file.
32107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32108         HAVE_WCRTOMB.
32109         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32110         HAVE_WCRTOMB.
32111         * modules/wcrtomb: New file.
32112         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32113
32114 2008-12-21  Bruno Haible  <bruno@clisp.org>
32115
32116         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32117         * modules/mbsrtowcs (Files): Likewise.
32118         * modules/wctob (Files): Likewise.
32119         * modules/c-strcase-tests (Files): Likewise.
32120         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32121         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32122         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32123         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32124         * modules/vasnprintf-posix-tests (Files): Likewise.
32125
32126 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32127
32128         gitlog-to-changelog: pass all command-line arguments to git-log
32129         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32130         it is sometimes convenient to filter the commits in various ways.
32131         gitlog-to-changelog only allows --since to specify a start date,
32132         but git-log itself supports many other filtering mechanisms.
32133         At the moment, I want to filter by branch name.  Rather than
32134         adding a --branch option to gitlog-to-changelog, it seems more
32135         flexible to simply pass all options directly to git-log and let
32136         git do the work.  Notice that this effectively makes --since a
32137         redundant option for gitlog-to-changelog, but removing it would
32138         require current usage to change since calls would then require
32139         an additional '--'.
32140
32141 2008-12-21  Bruno Haible  <bruno@clisp.org>
32142
32143         * modules/mbsnrtowcs-tests: New file.
32144         * tests/test-mbsnrtowcs1.sh: New file.
32145         * tests/test-mbsnrtowcs2.sh: New file.
32146         * tests/test-mbsnrtowcs3.sh: New file.
32147         * tests/test-mbsnrtowcs4.sh: New file.
32148         * tests/test-mbsnrtowcs.c: New file.
32149
32150         New module 'mbsnrtowcs'.
32151         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32152         * lib/mbsnrtowcs.c: New file.
32153         * lib/mbsrtowcs-state.c: New file.
32154         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32155         (internal_state): Remove variable.
32156         * m4/mbsnrtowcs.m4: New file.
32157         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32158         compilation units.
32159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32160         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32161         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32162         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32163         * modules/mbsnrtowcs: New file.
32164         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32165         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32166         portability problem.
32167
32168 2008-12-21  Bruno Haible  <bruno@clisp.org>
32169
32170         Work around mbsrtowcs bug.
32171         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32172         (gl_FUNC_MBSRTOWCS): Invoke it.
32173         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32174         m4/locale-zh.m4.
32175         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32176
32177 2008-12-21  Bruno Haible  <bruno@clisp.org>
32178
32179         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32180
32181 2008-12-21  Bruno Haible  <bruno@clisp.org>
32182
32183         Update doc for AIX.
32184         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32185         16-bit wchar_t type.
32186         * doc/posix-functions/btowc.texi: Likewise.
32187         * doc/posix-functions/fgetwc.texi: Likewise.
32188         * doc/posix-functions/fgetws.texi: Likewise.
32189         * doc/posix-functions/fputwc.texi: Likewise.
32190         * doc/posix-functions/fputws.texi: Likewise.
32191         * doc/posix-functions/fwide.texi: Likewise.
32192         * doc/posix-functions/fwprintf.texi: Likewise.
32193         * doc/posix-functions/fwscanf.texi: Likewise.
32194         * doc/posix-functions/getwchar.texi: Likewise.
32195         * doc/posix-functions/getwc.texi: Likewise.
32196         * doc/posix-functions/iswalnum.texi: Likewise.
32197         * doc/posix-functions/iswalpha.texi: Likewise.
32198         * doc/posix-functions/iswblank.texi: Likewise.
32199         * doc/posix-functions/iswcntrl.texi: Likewise.
32200         * doc/posix-functions/iswctype.texi: Likewise.
32201         * doc/posix-functions/iswdigit.texi: Likewise.
32202         * doc/posix-functions/iswgraph.texi: Likewise.
32203         * doc/posix-functions/iswlower.texi: Likewise.
32204         * doc/posix-functions/iswprint.texi: Likewise.
32205         * doc/posix-functions/iswpunct.texi: Likewise.
32206         * doc/posix-functions/iswspace.texi: Likewise.
32207         * doc/posix-functions/iswupper.texi: Likewise.
32208         * doc/posix-functions/iswxdigit.texi: Likewise.
32209         * doc/posix-functions/mbrtowc.texi: Likewise.
32210         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32211         * doc/posix-functions/mbstowcs.texi: Likewise.
32212         * doc/posix-functions/mbtowc.texi: Likewise.
32213         * doc/posix-functions/putwchar.texi: Likewise.
32214         * doc/posix-functions/putwc.texi: Likewise.
32215         * doc/posix-functions/swprintf.texi: Likewise.
32216         * doc/posix-functions/tolower.texi: Likewise.
32217         * doc/posix-functions/toupper.texi: Likewise.
32218         * doc/posix-functions/towctrans.texi: Likewise.
32219         * doc/posix-functions/ungetwc.texi: Likewise.
32220         * doc/posix-functions/vswprintf.texi: Likewise.
32221         * doc/posix-functions/wcrtomb.texi: Likewise.
32222         * doc/posix-functions/wcscat.texi: Likewise.
32223         * doc/posix-functions/wcschr.texi: Likewise.
32224         * doc/posix-functions/wcscmp.texi: Likewise.
32225         * doc/posix-functions/wcscoll.texi: Likewise.
32226         * doc/posix-functions/wcscpy.texi: Likewise.
32227         * doc/posix-functions/wcscspn.texi: Likewise.
32228         * doc/posix-functions/wcsftime.texi: Likewise.
32229         * doc/posix-functions/wcslen.texi: Likewise.
32230         * doc/posix-functions/wcsncat.texi: Likewise.
32231         * doc/posix-functions/wcsncmp.texi: Likewise.
32232         * doc/posix-functions/wcsncpy.texi: Likewise.
32233         * doc/posix-functions/wcspbrk.texi: Likewise.
32234         * doc/posix-functions/wcsrchr.texi: Likewise.
32235         * doc/posix-functions/wcsrtombs.texi: Likewise.
32236         * doc/posix-functions/wcsspn.texi: Likewise.
32237         * doc/posix-functions/wcsstr.texi: Likewise.
32238         * doc/posix-functions/wcstod.texi: Likewise.
32239         * doc/posix-functions/wcstof.texi: Likewise.
32240         * doc/posix-functions/wcstoimax.texi: Likewise.
32241         * doc/posix-functions/wcstok.texi: Likewise.
32242         * doc/posix-functions/wcstold.texi: Likewise.
32243         * doc/posix-functions/wcstoll.texi: Likewise.
32244         * doc/posix-functions/wcstol.texi: Likewise.
32245         * doc/posix-functions/wcstombs.texi: Likewise.
32246         * doc/posix-functions/wcstoull.texi: Likewise.
32247         * doc/posix-functions/wcstoul.texi: Likewise.
32248         * doc/posix-functions/wcstoumax.texi: Likewise.
32249         * doc/posix-functions/wcswidth.texi: Likewise.
32250         * doc/posix-functions/wcsxfrm.texi: Likewise.
32251         * doc/posix-functions/wctob.texi: Likewise.
32252         * doc/posix-functions/wctomb.texi: Likewise.
32253         * doc/posix-functions/wctrans.texi: Likewise.
32254         * doc/posix-functions/wctype.texi: Likewise.
32255         * doc/posix-functions/wcwidth.texi: Likewise.
32256         * doc/posix-functions/wmemchr.texi: Likewise.
32257         * doc/posix-functions/wmemcmp.texi: Likewise.
32258         * doc/posix-functions/wmemcpy.texi: Likewise.
32259         * doc/posix-functions/wmemmove.texi: Likewise.
32260         * doc/posix-functions/wmemset.texi: Likewise.
32261         * doc/posix-functions/wprintf.texi: Likewise.
32262         * doc/posix-functions/wscanf.texi: Likewise.
32263
32264 2008-12-21  Bruno Haible  <bruno@clisp.org>
32265
32266         Update doc for HP-UX 11.11.
32267         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32268         in HP-UX version 11.00, not in all versions of HP-UX 11.
32269         * doc/posix-functions/fwide.texi: Likewise.
32270         * doc/posix-functions/fwprintf.texi: Likewise.
32271         * doc/posix-functions/fwscanf.texi: Likewise.
32272         * doc/posix-functions/inet_ntop.texi: Likewise.
32273         * doc/posix-functions/inet_pton.texi: Likewise.
32274         * doc/posix-functions/mbrlen.texi: Likewise.
32275         * doc/posix-functions/mbrtowc.texi: Likewise.
32276         * doc/posix-functions/mbsinit.texi: Likewise.
32277         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32278         * doc/posix-functions/swprintf.texi: Likewise.
32279         * doc/posix-functions/swscanf.texi: Likewise.
32280         * doc/posix-functions/towctrans.texi: Likewise.
32281         * doc/posix-functions/vfwprintf.texi: Likewise.
32282         * doc/posix-functions/vswprintf.texi: Likewise.
32283         * doc/posix-functions/vwprintf.texi: Likewise.
32284         * doc/posix-functions/wcrtomb.texi: Likewise.
32285         * doc/posix-functions/wcsrtombs.texi: Likewise.
32286         * doc/posix-functions/wcsstr.texi: Likewise.
32287         * doc/posix-functions/wctob.texi: Likewise.
32288         * doc/posix-functions/wctrans.texi: Likewise.
32289         * doc/posix-functions/wmemchr.texi: Likewise.
32290         * doc/posix-functions/wmemcmp.texi: Likewise.
32291         * doc/posix-functions/wmemcpy.texi: Likewise.
32292         * doc/posix-functions/wmemmove.texi: Likewise.
32293         * doc/posix-functions/wmemset.texi: Likewise.
32294         * doc/posix-functions/wprintf.texi: Likewise.
32295         * doc/posix-functions/wscanf.texi: Likewise.
32296
32297 2008-12-21  Bruno Haible  <bruno@clisp.org>
32298
32299         Work around a portability problem.
32300         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32301         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32302
32303 2008-12-20  Bruno Haible  <bruno@clisp.org>
32304
32305         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32306         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32307         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32309         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32310
32311         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32312         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32313         set.
32314         (GNULIB_defined_mbstate_t): New macro.
32315         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32316         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32317         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32318         reuses the system's mbrtowc function but works around the bugs.
32319         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32320         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32321         macros.
32322         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32323         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32324         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32325         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32326         REPLACE_MBSINIT if mbsinit needs to be overridden.
32327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32328         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32329         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32330         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32331         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32332         m4/locale-zh.m4.
32333         (Depends): Add mbsinit.
32334         * modules/mbsinit (Depends): Add mbrtowc.
32335         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32336
32337 2008-12-20  Bruno Haible  <bruno@clisp.org>
32338
32339         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32340         so that there are no conversion errors on AIX.
32341         * tests/test-mbsrtowcs.c (main): LIkewise.
32342
32343 2008-12-20  Bruno Haible  <bruno@clisp.org>
32344
32345         Work around wctob bug on Solaris <= 9.
32346         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32347         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32349         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32350         * modules/wctob (Files): Add m4/locale-fr.m4.
32351         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32352
32353 2008-12-20  Bruno Haible  <bruno@clisp.org>
32354
32355         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32356         /dev/null.
32357         * tests/test-select-in.sh: Likewise.
32358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32359
32360 2008-12-20  Bruno Haible  <bruno@clisp.org>
32361
32362         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32363         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32364         Cygwin 1.5.x.
32365
32366 2008-12-20  Bruno Haible  <bruno@clisp.org>
32367
32368         Ensure mbstate_t is defined on HP-UX 11.11.
32369         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32370         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32371         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32372         AC_USE_SYSTEM_EXTENSIONS.
32373         * modules/fnmatch (Depends-on): Add extensions.
32374         * modules/mbrlen (Depends-on): Likewise.
32375         * modules/mbrtowc (Depends-on): Likewise.
32376         * modules/mbsinit (Depends-on): Likewise.
32377         * modules/mbsrtowcs (Depends-on): Likewise.
32378         * modules/mbswidth (Depends-on): Likewise.
32379         * modules/quotearg (Depends-on): Likewise.
32380         * modules/strftime (Depends-on): Likewise.
32381
32382 2008-12-20  Bruno Haible  <bruno@clisp.org>
32383
32384         Ensure wctob is declared on IRIX 6.5.
32385         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32386         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32387         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32389         of HAVE_WCTOB.
32390         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32391         HAVE_WCTOB.
32392         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32393
32394 2008-12-19  Bruno Haible  <bruno@clisp.org>
32395
32396         * modules/mbsrtowcs-tests: New file.
32397         * tests/test-mbsrtowcs1.sh: New file.
32398         * tests/test-mbsrtowcs2.sh: New file.
32399         * tests/test-mbsrtowcs3.sh: New file.
32400         * tests/test-mbsrtowcs4.sh: New file.
32401         * tests/test-mbsrtowcs.c: New file.
32402
32403         New module 'mbsrtowcs'.
32404         * lib/wchar.in.h (mbsrtowcs): New declaration.
32405         * lib/mbsrtowcs.c: New file.
32406         * m4/mbsrtowcs.m4: New file.
32407         * modules/mbsrtowcs: New file.
32408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32409         HAVE_MBSRTOWCS.
32410         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32411         HAVE_MBSRTOWCS.
32412         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32413
32414 2008-12-19  Bruno Haible  <bruno@clisp.org>
32415
32416         New module 'mbrlen'.
32417         * lib/wchar.in.h (mbrlen): New declaration.
32418         * lib/mbrlen.c: New file.
32419         * m4/mbrlen.m4: New file.
32420         * modules/mbrlen: New file.
32421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32422         HAVE_MBRLEN.
32423         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32424         HAVE_MBRLEN.
32425         * doc/posix-functions/mbrlen.texi: Document the new module.
32426
32427 2008-12-19  Bruno Haible  <bruno@clisp.org>
32428
32429         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32430         * modules/mbrtowc (Depends-on): Add verify.
32431         Suggested by Paul Eggert.
32432
32433 2008-12-18  Bruno Haible  <bruno@clisp.org>
32434
32435         * modules/mbsinit-tests: New file.
32436         * tests/test-mbsinit.sh: New file.
32437         * tests/test-mbsinit.c: New file.
32438
32439 2008-12-18  Bruno Haible  <bruno@clisp.org>
32440
32441         * modules/mbrtowc-tests: New file.
32442         * tests/test-mbrtowc1.sh: New file.
32443         * tests/test-mbrtowc2.sh: New file.
32444         * tests/test-mbrtowc3.sh: New file.
32445         * tests/test-mbrtowc4.sh: New file.
32446         * tests/test-mbrtowc.c: New file.
32447
32448         New module 'mbrtowc'.
32449         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32450         mbsinit and mbrtowc.
32451         (mbrtowc): New declaration.
32452         * lib/mbrtowc.c: New file.
32453         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32454         * modules/mbrtowc: New file.
32455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32456         HAVE_MBRTOWC.
32457         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32458         HAVE_MBRTOWC.
32459         * doc/posix-functions/mbrtowc.texi: Document the new module.
32460
32461 2008-12-18  Bruno Haible  <bruno@clisp.org>
32462
32463         New module 'wctob'.
32464         * lib/wchar.in.h (wctob): New declaration.
32465         * lib/wctob.c: New file.
32466         * m4/wctob.m4: New file.
32467         * modules/wctob: New file.
32468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32469         HAVE_WCTOB.
32470         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32471         * doc/posix-functions/wctob.texi: Document the new module.
32472
32473 2008-12-18  Bruno Haible  <bruno@clisp.org>
32474
32475         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32476         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32477
32478 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32479
32480         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32481         G. Christensen" <tgc@jupiterrise.com>.
32482
32483         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32484         G. Christensen" <tgc@jupiterrise.com>.
32485
32486         * lib/flock.c: Need to include string.h.  Reported by "Tom
32487         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32488         <ebb9@byu.net>.
32489
32490 2008-12-18  Bruno Haible  <bruno@clisp.org>
32491
32492         * m4/locale-ja.m4: New file, from GNU gettext.
32493
32494 2008-12-17  Bruno Haible  <bruno@clisp.org>
32495
32496         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32497         Suggested by Eric Blake.
32498
32499 2008-12-17  Bruno Haible  <bruno@clisp.org>
32500
32501         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32502
32503 2008-12-17  Bruno Haible  <bruno@clisp.org>
32504
32505         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32506         * modules/mbsinit (Depends-on): Add verify.
32507         Suggested by Paul Eggert.
32508
32509 2008-12-17  Bruno Haible  <bruno@clisp.org>
32510
32511         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32512         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32513         gl_FUNC_MBRTOWC.
32514         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32515         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32516         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32517         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32518         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32519         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32520         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32521         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32522         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32523         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32524         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32525         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32526         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32527         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32528         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32529         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32530         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32531         * modules/trim (configure.ac): Likewise.
32532
32533 2008-12-17  Bruno Haible  <bruno@clisp.org>
32534
32535         * modules/btowc-tests: New file.
32536         * tests/test-btowc1.sh: New file.
32537         * tests/test-btowc2.sh: New file.
32538         * tests/test-btowc.c: New file.
32539
32540         New module 'btowc'.
32541         * lib/wchar.in.h (btowc): New declaration.
32542         * lib/btowc.c: New file.
32543         * m4/btowc.m4: New file.
32544         * modules/btowc: New file.
32545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32546         HAVE_BTOWC.
32547         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32548         * doc/posix-functions/btowc.texi: Document the new module.
32549
32550 2008-12-17  Bruno Haible  <bruno@clisp.org>
32551
32552         New module 'mbsinit'.
32553         * lib/wchar.in.h (mbsinit): New declaration.
32554         * lib/mbsinit.c: New file.
32555         * m4/mbsinit.m4: New file.
32556         * modules/mbsinit: New file.
32557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32558         HAVE_MBSINIT.
32559         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32560         HAVE_MBSINIT.
32561         * doc/posix-functions/mbsinit.texi: Document the new module.
32562
32563 2008-12-16  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/unistd.in.h: Add comment.
32566         * tests/test-environ.c: Don't include <stdlib.h>.
32567
32568 2008-12-16  Bruno Haible  <bruno@clisp.org>
32569
32570         * lib/parse-duration.h (parse_duration): Document return value
32571         convention.
32572         * lib/parse-duration.c: Include specification header first. Add
32573         comments.
32574         (_): Remove macro.
32575         (parse_year_month_day, parse_hour_minute_second): Move side effects
32576         outside of strchr call.
32577         (parse_non_iso8601): Move side effects outside of isspace call.
32578         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32579         call.
32580
32581 2008-12-16  Bruno Haible  <bruno@clisp.org>
32582
32583         * tests/test-parse-duration.sh: Produce no output when the test
32584         succeeds.
32585
32586 2008-12-16  Bruno Haible  <bruno@clisp.org>
32587
32588         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32589         expressions.
32590
32591 2008-12-15  Bruno Haible  <bruno@clisp.org>
32592
32593         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32594         * doc/glibc-functions/flistxattr.texi: Likewise.
32595         * doc/glibc-functions/fopencookie.texi: Likewise.
32596         * doc/glibc-functions/fremovexattr.texi: Likewise.
32597         * doc/glibc-functions/fsetxattr.texi: Likewise.
32598         * doc/glibc-functions/getxattr.texi: Likewise.
32599         * doc/glibc-functions/lgetxattr.texi: Likewise.
32600         * doc/glibc-functions/listxattr.texi: Likewise.
32601         * doc/glibc-functions/llistxattr.texi: Likewise.
32602         * doc/glibc-functions/lremovexattr.texi: Likewise.
32603         * doc/glibc-functions/lsetxattr.texi: Likewise.
32604         * doc/glibc-functions/removexattr.texi: Likewise.
32605         * doc/glibc-functions/setxattr.texi: Likewise.
32606         * doc/posix-functions/open_memstream.texi: Likewise.
32607
32608 2008-12-15  Eric Blake  <ebb9@byu.net>
32609
32610         Update doc for cygwin 1.7.
32611         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32612         functions.
32613         * doc/posix-functions/fchmodat.texi: Likewise.
32614         * doc/posix-functions/fchownat.texi: Likewise.
32615         * doc/posix-functions/fdopendir.texi: Likewise.
32616         * doc/posix-functions/fmemopen.texi: Likewise.
32617         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32618         * doc/posix-functions/fstatat.texi: Likewise.
32619         * doc/posix-functions/futimens.texi: Likewise.
32620         * doc/posix-functions/gai_strerror.texi: Likewise.
32621         * doc/posix-functions/getaddrinfo.texi: Likewise.
32622         * doc/posix-functions/getnameinfo.texi: Likewise.
32623         * doc/posix-functions/if_freenameindex.texi: Likewise.
32624         * doc/posix-functions/if_indextoname.texi: Likewise.
32625         * doc/posix-functions/if_nameindex.texi: Likewise.
32626         * doc/posix-functions/if_nametoindex.texi: Likewise.
32627         * doc/posix-functions/insque.texi: Likewise.
32628         * doc/posix-functions/linkat.texi: Likewise.
32629         * doc/posix-functions/llrint.texi: Likewise.
32630         * doc/posix-functions/llrintf.texi: Likewise.
32631         * doc/posix-functions/llrintl.texi: Likewise.
32632         * doc/posix-functions/lockf.texi: Likewise.
32633         * doc/posix-functions/lrintl.texi: Likewise.
32634         * doc/posix-functions/mkdirat.texi: Likewise.
32635         * doc/posix-functions/mkfifoat.texi: Likewise.
32636         * doc/posix-functions/mknodat.texi: Likewise.
32637         * doc/posix-functions/mq_close.texi: Likewise.
32638         * doc/posix-functions/mq_getattr.texi: Likewise.
32639         * doc/posix-functions/mq_notify.texi: Likewise.
32640         * doc/posix-functions/mq_open.texi: Likewise.
32641         * doc/posix-functions/mq_receive.texi: Likewise.
32642         * doc/posix-functions/mq_send.texi: Likewise.
32643         * doc/posix-functions/mq_setattr.texi: Likewise.
32644         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32645         * doc/posix-functions/mq_timedsend.texi: Likewise.
32646         * doc/posix-functions/mq_unlink.texi: Likewise.
32647         * doc/posix-functions/open_memstream.texi: Likewise.
32648         * doc/posix-functions/openat.texi: Likewise.
32649         * doc/posix-functions/posix_fadvise.texi: Likewise.
32650         * doc/posix-functions/posix_fallocate.texi: Likewise.
32651         * doc/posix-functions/posix_madvise.texi: Likewise.
32652         * doc/posix-functions/posix_memalign.texi: Likewise.
32653         * doc/posix-functions/posix_openpt.texi: Likewise.
32654         * doc/posix-functions/readlinkat.texi: Likewise.
32655         * doc/posix-functions/remque.texi: Likewise.
32656         * doc/posix-functions/renameat.texi: Likewise.
32657         * doc/posix-functions/rintl.texi: Likewise.
32658         * doc/posix-functions/sem_unlink.texi: Likewise.
32659         * doc/posix-functions/shm_open.texi: Likewise.
32660         * doc/posix-functions/shm_unlink.texi: Likewise.
32661         * doc/posix-functions/signgam.texi: Likewise.
32662         * doc/posix-functions/sigset.texi: Likewise.
32663         * doc/posix-functions/stpcpy.texi: Likewise.
32664         * doc/posix-functions/stpncpy.texi: Likewise.
32665         * doc/posix-functions/strerror.texi: Likewise.
32666         * doc/posix-functions/strtod.texi: Likewise.
32667         * doc/posix-functions/symlinkat.texi: Likewise.
32668         * doc/posix-functions/unlinkat.texi: Likewise.
32669         * doc/posix-functions/utimensat.texi: Likewise.
32670         * doc/glibc-functions/bindresvport.texi: Likewise.
32671         * doc/glibc-functions/dn_expand.texi: Likewise.
32672         * doc/glibc-functions/exp10.texi: Likewise.
32673         * doc/glibc-functions/exp10f.texi: Likewise.
32674         * doc/glibc-functions/fgetxattr.texi: Likewise.
32675         * doc/glibc-functions/flistxattr.texi: Likewise.
32676         * doc/glibc-functions/fopencookie.texi: Likewise.
32677         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32678         * doc/glibc-functions/fremovexattr.texi: Likewise.
32679         * doc/glibc-functions/fsetxattr.texi: Likewise.
32680         * doc/glibc-functions/getifaddrs.texi: Likewise.
32681         * doc/glibc-functions/getxattr.texi: Likewise.
32682         * doc/glibc-functions/lgetxattr.texi: Likewise.
32683         * doc/glibc-functions/listxattr.texi: Likewise.
32684         * doc/glibc-functions/llistxattr.texi: Likewise.
32685         * doc/glibc-functions/lremovexattr.texi: Likewise.
32686         * doc/glibc-functions/lsetxattr.texi: Likewise.
32687         * doc/glibc-functions/pow10.texi: Likewise.
32688         * doc/glibc-functions/pow10f.texi: Likewise.
32689         * doc/glibc-functions/rcmd_af.texi: Likewise.
32690         * doc/glibc-functions/removexattr.texi: Likewise.
32691         * doc/glibc-functions/res_init.texi: Likewise.
32692         * doc/glibc-functions/res_mkquery.texi: Likewise.
32693         * doc/glibc-functions/res_query.texi: Likewise.
32694         * doc/glibc-functions/res_querydomain.texi: Likewise.
32695         * doc/glibc-functions/res_send.texi: Likewise.
32696         * doc/glibc-functions/rresvport_af.texi: Likewise.
32697         * doc/glibc-functions/setxattr.texi: Likewise.
32698         * doc/glibc-functions/strcasestr.texi: Likewise.
32699
32700 2008-12-15  Bruno Haible  <bruno@clisp.org>
32701
32702         Fix compilation error on OSF/1 4.0.
32703         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32704         <sys/time.h>, simply delegate to the system header.
32705         Reported by Daniel Richard G. <oss@teragram.com>.
32706
32707 2008-12-15  Bruno Haible  <bruno@clisp.org>
32708
32709         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32710         * doc/posix-functions/fchmodat.texi: Likewise.
32711         * doc/posix-functions/fchownat.texi: Likewise.
32712         * doc/posix-functions/fdopendir.texi: Likewise.
32713         * doc/posix-functions/fstatat.texi: Likewise.
32714         * doc/posix-functions/mkdirat.texi: Likewise.
32715         * doc/posix-functions/unlinkat.texi: Likewise.
32716
32717 2008-12-14  Bruno Haible  <bruno@clisp.org>
32718
32719         Update doc for POSIX:2008.
32720         * doc/posix-functions/faccessat.texi: New file.
32721         * doc/posix-functions/fchmodat.texi: New file.
32722         * doc/posix-functions/fchownat.texi: New file.
32723         * doc/posix-functions/fdopendir.texi: New file.
32724         * doc/posix-functions/fstatat.texi: New file.
32725         * doc/posix-functions/futimens.texi: New file.
32726         * doc/posix-functions/linkat.texi: New file.
32727         * doc/posix-functions/mkdirat.texi: New file.
32728         * doc/posix-functions/mkfifoat.texi: New file.
32729         * doc/posix-functions/mknodat.texi: New file.
32730         * doc/posix-functions/open_wmemstream.texi: New file.
32731         * doc/posix-functions/openat.texi: New file.
32732         * doc/posix-functions/psiginfo.texi: New file.
32733         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32734         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32735         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32736         * doc/posix-functions/readlinkat.texi: New file.
32737         * doc/posix-functions/renameat.texi: New file.
32738         * doc/posix-functions/strerror_l.texi: New file.
32739         * doc/posix-functions/symlinkat.texi: New file.
32740         * doc/posix-functions/unlinkat.texi: New file.
32741         * doc/posix-functions/utimensat.texi: New file.
32742         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32743
32744 2008-12-14  Bruno Haible  <bruno@clisp.org>
32745
32746         Update doc for POSIX:2008.
32747         * doc/posix-functions/alphasort.texi: Renamed from
32748         doc/glibc-functions/alphasort.texi.
32749         * doc/posix-functions/dirfd.texi: Renamed from
32750         doc/glibc-functions/dirfd.texi.
32751         * doc/posix-functions/dprintf.texi: Renamed from
32752         doc/glibc-functions/dprintf.texi.
32753         * doc/posix-functions/duplocale.texi: Renamed from
32754         doc/glibc-functions/duplocale.texi.
32755         * doc/posix-functions/fexecve.texi: Renamed from
32756         doc/glibc-functions/fexecve.texi.
32757         * doc/posix-functions/fmemopen.texi: Renamed from
32758         doc/glibc-functions/fmemopen.texi.
32759         * doc/posix-functions/freelocale.texi: Renamed from
32760         doc/glibc-functions/freelocale.texi.
32761         * doc/posix-functions/getdate_err.texi: Renamed from
32762         doc/glibc-functions/getdate_err.texi.
32763         * doc/posix-functions/isalnum_l.texi: Renamed from
32764         doc/glibc-functions/isalnum_l.texi.
32765         * doc/posix-functions/isalpha_l.texi: Renamed from
32766         doc/glibc-functions/isalpha_l.texi.
32767         * doc/posix-functions/isblank_l.texi: Renamed from
32768         doc/glibc-functions/isblank_l.texi.
32769         * doc/posix-functions/iscntrl_l.texi: Renamed from
32770         doc/glibc-functions/iscntrl_l.texi.
32771         * doc/posix-functions/isdigit_l.texi: Renamed from
32772         doc/glibc-functions/isdigit_l.texi.
32773         * doc/posix-functions/isgraph_l.texi: Renamed from
32774         doc/glibc-functions/isgraph_l.texi.
32775         * doc/posix-functions/islower_l.texi: Renamed from
32776         doc/glibc-functions/islower_l.texi.
32777         * doc/posix-functions/isprint_l.texi: Renamed from
32778         doc/glibc-functions/isprint_l.texi.
32779         * doc/posix-functions/ispunct_l.texi: Renamed from
32780         doc/glibc-functions/ispunct_l.texi.
32781         * doc/posix-functions/isspace_l.texi: Renamed from
32782         doc/glibc-functions/isspace_l.texi.
32783         * doc/posix-functions/isupper_l.texi: Renamed from
32784         doc/glibc-functions/isupper_l.texi.
32785         * doc/posix-functions/iswalnum_l.texi: Renamed from
32786         doc/glibc-functions/iswalnum_l.texi.
32787         * doc/posix-functions/iswalpha_l.texi: Renamed from
32788         doc/glibc-functions/iswalpha_l.texi.
32789         * doc/posix-functions/iswblank_l.texi: Renamed from
32790         doc/glibc-functions/iswblank_l.texi.
32791         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32792         doc/glibc-functions/iswcntrl_l.texi.
32793         * doc/posix-functions/iswctype_l.texi: Renamed from
32794         doc/glibc-functions/iswctype_l.texi.
32795         * doc/posix-functions/iswdigit_l.texi: Renamed from
32796         doc/glibc-functions/iswdigit_l.texi.
32797         * doc/posix-functions/iswgraph_l.texi: Renamed from
32798         doc/glibc-functions/iswgraph_l.texi.
32799         * doc/posix-functions/iswlower_l.texi: Renamed from
32800         doc/glibc-functions/iswlower_l.texi.
32801         * doc/posix-functions/iswprint_l.texi: Renamed from
32802         doc/glibc-functions/iswprint_l.texi.
32803         * doc/posix-functions/iswpunct_l.texi: Renamed from
32804         doc/glibc-functions/iswpunct_l.texi.
32805         * doc/posix-functions/iswspace_l.texi: Renamed from
32806         doc/glibc-functions/iswspace_l.texi.
32807         * doc/posix-functions/iswupper_l.texi: Renamed from
32808         doc/glibc-functions/iswupper_l.texi.
32809         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32810         doc/glibc-functions/iswxdigit_l.texi.
32811         * doc/posix-functions/isxdigit_l.texi: Renamed from
32812         doc/glibc-functions/isxdigit_l.texi.
32813         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32814         doc/glibc-functions/mbsnrtowcs.texi.
32815         * doc/posix-functions/mkdtemp.texi: Renamed from
32816         doc/glibc-functions/mkdtemp.texi.
32817         * doc/posix-functions/newlocale.texi: Renamed from
32818         doc/glibc-functions/newlocale.texi.
32819         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32820         doc/glibc-functions/nl_langinfo_l.texi.
32821         * doc/posix-functions/open_memstream.texi: Renamed from
32822         doc/glibc-functions/open_memstream.texi.
32823         * doc/posix-functions/opterr.texi: Renamed from
32824         doc/glibc-functions/opterr.texi.
32825         * doc/posix-functions/optind.texi: Renamed from
32826         doc/glibc-functions/optind.texi.
32827         * doc/posix-functions/optopt.texi: Renamed from
32828         doc/glibc-functions/optopt.texi.
32829         * doc/posix-functions/psignal.texi: Renamed from
32830         doc/glibc-functions/psignal.texi.
32831         * doc/posix-functions/scandir.texi: Renamed from
32832         doc/glibc-functions/scandir.texi.
32833         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32834         doc/glibc-functions/sched_get_priority_min.texi.
32835         * doc/posix-functions/signgam.texi: Renamed from
32836         doc/glibc-functions/signgam.texi.
32837         * doc/posix-functions/stpcpy.texi: Renamed from
32838         doc/glibc-functions/stpcpy.texi.
32839         * doc/posix-functions/stpncpy.texi: Renamed from
32840         doc/glibc-functions/stpncpy.texi.
32841         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32842         doc/glibc-functions/strcasecmp_l.texi.
32843         * doc/posix-functions/strcoll_l.texi: Renamed from
32844         doc/glibc-functions/strcoll_l.texi.
32845         * doc/posix-functions/strfmon_l.texi: Renamed from
32846         doc/glibc-functions/strfmon_l.texi.
32847         * doc/posix-functions/strftime_l.texi: Renamed from
32848         doc/glibc-functions/strftime_l.texi.
32849         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32850         doc/glibc-functions/strncasecmp_l.texi.
32851         * doc/posix-functions/strndup.texi: Renamed from
32852         doc/glibc-functions/strndup.texi.
32853         * doc/posix-functions/strnlen.texi: Renamed from
32854         doc/glibc-functions/strnlen.texi.
32855         * doc/posix-functions/strsignal.texi: Renamed from
32856         doc/glibc-functions/strsignal.texi.
32857         * doc/posix-functions/strxfrm_l.texi: Renamed from
32858         doc/glibc-functions/strxfrm_l.texi.
32859         * doc/posix-functions/timer_gettime.texi: Renamed from
32860         doc/glibc-functions/timer_gettime.texi.
32861         * doc/posix-functions/tolower_l.texi: Renamed from
32862         doc/glibc-functions/tolower_l.texi.
32863         * doc/posix-functions/toupper_l.texi: Renamed from
32864         doc/glibc-functions/toupper_l.texi.
32865         * doc/posix-functions/towctrans_l.texi: Renamed from
32866         doc/glibc-functions/towctrans_l.texi.
32867         * doc/posix-functions/towlower_l.texi: Renamed from
32868         doc/glibc-functions/towlower_l.texi.
32869         * doc/posix-functions/towupper_l.texi: Renamed from
32870         doc/glibc-functions/towupper_l.texi.
32871         * doc/posix-functions/uselocale.texi: Renamed from
32872         doc/glibc-functions/uselocale.texi.
32873         * doc/posix-functions/vdprintf.texi: Renamed from
32874         doc/glibc-functions/vdprintf.texi.
32875         * doc/posix-functions/wcpcpy.texi:
32876         Renamed from doc/glibc-functions/wcpcpy.texi.
32877         * doc/posix-functions/wcpncpy.texi: Renamed from
32878         doc/glibc-functions/wcpncpy.texi.
32879         * doc/posix-functions/wcscasecmp.texi: Renamed from
32880         doc/glibc-functions/wcscasecmp.texi.
32881         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32882         doc/glibc-functions/wcscasecmp_l.texi.
32883         * doc/posix-functions/wcscoll_l.texi: Renamed from
32884         doc/glibc-functions/wcscoll_l.texi.
32885         * doc/posix-functions/wcsdup.texi: Renamed from
32886         doc/glibc-functions/wcsdup.texi.
32887         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32888         doc/glibc-functions/wcsncasecmp.texi.
32889         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32890         doc/glibc-functions/wcsncasecmp_l.texi.
32891         * doc/posix-functions/wcsnlen.texi: Renamed from
32892         doc/glibc-functions/wcsnlen.texi.
32893         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32894         doc/glibc-functions/wcsnrtombs.texi.
32895         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32896         doc/glibc-functions/wcsxfrm_l.texi.
32897         * doc/posix-functions/wctrans_l.texi: Renamed from
32898         doc/glibc-functions/wctrans_l.texi.
32899         * doc/posix-functions/wctype_l.texi: Renamed from
32900         doc/glibc-functions/wctype_l.texi.
32901         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32902         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32903         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32904         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32905         these subsections.
32906         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32907         Remove sections.
32908
32909 2008-12-14  Bruno Haible  <bruno@clisp.org>
32910
32911         Update doc for POSIX:2008.
32912         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32913
32914 2008-12-14  Bruno Haible  <bruno@clisp.org>
32915
32916         Update doc for POSIX:2008.
32917         * doc/pastposix-functions/bcmp.texi: Renamed from
32918         doc/posix-functions/bcmp.texi.
32919         * doc/pastposix-functions/bcopy.texi: Renamed from
32920         doc/posix-functions/bcopy.texi.
32921         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32922         doc/posix-functions/bsd_signal.texi.
32923         * doc/pastposix-functions/bzero.texi: Renamed from
32924         doc/posix-functions/bzero.texi.
32925         * doc/pastposix-functions/ecvt.texi: Renamed from
32926         doc/posix-functions/ecvt.texi.
32927         * doc/pastposix-functions/fcvt.texi: Renamed from
32928         doc/posix-functions/fcvt.texi.
32929         * doc/pastposix-functions/ftime.texi: Renamed from
32930         doc/posix-functions/ftime.texi.
32931         * doc/pastposix-functions/gcvt.texi: Renamed from
32932         doc/posix-functions/gcvt.texi.
32933         * doc/pastposix-functions/getcontext.texi: Renamed from
32934         doc/posix-functions/getcontext.texi.
32935         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32936         doc/posix-functions/gethostbyaddr.texi.
32937         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32938         doc/posix-functions/gethostbyname.texi.
32939         * doc/pastposix-functions/getwd.texi: Renamed from
32940         doc/posix-functions/getwd.texi.
32941         * doc/pastposix-functions/h_errno.texi: Renamed from
32942         doc/posix-functions/h_errno.texi.
32943         * doc/pastposix-functions/index.texi: Renamed from
32944         doc/posix-functions/index.texi.
32945         * doc/pastposix-functions/makecontext.texi: Renamed from
32946         doc/posix-functions/makecontext.texi.
32947         * doc/pastposix-functions/mktemp.texi: Renamed from
32948         doc/posix-functions/mktemp.texi.
32949         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32950         doc/posix-functions/pthread_attr_getstackaddr.texi.
32951         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32952         doc/posix-functions/pthread_attr_setstackaddr.texi.
32953         * doc/pastposix-functions/rindex.texi: Renamed from
32954         doc/posix-functions/rindex.texi.
32955         * doc/pastposix-functions/scalb.texi: Renamed from
32956         doc/posix-functions/scalb.texi.
32957         * doc/pastposix-functions/setcontext.texi: Renamed from
32958         doc/posix-functions/setcontext.texi.
32959         * doc/pastposix-functions/swapcontext.texi: Renamed from
32960         doc/posix-functions/swapcontext.texi.
32961         * doc/pastposix-functions/ualarm.texi: Renamed from
32962         doc/posix-functions/ualarm.texi.
32963         * doc/pastposix-functions/usleep.texi: Renamed from
32964         doc/posix-functions/usleep.texi.
32965         * doc/pastposix-functions/vfork.texi: Renamed from
32966         doc/posix-functions/vfork.texi.
32967         * doc/pastposix-functions/wcswcs.texi: Renamed from
32968         doc/posix-functions/wcswcs.texi.
32969         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32970         (Function Substitutes): Update.
32971
32972 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32973
32974         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32975         m4/strerror.m4.
32976
32977 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32978             Bruno Haible  <bruno@clisp.org>
32979
32980         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32981
32982 2008-12-13  Bruno Haible  <bruno@clisp.org>
32983
32984         * modules/strtoull (Depends-on): Remove unistd.
32985
32986 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32987
32988         * modules/strtoull (Depends-on): Add stdlib.
32989
32990 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32991
32992         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32993
32994 2008-12-10  Jim Meyering  <meyering@redhat.com>
32995
32996         gl_ASSERT: don't say assertions are disabled when they're not
32997         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32998         "checking whether to enable assertions... no", when they are in
32999         fact enabled.  This is solely a bug in the output of configure.
33000         In spite of saying "no", NDEBUG was not defined in that case.
33001         Also, as noted by Eric Blake, leave assertions enabled upon
33002         --enable-assert=INVALID.
33003
33004 2008-12-10  Bruno Haible  <bruno@clisp.org>
33005
33006         Change MODULES.html to refer to POSIX:2008 where possible.
33007         * MODULES.html.sh (POSIX2008_URL): New variable.
33008         (posix_headers): Remove sys/timeb, ucontext.
33009         (posix2001_headers): New variable.
33010         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33011         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33012         index, makecontext, mktemp, pthread_attr_getstackaddr,
33013         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33014         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33015         (posix2001_functions): New variable.
33016         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33017         otherwise.
33018
33019 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33020
33021         add missing include to parse-duration.c
33022         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33023         * modules/parse-duration (Depends-on): Add xalloc.
33024
33025         fix sed script reading maint.mk
33026         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33027         (syntax-check-rules): Use it.
33028
33029 2008-12-09  Bruno Haible  <bruno@clisp.org>
33030
33031         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33032         MacOS X 10.4/PowerPC.
33033         Reported by Simon Josefsson.
33034
33035 2008-12-08  Jim Meyering  <meyering@redhat.com>
33036
33037         work around mingw's lack of some S_IF definitions
33038         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33039         Reported by Simon Josefsson.
33040
33041 2008-12-08  Bruno Haible  <bruno@clisp.org>
33042
33043         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33044         applied to variables. Needed on MacOS X 10.4/PowerPC.
33045         Reported by Simon Josefsson.
33046
33047 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33048         and Eric Blake  <ebb9@byu.net>
33049
33050         assert: honor --enable-assert
33051         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33052         order to honor --enable-assert, rather than treating it as a
33053         synonym for --disable-assert.
33054
33055 2008-12-08  Jim Meyering  <meyering@redhat.com>
33056
33057         * lib/posixtm.c: Remove now-useless declaration of mktime.
33058
33059         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33060
33061 2008-12-07  Bruno Haible  <bruno@clisp.org>
33062
33063         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33064         test_once): Mark functions as static.
33065         * tests/test-tls.c (test_tls): Likewise.
33066
33067 2008-12-07  Bruno Haible  <bruno@clisp.org>
33068
33069         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33070         iconv_register_autodetect.
33071
33072 2008-12-07  Jim Meyering  <meyering@redhat.com>
33073
33074         posixtm.c: avoid a warning
33075         * lib/posixtm.c (posixtime): Don't initialize tm0.
33076         It's no longer needed to placate gcc4's -Wuninitialized,
33077         and the attempt to placate would elicit a new warning.
33078
33079         unicodeio.c: mark unused parameters
33080         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33081         (fallback_failure_callback): Likewise.
33082
33083 2008-12-07  Bruno Haible  <bruno@clisp.org>
33084
33085         * gnulib-tool (func_create_testdir): When building the tests
33086         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33087         Reported by Simon Josefsson.
33088
33089 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33090
33091         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33092
33093 2008-12-06  Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33096         Suggested by Eric Blake.
33097
33098 2008-12-06  Bruno Haible  <bruno@clisp.org>
33099
33100         Fix a c-stack test failure on MacOS X.
33101         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33102         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33103         handler for SIGBUS as well.
33104         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33105         install a signal handler for SIGBUS as well.
33106         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33107
33108 2008-12-06  Bruno Haible  <bruno@clisp.org>
33109
33110         Advocacy documentation.
33111         * doc/gnulib-intro.texi (Benefits): New section.
33112         * doc/gnulib.texi: Update.
33113
33114 2008-12-06  Bruno Haible  <bruno@clisp.org>
33115
33116         Document the 'manywarnings' module.
33117         * doc/manywarnings.texi: New file.
33118         * doc/gnulib.texi: Include it.
33119
33120 2008-12-05  Eric Blake  <ebb9@byu.net>
33121
33122         tests: silence some gcc warnings
33123         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33124         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33125         type mismatches.
33126
33127 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33128             Bruno Haible  <bruno@clisp.org>
33129
33130         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33131
33132 2008-11-29  Jim Meyering  <meyering@redhat.com>
33133
33134         unicodeio.c: mark unused parameters
33135         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33136         (fallback_failure_callback): Likewise.
33137
33138         fts: fix a thinko
33139         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33140         (set_stat_type): Return S_IF*-valued "type" directly.
33141         Prompted by James Youngman's spotting a related bug.
33142         Confirmed by further testing through find.
33143
33144         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33145         * lib/fts.c (D_TYPE): Define.
33146         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33147         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33148         (s_ifmt_shift_bits): New function.
33149         (set_stat_type): New function.
33150         (fts_build): When not calling fts_stat, call set_stat_type
33151         to propagate dirent.d_type info to fts_read caller.
33152         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33153         fts_statp->st_mode type information may be valid.
33154
33155 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33156
33157         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33158         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33159         <sds@gnu.org>.
33160
33161 2008-11-20  Bruno Haible  <bruno@clisp.org>
33162
33163         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33164         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33165         INCLUDE_NEXT.
33166         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33167         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33168         * modules/math (Makefile.am): Substitute
33169         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33170         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33171
33172 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33173             Bruno Haible  <bruno@clisp.org>
33174
33175         * lib/stdint.in.h: Define all type macros so that their expansion is
33176         a single typedef'ed token. Fixes a compilation failure in Boost which
33177         does "using ::int8_t;".
33178
33179 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33180
33181         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33182         gl_MANYWARN_ALL_GCC.
33183         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33184         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33185         * modules/manywarnings: New file.
33186         * MODULES.html.sh: Mention manywarnings module.
33187
33188 2008-11-18  Bruno Haible  <bruno@clisp.org>
33189
33190         * doc/gnulib-tool.texi (Unit tests): New section.
33191
33192 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33193
33194         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33195         paths like 'lib/po/foo.po'.
33196
33197 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33198
33199         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33200         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33201
33202 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33203
33204         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33205         parameter works.
33206
33207 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33208
33209         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33210
33211 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33212
33213         * modules/parse-duration-tests: New file.
33214         * tests/test-parse-duration.sh: New file.
33215         * tests/test-parse-duration.c: New file.
33216
33217         New module 'parse-duration'.
33218         * lib/parse-duration.h: New file.
33219         * lib/parse-duration.c: New file.
33220         * modules/parse-duration: New file.
33221
33222 2008-11-17  Bruno Haible  <bruno@clisp.org>
33223
33224         * tests/test-select-out.sh: Comment out the first pipe test.
33225         Reported by Simon Josefsson.
33226
33227 2008-11-17  Bruno Haible  <bruno@clisp.org>
33228
33229         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33230         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33231         gl_HOSTENT.
33232
33233 2008-11-17  Bruno Haible  <bruno@clisp.org>
33234
33235         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33236         -lnetwork and -lnet. Needed for Haiku and BeOS.
33237
33238 2008-11-16  Bruno Haible  <bruno@clisp.org>
33239
33240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33241
33242 2008-11-16  Bruno Haible  <bruno@clisp.org>
33243
33244         Avoid test failure on Haiku.
33245         * tests/test-fsync.c: Include <errno.h>.
33246         (main): Don't require that fsync (0) fails.
33247
33248 2008-11-15  Bruno Haible  <bruno@clisp.org>
33249
33250         New module 'hostent'.
33251         * modules/hostent: New file.
33252         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33253
33254 2008-11-15  Bruno Haible  <bruno@clisp.org>
33255
33256         New module 'servent'.
33257         * modules/servent: New file.
33258         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33259
33260 2008-11-15  Bruno Haible  <bruno@clisp.org>
33261
33262         Avoid generating same test program with two different rules.
33263         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33264         test-frexp to test-frexp-nolibm.
33265         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33266         test-frexpl to test-frexpl-nolibm.
33267
33268 2008-11-15  Bruno Haible  <bruno@clisp.org>
33269
33270         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33271         $(FREXPL_LIBM).
33272
33273 2008-11-15  Bruno Haible  <bruno@clisp.org>
33274
33275         * lib/netdb.in.h: Activate the definitions also when the system's
33276         <netdb.h> has 'struct addrinfo'.
33277         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33278         EAI_OVERFLOW or AI_NUMERICSERV.
33279         * doc/posix-headers/netdb.texi: Document the problem.
33280
33281 2008-11-15  Bruno Haible  <bruno@clisp.org>
33282
33283         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33284
33285         Make the 'sched' module work on platforms where <sched.h> exists but
33286         is incomplete (such as Haiku).
33287         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33288         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33289         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33290         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33291         HAVE_STRUCT_SCHED_PARAM.
33292         * modules/sched (Depends-on): Add include_next.
33293         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33294         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33295         * doc/posix-headers/sched.texi: Document the issue.
33296
33297 2008-11-13  Jim Meyering  <meyering@redhat.com>
33298
33299         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33300         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33301         test would fail due to the difference in the Report bugs to ...
33302         line.  The expected address is empty, "<>", while the actual
33303         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33304
33305 2008-11-12  Bruno Haible  <bruno@clisp.org>
33306
33307         lstat: don't compile lstat.c on systems lacking lstat
33308         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33309         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33310         Reported by Daniel P. Berrange via Jim Meyering.
33311
33312 2008-11-12  Jim Meyering  <meyering@redhat.com>
33313
33314         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33315
33316 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33317
33318         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33319         instead.
33320
33321 2008-11-12  Bruno Haible  <bruno@clisp.org>
33322
33323         * lib/unicodeio.c: Include unistr.h.
33324         (utf8_wctomb): Remove function.
33325         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33326
33327 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33328
33329         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33330         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33331         <bruno@clisp.org>.
33332         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33333
33334 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33335
33336         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33337         * doc/gnulib.texi: Add section for warnings.
33338
33339 2008-11-11  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/sockets.h: Add a comment.
33342
33343 2008-11-11  Karl Berry  <karl@gnu.org>
33344
33345         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33346
33347 2008-11-11  Eric Blake  <ebb9@byu.net>
33348
33349         fdl.texi: avoid git symlinks
33350         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33351
33352 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33353
33354         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33355
33356 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33357
33358         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33359         (gl_WARN_ADD): Substitute $2 if literal.
33360
33361 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33362
33363         * m4/warning.m4: Remove.
33364
33365 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33366
33367         * m4/warnings.m4: Almost complete rewrite. :-)
33368
33369 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33370
33371         * modules/warnings: New module.
33372         * m4/warnings.m4: New file.
33373         * MODULES.html.sh: Mention warnings module.
33374         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33375         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33376
33377 2008-11-10  Eric Blake  <ebb9@byu.net>
33378
33379         fdl.texi: make a symlink to the latest version
33380         * doc/standards.texi: Revert today's earlier change.
33381         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33382         * doc/fdl.texi: ...and replace this with a symlink to the newer
33383         fdl-1.3.texi.
33384
33385 2008-11-10  Bruno Haible  <bruno@clisp.org>
33386
33387         * tests/test-select-fd.c (main): Accept the result file name as fourth
33388         argument.
33389         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33390         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33391
33392 2008-11-10  Bruno Haible  <bruno@clisp.org>
33393
33394         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33395         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33396         as autoconf-substituted macros.
33397         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33398         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33399         gl_NETDB_H_DEFAULTS. Set these variables.
33400         * modules/netdb (Makefile.am): Substitute these variables.
33401
33402 2008-11-10  Eric Blake  <ebb9@byu.net>
33403
33404         standards.texi: include correct file for FDL 1.3
33405         * doc/standards.texi (GNU Free Documentation License): Change
33406         include file to pull in FDL 1.3, not 1.2.
33407
33408         fdl.texi: revert accidental change to license
33409         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33410
33411 2008-11-10  Bruno Haible  <bruno@clisp.org>
33412
33413         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33414         cross-compiling guesses also when the native compile gives no result.
33415
33416 2008-11-10  Bruno Haible  <bruno@clisp.org>
33417
33418         * lib/spawni.c (__spawni): Force variable into the stack.
33419
33420 2008-11-10  Bruno Haible  <bruno@clisp.org>
33421
33422         Add support for Haiku.
33423         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33424         glibc and BeOS, but also on Haiku.
33425         * lib/fpurge.c (fpurge): Likewise.
33426         * lib/freadable.c (freadable): Likewise.
33427         * lib/freadahead.c (freadahead): Likewise.
33428         * lib/freading.c (freading): Likewise.
33429         * lib/freadptr.c (freadptr): Likewise.
33430         * lib/freadseek.c (freadptrinc): Likewise.
33431         * lib/fseeko.c (rpl_fseeko): Likewise.
33432         * lib/fseterr.c (fseterr): Likewise.
33433         * lib/fwritable.c (fwritable): Likewise.
33434         * lib/fwriting.c (fwriting): Likewise.
33435         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33436
33437 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33438
33439         * lib/config.charset: Treat Haiku like BeOS.
33440
33441 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33442
33443         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33444         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33445
33446 2008-11-08  Bruno Haible  <bruno@clisp.org>
33447
33448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33449         AC_CACHE_CHECK.
33450
33451 2008-11-08  Bruno Haible  <bruno@clisp.org>
33452
33453         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33454
33455 2008-11-08  Bruno Haible  <bruno@clisp.org>
33456
33457         * tests/test-select-fd.c: New file.
33458         * tests/test-select-in.sh: New file.
33459         * tests/test-select-out.sh: New file.
33460         * tests/test-select-stdin.c: New file.
33461         * modules/select-tests (Files): Add the new files.
33462         (Depends-on): Add gettimeofday.
33463         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33464         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33465         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33466
33467 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33468             Bruno Haible  <bruno@clisp.org>
33469
33470         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33471
33472 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33473
33474         * build-aux/pmccabe2html: Added support for C++ source files.
33475
33476 2008-11-05  Ben Pfaff  <blp@gnu.org>
33477
33478         Fix lib/close.c build on Windows.
33479         * modules/close (Files): Add lib/w32sock.h.
33480
33481 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33482
33483         Accept Bison's NEWS format.
33484         * build-aux/announce-gen (print_news_deltas): Tweak
33485         $re_prefix.
33486
33487 2008-11-04  Bruno Haible  <bruno@clisp.org>
33488
33489         * modules/random_r (Maintainer): Add glibc.
33490
33491 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33492
33493         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33494         by karl@freefriends.org (Karl Berry).
33495         * doc/alloca.texi: Likewise.
33496         * doc/c-ctype.texi: Likewise.
33497         * doc/c-strcase.texi: Likewise.
33498         * doc/c-strcaseeq.texi: Likewise.
33499         * doc/c-strcasestr.texi: Likewise.
33500         * doc/c-strstr.texi: Likewise.
33501         * doc/c-strtod.texi: Likewise.
33502         * doc/c-strtold.texi: Likewise.
33503         * doc/ctime.texi: Likewise.
33504         * doc/error.texi: Likewise.
33505         * doc/fdl.texi: Likewise.
33506         * doc/gcd.texi: Likewise.
33507         * doc/getdate.texi: Likewise.
33508         * doc/gnulib-intro.texi: Likewise.
33509         * doc/gnulib-tool.texi: Likewise.
33510         * doc/gnulib.texi: Likewise.
33511         * doc/inet_ntoa.texi: Likewise.
33512         * doc/maintain.texi: Likewise.
33513         * doc/make-stds.texi: Likewise.
33514         * doc/quote.texi: Likewise.
33515         * doc/regexprops-generic.texi: Likewise.
33516         * doc/standards.texi: Likewise.
33517         * doc/verify.texi: Likewise.
33518         * doc/visibility.texi: Likewise.
33519         * doc/gnulib.texi (GNU Free Documentation License): Include
33520         fdl-1.3.texi instead of fdl.texi.
33521
33522 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33523
33524         * doc/fdl-1.3.texi: New file, from
33525         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33526         * modules/fdl-1.3: Add.
33527         * MODULES.html.sh: Add fdl-1.3.
33528
33529 2008-11-03  Bruno Haible  <bruno@clisp.org>
33530
33531         Make determination of absolute name of header file work with AIX xlc.
33532         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33533         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33534         preprocessing.
33535         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33536         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33537
33538 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33539
33540         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33541         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33542         <ludo@gnu.org>.
33543
33544 2008-11-02  Bruno Haible  <bruno@clisp.org>
33545
33546         Mark 'strpbrk' obsolete.
33547         * modules/strpbrk (Status, Notice): New sections.
33548         * modules/strtok_r (Depends-on): Add strpbrk.
33549
33550 2008-11-02  Bruno Haible  <bruno@clisp.org>
33551
33552         Mark 'strdup' obsolete.
33553         * modules/strdup (Status, Notice): New sections.
33554         * modules/findprog (Depends-on): Add strdup.
33555         * modules/getaddrinfo (Depends-on): Likewise.
33556         * modules/localename (Depends-on): Likewise.
33557         * modules/relocatable-lib (Depends-on): Likewise.
33558         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33559         * modules/relocatable-prog (Depends-on): Likewise.
33560         * modules/trim (Depends-on): Likewise.
33561         * modules/unictype/gen-ctype (Depends-on): Likewise.
33562         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33563
33564 2008-11-02  Bruno Haible  <bruno@clisp.org>
33565
33566         Mark 'strcspn' obsolete.
33567         * modules/strcspn (Status, Notice): New sections.
33568
33569 2008-11-02  Bruno Haible  <bruno@clisp.org>
33570
33571         Mark 'rmdir' obsolete.
33572         * modules/rmdir (Status, Notice): New sections.
33573         * modules/clean-temp (Depends-on): Add rmdir.
33574         * modules/openat (Depends-on): Likewise.
33575
33576 2008-11-02  Bruno Haible  <bruno@clisp.org>
33577
33578         Mark 'raise' obsolete.
33579         * modules/raise (Status, Notice): New sections.
33580         (Include): Specify <signal.h>.
33581         * modules/stdio (Depends-on): Add raise.
33582         * modules/write (Depends-on): Likewise.
33583
33584 2008-11-02  Bruno Haible  <bruno@clisp.org>
33585
33586         Mark 'memset' obsolete.
33587         * modules/memset (Status, Notice): New sections.
33588
33589 2008-11-02  Bruno Haible  <bruno@clisp.org>
33590
33591         Mark 'memmove' obsolete.
33592         * modules/memmove (Status, Notice): New sections.
33593         * modules/argp (Depends-on): Add memmove.
33594         * modules/argz (Depends-on): Likewise.
33595         * modules/canonicalize (Depends-on): Likewise.
33596         * modules/canonicalize-lgpl (Depends-on): Likewise.
33597         * modules/fts (Depends-on): Likewise.
33598         * modules/getcwd (Depends-on): Likewise.
33599         * modules/human (Depends-on): Likewise.
33600         * modules/regex (Depends-on): Likewise.
33601         * modules/striconveh (Depends-on): Likewise.
33602         * modules/trim (Depends-on): Likewise.
33603         * modules/unistr/u8-move (Depends-on): Likewise.
33604         * modules/unistr/u16-move (Depends-on): Likewise.
33605         * modules/unistr/u32-move (Depends-on): Likewise.
33606
33607 2008-11-02  Bruno Haible  <bruno@clisp.org>
33608
33609         Mark 'memcpy' obsolete.
33610         * modules/memcpy (Status, Notice): New sections.
33611
33612 2008-11-02  Bruno Haible  <bruno@clisp.org>
33613
33614         Mark 'memcmp' obsolete.
33615         * modules/memcmp (Status, Notice): New sections.
33616         * modules/argmatch (Depends-on): Add memchr.
33617         * modules/backupfile (Depends-on): Likewise.
33618         * modules/c-strcasestr (Depends-on): Likewise.
33619         * modules/crypto/des (Depends-on): Likewise.
33620         * modules/csharpcomp (Depends-on): Likewise.
33621         * modules/fnmatch (Depends-on): Likewise.
33622         * modules/git-merge-changelog (Depends-on): Likewise.
33623         * modules/isnand (Depends-on): Likewise.
33624         * modules/isnand-nolibm (Depends-on): Likewise.
33625         * modules/isnanf (Depends-on): Likewise.
33626         * modules/isnanf-nolibm (Depends-on): Likewise.
33627         * modules/isnanl (Depends-on): Likewise.
33628         * modules/isnanl-nolibm (Depends-on): Likewise.
33629         * modules/mbchar (Depends-on): Likewise.
33630         * modules/memcoll (Depends-on): Likewise.
33631         * modules/quotearg (Depends-on): Likewise.
33632         * modules/regex (Depends-on): Likewise.
33633         * modules/relocatable-prog (Depends-on): Likewise.
33634         * modules/same (Depends-on): Likewise.
33635         * modules/signbit (Depends-on): Likewise.
33636         * modules/strcasestr-simple (Depends-on): Likewise.
33637         * modules/unictype/gen-ctype (Depends-on): Likewise.
33638         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33639         * modules/uniname/uniname (Depends-on): Likewise.
33640         * modules/unistr/u8-cmp (Depends-on): Likewise.
33641
33642 2008-11-02  Bruno Haible  <bruno@clisp.org>
33643
33644         Mark 'memchr' obsolete.
33645         * modules/memchr (Status, Notice): New sections.
33646         * modules/argp (Depends-on): Add memchr.
33647         * modules/base64 (Depends-on): Likewise.
33648         * modules/c-strcasestr (Depends-on): Likewise.
33649         * modules/chdir-long (Depends-on): Likewise.
33650         * modules/fnmatch (Depends-on): Likewise.
33651         * modules/getsubopt (Depends-on): Likewise.
33652         * modules/git-merge-changelog (Depends-on): Likewise.
33653         * modules/glob (Depends-on): Likewise.
33654         * modules/strcasestr-simple (Depends-on): Likewise.
33655         * modules/strnlen (Depends-on): Likewise.
33656
33657 2008-11-02  Bruno Haible  <bruno@clisp.org>
33658
33659         Mark 'atexit' obsolete.
33660         * modules/atexit (Status, Notice): New sections.
33661         * modules/chdir-long (Depends-on): Add atexit.
33662         * modules/wait-process (Depends-on): Likewise.
33663
33664 2008-11-02  Bruno Haible  <bruno@clisp.org>
33665
33666         * gnulib-tool: New option --with-obsolete.
33667         (func_usage): Document it.
33668         (func_modules_transitive_closure): Drop obsolete dependencies if
33669         incobsolete is not true.
33670         (func_import): Read and save the incobsolete variable to the cache.
33671
33672 2008-11-02  Bruno Haible  <bruno@clisp.org>
33673
33674         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33675         * gnulib-tool: New option --extract-status.
33676         (func_usage): Document it.
33677         (sed_extract_prog): Recognize it.
33678         (func_get_status): New function.
33679
33680 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33681
33682         * modules/sockets (License): Change from LGPL to LGPLv2+.
33683
33684 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33685
33686         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33687
33688 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33689
33690         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33691         Mention times and sys_times.
33692         * modules/sys_times, modules/sys_times-tests: New modules.
33693         * modules/times, modules/times-tests: Likewise
33694         * m4/sys_times_h.m4: New file.
33695         * lib/sys_times.in.h: Likewise
33696         * lib/times.c: Likewise.
33697         * tests/test-sys_times.c: Likewise.
33698         * tests/test-times.c: Likewise.
33699         * doc/posix-headers/sys_times.texi: Update.
33700         * doc/posix-functions/times.texi: Update.
33701
33702 2008-10-28  Jim Meyering  <meyering@redhat.com>
33703
33704         * modules/tempname (Depends-on): Add lstat.
33705
33706         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33707
33708 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33709
33710         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33711         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33712         using idiom used elsewhere in gnulib.
33713
33714 2008-10-27  Jim Meyering  <meyering@redhat.com>
33715
33716         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33717
33718 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33719
33720         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33721         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33722         programs.
33723         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33724
33725 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33726
33727         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33728
33729 2008-10-27  Bruno Haible  <bruno@clisp.org>
33730
33731         * tests/test-lstat.c: Include <stdio.h>.
33732
33733 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33734
33735         * modules/lstat-tests: New module.
33736         * tests/test-lstat.c: New file.
33737
33738 2008-10-26  Jim Meyering  <meyering@redhat.com>
33739
33740         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33741
33742 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33743             Bruno Haible  <bruno@clisp.org>
33744
33745         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33746         * modules/configmake (Include): Add a note that the include must come
33747         after all system headers.
33748         * lib/javaversion.c: Include configmake.h after all other includes.
33749
33750 2008-10-26  Bruno Haible  <bruno@clisp.org>
33751
33752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33753         HAVE_STRUCT_RANDOM_DATA to 1.
33754         (gl_STDLIB_H): Simplify.
33755
33756 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33757
33758         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33759         substitute HAVE_STRUCT_RANDOM_DATA.
33760         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33761         random_data.
33762         * modules/stdlib (Makefile.am): Substitute
33763         HAVE_STRUCT_RANDOM_DATA.
33764
33765 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33766
33767         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33768         * doc/gnulib-intro.texi (Copyright): Likewise.
33769
33770 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33771
33772         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33773         findings.
33774
33775 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33776             Bruno Haible  <bruno@clisp.org>
33777
33778         * lib/unistd.in.h: Include <winsock2.h>.
33779         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33780         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33781         Provide dummy declarations.
33782         (gethostname): Override.
33783         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33784         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33785         gl_PREREQ_SYS_H_WINSOCK2.
33786         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33787         * doc/posix-functions/gethostname.texi: More details.
33788
33789 2008-10-25  Bruno Haible  <bruno@clisp.org>
33790
33791         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33792         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33793         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33794
33795         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33796         here ...
33797         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33798         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33799         gl_UNISTD_H_DEFAULTS.
33800
33801 2008-10-25  Eric Blake  <ebb9@byu.net>
33802
33803         signbit: avoid spurious compiler failure
33804         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33805         declarations inside function.
33806
33807 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33808             Bruno Haible  <bruno@clisp.org>
33809
33810         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33811         * modules/random_r (Depends-on): Add stdint.
33812
33813 2008-10-24  Bruno Haible  <bruno@clisp.org>
33814
33815         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33816         Eggert.
33817         * modules/strerror (License): Likewise.
33818
33819 2008-10-24  Jim Meyering  <meyering@redhat.com>
33820
33821         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33822         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33823
33824 2008-10-24  Eric Blake  <ebb9@byu.net>
33825
33826         getgroups: fix compilation when getgroups is available
33827         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33828         but with <config.h> override of getgroups disabled.
33829
33830 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33831
33832         * doc/gnulib.texi (Header files): Add note about C++ problems.
33833         Explained by Bruno Haible <bruno@clisp.org>.
33834
33835 2008-10-23  Bruno Haible  <bruno@clisp.org>
33836
33837         Define a dummy SA_NODEFER macro on Interix.
33838         * lib/signal.in.h (SA_NODEFER): Define fallback.
33839         Reported by Aleksey Cheusov <cheusov@tut.by> via
33840         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33841
33842 2008-10-23  Bruno Haible  <bruno@clisp.org>
33843
33844         * modules/freadahead (License): Change to LGPLv2+.
33845         Suggested by Simon Josefsson.
33846
33847 2008-10-23  Jim Meyering  <meyering@redhat.com>
33848
33849         random_r: new module
33850         * modules/random_r: New file.
33851         * m4/random_r.m4: New file.
33852         * lib/random_r.c: New file, from glibc.
33853         * modules/random_r-tests: New file.
33854         * tests/test-random_r.c: New file.
33855         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33856          Declare.
33857         (RAND_MAX): Define.
33858         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33859         * modules/stdlib: Substitute them, too.
33860         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33861         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33862         * doc/glibc-functions/random_r.texi: Likewise.
33863         * doc/glibc-functions/setstate_r.texi: Likewise.
33864         * doc/glibc-functions/srandom_r.texi: Likewise.
33865         * config/srclist.txt: Mention it.
33866
33867 2008-10-23  David Lutterkort  <lutter@redhat.com>
33868
33869         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33870         link requirement
33871
33872 2008-10-23  Jim Meyering  <meyering@redhat.com>
33873
33874         selinux-h: mark parameters of stub functions as intentionally unused
33875         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33876         * lib/se-context.in.h: Likewise.
33877
33878 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33879
33880         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33881
33882 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33883
33884         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33885
33886 2008-10-22  Eric Blake  <ebb9@byu.net>
33887
33888         glthread/thread: avoid compiler warning
33889         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33890         Add unreachable abort to silence compiler.
33891
33892 2008-10-22  Eric Blake  <ebb9@byu.net>
33893
33894         netdb: also supply struct addrinfo for cygwin 1.5.x
33895         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33896         older cygwin.
33897         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33898         cygwin.
33899         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33900
33901 2008-10-22  Bruno Haible  <bruno@clisp.org>
33902
33903         * users.txt: Update entry about pspp.
33904
33905 2008-10-21  Bruno Haible  <bruno@clisp.org>
33906
33907         Simplification.
33908         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33909         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33910
33911         Simplification.
33912         * lib/ioctl.c (ioctl): Don't undefine.
33913         * lib/socket.c (socket): Don't undefine.
33914
33915         Remove unused module indicator macros.
33916         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33917         GNULIB_$1 as a C macro.
33918
33919         * doc/posix-functions/close.texi: Undo last change.
33920         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33921         Windows platforms.
33922
33923 2008-10-21  Bruno Haible  <bruno@clisp.org>
33924
33925         Add gethostname() declaration to <unistd.h>.
33926         * lib/unistd.in.h (gethostname): New declaration.
33927         * lib/gethostname.c: Include <unistd.h>.
33928         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33929         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33931         and HAVE_GETHOSTNAME.
33932         * modules/gethostname (Depends-on): Add unistd.
33933         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33934         (Include): Specify <unistd.h>.
33935         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33936         HAVE_GETHOSTNAME.
33937         * tests/test-gethostname.c: Include <unistd.h> first.
33938
33939 2008-10-21  Bruno Haible  <bruno@clisp.org>
33940
33941         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33942         * modules/select-tests (Depends-on): Likewise.
33943         Reported by Simon Josefsson.
33944
33945 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33946
33947         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33948         * lib/accept.c: New file, based on winsock.c.
33949         * lib/bind.c: New file, based on winsock.c.
33950         * lib/connect.c: New file, based on winsock.c.
33951         * lib/getpeername.c: New file, based on winsock.c.
33952         * lib/getsockname.c: New file, based on winsock.c.
33953         * lib/getsockopt.c: New file, based on winsock.c.
33954         * lib/ioctl.c: New file, based on winsock.c.
33955         * lib/listen.c: New file, based on winsock.c.
33956         * lib/recv.c: New file, based on winsock.c.
33957         * lib/recvfrom.c: New file, based on winsock.c.
33958         * lib/send.c: New file, based on winsock.c.
33959         * lib/sendto.c: New file, based on winsock.c.
33960         * lib/setsockopt.c: New file, based on winsock.c.
33961         * lib/shutdown.c: New file, based on winsock.c.
33962         * lib/socket.c: New file, based on winsock.c.
33963         * lib/w32sock.h: New file, based on winsock.c.
33964         * lib/winsock.c: Remove file.
33965         * modules/accept: Likewise.
33966         * modules/bind: Likewise.
33967         * modules/connect: Likewise.
33968         * modules/getpeername: Likewise.
33969         * modules/getsockname: Likewise.
33970         * modules/getsockopt: Likewise.
33971         * modules/ioctl: Likewise.
33972         * modules/listen: Likewise.
33973         * modules/recv: Likewise.
33974         * modules/recvfrom: Likewise.
33975         * modules/send: Likewise.
33976         * modules/sendto: Likewise.
33977         * modules/setsockopt: Likewise.
33978         * modules/shutdown: Likewise.
33979         * modules/socket: Use socket.c instead of winsock.c.
33980         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33981         * doc/posix-functions/accept.texi: Doc fix.
33982         * doc/posix-functions/bind.texi: Doc fix.
33983         * doc/posix-functions/close.texi: Doc fix.
33984         * doc/posix-functions/connect.texi: Doc fix.
33985         * doc/posix-functions/getpeername.texi: Doc fix.
33986         * doc/posix-functions/getsockname.texi: Doc fix.
33987         * doc/posix-functions/getsockopt.texi: Doc fix.
33988         * doc/posix-functions/ioctl.texi: Doc fix.
33989         * doc/posix-functions/listen.texi: Doc fix.
33990         * doc/posix-functions/recv.texi: Doc fix.
33991         * doc/posix-functions/recvfrom.texi: Doc fix.
33992         * doc/posix-functions/send.texi: Doc fix.
33993         * doc/posix-functions/sendto.texi: Doc fix.
33994         * doc/posix-functions/setsockopt.texi: Doc fix.
33995         * doc/posix-functions/shutdown.texi: Doc fix.
33996         * doc/posix-functions/socket.texi: Doc fix.
33997
33998 2008-10-20  Bruno Haible  <bruno@clisp.org>
33999
34000         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34001         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34002         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34003         as an alias for SIGABRT.
34004         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34005         (sigaction): Map it to SIGABRT.
34006         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34007
34008 2008-10-20  Bruno Haible  <bruno@clisp.org>
34009
34010         * lib/fts.c: Don't include lstat.h.
34011         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34012
34013         Move the lstat() declaration to <sys/stat.h>.
34014         * lib/lstat.h: Remove file.
34015         * lib/sys_stat.in.h: Add special invocation convention.
34016         (lstat): New declaration.
34017         * lib/lstat.c (orig_lstat): New function.
34018         (rpl_lstat): Use orig_lstat instead of lstat.
34019         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34020         AC_C_INLINE. Set REPLACE_LSTAT.
34021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34022         and REPLACE_LSTAT.
34023         * modules/lstat (Files): Remove lib/lstat.h.
34024         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34025         (Include): Specify <sys/stat.h> instead of lstat.h.
34026         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34027         REPLACE_LSTAT.
34028         * NEWS: Mention the change.
34029
34030 2008-10-20  Bruno Haible  <bruno@clisp.org>
34031
34032         * modules/posix_spawn-tests: New file.
34033         * tests/test-posix_spawn3.c: New file.
34034
34035 2008-10-20  Bruno Haible  <bruno@clisp.org>
34036
34037         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34038         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34039         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34040         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34041         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34042
34043 2008-10-20  Bruno Haible  <bruno@clisp.org>
34044
34045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34046         of posix_spawn on AIX 5.3.
34047
34048 2008-10-20  Bruno Haible  <bruno@clisp.org>
34049
34050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34051
34052 2008-10-20  Bruno Haible  <bruno@clisp.org>
34053
34054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34055         of AC_LANG_PROGRAM.
34056
34057 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34058
34059         * lib/netdb.in.h: Don't define GNU specific constants until they
34060         are supported or needed.  Reported by Bruno Haible
34061         <bruno@clisp.org>.
34062
34063 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34064
34065         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34066
34067 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34068
34069         * lib/getaddrinfo.h: Remove file.
34070         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34071         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34072         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34073         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34074         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34075         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34076         * tests/test-getaddrinfo.c: Likewise.
34077         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34078         * NEWS: Mention change.
34079
34080 2008-10-19  Bruno Haible  <bruno@clisp.org>
34081
34082         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34083
34084 2008-10-19  Bruno Haible  <bruno@clisp.org>
34085
34086         * lib/wait-process.c: Include simply <sys/wait.h>.
34087         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34088         WIFSTOPPED): Remove fallback definitions.
34089         * modules/wait-process (Depends-on): Add sys_wait.
34090
34091         New module 'sys_wait'.
34092         * modules/sys_wait: New file.
34093         * lib/sys_wait.in.h: New file, partially copied from
34094         lib/wait-process.c.
34095         * m4/sys_wait_h.m4: New file.
34096         * doc/posix-headers/sys_wait.texi: Mention the new module.
34097
34098 2008-10-19  Bruno Haible  <bruno@clisp.org>
34099
34100         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34101
34102 2008-10-19  Bruno Haible  <bruno@clisp.org>
34103
34104         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34105         * lib/wait-process.c (WAIT_T): Remove type.
34106         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34107         (wait_subprocess): Update.
34108
34109 2008-10-19  Bruno Haible  <bruno@clisp.org>
34110
34111         New module 'atoll'.
34112         * modules/atoll: New file.
34113         * lib/stdlib.in.h (atoll): New declaration.
34114         * lib/atoll.c: New file, from glibc with modifications.
34115         * m4/atoll.m4: New file.
34116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34117         HAVE_ATOLL.
34118         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34119         * doc/posix-functions/atoll.texi: Mention the new module.
34120
34121 2008-10-19  Bruno Haible  <bruno@clisp.org>
34122
34123         Add strtoull() declaration to <stdlib.h>.
34124         * lib/stdlib.in.h (strtoull): New declaration.
34125         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34126         Set HAVE_STRTOULL.
34127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34128         HAVE_STRTOULL.
34129         * modules/strtoull (Depends-on): Add stdlib.
34130         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34131         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34132         HAVE_STRTOULL.
34133
34134 2008-10-19  Bruno Haible  <bruno@clisp.org>
34135
34136         Add strtoll() declaration to <stdlib.h>.
34137         * lib/stdlib.in.h (strtoll): New declaration.
34138         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34139         Set HAVE_STRTOLL.
34140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34141         HAVE_STRTOLL.
34142         * modules/strtoll (Depends-on): Add stdlib.
34143         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34144         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34145
34146 2008-10-19  Bruno Haible  <bruno@clisp.org>
34147
34148         * modules/bcopy (Depends-on): Add strings.
34149         (Include): Specify <strings.h>.
34150
34151 2008-10-19  Bruno Haible  <bruno@clisp.org>
34152
34153         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34154
34155 2008-10-19  Bruno Haible  <bruno@clisp.org>
34156
34157         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34158         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34159         mingw.
34160
34161 2008-10-19  Bruno Haible  <bruno@clisp.org>
34162
34163         * lib/atanl.c: Don't include isnanl.h.
34164         * lib/cosl.c: Likewise.
34165         * lib/ldexpl.c: Likewise.
34166         * lib/logl.c: Likewise.
34167         * lib/sinl.c: Likewise.
34168         * lib/sqrtl.c: Likewise.
34169         * lib/tanl.c: Likewise.
34170
34171         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34172         * lib/isnanf.h: Remove file.
34173         * lib/isnand.h: Remove file.
34174         * lib/isnanl.h: Remove file.
34175         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34176         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34177         macros.
34178         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34179         HAVE_ISNANF, don't define it as a C macro.
34180         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34181         HAVE_ISNAND, don't define it as a C macro.
34182         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34183         HAVE_ISNANL, don't define it as a C macro.
34184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34185         HAVE_ISNAN[FDL].
34186         * modules/isnanf (Files): Remove lib/isnanf.h.
34187         (Depends-on): Add math.
34188         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34189         (Include): Specify <math.h> instead of isnanf.h.
34190         * modules/isnand (Files): Remove lib/isnand.h.
34191         (Depends-on): Add math.
34192         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34193         (Include): Specify <math.h> instead of isnand.h.
34194         * modules/isnanl (Files): Remove lib/isnanl.h.
34195         (Depends-on): Add math.
34196         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34197         (Include): Specify <math.h> instead of isnanl.h.
34198         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34199         HAVE_ISNAN[FDL].
34200         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34201         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34202         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34203         * NEWS: Mention the change.
34204
34205 2008-10-18  Bruno Haible  <bruno@clisp.org>
34206
34207         Add getusershell(), setusershell(), endusershell() declarations to
34208         <unistd.h>.
34209         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34210         declarations.
34211         * lib/getusershell.c: Include unistd.h.
34212         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34213         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34214         HAVE_GETUSERSHELL.
34215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34216         and HAVE_GETUSERSHELL.
34217         * modules/getusershell (Depends-on): Add unistd, extensions.
34218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34219         (Include): Specify <unistd.h>.
34220         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34221         HAVE_GETUSERSHELL.
34222
34223 2008-10-18  Bruno Haible  <bruno@clisp.org>
34224
34225         Add a getloadavg() declaration to <stdlib.h>.
34226         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34227         getloadavg declaration.
34228         (getloadavg): New declaration.
34229         * lib/getloadavg.c: Include <stdlib.h> first.
34230         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34231         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34232         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34234         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34235         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34236         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34237         (Include): Specify <stdlib.h>.
34238         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34239         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34240
34241 2008-10-18  Bruno Haible  <bruno@clisp.org>
34242
34243         * lib/dirchownmod.c: Don't include lchmod.h.
34244
34245         Move the lchmod() declaration to <sys/stat.h>.
34246         * lib/lchmod.h: Remove file.
34247         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34248         (lchmod): New declaration, moved here from lib/lchown.h.
34249         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34250         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34251         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34252         and HAVE_LCHMOD.
34253         * modules/lchmod (Files): Remove lib/lchmod.h.
34254         (Depends-on): Add sys_stat, extensions.
34255         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34256         (Include): Specify <sys/stat.h> instead of lchmod.h.
34257         * modules/sys_stat (Depends-on): Add link-warning.
34258         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34259         definition of GL_LINK_WARNING.
34260         * NEWS: Mention the change.
34261
34262 2008-10-18  Bruno Haible  <bruno@clisp.org>
34263
34264         * lib/fchdir.c: Don't include dirfd.h.
34265         * lib/fts.c: Likewise.
34266         * lib/getcwd.c: Likewise.
34267         * lib/glob.c: Likewise.
34268
34269         Move the dirfd() declaration to <dirent.h>.
34270         * lib/dirfd.h: Remove file.
34271         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34272         (dirfd): New declaration.
34273         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34274         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34275         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34276         HAVE_DECL_DIRFD.
34277         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34278         HAVE_DECL_DIRFD.
34279         * modules/dirfd (Files): Remove lib/dirfd.h.
34280         (Depends-on): Add dirent, extensions.
34281         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34282         (Include): Specify <dirent.h> instead of dirfd.h.
34283         * modules/dirent (Depends-on): Add link-warning.
34284         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34285         definition of GL_LINK_WARNING.
34286         * NEWS: Mention the change.
34287
34288 2008-10-18  Bruno Haible  <bruno@clisp.org>
34289
34290         Move the euidaccess() declaration to <unistd.h>.
34291         * lib/euidaccess.h: Remove file.
34292         * lib/unistd.in.h (euidaccess): New declaration.
34293         * lib/euidaccess.c: Don't include euidaccess.h.
34294         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34295         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34297         and HAVE_EUIDACCESS.
34298         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34299         (Depends-on): Add unistd.
34300         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34301         (Include): Specify <unistd.h> instead of euidaccess.h.
34302         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34303         HAVE_EUIDACCESS.
34304         * NEWS: Mention the change.
34305
34306 2008-10-18  Bruno Haible  <bruno@clisp.org>
34307
34308         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34309
34310         Move the getdomainname() declaration to <unistd.h>.
34311         * lib/getdomainname.h: Remove file.
34312         * lib/unistd.in.h (getdomainname): New declaration.
34313         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34314         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34315         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34316         HAVE_GETDOMAINNAME.
34317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34318         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34319         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34320         (Depends-on): Add unistd, extensions.
34321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34322         (Includes): Specify <unistd.h> instead of getdomainname.h.
34323         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34324         HAVE_GETDOMAINNAME.
34325         * NEWS: Mention the change.
34326
34327 2008-10-18  Bruno Haible  <bruno@clisp.org>
34328
34329         * modules/dirent: New file.
34330         * m4/dirent_h.m4: New file.
34331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34332         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34333         * modules/fchdir (Files): Remove lib/dirent.in.h.
34334         (Depends-on): Add dirent.
34335         (Makefile.am): Move rules to modules/dirent.
34336         * doc/posix-headers/dirent.texi: Mention the new module.
34337
34338 2008-10-18  Bruno Haible  <bruno@clisp.org>
34339
34340         Avoid -Wunused-parameter warnings in public gnulib header files.
34341         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34342         macro.
34343         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34344
34345 2008-10-18  Bruno Haible  <bruno@clisp.org>
34346
34347         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34348         * doc/glibc-functions/error.texi: Mention the module 'error'.
34349         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34350         * doc/glibc-functions/getdomainname.texi: Mention the module
34351         'getdomainname'.
34352         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34353         * doc/glibc-functions/getpagesize.texi: Mention the module
34354         'getpagesize'.
34355         * doc/glibc-functions/getusershell.texi: Mention the module
34356         'getusershell'.
34357         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34358         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34359         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34360         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34361         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34362         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34363         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34364         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34365         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34366         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34367         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34368         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34369         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34370         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34371
34372 2008-10-17  Bruno Haible  <bruno@clisp.org>
34373
34374         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34375         HP-UX and IRIX, use -0.0L.
34376         * tests/test-ceill.c (minus_zero): Likewise.
34377         * tests/test-floorl.c (minus_zero): Likewise.
34378         * tests/test-frexpl.c (minus_zero): Likewise.
34379         * tests/test-isnan.c (minus_zerol): Likewise.
34380         * tests/test-isnanl.h (minus_zero): Likewise.
34381         * tests/test-ldexpl.c (minus_zero): Likewise.
34382         * tests/test-roundl.c (minus_zero): Likewise.
34383         * tests/test-signbit.c (minus_zerol): Likewise.
34384         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34385         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34386         * tests/test-truncl.c (minus_zero): Likewise.
34387         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34388         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34389         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34390         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34391
34392 2008-10-17  Bruno Haible  <bruno@clisp.org>
34393
34394         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34395         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34396         that it gets activated only for gcc >= 3.0.
34397         * lib/dirent.in.h: Likewise.
34398         * lib/errno.in.h: Likewise.
34399         * lib/fcntl.in.h: Likewise.
34400         * lib/float.in.h: Likewise.
34401         * lib/iconv.in.h: Likewise.
34402         * lib/inttypes.in.h: Likewise.
34403         * lib/locale.in.h: Likewise.
34404         * lib/math.in.h: Likewise.
34405         * lib/netdb.in.h: Likewise.
34406         * lib/netinet_in.in.h: Likewise.
34407         * lib/search.in.h: Likewise.
34408         * lib/signal.in.h: Likewise.
34409         * lib/spawn.in.h: Likewise.
34410         * lib/stdarg.in.h: Likewise.
34411         * lib/stdint.in.h: Likewise.
34412         * lib/stdio.in.h: Likewise.
34413         * lib/stdlib.in.h: Likewise.
34414         * lib/string.in.h: Likewise.
34415         * lib/strings.in.h: Likewise.
34416         * lib/sys_file.in.h: Likewise.
34417         * lib/sys_ioctl.in.h: Likewise.
34418         * lib/sys_select.in.h: Likewise.
34419         * lib/sys_socket.in.h: Likewise.
34420         * lib/sys_stat.in.h: Likewise.
34421         * lib/sys_time.in.h: Likewise.
34422         * lib/sysexits.in.h: Likewise.
34423         * lib/time.in.h: Likewise.
34424         * lib/unistd.in.h: Likewise.
34425         * lib/wchar.in.h: Likewise.
34426         * lib/wctype.in.h: Likewise.
34427         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34428
34429 2008-10-17  Jim Meyering  <meyering@redhat.com>
34430
34431         ignore-value: don't depend on inline module
34432         * modules/ignore-value (Depends-on): Remove 'inline'.
34433         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34434         Suggestion from Bruno Haible.
34435
34436 2008-10-17  Bruno Haible  <bruno@clisp.org>
34437
34438         New implementation of condition variables for Win32.
34439         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34440         (gl_linked_waitqueue_t): New type.
34441         (gl_cond_t): Use it.
34442         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34443         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34444         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34445         (glthread_cond_init_func, glthread_cond_wait_func,
34446         glthread_cond_timedwait_func, glthread_cond_signal_func,
34447         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34448         Reimplemented on the basis of gl_linked_waitqueue_t.
34449         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34450         gl_waitqueue_t.
34451         (gl_rwlock_t): Update.
34452         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34453
34454 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34455
34456         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34457         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34458
34459 2008-10-17  Jim Meyering  <meyering@redhat.com>
34460
34461         ignore-value: new module
34462         * modules/ignore-value: New file.
34463         * lib/ignore-value.h: New file.
34464         * MODULES.html.sh (Compiler warning management): New section,
34465         just for this module.  More to come.
34466
34467 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34468
34469         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34470         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34471         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34472
34473 2008-10-16  Jim Meyering  <meyering@redhat.com>
34474
34475         openat-die.c: avoid 'no previous prototype' warning
34476         * lib/openat-die.c: Include "openat.h".
34477         Reported by Reuben Thomas <rrt@sc3d.org>.
34478
34479 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34480
34481         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34482         * lib/netdb.in.h: Fix typo.
34483         Reported by Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/netdb.in.h: Include sys/socket.h for platforms without
34486         netdb.h, to get structures like hostent on MinGW.
34487         * modules/netdb (Depends-on): Add sys_socket.
34488
34489 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34490
34491         * modules/netdb, modules/netdb-tests: New file.
34492         * m4/netdb_h.m4: New file.
34493         * lib/netdb.in.h: Add, currently just an empty file pending
34494         definitions.
34495         * tests/test-netdb.c: New file.
34496         * doc/posix-headers/netdb.texi: Mention that we replace it if
34497         needed.
34498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34499         netdb.
34500
34501 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34502
34503         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34504         with code.
34505
34506 2008-10-13  Bruno Haible  <bruno@clisp.org>
34507
34508         * lib/glthread/cond.c (glthread_cond_wait_func,
34509         glthread_cond_timedwait_func): Add a comment.
34510
34511 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34512
34513         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34514         * tests/test-select.c: Likewise,
34515
34516 2008-10-13  Bruno Haible  <bruno@clisp.org>
34517
34518         * lib/glthread/cond.c (glthread_cond_wait_func,
34519         glthread_cond_timedwait_func): Fix variable name.
34520         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34521
34522 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34523
34524         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34526         struct sockaddr.sa_len.
34527         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34528
34529 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34530
34531         * build-aux/pmccabe2html: Add css and css_url parameters.
34532
34533 2008-10-12  Bruno Haible  <bruno@clisp.org>
34534
34535         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34536         calling aclx_get.
34537         Reported by Rainer Tammer <tammer@tammer.net>.
34538
34539 2008-10-12  Bruno Haible  <bruno@clisp.org>
34540
34541         Use msvcrt aware primitives for creation/termination of Win32 threads.
34542         * lib/glthread/thread.c: Include <process.h>.
34543         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34544         (wrapper_func): Update signature.
34545         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34546
34547 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34548             Bruno Haible  <bruno@clisp.org>
34549
34550         Provide a Win32 implementation of the 'cond' module.
34551         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34552         * lib/glthread/cond.c (glthread_cond_init_func,
34553         glthread_cond_wait_func, glthread_cond_timedwait_func,
34554         glthread_cond_signal_func, glthread_cond_broadcast_func,
34555         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34556         * modules/cond (Dependencies): Add gettimeofday.
34557
34558 2008-10-11  Bruno Haible  <bruno@clisp.org>
34559
34560         Make sleep work on older versions of mingw.
34561         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34562         only whether it exists.
34563         * doc/posix-functions/sleep.texi: Mention the problem with older
34564         versions of mingw.
34565
34566 2008-10-11  Bruno Haible  <bruno@clisp.org>
34567
34568         New module 'shutdown'.
34569         * modules/shutdown: New file.
34570         * lib/sys_socket.in.h (shutdown): New declaration.
34571         * lib/winsock.c (shutdown): New function.
34572         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34573         GNULIB_SHUTDOWN.
34574         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34575         * doc/posix-functions/shutdown.texi: Document the new module.
34576
34577 2008-10-11  Jim Meyering  <meyering@redhat.com>
34578
34579         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34580
34581 2008-10-11  Bruno Haible  <bruno@clisp.org>
34582
34583         New module 'fclose'.
34584         * modules/fclose: New file.
34585         * lib/stdio.in.h (fclose): New declaration.
34586         * lib/fclose.c: New file.
34587         * m4/fclose.m4: New file.
34588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34589         REPLACE_FCLOSE.
34590         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34591         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34592         REPLACE_FCLOSE.
34593         * modules/close (Depends-on): fclose.
34594         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34595
34596 2008-10-11  Bruno Haible  <bruno@clisp.org>
34597
34598         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34599         set errno and don't call _close.
34600
34601 2008-10-10  Bruno Haible  <bruno@clisp.org>
34602
34603         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34604         ACL, not afterwards. Fixes test failure on Cygwin.
34605
34606 2008-10-09  Ben Pfaff  <blp@gnu.org>
34607
34608         * build-aux/announce-gen: Fix gnulib version related part of usage
34609         message.  Die with a useful error message if no tarballs are
34610         found.
34611
34612 2008-10-10  Jim Meyering  <meyering@redhat.com>
34613
34614         bootstrap: use git's --depth=N option only if it's supported
34615         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34616         recognize the --depth option.  Reported by Pádraig Brady.
34617
34618 2008-10-09  Bruno Haible  <bruno@clisp.org>
34619
34620         New module 'ioctl'.
34621         * modules/ioctl: New file.
34622         * lib/sys_socket.in.h (ioctl): Remove declaration.
34623         * lib/winsock.c: Include <sys/ioctl.h>.
34624         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34625         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34626         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34627         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34628         * doc/posix-functions/ioctl.texi: Mention the new module.
34629
34630 2008-10-09  Bruno Haible  <bruno@clisp.org>
34631
34632         New module 'sys_ioctl'.
34633         * lib/sys_ioctl.in.h: New file.
34634         * m4/sys_ioctl_h.m4: New file.
34635         * modules/sys_ioctl: New file.
34636         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34637
34638 2008-10-09  Bruno Haible  <bruno@clisp.org>
34639
34640         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34641         * lib/winsock.c: Include <stdarg.h>.
34642         (rpl_ioctl): Change to second argument 'int' and then varargs.
34643
34644 2008-10-09  Bruno Haible  <bruno@clisp.org>
34645
34646         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34647         when the sys_socket module is present and the system has <winsock2.h>.
34648
34649 2008-10-09  Bruno Haible  <bruno@clisp.org>
34650
34651         * doc/posix-functions/close.texi: Mention module 'close' instead of
34652         module 'sys_socket'.
34653
34654 2008-10-09  Bruno Haible  <bruno@clisp.org>
34655
34656         * doc/glibc-headers/sys_ioctl.texi: New file.
34657         * doc/gnulib.texi: Include it.
34658
34659 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34660             Bruno Haible  <bruno@clisp.org>
34661
34662         Combine the two replacements of 'close'.
34663         * lib/sys_socket.in.h (close): Define to a reminder to include
34664         <unistd.h>.
34665         (_gl_close_fd_maybe_socket): New declaration.
34666         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34667         * lib/winsock.c (close): Remove undefinition.
34668         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34669         needed for the gnulib module 'close'.
34670         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34671         define to an error symbol or to a warning, if suitable.
34672         * lib/close.c: Include <sys/socket.h>.
34673         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34674         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34675         UNISTD_H_HAVE_WINSOCK2_H.
34676         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34678         UNISTD_H_HAVE_WINSOCK2_H.
34679         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34680         (configure.ac): Set a module indicator.
34681         (Makefile.am): Substitute GNULIB_CLOSE.
34682         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34683         * modules/poll-tests (Depends-on): Add close.
34684         * modules/select-tests (Depends-on): Likewise.
34685
34686 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34687             Bruno Haible  <bruno@clisp.org>
34688
34689         New module 'close'.
34690         * modules/close: New file.
34691         * lib/unistd.in.h (close): Move declaration out of the
34692         FCHDIR_REPLACEMENT scope.
34693         (_gl_unregister_fd): New declaration.
34694         * lib/close.c: New file.
34695         * lib/fchdir.c (rpl_close): Remove function.
34696         * m4/close.m4: New file.
34697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34698         close.
34699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34700         REPLACE_CLOSE.
34701         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34702         REPLACE_CLOSE.
34703         * modules/fchdir (Depends-on): Add close.
34704
34705 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34706             Bruno Haible  <bruno@clisp.org>
34707
34708         * lib/fcntl.in.h (open): Simplify conditionals.
34709         (_gl_register_fd): New declaration.
34710         * lib/fchdir.c (rpl_open): Remove function.
34711         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34712         also.
34713         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34715         open.
34716
34717 2008-10-09  Jim Meyering  <meyering@redhat.com>
34718
34719         GNUmakefile: use the more name-space-friendly "_version"
34720         * top/GNUmakefile (_dummy): Update.
34721         (_version): Rename from "version".
34722
34723 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34724             Bruno Haible  <bruno@clisp.org>
34725
34726         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34727         rpl_close.
34728         (_gl_register_fd): New function, extracted from rpl_open.
34729         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34730         (rpl_open, rpl_opendir): Use _gl_register_fd.
34731
34732 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34733
34734         Fix organization of 'open' replacement.
34735         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34736         (gl_FUNC_OPEN): Use it.
34737         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34738
34739 2008-10-08  Bruno Haible  <bruno@clisp.org>
34740
34741         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34742
34743 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34744
34745         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34746         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34747         listen).
34748
34749 2008-10-08  Eric Blake  <ebb9@byu.net>
34750
34751         GNUmakefile: add 'make version' target
34752         * top/GNUmakefile (_curr-ver): Split version update rules...
34753         (version): ...into a target.
34754
34755 2008-10-07  Bruno Haible  <bruno@clisp.org>
34756
34757         Use a more portable replacement expression for -0.0L.
34758         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34759         instead of -0.0L. Fix m4 quotation.
34760
34761         * tests/test-signbit.c: Include <float.h>.
34762         (minus_zero): New variable.
34763         (test_signbitl): Use minus_zero instead of -zero.
34764         * modules/signbit-tests (Depends-on): Add float.
34765
34766         * tests/test-ceill.c: Include <float.h>.
34767         (zero): Remove variable.
34768         (minus_zero): New variable.
34769         (main): Use minus_zero instead of -zero.
34770         * modules/ceill-tests (Depends-on): Add float.
34771
34772         * tests/test-floorl.c: Include <float.h>.
34773         (zero): Remove variable.
34774         (minus_zero): New variable.
34775         (main): Use minus_zero instead of -zero.
34776         * modules/floorl-tests (Depends-on): Add float.
34777
34778         * tests/test-roundl.c: Include <float.h>.
34779         (zero): Remove variable.
34780         (minus_zero): New variable.
34781         (main): Use minus_zero instead of -zero.
34782         * modules/roundl-tests (Depends-on): Add float.
34783
34784         * tests/test-truncl.c: Include <float.h>.
34785         (zero): Remove variable.
34786         (minus_zero): New variable.
34787         (main): Use minus_zero instead of -zero.
34788         * modules/truncl-tests (Depends-on): Add float.
34789
34790         * tests/test-frexpl.c (zero): Remove variable.
34791         (minus_zero): New variable.
34792         (main): Use minus_zero instead of -zero.
34793         * modules/frexpl-tests (Depends-on): Add float.
34794
34795         * tests/test-isnan.c (zerol): Remove variable.
34796         (minus_zerol): New variable.
34797         (test_long_double): Use minus_zerol instead of -zerol.
34798         * modules/isnan-tests (Depends-on): Add float.
34799
34800         * tests/test-isnanl.h (zero): Remove variable.
34801         (minus_zero): New variable.
34802         (main): Use minus_zero instead of -zero.
34803         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34804         * modules/isnanl-tests (Depends-on): Add float.
34805
34806         * tests/test-ldexpl.c (zero): Remove variable.
34807         (minus_zero): New variable.
34808         (main): Use minus_zero instead of -zero.
34809         * modules/ldexpl-tests (Depends-on): Add float.
34810
34811         * tests/test-snprintf-posix.h (zerol): Remove variable.
34812         (minus_zerol): New variable.
34813         (test_function): Use minus_zerol instead of -zerol.
34814         * modules/snprintf-posix-tests (Depends-on): Add float.
34815         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34816
34817         * tests/test-sprintf-posix.h (zerol): Remove variable.
34818         (minus_zerol): New variable.
34819         (test_function): Use minus_zerol instead of -zerol.
34820         * modules/sprintf-posix-tests (Depends-on): Add float.
34821         * modules/vsprintf-posix-tests (Depends-on): Add float.
34822
34823         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34824         (minus_zerol): New variable.
34825         (test_function): Use minus_zerol instead of -zerol.
34826         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34827
34828         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34829         (minus_zerol): New variable.
34830         (test_function): Use minus_zerol instead of -zerol.
34831         * modules/vasprintf-posix-tests (Depends-on): Add float.
34832
34833 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34834
34835         * MODULES.html.sh (Support for building documentation): Mention
34836         pmccabe2html.  Sort entries.
34837
34838         Add pmccabe2html module, from gnupdf.
34839         * build-aux/pmccabe.css: New file.
34840         * build-aux/pmccabe2html: New file.
34841         * m4/pmccabe2html.m4: New file.
34842         * modules/pmccabe2html: New file.
34843
34844 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34845
34846         flock: new module
34847         * MODULES.html.sh: Add to list of modules.
34848         * lib/flock.c: flock implementation for Windows and Unix systems
34849         which have fcntl.
34850         * doc/glibc-functions/flock.texi: Update documentation.
34851         * lib/sys_file.in.h: <sys/file.h> header file.
34852         * m4/flock.m4: M4 macros.
34853         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34854         * modules/flock: flock module.
34855         * modules/flock-tests: flock tests module.
34856         * modules/sys_file: sys/file.h module.
34857         * tests/test-flock.c: test suite for flock.
34858
34859 2008-10-06  Jim Meyering  <meyering@redhat.com>
34860
34861         bootstrap: check for LT_INIT more portably still ;-)
34862         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34863         Spotted by Bruno Haible.
34864
34865 2008-10-06  Eric Blake  <ebb9@byu.net>
34866
34867         test-signbit: avoid tripping Irix cc bug on -0.0L
34868         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34869         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34870         entire testsuite consistent and avoids an Irix 6.2 bug.
34871
34872 2008-10-05  Bruno Haible  <bruno@clisp.org>
34873             Jim Meyering  <jim@meyering.net>
34874
34875         Add an option for ignoring EPIPE during close_stdout.
34876         * lib/closeout.h: Include <stdbool.h>.
34877         (close_stdout_set_ignore_EPIPE): New declaration.
34878         * lib/closeout.c: Include <stdbool.h>.
34879         (ignore_EPIPE): New variable.
34880         (close_stdout_set_ignore_EPIPE): New function.
34881         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34882         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34883         failure.
34884         * modules/closeout (Depends-on): Add stdbool.
34885
34886 2008-10-05  Bruno Haible  <bruno@clisp.org>
34887
34888         * modules/accept: New file.
34889         * modules/bind: New file.
34890         * modules/connect: New file.
34891         * modules/getpeername: New file.
34892         * modules/getsockname: New file.
34893         * modules/getsockopt: New file.
34894         * modules/listen: New file.
34895         * modules/recv: New file.
34896         * modules/recvfrom: New file.
34897         * modules/send: New file.
34898         * modules/sendto: New file.
34899         * modules/setsockopt: New file.
34900         * modules/socket: New file.
34901         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34902         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34903         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34904         the particular module is requested. Add a link warning when the
34905         particular module is not requested.
34906         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34907         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34908         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34909         the particular module is requested.
34910         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34911         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34912         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34913         * modules/sys_socket (Depends-on): Add link-warning.
34914         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34915         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34916         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34917         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34918         GL_LINK_WARNING.
34919         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34920         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34921         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34922         * doc/posix-functions/getpeername.texi: Mention the new module
34923         'getpeername'.
34924         * doc/posix-functions/getsockname.texi: Mention the new module
34925         'getsockname'.
34926         * doc/posix-functions/getsockopt.texi: Mention the new module
34927         'getsockopt'.
34928         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34929         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34930         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34931         * doc/posix-functions/send.texi: Mention the new module 'send'.
34932         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34933         * doc/posix-functions/setsockopt.texi: Mention the new module
34934         'setsockopt'.
34935         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34936         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34937         listen, connect, accept.
34938         * modules/select-tests (Depends-on): Likewise.
34939
34940 2008-10-05  Bruno Haible  <bruno@clisp.org>
34941
34942         * lib/winsock.c (strerror): Remove unused #undef.
34943         (rpl_close): Remove unused local variable.
34944
34945         * modules/sys_socket (Depends-on); Add errno.
34946
34947 2008-10-05  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34950         (select): Add a link warning when the 'select' module is not used.
34951         * modules/sys_select (Depends-on): Add link-warning.
34952         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34953         Suggested by Paolo Bonzini.
34954
34955 2008-10-05  Jim Meyering  <meyering@redhat.com>
34956
34957         bootstrap: check for LT_INIT more portably
34958         * build-aux/bootstrap: Avoid using grep -E, since it's not
34959         portable enough.  Suggestion from Bruno Haible.
34960
34961 2008-10-05  Bruno Haible  <bruno@clisp.org>
34962
34963         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34964         as being fixed by gnulib.
34965
34966 2008-10-05  Bruno Haible  <bruno@clisp.org>
34967
34968         * modules/select-tests: New file, mostly copied from
34969         modules/sys_select-tests.
34970         * tests/test-select.c: New file, mostly copied from
34971         tests/test-sys_select.c.
34972         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34973         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34974         (Makefile.am): Remove test_sys_select_LDADD.
34975
34976         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34977         to an undefined symbol, for an error message.
34978         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34979         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34980         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34981         winsock-select.c here.
34982         * modules/sys_select (Files): Remove lib/winsock-select.c.
34983         (Depends-on): Remove alloca.
34984         (Makefile.am): Substitute GNULIB_SELECT.
34985         * modules/select: New file.
34986         * doc/posix-functions/select.texi: Update.
34987
34988 2008-10-05  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34991         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34992         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34993         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34994         getdtablesize.
34995         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34996         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34997
34998 2008-10-05  Bruno Haible  <bruno@clisp.org>
34999
35000         * modules/getdtablesize-tests: New file.
35001         * tests/test-getdtablesize.c: New file.
35002
35003         New module 'getdtablesize'.
35004         * lib/unistd.in.h (getdtablesize): New declaration.
35005         * lib/getdtablesize.c: New file.
35006         * m4/getdtablesize.m4: New file.
35007         * modules/getdtablesize: New file.
35008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35009         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35010         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35011         HAVE_GETDTABLESIZE.
35012         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35013
35014 2008-10-05  Bruno Haible  <bruno@clisp.org>
35015
35016         * modules/sched (Makefile.am): Fix typo.
35017         Reported by Simon Josefsson.
35018
35019 2008-10-05  Jim Meyering  <meyering@redhat.com>
35020
35021         bootstrap: check for LT_INIT, too
35022         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35023         are deprecated.  Suggestion from Ralf Wildenhues.
35024
35025 2008-10-05  Bruno Haible  <bruno@clisp.org>
35026
35027         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35028         overriding them by ours.
35029         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35030
35031 2008-10-05  Jim Meyering  <meyering@redhat.com>
35032
35033         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35034         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35035         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35036
35037 2008-10-04  Bruno Haible  <bruno@clisp.org>
35038
35039         * modules/dup2 (License): Change to LGPLv2+.
35040         * modules/sleep (License): Likewise.
35041         * modules/perror (License): Likewise.
35042         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35043         Blake.
35044         * modules/signal (License): Likewise.
35045         * modules/sigprocmask (License): Likewise.
35046         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35047         Meyering.
35048
35049 2008-10-04  Bruno Haible  <bruno@clisp.org>
35050
35051         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35052         Reported by Rainer Tammer <tammer@tammer.net>.
35053
35054 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35055             Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35058         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35059         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35060
35061 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35062
35063         filevercmp: new module
35064         * lib/filevercmp.h: New function filevercmp comparing version strings.
35065         * lib/filevercmp.c: Implementation of filevercmp function.
35066         * modules/filevercmp: Module metadata.
35067         * tests/test-filevercmp.c: Unit test for new module.
35068         * modules/filevercmp-tests: Unit test metadata.
35069         * MODULES.html.sh: Add filevercmp module.
35070
35071 2008-10-03  Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/c-ctype.h: Add comment.
35074         Reported by Jim Meyering.
35075
35076 2008-10-02  Bruno Haible  <bruno@clisp.org>
35077
35078         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35079
35080 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35081
35082         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35083         name of bootstrap.conf accordingly.
35084
35085 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35086
35087         * build-aux/bootstrap: Install git-merge-changelog configuration
35088         items into .gitconfig if needed.
35089
35090 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35091
35092         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35093         git repository, and initialize/update it accordingly.
35094
35095 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35096
35097         * modules/fsync-tests: New file.
35098         * tests/test-fsync.c: New file.
35099
35100         New module 'fsync'.
35101         * lib/fsync.c: New file.
35102         * m4/fsync.m4: New file.
35103         * modules/fsync: New file.
35104         * lib/unistd.in.h (fsync): New declaration.
35105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35106         GNULIB_FSYNC and HAVE_FSYNC.
35107         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35108         * MODULES.html.sh (posix_functions): Add fsync.
35109         * doc/posix-functions/fsync.texi: Mention the new module.
35110
35111 2008-10-02  Jim Meyering  <meyering@redhat.com>
35112
35113         fts.c: sync with similar code from coreutils' remove.c
35114         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35115         Guard also with "#if defined __linux__", since for now at least,
35116         this code is Linux-kernel-specific.
35117
35118 2008-10-02  Jim Meyering  <meyering@redhat.com>
35119
35120         fts: bug fixes
35121         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35122         Include <sys/vfs.h>, not <sys/statfs.h>.
35123
35124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35125         Include <sys/vfs.h>, not <sys/statfs.h>.
35126
35127 2008-10-01  Bruno Haible  <bruno@clisp.org>
35128
35129         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35130         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35131         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35132         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35133         * doc/posix-functions/posix_spawnp.texi: Likewise.
35134         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35135         whether posix_spawn actually works.
35136         * m4/pipe.m4 (gl_PIPE): Likewise.
35137         * modules/execute (Files): Add m4/posix_spawn.m4.
35138         * modules/pipe (Files): Add m4/posix_spawn.m4.
35139         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35140
35141 2008-10-01  Jim Meyering  <meyering@redhat.com>
35142
35143         remove trailing spaces
35144         * NEWS: Likewise.
35145         * lib/poll.c (poll): Likewise.
35146         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35147         * lib/winsock.c (rpl_close): Likewise.
35148         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35149         * modules/yield: Likewise.
35150         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35151         * tests/test-sys_select.c (connect_to_socket): Likewise.
35152
35153         fts.c: adjust a new interface to be more generally useful
35154         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35155         (fts_build): Adjust caller.
35156
35157 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35158
35159         * modules/cond-tests: New file.
35160         * tests/test-cond.c: New file.
35161
35162 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35163             Bruno Haible  <bruno@clisp.org>
35164
35165         * modules/cond (Dependencies): Add errno, time.
35166         * lib/glthread/cond.h: Include <time.h>.
35167         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35168         across platforms.
35169
35170 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35171             Bruno Haible  <bruno@clisp.org>
35172
35173         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35174
35175 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35176             Bruno Haible  <bruno@clisp.org>
35177
35178         * modules/tls-tests (Depends-on): Add thread, yield.
35179         (configure.ac): Remove all checks.
35180         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35181         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35182         gl_thread_self): Remove definitions. Include glthread/thread.h and
35183         glthread/yield.h instead.
35184         (test_tls): Pass an additional NULL argument to gl_thread_join.
35185
35186 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35187             Bruno Haible  <bruno@clisp.org>
35188
35189         * modules/lock-tests (Depends-on): Add thread, yield.
35190         (configure.ac): Remove all checks.
35191         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35192         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35193         gl_thread_self): Remove definitions. Include glthread/thread.h and
35194         glthread/yield.h instead.
35195         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35196         additional NULL argument to gl_thread_join.
35197
35198 2008-09-30  Bruno Haible  <bruno@clisp.org>
35199
35200         Fix the Win32 implementation of the 'thread' module.
35201         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35202         pointer type.
35203         (gl_thread_self): Invoke gl_thread_self_func.
35204         (gl_thread_self_func): New declaration.
35205         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35206         (do_init_self_key, init_self_key): New functions.
35207         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35208         Remove some fields.
35209         (running_threads, running_lock): Remove variables.
35210         (get_current_thread_handle): New function.
35211         (gl_thread_self_func, wrapper_func, glthread_create_func,
35212         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35213         simplified.
35214
35215 2008-09-30  Bruno Haible  <bruno@clisp.org>
35216
35217         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35218         files.
35219
35220 2008-09-30  Jim Meyering  <meyering@redhat.com>
35221
35222         fts.m4: correct the test for statfs.f_type
35223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35224         when checking for statfs.f_type.
35225
35226 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35227
35228         tests: avoid some compiler warnings
35229         * tests/test-memchr.c (main): Pass NULL indirectly.
35230         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35231
35232 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
35233
35234         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35235         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35236         exactly specified dayshifts.
35237         (dayshift): New rule.
35238         (rel): Add dayshift.
35239         (relative_time_table) [tomorrow, yesterday, today, now]:
35240         Use tDAY_SHIFT in place of tDAY_UNIT.
35241         * tests/test-getdate.c: Add tests for now-disallowed countable
35242         dayshifts, e.g., "4 yesterday ago".
35243
35244 2008-09-29  Bruno Haible  <bruno@clisp.org>
35245
35246         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35247         * tests/test-posix_spawn1.in.sh: Renamed from
35248         tests/test-posix_spawn.in.sh.
35249         * tests/test-posix_spawn2.c: New file.
35250         * tests/test-posix_spawn2.in.sh: New file.
35251         * modules/posix_spawnp-tests (Files): Update.
35252         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35253
35254 2008-09-29  Bruno Haible  <bruno@clisp.org>
35255
35256         Propagate effects of putenv/setenv/unsetenv to child processes.
35257         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35258         * lib/pipe.c (create_pipe): Likewise.
35259
35260 2008-09-29  Bruno Haible  <bruno@clisp.org>
35261
35262         Enable use of shell scripts as executables in mingw.
35263         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35264         run the program as a shell script.
35265         * lib/pipe.c (create_pipe): Likewise.
35266         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35267         resulting array.
35268
35269 2008-09-29  Eric Blake  <ebb9@byu.net>
35270
35271         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35272
35273 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35274
35275         * doc/posix-functions/accept.texi: Update mingw problems.
35276         * doc/posix-functions/bind.texi: Update mingw problems.
35277         * doc/posix-functions/close.texi: Update mingw problems.
35278         * doc/posix-functions/connect.texi: Update mingw problems.
35279         * doc/posix-functions/getpeername.texi: Update mingw problems.
35280         * doc/posix-functions/getsockname.texi: Update mingw problems.
35281         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35282         * doc/posix-functions/ioctl.texi: Update mingw problems.
35283         * doc/posix-functions/listen.texi: Update mingw problems.
35284         * doc/posix-functions/recv.texi: Update mingw problems.
35285         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35286         * doc/posix-functions/select.texi: Update mingw problems.
35287         * doc/posix-functions/send.texi: Update mingw problems.
35288         * doc/posix-functions/sendto.texi: Update mingw problems.
35289         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35290         * doc/posix-functions/socket.texi: Update mingw problems.
35291
35292 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35293             Bruno Haible  <bruno@clisp.org>
35294
35295         * lib/sys_select.in.h: Include sys/time.h.
35296         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35297         * modules/sys_select: Depend on sys_time.
35298         * tests/test-sys_select.c: Test that sys/select.h defines struct
35299         timeval fully.
35300
35301 2008-09-29  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35304         * lib/sys_select.in.h: Likewise.
35305
35306 2008-09-29  Bruno Haible  <bruno@clisp.org>
35307
35308         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35309
35310 2008-09-29  Bruno Haible  <bruno@clisp.org>
35311
35312         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35313         Set LIBSOCKET instead of augmenting LIBS.
35314         * modules/sockets (Link): New section.
35315         * modules/sockets-tests (test_sockets_LDADD): New variable.
35316         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35317         * modules/poll-tests (test_poll_LDADD): New variable.
35318         * NEWS: Document the change.
35319
35320 2008-09-29  Bruno Haible  <bruno@clisp.org>
35321
35322         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35323         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35324         ARPA_INET_H directly.
35325         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35326
35327 2008-09-28  Bruno Haible  <bruno@clisp.org>
35328
35329         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35330         from gl_HEADER_SYS_SOCKET.
35331         (gl_HEADER_SYS_SOCKET): Invoke it.
35332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35333
35334 2008-09-28  Bruno Haible  <bruno@clisp.org>
35335
35336         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35337         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35338         Needed on OSF/1 4.0.
35339
35340 2008-09-28  Bruno Haible  <bruno@clisp.org>
35341
35342         Override open more carefully.
35343         * lib/open.c (orig_open): New function.
35344         (rpl_open): Use orig_open instead of open.
35345         * lib/fcntl.in.h: Add special invocation convention.
35346         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35347         (gl_FUNC_OPEN): Invoke it.
35348
35349         Override freopen more carefully.
35350         * lib/freopen.c (orig_freopen): New function.
35351         (rpl_freopen): Use orig_freopen instead of freopen.
35352         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35353         (gl_FUNC_FREOPEN): Invoke it.
35354
35355         Override fopen more carefully.
35356         * lib/fopen.c (orig_fopen): New function.
35357         (rpl_fopen): Use orig_fopen instead of fopen.
35358         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35359         (gl_FUNC_FOPEN): Invoke it.
35360         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35361
35362 2008-09-28  Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35365         SIGPIPE.
35366
35367 2008-09-28  Bruno Haible  <bruno@clisp.org>
35368
35369         * tests/test-sigaction.c (handler, main): Disable the check whether
35370         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35371         glibc systems with LinuxThreads.
35372
35373 2008-09-28  Bruno Haible  <bruno@clisp.org>
35374
35375         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35376
35377         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35378         with AIX xlc.
35379         * lib/fcntl.in.h (open): Likewise.
35380         Reported by Rainer Tammer <tammer@tammer.net>.
35381
35382 2008-09-28  Bruno Haible  <bruno@clisp.org>
35383
35384         * modules/posix_spawnp-tests: New file.
35385         * tests/test-posix_spawn.c: New file.
35386         * tests/test-posix_spawn.in.sh: New file.
35387
35388         New module 'posix_spawnp'.
35389         * modules/posix_spawnp: New file.
35390         * lib/spawnp.c: New file, from GNU libc with modifications.
35391         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35392
35393         New module 'posix_spawn'.
35394         * modules/posix_spawn: New file.
35395         * lib/spawn.c: New file, from GNU libc with modifications.
35396         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35397
35398         New module 'posix_spawnattr_destroy'.
35399         * modules/posix_spawnattr_destroy: New file.
35400         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35401         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35402         module.
35403
35404         New module 'posix_spawnattr_setsigmask'.
35405         * modules/posix_spawnattr_setsigmask: New file.
35406         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35407         modifications.
35408         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35409         new module.
35410
35411         New module 'posix_spawnattr_getsigmask'.
35412         * modules/posix_spawnattr_getsigmask: New file.
35413         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35414         modifications.
35415         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35416         new module.
35417
35418         New module 'posix_spawnattr_setsigdefault'.
35419         * modules/posix_spawnattr_setsigdefault: New file.
35420         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35421         modifications.
35422         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35423         new module.
35424
35425         New module 'posix_spawnattr_getsigdefault'.
35426         * modules/posix_spawnattr_getsigdefault: New file.
35427         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35428         modifications.
35429         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35430         new module.
35431
35432         New module 'posix_spawnattr_setschedpolicy'.
35433         * modules/posix_spawnattr_setschedpolicy: New file.
35434         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35435         modifications.
35436         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35437         new module.
35438
35439         New module 'posix_spawnattr_getschedpolicy'.
35440         * modules/posix_spawnattr_getschedpolicy: New file.
35441         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35442         modifications.
35443         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35444         new module.
35445
35446         New module 'posix_spawnattr_setschedparam'.
35447         * modules/posix_spawnattr_setschedparam: New file.
35448         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35449         modifications.
35450         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35451         new module.
35452
35453         New module 'posix_spawnattr_getschedparam'.
35454         * modules/posix_spawnattr_getschedparam: New file.
35455         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35456         modifications.
35457         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35458         new module.
35459
35460         New module 'posix_spawnattr_setpgroup'.
35461         * modules/posix_spawnattr_setpgroup: New file.
35462         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35463         modifications.
35464         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35465         module.
35466
35467         New module 'posix_spawnattr_getpgroup'.
35468         * modules/posix_spawnattr_getpgroup: New file.
35469         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35470         modifications.
35471         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35472         module.
35473
35474         New module 'posix_spawnattr_setflags'.
35475         * modules/posix_spawnattr_setflags: New file.
35476         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35477         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35478         module.
35479
35480         New module 'posix_spawnattr_getflags'.
35481         * modules/posix_spawnattr_getflags: New file.
35482         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35483         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35484         module.
35485
35486         New module 'posix_spawnattr_init'.
35487         * modules/posix_spawnattr_init: New file.
35488         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35489         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35490         module.
35491
35492         New module 'posix_spawn_file_actions_destroy'.
35493         * modules/posix_spawn_file_actions_destroy: New file.
35494         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35495         modifications.
35496         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35497         the new module.
35498
35499         New module 'posix_spawn_file_actions_addopen'.
35500         * modules/posix_spawn_file_actions_addopen: New file.
35501         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35502         modifications.
35503         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35504         the new module.
35505
35506         New module 'posix_spawn_file_actions_adddup2'.
35507         * modules/posix_spawn_file_actions_adddup2: New file.
35508         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35509         modifications.
35510         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35511         the new module.
35512
35513         New module 'posix_spawn_file_actions_addclose'.
35514         * modules/posix_spawn_file_actions_addclose: New file.
35515         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35516         modifications.
35517         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35518         the new module.
35519
35520         New module 'posix_spawn_file_actions_init'.
35521         * modules/posix_spawn_file_actions_init: New file.
35522         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35523         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35524         new module.
35525
35526         New module 'posix_spawn-internal'.
35527         * modules/posix_spawn-internal: New file.
35528         * lib/spawn_int.h: New file, from GNU libc with modifications.
35529         * lib/spawni.c: New file, from GNU libc with modifications.
35530         * m4/posix_spawn.m4: New file.
35531
35532         New module 'spawn'.
35533         * modules/spawn: New file.
35534         * lib/spawn.in.h: New file, from GNU libc with modifications.
35535         * m4/spawn_h.m4: New file.
35536         * doc/posix-headers/spawn.texi: Mention the new module.
35537
35538 2008-09-28  Bruno Haible  <bruno@clisp.org>
35539
35540         * modules/sched-tests: New file.
35541         * tests/test-sched.c: New file.
35542
35543         New module 'sched'.
35544         * modules/sched: New file.
35545         * lib/sched.in.h: New file.
35546         * m4/sched_h.m4: New file.
35547         * doc/posix-headers/sched.texi: Mention the new module.
35548
35549 2008-09-27  Eric Blake  <ebb9@byu.net>
35550
35551         Fix previous patch, and tweak references to $0.
35552         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35553         (func_version, func_gnulib_dir): Don't call this program
35554         gnulib-tool.
35555         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35556         with using $0 in function.
35557         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35558         (func_fatal_error): Reuse the name the user invoked us with.
35559
35560 2008-09-27  Bruno Haible  <bruno@clisp.org>
35561
35562         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35563         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35564         (gl_ICONV_H): Not here.
35565         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35566         instead of assigning ICONV_H directly.
35567
35568         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35570         WCHAR_H directly.
35571
35572 2008-09-27  Bruno Haible  <bruno@clisp.org>
35573
35574         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35575         * modules/arpa_inet (Depends-on): Add link-warning.
35576         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35577         * modules/unistd (Makefile.am): Likewise.
35578
35579 2008-09-26  Bruno Haible  <bruno@clisp.org>
35580
35581         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35582         variables.
35583         (func_version): Essentially copied from gnulib-tool.
35584         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35585         func_readlink): Copied from gnulib-tool.
35586
35587 2008-09-26  Bruno Haible  <bruno@clisp.org>
35588
35589         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35590         invoking git-version-gen.
35591
35592 2008-09-26  Bruno Haible  <bruno@clisp.org>
35593
35594         * posix-modules: Update to directory names changed on 2008-01-19.
35595         Remove commas in output before splitting into words. No more need to
35596         avoid 'ftruncate' since 2007-02-19.
35597
35598 2008-09-26  Bruno Haible  <bruno@clisp.org>
35599
35600         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35601
35602 2008-09-26  Bruno Haible  <bruno@clisp.org>
35603
35604         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35605         * modules/fwriteerror (Depends-on): Add errno.
35606
35607 2008-09-26  Bruno Haible  <bruno@clisp.org>
35608
35609         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35610         * tests/test-vc-list-files-cvs.sh: Likewise.
35611
35612 2008-09-26  Bruno Haible  <bruno@clisp.org>
35613
35614         * doc/posix-headers/sys_resource.texi: Reorder items.
35615
35616 2008-09-26  Jim Meyering  <meyering@redhat.com>
35617
35618         fts: tweak inode comparison function
35619         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35620         inode numbers, as documented.
35621
35622         fts: sort dirent entries on inode number before traversing
35623         This avoids a quadratic, seek-related performance penalty when
35624         operating on a directory containing many entries (measurable at 10k;
35625         3.5 hours at 2 million entries with a cold cache) on certain types
35626         of file systems, including ext3 and ext4, but not tmpfs.
35627         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35628         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35629         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35630         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35631         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35632         (fts_build): Set the stat.st_ino member from D_INO.
35633         If it is likely to be useful, sort dirent entries on inode number.
35634
35635         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35636         and the struct statfs.f_type member.
35637         * modules/fts (Depends-on): Add d-ino.
35638
35639 2008-09-26  Bruno Haible  <bruno@clisp.org>
35640
35641         * modules/sigpipe-die (Depends-on): Add sigpipe.
35642
35643         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35644         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35645         and GNULIB_STDIO_H_SIGPIPE are set.
35646         * lib/stdio-write.c: New file.
35647         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35648         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35649         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35650         REPLACE_STDIO_WRITE_FUNCS.
35651         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35652         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35653         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35654         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35655         * modules/stdio (Files): Add lib/stdio-write.c.
35656         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35657         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35658         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35659         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35660         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35661         REPLACE_FPRINTF_POSIX.
35662         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35663         REPLACE_PRINTF_POSIX.
35664         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35665         REPLACE_VFPRINTF_POSIX.
35666         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35667         REPLACE_VPRINTF_POSIX.
35668         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35669         SIGPIPE issue.
35670         * doc/posix-functions/fputc.texi: Likewise.
35671         * doc/posix-functions/fputs.texi: Likewise.
35672         * doc/posix-functions/fwrite.texi: Likewise.
35673         * doc/posix-functions/printf.texi: Likewise.
35674         * doc/posix-functions/putc.texi: Likewise.
35675         * doc/posix-functions/putchar.texi: Likewise.
35676         * doc/posix-functions/puts.texi: Likewise.
35677         * doc/posix-functions/vfprintf.texi: Likewise.
35678         * doc/posix-functions/vprintf.texi: Likewise.
35679
35680         * modules/safe-write (Depends-on): Add write.
35681
35682         * modules/sigpipe-tests: New file.
35683         * tests/test-sigpipe.c: New file.
35684         * tests/test-sigpipe.sh: New file.
35685
35686         * modules/write: New file.
35687         * lib/unistd.in.h: Include <sys/types.h>.
35688         (write): New declaration.
35689         * lib/write.c: New file.
35690         * m4/write.m4: New file.
35691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35692         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35693         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35694         GNULIB_WRITE, REPLACE_WRITE.
35695         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35696         and the SIGPIPE issue.
35697
35698         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35699         (raise): New declaration.
35700         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35701         (ext_signal): New function.
35702         (rpl_raise): New function.
35703         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35704         GNULIB_SIGNAL_H_SIGPIPE.
35705         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35706         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35707
35708         * modules/sigpipe: New file.
35709         * m4/sigpipe.m4: New file.
35710
35711 2008-09-25  Derek Price  <derek@ximbiot.com>
35712             Bruno Haible  <bruno@clisp.org>
35713
35714         * gnulib-tool (func_import): Report all license incompatibilities, not
35715         just the first one.
35716
35717 2008-09-25  Bruno Haible  <bruno@clisp.org>
35718
35719         * gnulib-tool (func_import): When computing the edits, consider not
35720         only the Makefile.ams that exist but also those that will be generated.
35721
35722 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35723
35724         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35725         fixes gnulib-tool --test warning about duplicate dependency.
35726
35727 2008-09-25  Bruno Haible  <bruno@clisp.org>
35728
35729         * gnulib-tool: Don't ask the user to perform edits in the generated
35730         Makefile.ams.
35731         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35732         apply to the Makefile.am being generated.
35733         (func_emit_tests_Makefile_am): Execute edits that apply to the
35734         Makefile.am being generated.
35735         (func_import): Setup list of Makefile.am edits before emitting the
35736         Makefile.ams, not at the end.
35737         (func_create_testdir): Update.
35738         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35739
35740 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35741
35742         * gnulib-tool (func_import): Store the --tests-base option in the
35743         comment in gnulib-cache.m4.
35744
35745 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35746
35747         * NEWS: Document increased portability that sys_select now provides.
35748
35749         * lib/sys_select.in.h: Install select wrapper.
35750         * lib/sys_socket.in.h: Use more descriptive name when there is no
35751         select wrapper.
35752         * lib/winsock-select.c: New.
35753         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35754         Require gl_HEADER_SYS_SOCKET.
35755         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35756         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35757         * tests/test-sys_select.c: Add functional tests.
35758
35759 2008-09-24  Eric Blake  <ebb9@byu.net>
35760
35761         open, fopen: close fd leak in last patch
35762         * lib/open.c (rpl_open): Close fd before returning error.
35763         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35764         * doc/posix-functions/open.texi (open): Document that Irix also
35765         has the bug.
35766         * doc/posix-functions/fopen.texi (fopen): Likewise.
35767         Reported by Paolo Bonzini.
35768
35769 2008-09-24  Bruno Haible  <bruno@clisp.org>
35770
35771         Ensure that a filename ending in a slash cannot be used to access a
35772         non-directory.
35773         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35774         to check whether it's really a directory.
35775         * lib/fopen.c: Include fcntl.h, unistd.h.
35776         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35777         and fdopen().
35778         * modules/fopen (Depends-on): Add unistd.
35779         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35780         * tests/test-fopen.c (main): Likewise.
35781         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35782         * doc/posix-functions/fopen.texi: Likewise.
35783         Reported by Eric Blake.
35784
35785 2008-09-23  Eric Blake  <ebb9@byu.net>
35786
35787         c-stack: avoid compiler optimizations when provoking overflow
35788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35789         recursion harder to optimize, to ensure a stack overflow occurs.
35790         * tests/test-c-stack.c (recurse): Likewise.
35791         Borrowed from libsigsegv.
35792
35793         c-stack: work around Irix sigaltstack bug
35794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35795         whether sigaltstack uses wrong end of stack_t (copied in part from
35796         libsigsegv).
35797         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35798         Irix bug, without requiring an over-allocation.
35799         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35800         bug.
35801
35802         fopen: document mingw bug on directories
35803         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35804         not allowing a stream visiting a directory, even though reading
35805         from such a stream is not portable.
35806
35807 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35808
35809         * lib/poll.c: Rewrite.
35810         * modules/poll: Depend on alloca.
35811
35812 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35813
35814         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35815         instead define prototypes for a full set of wrappers.  Ensure
35816         that Cygwin does not use the compatibility code, which is only
35817         for MinGW.
35818         * lib/winsock.c: New.
35819         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35820         * modules/sys_socket: Add lib/winsock.c.
35821
35822         * modules/poll-tests: Add errno and perror.
35823         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35824
35825 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35826
35827         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35828
35829 2008-09-23  Bruno Haible  <bruno@clisp.org>
35830
35831         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35832         * doc/glibc-functions/*: Likewise.
35833
35834 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35835
35836         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35837         success.
35838
35839 2008-09-22  Eric Blake  <ebb9@byu.net>
35840             Bruno Haible  <bruno@clisp.org>
35841
35842         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35843         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35844         supply %A but mishandle pseudo-NaN.
35845         Reported by Simon Josefsson.
35846
35847 2008-09-21  Bruno Haible  <bruno@clisp.org>
35848
35849         * tests/test-lock.c (main): Tweak skip message.
35850         * tests/test-tls.c (main): Likewise.
35851
35852 2008-09-21  Bruno Haible  <bruno@clisp.org>
35853
35854         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35855         whether 'struct sigaction' has sa_sigaction here...
35856         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35857         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35858
35859 2008-09-21  Bruno Haible  <bruno@clisp.org>
35860
35861         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35862         section.
35863         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35864         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35865         the new section.
35866         (Support for obsolete systems lacking POSIX:2001): New section.
35867         (String handling <string.h>): Move strdup to the new section.
35868         Suggested by Simon Josefsson and Paolo Bonzini.
35869
35870 2008-09-21  Bruno Haible  <bruno@clisp.org>
35871
35872         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35873         exponents in %e and %g results on 'long double'. Needed for mingw's
35874         improved *printf functions.
35875         * tests/test-vasprintf-posix.c (test_function): Likewise.
35876         * tests/test-snprintf-posix.h (test_function): Likewise.
35877         * tests/test-sprintf-posix.h (test_function): Likewise.
35878         Reported by Eric Blake.
35879
35880 2008-09-21  Bruno Haible  <bruno@clisp.org>
35881
35882         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35883         * tests/test-sprintf-posix.h (test_function): Likewise.
35884
35885 2008-09-21  Bruno Haible  <bruno@clisp.org>
35886
35887         * modules/getpass (Depends-on): Add strdup-posix.
35888
35889         New module 'strdup-posix'.
35890         * modules/strdup-posix: New file.
35891         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35892         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35894         REPLACE_STRDUP.
35895         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35896         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35898         strdup-posix.
35899
35900         * modules/strdup (Depends-on): Remove malloc-posix.
35901
35902 2008-09-20  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35905         Wildenhues.
35906
35907 2008-09-20  Bruno Haible  <bruno@clisp.org>
35908
35909         Ensure that wint_t gets defined on IRIX 5.3.
35910         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35911         * lib/wctype.in.h (wint_t): Likewise.
35912         (__wctype_wint_t): Remove type.
35913         (isw*): Use wint_t instead of __wctype_wint_t.
35914         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35915         * modules/wchar (Files): Add m4/wint_t.m4.
35916         (Makefile.am): Substitute HAVE_WINT_T.
35917         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35918         * tests/test-wctype.c: Check that wint_t is defined.
35919         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35920         * doc/posix-headers/wctype.texi: Likewise.
35921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35922
35923 2008-09-18  Bruno Haible  <bruno@clisp.org>
35924
35925         * gnulib-tool (func_exit): Update comment.
35926
35927 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35928
35929         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35930         assumes strdup exists and does not depend on strdup to return
35931         ENOMEM on out of memory conditions.
35932
35933 2008-09-18  Bruno Haible  <bruno@clisp.org>
35934
35935         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35936         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35937         digits for the exponent.
35938
35939 2008-09-18  Jim Meyering  <meyering@redhat.com>
35940             Bruno Haible  <bruno@clisp.org>
35941
35942         * lib/vasnprintf.c (decimal_point_char): Define also if
35943         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35944
35945 2008-09-16  Bruno Haible  <bruno@clisp.org>
35946         and Eric Blake  <ebb9@byu.net>
35947
35948         vasnprintf: support Irix 5.3
35949         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35950         that mishandle long double infinity.
35951         Reported by Tom G. Christensen.
35952
35953 2008-09-16  Bruno Haible  <bruno@clisp.org>
35954
35955         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35956         Solaris 9.
35957         * doc/glibc-functions/alphasort.texi: Likewise.
35958         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35959
35960 2008-09-16  Jim Meyering  <meyering@redhat.com>
35961
35962         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35963         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35964         a umask modification leak out of a subshell.  Otherwise, the
35965         opensolaris /bin/sh would be accepted and thus cause unwarranted
35966         failures in the coreutils test suite.
35967
35968 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35969
35970         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35971         to succeed.
35972
35973 2008-09-16  Jim Meyering  <meyering@redhat.com>
35974
35975         avoid spurious test failure when library is built without ACL support
35976         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35977         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35978         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35979         * tests/test-copy-acl.sh: Likewise.
35980
35981 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35982
35983         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35984         based on character occurrence counts.
35985
35986 2008-09-15  Eric Blake  <ebb9@byu.net>
35987
35988         tests: avoid some compiler warnings
35989         * tests/test-memchr.c (main): Pass NULL indirectly.
35990         * tests/test-closein.c (main): Avoid unused variable.
35991
35992 2008-09-15  Bruno Haible  <bruno@clisp.org>
35993
35994         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35995         are missing on OpenBSD 4.0 individually.
35996         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35997
35998 2008-09-15  Bruno Haible  <bruno@clisp.org>
35999
36000         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36001         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36002         * doc/posix-functions/perror.texi: Likewise.
36003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36004         is missing.
36005         Reported by Eric Blake.
36006
36007         * lib/errno.in.h: Use replacement values >= 2000.
36008         Reported by Eric Blake.
36009
36010 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36011
36012         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36013         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36014         limit.
36015         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36016         compareseq was aborted.
36017
36018 2008-09-14  Bruno Haible  <bruno@clisp.org>
36019
36020         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36021         yvec_edit_count.
36022         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36023         (fstrcmp_bounded): Simplify result computation accordingly.
36024
36025 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36026
36027         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36028         (fstrcmp): Define in terms of fstrcmp_bounded.
36029         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36030         lower_bound argument.
36031         Return quickly if the result is certainly < lower_bound.
36032         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36033
36034 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36035
36036         * lib/diffseq.h (EARLY_ABORT): New macro.
36037         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36038         evaluates to true.
36039
36040 2008-09-14  Bruno Haible  <bruno@clisp.org>
36041
36042         * modules/perror-tests: New file.
36043         * tests/test-perror.sh: New file.
36044         * tests/test-perror.c: New file.
36045
36046         New module 'perror'.
36047         * lib/stdio.in.h (perror): New declaration.
36048         * lib/perror.c: New file.
36049         * m4/perror.m4: New file.
36050         * modules/perror: New file.
36051         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36052         * doc/posix-functions/perror.texi: Mention the perror module.
36053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36054         REPLACE_PERROR.
36055         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36056         REPLACE_PERROR.
36057
36058 2008-09-14  Bruno Haible  <bruno@clisp.org>
36059
36060         * modules/stdio (Makefile.am): Reorder to match the order in
36061         lib/stdio.in.h.
36062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36063
36064 2008-09-13  Bruno Haible  <bruno@clisp.org>
36065
36066         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36067
36068 2008-09-13  Bruno Haible  <bruno@clisp.org>
36069
36070         Extend strerror to cover the added errno values.
36071         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36072         (rpl_strerror): Provide error messages for the added errno values and
36073         for the WSA* values.
36074         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36075         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36076         strerror.
36077         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36078         * modules/strerror (Depends-on): Add errno.
36079         * doc/posix-functions/strerror.texi: Document the change.
36080         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36081         and EOVERFLOW.
36082
36083 2008-09-13  Bruno Haible  <bruno@clisp.org>
36084
36085         * modules/EOVERFLOW: Remove file.
36086         * m4/eoverflow.m4: Remove file.
36087         * modules/EOVERFLOW-tests: Remove file.
36088         * tests/test-EOVERFLOW.c: Remove file.
36089         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36090         * modules/ftell (Depends-on): Likewise.
36091         * modules/getdelim (Depends-on): Likewise.
36092         * modules/getugroups (Depends-on): Likewise.
36093         * modules/poll (Depends-on): Likewise.
36094         * modules/snprintf (Depends-on): Likewise.
36095         * modules/sprintf-posix (Depends-on): Likewise.
36096         * modules/vasnprintf (Depends-on): Likewise.
36097         * modules/vasprintf (Depends-on): Likewise.
36098         * modules/vfprintf-posix (Depends-on): Likewise.
36099         * modules/vsnprintf (Depends-on): Likewise.
36100         * modules/vsprintf-posix (Depends-on): Likewise.
36101         * modules/xvasprintf (Depends-on): Likewise.
36102         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36103         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36104         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36105         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36106         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36107         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36108         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36109         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36110         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36111         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36112         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36113         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36115         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36116         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36117         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36118         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36119         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36120         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36121         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36122         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36123         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36124         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36125         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36126         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36127         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36128         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36129         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36130         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36131         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36132         * MODULES.html.sh: Remove EOVERFLOW.
36133         * NEWS: Mention the change.
36134
36135 2008-09-13  Bruno Haible  <bruno@clisp.org>
36136
36137         * modules/errno-tests: New file.
36138         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36139
36140         * lib/errno.in.h: New file.
36141         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36142         * modules/errno: New file.
36143         * doc/posix-headers/errno.texi: Update documentation.
36144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36145
36146 2008-09-13  Bruno Haible  <bruno@clisp.org>
36147
36148         * tests/test-poll.c: Use #if for native Windows, rather than testing
36149         __MSVCRT__.
36150
36151 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36152             Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/glob.c: Don't include <pwd.h> on native Windows.
36155         (WINDOWS32): New macro.
36156         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36157
36158 2008-09-13  Bruno Haible  <bruno@clisp.org>
36159
36160         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36161         (ETIMEDOUT): Remove macro.
36162         (glthread_cond_timedwait_multithreaded): New declaration.
36163         (glthread_cond_timedwait): Use it.
36164         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36165         (glthread_cond_timedwait_multithreaded): New function.
36166
36167 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36168
36169         * modules/poll-tests: Do not check for io.h.
36170         * tests/test-poll.c: Check for __MSVCRT__ instead.
36171
36172 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36173
36174         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36175         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36176         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36177
36178 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36179
36180         * modules/poll-tests: New.
36181         * tests/test-poll.c: New.
36182
36183 2008-09-12  Eric Blake  <ebb9@byu.net>
36184
36185         frexp: test for NetBSD failure on -0.0
36186         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36187         not all, bugs from NetBSD 3.0 have been fixed.
36188         * doc/posix-functions/frexp.texi (frexp): Document bug.
36189         Reported by Thomas Klausner.
36190
36191         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36192         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36193         literal -0.0.
36194         Reported by Jonathan C. Patschke <jp@centtech.com>.
36195
36196 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36197
36198         * lib/glthread/cond.h: Use dummy implementation also if
36199         USE_WIN32_THREADS.
36200
36201 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36202
36203         * modules/fnmatch-posix (License): Change to LGPLv2+.
36204         * modules/fnmatch-gnu (License): Likewise.
36205
36206 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36207
36208         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36209
36210 2008-09-11  Jim Meyering  <meyering@redhat.com>
36211
36212         * users.txt: Add gtk-vnc.
36213
36214 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36215
36216         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36217         rotate amounts.
36218
36219         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36220         required for 16-bit and 8-bit rotates.
36221         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36222         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36223         UINT8_MAX instead of hard-coded constants.
36224         Suggested by Paul Eggert.
36225
36226 2008-09-07  Bruno Haible  <bruno@clisp.org>
36227
36228         * tests/test-striconveh.c (main): Check behaviour when converting from
36229         UTF-7.
36230
36231         Make striconveh work better with stateful encodings.
36232         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36233         that iconv does not increment the inptr when returning -1/EINVAL.
36234
36235 2008-09-07  Bruno Haible  <bruno@clisp.org>
36236
36237         * build-aux/config.rpath: Update according to libtool-2.2.6.
36238         * build-aux/config.libpath: Likewise.
36239
36240 2008-09-06  Bruno Haible  <bruno@clisp.org>
36241
36242         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36243         * lib/freadptr.c (freadptr): Likewise.
36244         * lib/freadseek.c (freadptrinc): Likewise.
36245         Reported by Simon Josefsson.
36246
36247 2008-09-06  Bruno Haible  <bruno@clisp.org>
36248
36249         * modules/freadptr (License): Change to LGPLv2+.
36250         * modules/freadseek (License): Likewise.
36251         Suggested by Eric Blake.
36252
36253         * modules/memchr2 (License): Change to LGPLv2+.
36254         Approved by Eric Blake.
36255
36256 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36257             Bruno Haible  <bruno@clisp.org>
36258
36259         Make gnulib-tool work with native 'sed' on AIX.
36260         * gnulib-tool (sed_noop): New variable.
36261         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36262         func_add_or_update, func_create_testdir): Use it to initialize sed
36263         script variables.
36264         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36265
36266 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36267             Bruno Haible  <bruno@clisp.org>
36268
36269         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36270         also works after #include directives.
36271
36272 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
36273
36274         getdate.y: reject an out-of-range timezone value
36275         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36276         the range [-24...+24].  When specified with only one or two digits,
36277         * tests/test-getdate.c: Tests for the fix.
36278         * doc/getdate.texi: Document this change.
36279
36280 2008-09-03  Bruno Haible  <bruno@clisp.org>
36281
36282         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36283
36284 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36285
36286         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36287         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36288         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36289         Blake <ebb9@byu.net>.
36290
36291         * tests/test-bitrotate.c: Add more test vectors.
36292
36293 2008-09-02  Eric Blake  <ebb9@byu.net>
36294
36295         vasnprintf-posix: handle large precision via %.*d
36296         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36297         when handling it ourselves.
36298         * tests/test-vasnprintf-posix.c (test_function): Add test.
36299         * tests/test-snprintf-posix.h (test_function): Likewise.
36300         * tests/test-sprintf-posix.h (test_function): Likewise.
36301         * tests/test-vasprintf-posix.c (test_function): Likewise.
36302         Reported by Alain Guibert.
36303
36304 2008-09-01  Eric Blake  <ebb9@byu.net>
36305
36306         c-stack: make configure-time check more robust
36307         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36308         successful sigaction call.
36309         Reported by Tom G. Christensen.
36310
36311 2008-09-01  Bruno Haible  <bruno@clisp.org>
36312
36313         New module 'findprog-lgpl'.
36314         * modules/findprog-lgpl: New file.
36315         * lib/findprog-lgpl.c: New file.
36316         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36317         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36318         to decide whether to use strdup or xstrdup, concatenated_filename or
36319         xconcatenated_filename.
36320
36321 2008-09-01  Bruno Haible  <bruno@clisp.org>
36322
36323         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36324         'xconcat-filename' (GPL).
36325         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36326         (License): Change to LGPLv2+.
36327         * modules/xconcat-filename: New file.
36328         * lib/concat-filename.h (concatenated_filename): Change specification.
36329         (xconcatenated_filename): New declaration.
36330         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36331         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36332         memory situations.
36333         * lib/xconcat-filename.c: New file.
36334         * NEWS: Mention the change.
36335         * lib/findprog.c: Include concat-filename.h, not filename.h.
36336         (find_in_path): Use xconcatenated_filename instead of
36337         concatenated_filename.
36338         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36339         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36340         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36341         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36342         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36343         instead of concatenated_filename.
36344         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36345         (execute_java_class): Use xconcatenated_filename instead of
36346         concatenated_filename.
36347         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36348         * modules/javacomp (Depends-on): Likewise.
36349         * modules/javaexec (Depends-on): Likewise.
36350
36351 2008-09-01  Bruno Haible  <bruno@clisp.org>
36352
36353         Split module 'filename' into 'filename' and 'concat-filename'.
36354         * modules/filename: Keep only lib/filename.h.
36355         (License): Change to LGPLv2+.
36356         * modules/concat-filename: New file, extracted from modules/filename.
36357         * lib/filename.h (concatenated_filename): Remove declaration.
36358         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36359         * lib/concat-filename.c: Include concat-filename.h.
36360         * NEWS: Mention the change.
36361
36362 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36363
36364         * lib/bitrotate.h (rotl8, rotr8): Add.
36365
36366         * modules/bitrotate (configure.ac): Need
36367         AC_REQUIRE([AC_C_INLINE]).
36368         (Description): Mention stdint.h.  Reported by Bruno Haible
36369         <bruno@clisp.org>.
36370
36371         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36372         Paolo Bonzini <bonzini@gnu.org>.
36373
36374 2008-08-31  Bruno Haible  <bruno@clisp.org>
36375
36376         Assume Solaris specific bi-arch conventions on Solaris systems.
36377         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36378         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36379         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36380         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36381         like acl_libdirstem.
36382         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36383         acl_libdirstem.
36384         * NEWS: Mention the change.
36385         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36386
36387 2008-08-31  Jim Meyering  <meyering@redhat.com>
36388
36389         * lib/strftime.h: Add comments describing the two added arguments.
36390
36391         remove duplicate #include directives
36392         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36393         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36394
36395 2008-08-31  Bruno Haible  <bruno@clisp.org>
36396
36397         New module 'sigpipe-die'.
36398         * modules/sigpipe-die: New file.
36399         * lib/sigpipe-die.h: New file.
36400         * lib/sigpipe-die.c: New file.
36401         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36402
36403 2008-08-31  Bruno Haible  <bruno@clisp.org>
36404
36405         Don't override previously installed signal handlers.
36406         * lib/fatal-signal.c (saved_sigactions): New variable.
36407         (uninstall_handlers): Reset the signal to the saved handler, not
36408         to SIG_DFL (except when ignored).
36409         (install_handlers): Save the previous handlers.
36410
36411 2008-08-30  Bruno Haible  <bruno@clisp.org>
36412
36413         * gnulib-tool (func_reset_sigpipe): New function.
36414         (func_get_automake_snippet, func_modules_transitive_closure,
36415         func_import): Invoke it before a join command that reads from stdin,
36416         to avoid "echo: write error: Broken pipe" error messages on stderr.
36417         Reported by Sam Steingold <sds@gnu.org>.
36418
36419 2008-08-30  Bruno Haible  <bruno@clisp.org>
36420
36421         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36422         Code copied from m4/open.m4.
36423         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36424         access and the filename ends in a slash. Code copied from lib/open.c.
36425         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36426         * tests/test-fopen.c (main): Check against bug with trailing slash.
36427
36428 2008-08-29  Bruno Haible  <bruno@clisp.org>
36429
36430         Avoid some "gcc -pedantic" warnings.
36431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36432         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36433         * lib/dirent.in.h: Likewise.
36434         * lib/fcntl.in.h: Likewise.
36435         * lib/float.in.h: Likewise.
36436         * lib/iconv.in.h: Likewise.
36437         * lib/inttypes.in.h: Likewise.
36438         * lib/locale.in.h: Likewise.
36439         * lib/math.in.h: Likewise.
36440         * lib/netinet_in.in.h: Likewise.
36441         * lib/search.in.h: Likewise.
36442         * lib/signal.in.h: Likewise.
36443         * lib/stdarg.in.h: Likewise.
36444         * lib/stdint.in.h: Likewise.
36445         * lib/stdio.in.h: Likewise.
36446         * lib/stdlib.in.h: Likewise.
36447         * lib/string.in.h: Likewise.
36448         * lib/strings.in.h: Likewise.
36449         * lib/sys_select.in.h: Likewise.
36450         * lib/sys_socket.in.h: Likewise.
36451         * lib/sys_stat.in.h: Likewise.
36452         * lib/sys_time.in.h: Likewise.
36453         * lib/sysexits.in.h: Likewise.
36454         * lib/time.in.h: Likewise.
36455         * lib/unistd.in.h: Likewise.
36456         * lib/wchar.in.h: Likewise.
36457         * lib/wctype.in.h: Likewise.
36458         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36459         * modules/fchdir (Makefile.am): Likewise.
36460         * modules/fcntl (Makefile.am): Likewise.
36461         * modules/float (Makefile.am): Likewise.
36462         * modules/iconv_open (Makefile.am): Likewise.
36463         * modules/inttypes (Makefile.am): Likewise.
36464         * modules/locale (Makefile.am): Likewise.
36465         * modules/math (Makefile.am): Likewise.
36466         * modules/netinet_in (Makefile.am): Likewise.
36467         * modules/search (Makefile.am): Likewise.
36468         * modules/signal (Makefile.am): Likewise.
36469         * modules/stdarg (Makefile.am): Likewise.
36470         * modules/stdint (Makefile.am): Likewise.
36471         * modules/stdio (Makefile.am): Likewise.
36472         * modules/stdlib (Makefile.am): Likewise.
36473         * modules/string (Makefile.am): Likewise.
36474         * modules/strings (Makefile.am): Likewise.
36475         * modules/sys_select (Makefile.am): Likewise.
36476         * modules/sys_socket (Makefile.am): Likewise.
36477         * modules/sys_stat (Makefile.am): Likewise.
36478         * modules/sys_time (Makefile.am): Likewise.
36479         * modules/sysexits (Makefile.am): Likewise.
36480         * modules/time (Makefile.am): Likewise.
36481         * modules/unistd (Makefile.am): Likewise.
36482         * modules/wchar (Makefile.am): Likewise.
36483         * modules/wctype (Makefile.am): Likewise.
36484         Reported by Reuben Thomas <rrt@sc3d.org>.
36485
36486 2008-08-29  Bruno Haible  <bruno@clisp.org>
36487
36488         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36489         any more.
36490
36491 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36492
36493         * MODULES.html.sh (Misc): Add bitrotate.
36494
36495         * modules/bitrotate: New file.
36496
36497         * lib/bitrotate.h: New file.
36498
36499         * modules/bitrotate-tests: New file.
36500
36501         * tests/test-bitrotate.c: New file.
36502
36503         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36504         on the bitrotate module.
36505
36506         * lib/arctwo.c: Use new bitrotate module.
36507
36508 2008-08-29  Jim Meyering  <meyering@redhat.com>
36509
36510         bootstrap: merge changes from coreutils
36511         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36512         of copied files.  Remove a kludge, now that this is fixed.
36513         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36514         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36515         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36516
36517 2008-08-29  Bruno Haible  <bruno@clisp.org>
36518
36519         * MODULES.html.sh: Remove --cvs-urls option.
36520
36521 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36522
36523         maint.mk: adjust to file name change
36524         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36525
36526 2008-08-28  Jim Meyering  <meyering@redhat.com>
36527
36528         * modules/getndelim2 (License): Relicense to LGPLv2+.
36529         Approved by Richard Stallman for the version of 1995, and by
36530         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36531
36532 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36533
36534         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36535         dummy if one is not available.  Do not touch them if
36536         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36537         (getc_maybe_unlocked): New.
36538         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36539
36540 2008-08-26  Eric Blake  <ebb9@byu.net>
36541
36542         doc/INSTALL: resync from autoconf
36543         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36544         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36545         moving...
36546         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36547         * INSTALL: Regenerate.
36548         * INSTALL.ISO: New file.
36549         * INSTALL.UTF-8: Likewise.
36550
36551 2008-08-26  Jim Meyering  <meyering@redhat.com>
36552
36553         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36554         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36555         these definitions conditional, so that they may be overridden, too.
36556
36557 2008-08-26  Bruno Haible  <bruno@clisp.org>
36558
36559         Generate INSTALL file variants with prettier quotes.
36560         * doc/Makefile (INSTALL_PRELUDE): New macro.
36561         (INSTALL): Use it.
36562         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36563
36564 2008-08-26  Bruno Haible  <bruno@clisp.org>
36565
36566         Run makeinfo in an English locale.
36567         * doc/Makefile (MAKEINFO): New variable.
36568
36569 2008-08-26  Bruno Haible  <bruno@clisp.org>
36570
36571         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36572         Suggested by Eric Blake.
36573
36574 2008-08-25  Bruno Haible  <bruno@clisp.org>
36575
36576         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36577
36578 2008-08-25  Eric Blake  <ebb9@byu.net>
36579
36580         c-stack: test that stack overflow can be caught
36581         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36582         that platform allows handling stack overflow; at least OS/2 EMX
36583         has sigaltstack, but crashes before transferring control to
36584         handler on stack overflow.
36585         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36586         check for HAVE_STACK_OVERFLOW_HANDLING.
36587         Reported by Elbert Pol.
36588
36589 2008-08-25  Bruno Haible  <bruno@clisp.org>
36590
36591         * doc/posix-functions/strftime.texi: Fix description of strftime
36592         module.
36593
36594 2008-08-24  Bruno Haible  <bruno@clisp.org>
36595
36596         * tests/uniwidth/test-uc_width2.c: New file.
36597         * tests/uniwidth/test-uc_width2.sh: New file.
36598         * modules/uniwidth/width-tests (Files): Add the new files.
36599         (TESTS): Add uniwidth/test-uc_width2.sh.
36600         (TESTS_ENVIRONMENT): New variable.
36601         (check_PROGRAMS): Add test-uc_width2.
36602         (test_uc_width2_SOURCES): New variable.
36603
36604         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36605         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36606         not 0x00AB.
36607         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36608
36609 2008-08-22  Eric Blake  <ebb9@byu.net>
36610
36611         test-lock, test-tls: mention why a test is skipped
36612         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36613         skipped.
36614         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36615
36616         count-one-bits: relax license
36617         * modules/count-one-bits (License): Relicense to LGPLv2+.
36618         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36619
36620 2008-08-22  Andreas Schwab  <schwab@suse.de>
36621
36622         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36623         Remove spurious space in assignment.
36624
36625 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36626
36627         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36628         Paul Eggert <eggert@CS.UCLA.EDU>.
36629
36630 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36631
36632         * modules/gettext: Add m4/threadlib.m4.
36633
36634 2008-08-19  Eric Blake  <ebb9@byu.net>
36635
36636         test-c-stack: fix compilation failure on FreeBSD 5.0
36637         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36638         headers before <sys/resource.h>.
36639         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36640         the bug.
36641         Reported by Nelson H. F. Beebe.
36642
36643         strverscmp: migrate from "strverscmp.h" to <string.h>
36644         * modules/string (Makefile.am): Add new hooks.
36645         * modules/strverscmp (Files): Remove strverscmp.h.
36646         (Depends-on): Add string.
36647         (configure.ac): Add indicator.
36648         (Include): Mention new header.
36649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36650         defaults.
36651         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36652         results.
36653         * lib/strverscmp.h: Delete.
36654         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36655         * tests/test-strverscmp.c (includes): Adjust client.
36656         * lib/check-version.c (includes): Likewise.
36657         * NEWS: Document the change.
36658
36659         strverscmp: add unit test
36660         * modules/strverscmp-tests: New file.
36661         * tests/test-strverscmp.c: Likewise.
36662
36663 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36664
36665         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36666         regarding Windows crypto stuff, from Mono.
36667
36668 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36669
36670         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36671         if present, for intel RND.  Return error on failures.
36672
36673 2008-08-18  Ben Pfaff  <blp@gnu.org>
36674
36675         gitlog-to-changelog: give better diagnostic for failed pipe-open
36676         * build-aux/gitlog-to-changelog: Improve error message: suggest
36677         that the version of Git may be too old.
36678
36679 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36680
36681         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36682         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36683
36684 2008-08-18  Bruno Haible  <bruno@clisp.org>
36685
36686         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36687         pthread_in_use().
36688
36689 2008-08-18  Bruno Haible  <bruno@clisp.org>
36690
36691         * lib/glthread/threadlib.c: Include <pthread.h>.
36692
36693 2008-08-18  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36696         glthread_recursive_lock_* macros.
36697         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36698         Fix syntax error.
36699
36700 2008-08-18  Bruno Haible  <bruno@clisp.org>
36701
36702         * lib/glthread/thread.c: Avoid forcing a context switch right after
36703         thread creation.
36704
36705 2008-08-17  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36708         * lib/glthread/thread.h: Provide Win32 specific implementation.
36709         * modules/thread (Files): Add lib/glthread/thread.c.
36710         (Depends-on): Add lock.
36711         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36712
36713 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36714
36715         New module 'yield'.
36716         * modules/yield: New file.
36717         * lib/glthread/yield.h: New file.
36718         * m4/yield.m4: New file.
36719         * MODULES.html.sh (Multithreading): Add yield.
36720
36721 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36722
36723         New module 'thread'.
36724         * modules/thread: New file.
36725         * lib/glthread/thread.h: New file.
36726         * m4/thread.m4: New file.
36727         * MODULES.html.sh (Multithreading): Add thread.
36728
36729 2008-08-17  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/glthread/lock.h: Include <stdlib.h> always.
36732         * lib/glthread/tls.h: Likewise.
36733         * lib/glthread/cond.h: Likewise.
36734
36735 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36736
36737         New module 'cond'.
36738         * modules/cond: New file.
36739         * lib/glthread/cond.h: New file.
36740         * lib/glthread/cond.c: New file.
36741         * m4/cond.m4: New file.
36742         * MODULES.html.sh (Multithreading): Add cond.
36743
36744 2008-08-16  Eric Blake  <ebb9@byu.net>
36745
36746         c-stack: fix regression on Irix 5.3 from 2008-06-21
36747         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36748         sa_sigaction...
36749         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36750         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36751         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36752         * modules/signal (Makefile.am): Use the value.
36753         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36754         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36755         * doc/posix-headers/signal.texi (signal.h): Document this
36756         portability issue.
36757         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36758         Reported by Tom G. Christensen.
36759
36760 2008-08-17  Bruno Haible  <bruno@clisp.org>
36761
36762         New module 'threadlib'.
36763         * modules/threadlib: New file.
36764         * lib/glthread/threadlib.c: New file, extracted from
36765         lib/glthread/lock.c.
36766         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36767         functions.
36768         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36769         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36770         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36771         macros.
36772         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36773         (gl_DISABLE_THREADS): Remove macro.
36774         * modules/lock (Files): Remove build-aux/config.rpath.
36775         (Depends-on): Remove havelib. Add threadlib.
36776         (configure.ac-early): Remove section.
36777         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36778         * modules/tls (Depends-on): Remove lock. Add threadlib.
36779         (Link): New section, copied from threadlib.
36780         * MODULES.html.sh (Multithreading): Add threadlib.
36781
36782 2008-08-14  Bruno Haible  <bruno@clisp.org>
36783
36784         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36785         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36786         glthread_rwlock_unlock, glthread_rwlock_destroy,
36787         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36788         glthread_recursive_lock_destroy): Define as macros always.
36789         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36790         glthread_lock_lock.
36791         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36792         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36793         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36794         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36795         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36796         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36797         (glthread_recursive_lock_lock_func): Renamed from
36798         glthread_recursive_lock_lock.
36799         (glthread_recursive_lock_unlock_func): Renamed from
36800         glthread_recursive_lock_unlock.
36801         (glthread_recursive_lock_destroy_func): Renamed from
36802         glthread_recursive_lock_destroy.
36803
36804 2008-08-14  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/glthread/lock.h: Renamed from lib/lock.h.
36807         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36808         * lib/glthread/tls.h: Renamed from lib/tls.h.
36809         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36810         * lib/fstrcmp.c: Update includes.
36811         * lib/strsignal.c: Update includes.
36812         * modules/lock (Files, Makefile.am): Update.
36813         (Include): Change to "glthread/lock.h".
36814         * modules/tls (Files, Makefile.am): Update.
36815         (Include): Change to "glthread/tls.h".
36816         * tests/test-lock.c: Update includes.
36817         * tests/test-tls.c: Update includes.
36818         * NEWS: Mention the renamed header files.
36819
36820 2008-08-11  Jim Meyering  <meyering@redhat.com>
36821
36822         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36823
36824 2008-08-11  Eric Blake  <ebb9@byu.net>
36825
36826         test-c-stack: avoid C99-ism
36827         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36828         before statement.
36829         Reported by Alain Guibert.
36830
36831 2008-08-10  Jim Meyering  <meyering@redhat.com>
36832
36833         ensure that return value of uinttostr et al are not ignored
36834         * lib/inttostr.h (__GNUC_PREREQ): Define.
36835         (__attribute_warn_unused_result__): Define.
36836         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36837
36838 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36839
36840         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36841         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36842
36843 2008-08-07  Jim Meyering  <meyering@redhat.com>
36844
36845         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36846
36847         * modules/mkstemp (License): Relicense under LGPLv2+.
36848         * modules/tempname (License): Likewise.
36849
36850 2008-08-06  Bruno Haible  <bruno@clisp.org>
36851
36852         * lib/poll.c (poll): Further micro-optimization.
36853
36854 2008-08-06  Jim Meyering  <meyering@redhat.com>
36855
36856         inet_pton.c: use locale-independent tolower
36857         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36858         (inet_pton6): Use c_tolower rather than tolower.
36859         * modules/inet_pton (Depends-on): Add c-ctype.
36860
36861 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36862
36863         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36864         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36865
36866 2008-08-06  Jim Meyering  <meyering@redhat.com>
36867
36868         * modules/inet_pton (License): Relicense under LGPLv2+.
36869
36870 2008-08-03  Bruno Haible  <bruno@clisp.org>
36871
36872         Additional non-aborting API for lock and tls.
36873         * lib/lock.h: Include <errno.h>.
36874         (glthread_lock_init): New macro/function.
36875         (gl_lock_init): Define as wrapper around glthread_lock_init.
36876         (glthread_lock_lock): New macro/function.
36877         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36878         (glthread_lock_unlock): New macro/function.
36879         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36880         (glthread_lock_destroy): New macro/function.
36881         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36882         (glthread_rwlock_init): New macro/function.
36883         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36884         (glthread_rwlock_rdlock): New macro/function.
36885         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36886         (glthread_rwlock_wrlock): New macro/function.
36887         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36888         (glthread_rwlock_unlock): New macro/function.
36889         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36890         (glthread_rwlock_destroy): New macro/function.
36891         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36892         (glthread_recursive_lock_init): New macro/function.
36893         (gl_recursive_lock_init): Define as wrapper around
36894         glthread_recursive_lock_init.
36895         (glthread_recursive_lock_lock): New macro/function.
36896         (gl_recursive_lock_lock): Define as wrapper around
36897         glthread_recursive_lock_lock.
36898         (glthread_recursive_lock_unlock): New macro/function.
36899         (gl_recursive_lock_unlock): Define as wrapper around
36900         glthread_recursive_lock_unlock.
36901         (glthread_recursive_lock_destroy): New macro/function.
36902         (gl_recursive_lock_destroy): Define as wrapper around
36903         glthread_recursive_lock_destroy.
36904         (glthread_once): New macro/function.
36905         (gl_once): Define as wrapper around glthread_once.
36906         Update function declarations.
36907         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36908         glthread_rwlock_init. Return error code.
36909         (glthread_rwlock_rdlock_multithreaded): Renamed from
36910         glthread_rwlock_rdlock. Return error code.
36911         (glthread_rwlock_wrlock_multithreaded): Renamed from
36912         glthread_rwlock_wrlock. Return error code.
36913         (glthread_rwlock_unlock_multithreaded): Renamed from
36914         glthread_rwlock_unlock. Return error code.
36915         (glthread_rwlock_destroy_multithreaded): Renamed from
36916         glthread_rwlock_destroy. Return error code.
36917         (glthread_recursive_lock_init_multithreaded): Renamed from
36918         glthread_recursive_lock_init. Return error code.
36919         (glthread_recursive_lock_lock_multithreaded): Renamed from
36920         glthread_recursive_lock_lock. Return error code.
36921         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36922         glthread_recursive_lock_unlock. Return error code.
36923         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36924         glthread_recursive_lock_destroy. Return error code.
36925         (glthread_once_call): Make static.
36926         (glthread_once_multithreaded): Renamed from glthread_once.
36927         * lib/tls.h: Include <errno.h>.
36928         (glthread_tls_key_init): New macro/function.
36929         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36930         (glthread_tls_set): New macro/function.
36931         (gl_tls_set): Define as wrapper around glthread_tls_set.
36932         (glthread_tls_key_destroy): New macro/function.
36933         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36934         Update function declarations.
36935         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36936         glthread_tls_get.
36937         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36938
36939 2008-08-04  Eric Blake  <ebb9@byu.net>
36940
36941         gnumakefile: use space, not TAB, outside of targets
36942         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36943
36944 2008-08-02  Jim Meyering  <meyering@redhat.com>
36945
36946         getdate.y: avoid locale-dependent date parsing failure
36947         In Turkish locales, getdate would fail to recognize keywords
36948         containing a lowercase "i".  The solution is not to rely on
36949         locale-sensitive case-conversion.
36950         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36951         (lookup_word): Use c_toupper in place of toupper.
36952         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36953         Reported by Vefa Bicakci <bicave@superonline.com> in
36954         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36955         * modules/getdate (Depends-on): Add c-ctype.
36956
36957 2008-08-02  Bruno Haible  <bruno@clisp.org>
36958
36959         * gnulib-tool (func_import): When updating or creating a .gitignore
36960         file, prepend each added line with a slash, and ignore leading slashes
36961         from the existing lines.
36962         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36963
36964 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36965
36966         Portability fix for GNU make 3.79.1.
36967         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36968         versions do not understand.
36969
36970 2008-08-01  Bruno Haible  <bruno@clisp.org>
36971
36972         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36973         * tests/test-isnanf.h (zero): New variable.
36974         (main): Avoid literal -0.0f.
36975         * tests/test-isnand.h (zero): New variable.
36976         (main): Avoid literal -0.0.
36977         * tests/test-isnanl.h (zero): New variable.
36978         (main): Avoid literal -0.0L.
36979         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36980         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36981         -0.0, -0.0L.
36982         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36983         (test_signbitd): Avoid literal -0.0.
36984         (test_signbitl): Avoid literal -0.0L.
36985         * tests/test-ceilf1.c (zero): New variable.
36986         (main): Avoid literal -0.0f.
36987         * tests/test-ceill.c (zero): New variable.
36988         (main): Avoid literal -0.0L.
36989         * tests/test-floorf1.c (zero): New variable.
36990         (main): Avoid literal -0.0f.
36991         * tests/test-floorl.c (zero): New variable.
36992         (main): Avoid literal -0.0L.
36993         * tests/test-roundf1.c (zero): New variable.
36994         (main): Avoid literal -0.0f.
36995         * tests/test-round1.c (zero): New variable.
36996         (main): Avoid literal -0.0.
36997         * tests/test-roundl.c (zero): New variable.
36998         (main): Avoid literal -0.0L.
36999         * tests/test-truncf1.c (zero): New variable.
37000         (main): Avoid literal -0.0f.
37001         * tests/test-trunc1.c (zero): New variable.
37002         (main): Avoid literal -0.0.
37003         * tests/test-truncl.c (zero): New variable.
37004         (main): Avoid literal -0.0L.
37005         * tests/test-frexp.c (zero): New variable.
37006         (main): Avoid literal -0.0.
37007         * tests/test-frexpl.c (zero): New variable.
37008         (main): Avoid literal -0.0L.
37009         * tests/test-ldexpl.c (zero): New variable.
37010         (main): Avoid literal -0.0L.
37011         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37012         (zerod, zerol): New variables.
37013         (test_function): Avoid literals -0.0, -0.0L.
37014         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37015         (zerod, zerol): New variables.
37016         (test_function): Avoid literals -0.0, -0.0L.
37017         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37018         (zerod, zerol): New variables.
37019         (test_function): Avoid literals -0.0, -0.0L.
37020         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37021         (zerod, zerol): New variables.
37022         (test_function): Avoid literals -0.0, -0.0L.
37023         * tests/test-strtod.c (zero): New variable.
37024         (main): Avoid literal -0.0.
37025         Reported by Jonathan C. Patschke <jp@centtech.com>.
37026
37027 2008-07-31  Jim Meyering  <meyering@redhat.com>
37028
37029         sha256.h: correct definition of SHA224_DIGEST_SIZE
37030         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37031         Reported by Paulie Pena IV <paulie4@gmail.com>.
37032         Define as 224 / 8, rather than as a literal.
37033         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37034         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37035         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37036
37037 2008-07-31  Bruno Haible  <bruno@clisp.org>
37038
37039         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37040         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37041         Reported by Jonathan Patschke <jp@centtech.com>.
37042
37043 2008-07-31  Bruno Haible  <bruno@clisp.org>
37044
37045         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37046         Reported by Paolo Bonzini <bonzini@gnu.org>.
37047
37048 2008-07-30  Eric Blake  <ebb9@byu.net>
37049
37050         test-strtod: allow compilation without -lm
37051         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37052         Reported by Dennis Clarke <blastwave@gmail.com>.
37053
37054 2008-07-28  Jim Meyering  <meyering@redhat.com>
37055
37056         bootstrap: work also when there are no .po files in po/
37057         * build-aux/bootstrap (update_po_files): Complete the change
37058         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37059
37060 2008-07-27  Jim Meyering  <meyering@redhat.com>
37061
37062         * users.txt: Add zile.
37063
37064 2008-07-26  Ben Pfaff  <blp@gnu.org>
37065
37066         Add missing dependencies on new m4/exponent[fdl].m4 files.
37067         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37068         * modules/isnand-nolibm: Add m4/exponentd.m4.
37069         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37070         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37071         m4/isnan[fdl].m4, because the macros actually used moved.
37072         Reported by Jim Meyering.
37073
37074 2008-07-14  Ben Pfaff  <blp@gnu.org>
37075
37076         Add isinf module.
37077         * lib/isinf.c: New file.
37078         * lib/math.in.h: Define isinf macro if we have decided to replace
37079         it.
37080         * m4/isinf.m4: New file.
37081         * m4/math_h.m4: Initialize and substitute variables for isinf
37082         module.
37083         * modules/isinf: New file.
37084         * modules/isinf-tests: New file.
37085         * modules/math: Add substitutions for new module.
37086         * tests/test-isinf.c: New file.
37087         * doc/posix-functions/isinf.texi: Mention new module.
37088         * MODULES.html.sh: Mention new module.
37089
37090 2008-07-14  Ben Pfaff  <blp@gnu.org>
37091
37092         Factor out some macros for use by additional modules.
37093         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37094         exponentf.m4.
37095         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37096         exponentd.m4.
37097         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37098         file exponentl.m4.
37099         * m4/exponentf.m4: New file.
37100         * m4/exponentd.m4: New file.
37101         * m4/exponentl.m4: New file.
37102         * modules/isnanf: Use new file m4/exponentf.m4.
37103         * modules/isnand: Use new file m4/exponentd.m4.
37104         * modules/isnanl: Use new file m4/exponentl.m4.
37105
37106 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37107
37108         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37109         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37110         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37111         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37112
37113         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37114         readlink on platforms without PATH_MAX.
37115
37116 2008-07-21  Eric Blake  <ebb9@byu.net>
37117
37118         Warn, not fail, on stale version.
37119         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37120
37121         Don't allow installation with stale devel version number.
37122         * top/GNUmakefile (_is-install-target): New macro.
37123         (_curr-ver): Forbid installation with stale version number.
37124
37125 2008-07-20  Bruno Haible  <bruno@clisp.org>
37126
37127         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37128         TESTS_ENVIRONMENT.
37129         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37130
37131 2008-07-20  Bruno Haible  <bruno@clisp.org>
37132
37133         * lib/c-stack.h (c_stack_action): Add documentation.
37134         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37135
37136 2008-07-20  Bruno Haible  <bruno@clisp.org>
37137
37138         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37139         * modules/readlink (License): Likewise.
37140
37141 2008-07-17  Eric Blake  <ebb9@byu.net>
37142
37143         * modules/c-stack (Link): Fix typo.
37144
37145         Make c-stack use libsigsegv, when available.
37146         * modules/c-stack (Depends-on): Add libsigsegv.
37147         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37148         needed.
37149         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37150         (segv_handler, overflow_handler, c_stack_action)
37151         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37152         implementation when libsigsegv is available, but only when using
37153         the library is necessary.
37154         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37155         comment, explaining why XSI check fails on Linux.
37156         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37157         * tests/test-c-stack2.sh: Tweak skip message.
37158         * NEWS: Document new link-time requirements.
37159
37160 2008-07-16  Eric Blake  <ebb9@byu.net>
37161
37162         c-stack: Expose false positives when not using libsigsegv.
37163         * modules/c-stack-tests (Files): Expand test.
37164         * tests/test-c-stack.c (main): Add means to conditionally trigger
37165         non-overflow SIGSEGV.
37166         * tests/test-c-stack2.sh: New file.
37167
37168 2008-07-14  Bruno Haible  <bruno@clisp.org>
37169
37170         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37171         Reported by Eric Blake.
37172
37173 2008-07-14  Sam Steingold  <sds@gnu.org>
37174             Bruno Haible  <bruno@clisp.org>
37175
37176         New module libsigsegv.
37177         * modules/libsigsegv: New file.
37178         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37179         modifications.
37180         * MODULES.html.sh (Signal handling): New section.
37181
37182 2008-07-14  Bruno Haible  <bruno@clisp.org>
37183
37184         * modules/unictype/ctype-* (Description): Add the word "function".
37185         Improves the resulting doc in MODULES.html.
37186
37187 2008-07-12  Ben Pfaff  <blp@gnu.org>
37188
37189         Add longlong module.
37190         * modules/longlong: New file.
37191
37192 2008-07-12  Bruno Haible  <bruno@clisp.org>
37193
37194         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37195         to empty.
37196
37197 2008-07-10  Ben Pfaff  <blp@gnu.org>
37198
37199         Add isnan module.
37200         * doc/posix-functions/isnan.texi: Mention new module.
37201         * lib/math.in.h: Define isnan macro if we have decided to replace
37202         it.
37203         * m4/isnan.m4: New file.
37204         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37205         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37206         also.
37207         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37208         redundancy.
37209         * m4/math_h.m4: Initialize and substitute variables for isnan
37210         module.
37211         * modules/isnan: New file.
37212         * modules/isnan-tests: New file.
37213         * modules/math: Add substitutions for new module.
37214         * tests/test-isnan.c: New file.
37215         * MODULES.html.sh: Mention new module.
37216
37217 2008-07-10  Ben Pfaff  <blp@gnu.org>
37218
37219         Add isnanf module.
37220         * lib/isnanf.m4: New file.
37221         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37222         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37223         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37224         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37225         * modules/isnanf: New file.
37226         * modules/isnanf-tests: New file.
37227         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37228         files.
37229         * tests/test-isnanf-nolibm.c: factored most of its contents into
37230         new file tests/test-isnanf.h.
37231         * tests/test-isnanf.h: New file.
37232         * tests/test-isnanf.c: New file.
37233         * MODULES.html.sh: Mention new module.
37234         * doc/glibc-functions/isnanf.texi: Mention new module.
37235
37236 2008-07-10  Ben Pfaff  <blp@gnu.org>
37237
37238         Add isnand module.
37239         * lib/isnand.h: New file.
37240         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37241         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37242         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37243         functionality also.
37244         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37245         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37246         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37247         * modules/isnand: New file.
37248         * modules/isnand-tests: New file.
37249         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37250         files.
37251         * tests/test-isnand-nolibm.c: factored most of its contents into
37252         new file tests/test-isnand.h.
37253         * tests/test-isnand.h: New file.
37254         * tests/test-isnand.c: New file.
37255         * MODULES.html.sh: Mention new module.
37256
37257 2008-07-10  Ben Pfaff  <blp@gnu.org>
37258
37259         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37260         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37261         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37262         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37263         * modules/isnanf-nolibm: Update references to renamed files.
37264         * modules/isnand-nolibm: Likewise.
37265         * modules/isnanf-nolibm-tests: Likewise.
37266         * modules/isnand-nolibm-tests: Likewise.
37267         * lib/frexp.c: Likewise.
37268         * lib/isfinite.c: Likewise.
37269         * lib/signbitd.c: Likewise.
37270         * lib/signbitf.c: Likewise.
37271         * lib/vasnprintf.c: Likewise.
37272         * tests/test-ceilf1.c: Likewise.
37273         * tests/test-ceilf2.c: Likewise.
37274         * tests/test-floorf1.c: Likewise.
37275         * tests/test-floorf2.c: Likewise.
37276         * tests/test-frexp.c: Likewise.
37277         * tests/test-round1.c: Likewise.
37278         * tests/test-round2.c: Likewise.
37279         * tests/test-roundf1.c: Likewise.
37280         * tests/test-strtod.c: Likewise.
37281         * tests/test-trunc1.c: Likewise.
37282         * tests/test-trunc2.c: Likewise.
37283         * tests/test-truncf1.c: Likewise.
37284         * tests/test-truncf2.c: Likewise.
37285         * NEWS: Mention the renamed header files.
37286
37287 2008-07-11  Jim Meyering  <meyering@redhat.com>
37288
37289         vc-list-files: make the last-resort awk code more portable
37290         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37291         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37292         does not support it.
37293
37294 2008-07-10  Eric Blake  <ebb9@byu.net>
37295
37296         Work with tar's bootstrap.
37297         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37298         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37299         an m4 comment.
37300
37301 2008-07-09  Jim Meyering  <meyering@redhat.com>
37302
37303         posix-shell.m4: fix typo that made this test malfunction
37304         * m4/posix-shell.m4: Remove capitalization in variable name.
37305
37306 2008-07-08  Bruno Haible  <bruno@clisp.org>
37307
37308         * m4/onceonly.m4: Update comments.
37309         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37310
37311 2008-07-04  Jim Meyering  <meyering@redhat.com>
37312
37313         * users.txt: Add vc-dwim.
37314         (bison, coreutils): Use the gitweb URL.
37315
37316 2008-07-03  Jim Meyering  <meyering@redhat.com>
37317
37318         * users.txt: Add libffcall.  From Sam Steingold.
37319
37320 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
37321
37322         getdate.y: do not ignore TZ with relative day, month or year offset
37323         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37324         relative-date-handling, since otherwise, the latter would clobber the
37325         sole output (an updated Start value) of the tz-handling block.
37326         * tests/test-getdate.c: Tests for the fix
37327
37328 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37329
37330         Recognize 'foo_LIBRARIES += libgnu.a'.
37331         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37332         makefile snippet has already specified an installation location,
37333         also using '+='.
37334
37335 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
37336
37337         getdate.y: factor out common actions
37338         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37339         Use them in place of open-coded actions.
37340
37341 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37342
37343         Add self-test for getdate module.
37344         * modules/getdate-tests: New file.
37345         * tests/test-getdate.c: New file.
37346
37347 2008-06-29  Bruno Haible  <bruno@clisp.org>
37348
37349         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37350         .gitignore.
37351         Reported by Sylvain Beucler <beuc@beuc.net>.
37352
37353 2008-06-29  Bruno Haible  <bruno@clisp.org>
37354
37355         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37356         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37357
37358 2008-06-29  Bruno Haible  <bruno@clisp.org>
37359
37360         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37361         EXTRA_DIST.
37362         Reported by Sylvain Beucler <beuc@beuc.net>.
37363
37364 2008-06-26  Jim Meyering  <meyering@redhat.com>
37365
37366         make several modules depend on the "open" module
37367         This provides slightly increased consistency when opening-for-write
37368         the name of a non-directory spelled with a trailing slash.
37369         * modules/chdir-safer: Likewise.
37370         * modules/chown: Likewise.
37371         * modules/clean-temp: Likewise.
37372         * modules/copy-file: Likewise.
37373         * modules/fchdir: Likewise.
37374         * modules/fcntl-safer: Likewise.
37375         * modules/pipe: Likewise.
37376         * modules/utime: Likewise.
37377         Prompted by Eric Blake and Bruno Haible.
37378
37379 2008-06-24  Andreas Schwab  <schwab@suse.de>
37380
37381         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37382         literals can be used as initializers for global variables.
37383
37384 2008-06-23  Eric Blake  <ebb9@byu.net>
37385
37386         Make gnulib-cache.m4 easier to diff.
37387         * gnulib-tool (func_import): Allow newlines when reading cached
37388         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37389
37390 2008-06-23  Bruno Haible  <bruno@clisp.org>
37391
37392         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37393         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37394         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37395         m4/signalblocking.m4.
37396         (gl_PREREQ_SIGACTION): Don't invoke it.
37397         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37398         gl_PREREQ_SIG_HANDLER_H.
37399         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37400         Don't check for sigaction here.
37401
37402 2008-06-23  Bruno Haible  <bruno@clisp.org>
37403
37404         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37405         (install_handlers): Don't set the SA_RESETHAND flag.
37406
37407 2008-06-23  Bruno Haible  <bruno@clisp.org>
37408
37409         * m4/sigaction.m4: Comment fixes.
37410         * lib/signal.in.h: Likewise.
37411
37412 2008-06-23  Eric Blake  <ebb9@byu.net>
37413
37414         Fix typo.
37415         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37416
37417         Avoid SA_ namespace.
37418         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37419         Reported by Ralf Wildenhues.
37420
37421         Avoid test failure due to SA_RESTORER.
37422         * tests/test-sigaction.c (SA_MASK): New macro.
37423         (main): Avoid failing due to extension flags being set.
37424         Reported by Jim Meyering.
37425
37426         Revert use of sig-handler.h in sigprocmask.c.
37427         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37428         it requires the existence of struct sigaction.
37429         * lib/sigprocmask.c (handler_t): Restore typedef.
37430         (rpl_signal, old_handlers): Use local type.
37431
37432 2008-06-22  Bruno Haible  <bruno@clisp.org>
37433
37434         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37435         conditionally.
37436         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37437
37438 2008-06-22  Bruno Haible  <bruno@clisp.org>
37439
37440         * doc/posix-functions/siginterrupt.texi: Move note.
37441
37442         * lib/signal.in.h (SA_RESTART): New macro.
37443         * lib/sigaction.c: Update comment.
37444
37445         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37446
37447         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37448         (gl_PREREQ_SIGPROCMASK): Invoke it.
37449         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37450
37451         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37452
37453         * lib/sigprocmask.c: Update a comment.
37454
37455 2008-06-21  Eric Blake  <ebb9@byu.net>
37456
37457         Use sigaction module rather than signal().
37458         * modules/c-stack (Depends-on): Add sigaction.
37459         * modules/fatal-signal (Depends-on): Likewise.
37460         * modules/nanosleep (Depends-on): Likewise.
37461         * modules/sigprocmask (Files): Add sig-handler.h.
37462         * modules/sigaction (Files): Likewise.
37463         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37464         Eggert.
37465         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37466         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37467         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37468         (init_fatal_signals): Likewise.
37469         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37470         (siginterrupt): Delete fallback.
37471         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37472         instead.
37473         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37474         siginterrupt.
37475
37476         New module sigaction, for mingw.
37477         * modules/sigaction: New module...
37478         * modules/sigaction-tests: ...and its test.
37479         * m4/sigaction.m4: New file.
37480         * lib/sigaction.c: Likewise.
37481         * tests/test-sigaction.c: Likewise.
37482         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37483         * modules/signal (Makefile.am): Likewise.
37484         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37485         needed.
37486         * doc/posix-headers/signal.texi (signal.h): Mention provided
37487         types.
37488         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37489         that sigaction is preferable.
37490         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37491         module.
37492         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37493         sigaction.
37494
37495         Improve robustness of sigprocmask by overriding signal.
37496         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37497         is in use.
37498         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37499         (SIGKILL, SIGSTOP): Provide fallbacks.
37500         (rpl_signal): Implement.
37501         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37502         signal can be called inside handlers.
37503
37504         Fix nanosleep module on mingw.
37505         * modules/nanosleep (Depends-on): Add sys_select.
37506         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37507
37508         Fix licensing of sigprocmask.
37509         * modules/raise (License): Relicense as LGPL.
37510
37511 2008-06-21  Bruno Haible  <bruno@clisp.org>
37512
37513         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37514         result if it contains question marks.
37515         Reported by Michael Geng <linux@michaelgeng.de>.
37516
37517 2008-06-19  Bruno Haible  <bruno@clisp.org>
37518
37519         Fix CVS-ism.
37520         * doc/gnulib.texi: Include updated-stamp.texi.
37521         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37522         (updated-stamp.texi): New rule.
37523         (gnulib.info): Depend on it.
37524         * doc/.gitignore: Add updated-stamp.texi.
37525         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37526
37527 2008-06-19  Bruno Haible  <bruno@clisp.org>
37528
37529         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37530         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37531
37532 2008-06-19  Eric Blake  <ebb9@byu.net>
37533
37534         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37535         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37536         Reported by Stepan Kasal.
37537
37538 2008-06-18  Bruno Haible  <bruno@clisp.org>
37539
37540         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37541         Reported by Eric Blake.
37542
37543 2008-06-18  Eric Blake  <ebb9@byu.net>
37544
37545         Work around cygwin 1.5.25 strsignal bug.
37546         * tests/test-strsignal.c: Allow for const char *.
37547         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37548
37549 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37550
37551         * users.txt: Update URL to article and add author/date
37552         information.
37553
37554 2008-06-17  Bruno Haible  <bruno@clisp.org>
37555
37556         New macro gl_DISABLE_THREADS.
37557         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37558         if the user did not pass --enable-threads or --disable-threads option.
37559         (gl_DISABLE_THREADS): New macro.
37560         Reported by Eric Blake <ebb9@byu.net>.
37561
37562 2008-06-17  Bruno Haible  <bruno@clisp.org>
37563
37564         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37565         when the macro ignores it.
37566         Based on a patch by Eric Blake <ebb9@byu.net>.
37567
37568 2008-06-17  Bruno Haible  <bruno@clisp.org>
37569
37570         * modules/tls (License): Change to LGPLv2+.
37571         Reported by Eric Blake.
37572
37573 2008-06-17  Eric Blake  <ebb9@byu.net>
37574
37575         Simplify c-stack prerequisites.
37576         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37577         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37578         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37579         check.
37580         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37581         <sys/resource.h>.
37582
37583         Move c-stack test into testsuite.
37584         * modules/c-stack-tests: New file.
37585         * lib/c-stack.c [DEBUG]: Move test program...
37586         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37587         fail test if sigaltstack is lacking.
37588         * tests/test-c-stack.sh: New driver file.
37589
37590 2008-06-16  Eric Blake  <ebb9@byu.net>
37591
37592         Use raise module consistently.
37593         * modules/fatal-signal (Depends-on): Add raise.
37594         * modules/sigprocmask (Depends-on): Likewise.
37595         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37596         * lib/sigprocmask.c (sigprocmask): Likewise.
37597         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37598         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37599
37600         Fix compliance bug in sigpending.
37601         * lib/sigprocmask.c (sigpending): Return pending array via
37602         parameter, not return value.
37603
37604 2008-06-14  Eric Blake  <ebb9@byu.net>
37605
37606         Improve obstack-printf test code.
37607         * tests/test-obstack-printf.c (test_function): Fix comment, and
37608         simplify usage of obstack_* in macros.  Add a test for coverage.
37609         Reported by Bruno Haible.
37610
37611 2008-06-14  Bruno Haible  <bruno@clisp.org>
37612
37613         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37614         array size as a constant, not as a const variable.
37615         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37616         AC_USE_SYSTEM_EXTENSIONS.
37617         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37618         Test whether the obstack_printf function actually exists.
37619         * modules/obstack-printf (Depends-on): Add extensions.
37620         (Include): Remove obstack.h.
37621         * modules/obstack-printf-posix (Depends-on): Add extensions.
37622         (Include): Remove obstack.h.
37623
37624 2008-06-13  Eric Blake  <ebb9@byu.net>
37625
37626         Add obstack-printf and obstack-printf-posix modules.
37627         * modules/obstack-printf: New file.
37628         * modules/obstack-printf-posix: Likewise.
37629         * MODULES.html.sh (Misc): Mention them.
37630         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37631         Likewise.
37632         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37633         Likewise.
37634         * modules/stdio (Makefile.am): Accomodate new modules.
37635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37636         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37637         Declare.
37638         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37639         functions.
37640         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37641         (gl_REPLACE_OBSTACK_PRINTF): New macros
37642         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37643         * tests/test-obstack-printf.c: New file.
37644         * modules/obstack-printf-tests: Likewise.
37645         * modules/obstack-printf-posix-tests: Likewise.
37646
37647 2008-06-11  Bruno Haible  <bruno@clisp.org>
37648
37649         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37650         * lib/open.c: Include errno.h.
37651         (open): Fail when attempting to write to a file that has a trailing
37652         slash.
37653         * tests/test-open.c (main): Test against trailing slash bug.
37654         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37655
37656 2008-06-10  Bruno Haible  <bruno@clisp.org>
37657
37658         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37659         for $? to work inside the trap command, with various /bin/sh-s.
37660         * tests/test-vc-list-files-cvs.sh: Likewise.
37661
37662 2008-06-10  Bruno Haible  <bruno@clisp.org>
37663
37664         * lib/acl-internal.h: Don't include gettext.h here.
37665         * lib/set-mode-acl.c: Include gettext.h here.
37666         * lib/copy-acl.c: Likewise.
37667
37668 2008-06-10  Bruno Haible  <bruno@clisp.org>
37669
37670         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37671         * lib/wait-process.c (wait_subprocess): Likewise.
37672         * lib/execute.h (execute): Add termsigp argument.
37673         * lib/execute.c (execute): Likewise.
37674         * lib/csharpcomp.c (compile_csharp_using_pnet,
37675         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37676         * lib/csharpexec.c (execute_csharp_using_pnet,
37677         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37678         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37679         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37680         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37681         is_jikes_present): Update.
37682         * lib/javaexec.c (execute_java_class): Update.
37683         * lib/javaversion.c (execute_and_read_line): Update.
37684         * NEWS: Document the changes.
37685         Reported by Eric Blake.
37686
37687 2008-06-10  Eric Blake  <ebb9@byu.net>
37688
37689         Add missing include.
37690         * tests/test-strstr.c (includes): Add <signal.h>.
37691         * tests/test-strcasestr.c (includes): Likewise.
37692         * tests/test-memmem.c (includes): Likewise.
37693
37694 2008-06-10  Bruno Haible  <bruno@clisp.org>
37695
37696         * lib/wait-process.c (wait_subprocess): Add an assertion.
37697
37698 2008-06-10  Bruno Haible  <bruno@clisp.org>
37699
37700         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37701
37702 2008-06-10  Bruno Haible  <bruno@clisp.org>
37703
37704         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37705         using alarm().
37706         * tests/test-strcasestr.c (main): Likewise.
37707         * tests/test-strstr.c (main): Likewise.
37708
37709 2008-06-09  Bruno Haible  <bruno@clisp.org>
37710
37711         Work around the Solaris 10 ACE ACLs ABI change.
37712         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37713         declare if ACL_NO_TRIVIAL is present.
37714         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37715         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37716         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37717         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37718         define if ACL_NO_TRIVIAL is present.
37719         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37720         and use the current ABI.
37721         (file_has_acl): Use same #if condition as elsewhere.
37722         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37723         in use, and use the current ABI.
37724         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37725         Reported by Jim Meyering.
37726
37727 2008-06-09  Eric Blake  <ebb9@byu.net>
37728
37729         Work around environments that (stupidly) ignore SIGALRM.
37730         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37731         before using alarm().
37732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37734         Reported by Ian Beckwith <ianb@erislabs.net>.
37735
37736         Produce autobuild blurb earlier in log.
37737         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37738
37739 2008-06-09  Jim Meyering  <meyering@redhat.com>
37740         and OndÅ™ej Vašík  <ovasik@redhat.com>
37741
37742         utimens.c: correct kernel bug work-around
37743         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37744         failure, not success, and the kernel bug we're trying to work
37745         around affects not just the utimensat call, but also the fallback
37746         futimens call.
37747         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37748         not success.
37749         [HAVE_FUTIMENS]: Use the same work-around, here.
37750
37751 2008-06-09  Jim Meyering  <meyering@redhat.com>
37752
37753         add more guards around definition of ACE_-related code
37754         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37755         ALLOW and ACE_OWNER are also defined.
37756
37757 2008-06-08  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/acl-internal.h: Add me as co-author.
37760         * lib/file-has-acl.c: Likewise.
37761         * lib/set-mode-acl.c: Likewise.
37762         * lib/copy-acl.c: Likewise.
37763
37764 2008-06-08  Bruno Haible  <bruno@clisp.org>
37765
37766         Add support for AIX ACLs.
37767         * lib/acl-internal.h (acl_nontrivial): New declaration.
37768         * lib/file-has-acl.c (acl_nontrivial): New function.
37769         (file_has_acl): Add implementation using AIX 4 ACL API.
37770         * lib/set-mode-acl.c (qset_acl): Likewise.
37771         * lib/copy-acl.c (qcopy_acl): Likewise.
37772
37773 2008-06-08  Bruno Haible  <bruno@clisp.org>
37774
37775         Add support for HP-UX ACLs.
37776         * lib/acl-internal.h (acl_nontrivial): New declaration.
37777         * lib/file-has-acl.c (acl_nontrivial): New function.
37778         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37779         * lib/set-mode-acl.c (qset_acl): Likewise.
37780         * lib/copy-acl.c (qcopy_acl): Likewise.
37781
37782 2008-06-08  Bruno Haible  <bruno@clisp.org>
37783
37784         Add support for Cygwin ACLs.
37785         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37786         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37787         the chmod_or_fchmod call.
37788         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37789
37790 2008-06-08  Bruno Haible  <bruno@clisp.org>
37791
37792         Fix bug with setuid modes in Solaris 10+ code.
37793         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37794         succeeded, when the mode contains some special bits.
37795
37796 2008-06-08  Bruno Haible  <bruno@clisp.org>
37797
37798         Add support for Solaris 7..10 ACLs.
37799         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37800         declarations.
37801         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37802         functions.
37803         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37804         * lib/set-mode-acl.c (qset_acl): Likewise.
37805         * lib/copy-acl.c (qcopy_acl): Likewise.
37806
37807 2008-06-08  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37810         declaration.
37811         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37812         (acl_access_nontrivial): Remove MacOS X case.
37813         (file_has_acl): Use acl_extended_nontrivial.
37814         * lib/copy-acl.c (qcopy_acl): Likewise.
37815
37816 2008-06-08  Bruno Haible  <bruno@clisp.org>
37817
37818         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37819
37820 2008-06-08  Jim Meyering  <meyering@redhat.com>
37821
37822         * modules/acl (Maintainer): Add Bruno Haible.
37823
37824 2008-06-07  Bruno Haible  <bruno@clisp.org>
37825
37826         Improve support for Tru64 ACLs.
37827         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37828         ACL on OSF/1.
37829
37830 2008-06-07  Bruno Haible  <bruno@clisp.org>
37831
37832         Add support for MacOS X ACLs.
37833         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37834         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37835         * lib/set-mode-acl.c (qset_acl): Likewise.
37836         * lib/copy-acl.c (qcopy_acl): Likewise.
37837
37838 2008-06-07  Bruno Haible  <bruno@clisp.org>
37839
37840         Fix memory leak introduced on 2008-05-22.
37841         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37842         use.
37843
37844 2008-06-07  Bruno Haible  <bruno@clisp.org>
37845
37846         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37847         to construct an empty ACL.
37848
37849 2008-06-07  Bruno Haible  <bruno@clisp.org>
37850
37851         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37852         precisely.
37853         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37854
37855 2008-06-07  Bruno Haible  <bruno@clisp.org>
37856
37857         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37858         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37859
37860 2008-06-07  Bruno Haible  <bruno@clisp.org>
37861
37862         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37863         regardless of POSIX.
37864         * doc/posix-functions/_longjmp.texi: Likewise.
37865         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37866         SystemV platform in this case.
37867
37868 2008-06-06  Eric Blake  <ebb9@byu.net>
37869
37870         Document abort() bugs.
37871         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37872
37873         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37874         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37875         sigsetjmp.
37876         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37877         siglongjmp, but only as a macro.
37878         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37879         is obsolete.
37880         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37881
37882         Tweak documentation to cover cygwin argz bugs.
37883         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37884         argz bug fix; no code change needed since no cygwin releases
37885         occurred between the last fix and the bug being tested.
37886         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37887         module and recently fixed cygwin bugs.
37888         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37889         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37890         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37891         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37892         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37893         Likewise.
37894         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37895         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37896         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37897         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37898         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37899         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37900         Likewise.
37901
37902         Avoid gcc warning on cygwin.
37903         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37904         !ACL_NO_TRIVIAL]: Avoid unused variable.
37905
37906 2008-06-05  Eric Blake  <ebb9@byu.net>
37907
37908         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37909         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37910         git-version-gen fails to come up with a version.
37911         Reported by Simon Josefsson.
37912
37913 2008-06-05  Jim Meyering  <meyering@redhat.com>
37914             Paul Eggert  <eggert@cs.ucla.edu>
37915
37916         utimens.c: work around a probable Linux kernel bug
37917         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37918         appears to be a kernel bug that causes utimensat to return 280
37919         instead of 0, indicating success.
37920
37921 2008-06-04  Bruno Haible  <bruno@clisp.org>
37922
37923         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37924         2008-06-01 commit.
37925
37926 2008-06-04  Bruno Haible  <bruno@clisp.org>
37927
37928         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37929         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37930         (file_has_acl): Use it. Save errno afterwards.
37931         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37932
37933 2008-06-03  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37936         draft code. Simplify #ifs.
37937         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37938         Put Solaris code after POSIX-draft code. Fix comments regarding
37939         Solaris 10, HP-UX. Mention Cygwin.
37940         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37941
37942 2008-06-03  Eric Blake  <ebb9@byu.net>
37943
37944         Provide fallback for older kernels.
37945         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37946         Provide runtime fallback if kernel lacks support.
37947         Reported by Mike Frysinger.
37948
37949 2008-06-02  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37952         it exists.
37953
37954 2008-06-02  Bruno Haible  <bruno@clisp.org>
37955
37956         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37957         * lib/copy-acl.c (qcopy_acl): Update comment.
37958
37959 2008-06-02  Bruno Haible  <bruno@clisp.org>
37960
37961         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37962         like ACL APIs.
37963
37964 2008-06-02  Bruno Haible  <bruno@clisp.org>
37965
37966         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37967         * tests/test-set-mode-acl.sh: Likewise.
37968         * tests/test-copy-acl.sh: Likewise.
37969         * tests/test-copy-file.sh: Likewise.
37970
37971 2008-06-02  Bruno Haible  <bruno@clisp.org>
37972
37973         * tests/test-file-has-acl.sh: Remove unused code.
37974
37975 2008-06-01  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37978         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37979         messages.
37980         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37981
37982 2008-06-01  Bruno Haible  <bruno@clisp.org>
37983
37984         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37985         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37986         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37987         APIs.
37988         * modules/acl-tests (configure.ac): Remove tests now contained in
37989         m4/acl.m4.
37990
37991 2008-06-02  Jim Meyering  <meyering@redhat.com>
37992
37993         announce-gen: use a better key-server host name
37994         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37995         it may be more consistently reliable.  Suggested by Werner Koch
37996         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37997
37998 2008-06-01  Bruno Haible  <bruno@clisp.org>
37999
38000         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38001         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38002
38003 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38004
38005         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38006
38007 2008-06-01  Bruno Haible  <bruno@clisp.org>
38008
38009         New ACL tests.
38010         * tests/test-file-has-acl.sh: New file.
38011         * tests/test-file-has-acl.c: New file.
38012         * tests/test-set-mode-acl.sh: New file.
38013         * tests/test-set-mode-acl.c: New file.
38014         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38015         * tests/test-copy-acl.c: New file.
38016         * modules/acl-tests: New file, based on modules/copy-file-tests.
38017         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38018         (Depends-on): Add acl-tests.
38019         (configure.ac): Remove checks.
38020         (Makefile.am): Don't create test-sameacls program here any more.
38021
38022 2008-06-01  Bruno Haible  <bruno@clisp.org>
38023
38024         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38025         * tests/test-sameacls.c: Include progname.h.
38026         (main): Invoke set_program_name. Portability fixes for MacOS X,
38027         Solaris, HP-UX.
38028
38029 2008-06-01  Bruno Haible  <bruno@clisp.org>
38030
38031         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38032         function.
38033         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38034
38035 2008-06-01  Bruno Haible  <bruno@clisp.org>
38036
38037         * modules/rpmatch (Depends-on): Add strdup.
38038
38039 2008-06-01  Bruno Haible  <bruno@clisp.org>
38040
38041         * lib/pipe.c: Include unistd-safer.h.
38042         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38043         * modules/pipe (Depends-on): Add unistd-safer.
38044
38045 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38046
38047         * modules/autobuild (configure.ac): Call AB_INIT.
38048
38049 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38050
38051         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38052         Suggested by Bruno Haible <bruno@clisp.org>.
38053
38054 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38055
38056         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38057         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38058         <bruno@clisp.org>.
38059
38060 2008-05-29  Eric Blake  <ebb9@byu.net>
38061
38062         Prefer new POSIX 200x interfaces over futimesat.
38063         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38064         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38065         when available.
38066         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38067
38068 2008-05-28  Bruno Haible  <bruno@clisp.org>
38069
38070         * modules/stpcpy (License): Change to LGPLv2+.
38071         Requested by David Lutterkort <dlutter@redhat.com>.
38072
38073 2008-05-27  Bruno Haible  <bruno@clisp.org>
38074
38075         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38076         current mingw.
38077         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38078
38079 2008-05-27  Bruno Haible  <bruno@clisp.org>
38080
38081         * modules/iconv_open (Link): New section, from module 'iconv'.
38082         * modules/striconv (Link): Likewise.
38083         * modules/striconveh (Link): Likewise.
38084         * modules/xstriconv (Link): Likewise.
38085         * modules/unicodeio (Link): Likewise.
38086         * modules/propername (Link): Likewise.
38087         Reported by Jim Meyering.
38088
38089 2008-05-26  Jim Meyering  <meyering@redhat.com>
38090
38091         sha256: do not artificially restrict buffer length to be < 2^32
38092         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38093         uint32_t to size_t.
38094         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38095         to match.
38096
38097         avoid unaligned access errors, e.g., on sparc
38098         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38099         direct access through a possibly-unaligned uint64* pointer.
38100         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38101         direct access through a possibly-unaligned uint32* pointer.
38102         Prompted by this patch from Tom "spot" Callaway:
38103         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38104
38105         sha512.c: fix typo in comment
38106         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38107
38108 2008-05-25  Bruno Haible  <bruno@clisp.org>
38109
38110         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38111         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38112         (Makefile.am): Update lib_SOURCES.
38113
38114 2008-05-25  Bruno Haible  <bruno@clisp.org>
38115
38116         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38117
38118 2008-05-25  Jim Meyering  <meyering@redhat.com>
38119
38120         useless-if-before-free: freed expr may have white-space differences
38121         * build-aux/useless-if-before-free: Recognize cases in which the
38122         freed expression differs from the tested one in embedded white
38123         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38124         $1 was used, so we can't make any regexp shy.  Improved tests now
38125         detect this.
38126
38127         useless-if-before-free: accept white space in the expression.
38128         * build-aux/useless-if-before-free: For now, any white space
38129         in the expression must be identical in the free argument.
38130
38131         useless-if-before-free: efficiency tweak
38132         * build-aux/useless-if-before-free: Make the expression-matching
38133         regexp "shy".
38134         Make the *outer* regexp shy, not the expr-matching one.
38135
38136         update code-in-comment to accept cast of free arg
38137         * build-aux/useless-if-before-free: Update regexp.
38138
38139 2008-05-25  Bruno Haible  <bruno@clisp.org>
38140
38141         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38142         * modules/copy-file-tests (Files, Makefile.am): Update.
38143         * tests/test-copy-file.c (func_test_copy): Update.
38144
38145 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38146
38147         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38148
38149 2008-05-23  Bruno Haible  <bruno@clisp.org>
38150
38151         Improve support for ACLs on OSF/1.
38152         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38153         Remove fallback for unknown flavors of ACLs.
38154
38155 2008-05-22  Bruno Haible  <bruno@clisp.org>
38156
38157         Add support for ACLs on OSF/1.
38158         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38159         replacements.
38160         (acl_free_text): New macro fallback.
38161         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38162         acl_free.
38163         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38164         acl_free_text function. Require AC_C_INLINE.
38165
38166 2008-05-22  Bruno Haible  <bruno@clisp.org>
38167
38168         Make copy_acl work on MacOS X 10.5.
38169         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38170         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38171         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38172         If MODE_INSIDE_ACL, don't assume that every system has the same text
38173         representation for ACLs as FreeBSD.
38174         * lib/copy-acl.c (copy_acl): Add support for platforms with
38175         !MODE_INSIDE_ACL.
38176         * lib/file-has-acl.c (file_has_acl): Likewise.
38177         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38178         FreeBSD, MacOS X, or IRIX, respectively.
38179
38180 2008-05-22  Bruno Haible  <bruno@clisp.org>
38181
38182         * lib/acl.h: Don't include <sys/acl.h>.
38183         (GETACLCNT): Move fallback to lib/acl-internal.h.
38184         * lib/acl-internal.h: Include <sys/acl.h> here.
38185         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38186
38187 2008-05-22  Bruno Haible  <bruno@clisp.org>
38188
38189         Split off copy_acl function to separate file.
38190         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38191         * lib/acl.c (copy_acl): Moved function to separate file.
38192         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38193         * modules/acl (Files): Add lib/copy-acl.c.
38194         (Makefiles.am): Augment lib_SOURCES.
38195
38196 2008-05-22  Bruno Haible  <bruno@clisp.org>
38197
38198         * modules/copy-file-tests: New file.
38199         * tests/test-copy-file.sh: New file.
38200         * tests/test-copy-file.c: New file.
38201         * tests/test-copy-file-sameacls.c: New file.
38202
38203 2008-05-22  Eric Blake  <ebb9@byu.net>
38204
38205         Avoid gcc warning.
38206         * tests/test-memcmp.c (main): Pass NULL indirectly.
38207
38208 2008-05-21  Bruno Haible  <bruno@clisp.org>
38209
38210         Add reference doc about ACLs.
38211         * doc/acl-resources.txt: New file.
38212         * doc/acl-cygwin.txt: New file.
38213
38214 2008-05-21  Bruno Haible  <bruno@clisp.org>
38215
38216         Avoid one more warning from gcc.
38217         * lib/vasnprintf.c (IF_LINT): Update comments.
38218         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38219
38220 2008-05-21  Jim Meyering  <meyering@redhat.com>
38221
38222         avoid a warning from gcc
38223         * lib/vasnprintf.c (IF_LINT): Define.
38224         (scale10_round_decimal_long_double):
38225         Use it to avoid a "may be used uninitialized" warning.
38226         (scale10_round_decimal_double): Likewise.
38227
38228 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38229
38230         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38231         declared.
38232
38233 2008-05-20  Bruno Haible  <bruno@clisp.org>
38234
38235         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38236         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38237
38238 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38239
38240         * modules/memcmp-tests: New file.
38241         * tests/test-memcmp.c: New file.
38242
38243 2008-05-19  Bruno Haible  <bruno@clisp.org>
38244
38245         * modules/propername (Notice, configure.ac): Put quoted "..." into
38246         --keyword option.
38247         * lib/propername.h: Update comments accordingly.
38248         Reported by Eric Blake.
38249
38250 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38251
38252         * modules/getpass-gnu (Depends-on): Add fseeko.
38253
38254 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38255
38256         * modules/base64-tests: New file.
38257
38258 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38259
38260         * lib/base64.c (base64_decode_ctx): If a decode context structure
38261         was passed in use it to ignore newlines.  If a context structure
38262         was _not_ passed in, continue to treat newlines as garbage (this
38263         is the historical behavior).  Formerly base64_decode.
38264         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38265         takes a decode context structure.
38266         * lib/base64.h (base64_decode): Macro for four-argument calls.
38267         (base64_decode_alloc): Likewise.
38268         * lib/base64.c (base64_decode_ctx): If a decode context structure
38269         was passed in use it to ignore newlines.  If a context structure
38270         was _not_ passed in, continue to treat newlines as garbage (this
38271         is the historical behavior).  Formerly base64_decode.
38272         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38273         takes a decode context structure.
38274         * lib/base64.h (base64_decode): Macro for four-argument calls.
38275         (base64_decode_alloc): Likewise.
38276
38277 2008-05-19  Jim Meyering  <meyering@redhat.com>
38278
38279         avoid a warning from gcc
38280         * lib/trim.c (IF_LINT): Define.
38281         (trim2): Use it to avoid a "may be used uninitialized" warning.
38282
38283         Fix doc typo.
38284         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38285
38286 2008-05-19  Bruno Haible  <bruno@clisp.org>
38287
38288         * doc/glibc-functions/getpass.texi: Document limits of other
38289         implementations.
38290
38291 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38292             Bruno Haible <bruno@clisp.org>
38293
38294         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38295
38296 2008-05-18  Bruno Haible  <bruno@clisp.org>
38297
38298         * modules/propername: New file, from GNU gettext.
38299         * lib/propername.h: New file, from GNU gettext.
38300         * lib/propername.c: New file, from GNU gettext.
38301         * MODULES.html.sh (Internationalization functions): Add propername.
38302
38303 2008-05-16  Jim Meyering  <meyering@redhat.com>
38304             Bruno Haible  <bruno@clisp.org>
38305
38306         Avoid some warnings from "gcc -Wshadow".
38307         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38308
38309 2008-05-15  Eric Blake  <ebb9@byu.net>
38310
38311         Extend previous patch to cygwin 1.7.0.
38312         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38313         fast implementation in cygwin >= 1.7.0.
38314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38316
38317 2008-05-15  Bruno Haible  <bruno@clisp.org>
38318
38319         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38320         implementation in glibc >= 2.9.
38321         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38323
38324 2008-05-15  Bruno Haible  <bruno@clisp.org>
38325
38326         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38327         (Unicode string functions): Add unilbrk/*.
38328         Reported by Karl Berry.
38329
38330 2008-05-15  Eric Blake  <ebb9@byu.net>
38331
38332         Fix violation of <stdbool.h> replacement in regex.
38333         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38334         * lib/regexec.c (re_search_internal): Likewise.
38335         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38336
38337 2008-05-15  Jim Meyering  <meyering@redhat.com>
38338
38339         avoid distracting test output when git or cvs is not found
38340         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38341         * tests/test-vc-list-files-git.sh: Likewise.
38342
38343 2008-05-15  Eric Blake  <ebb9@byu.net>
38344
38345         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38346         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38347         glibc version.
38348         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38349         * doc/posix-functions/strstr.texi (strstr): Likewise.
38350         * lib/str-two-way.h (MAX): Sychronize with glibc.
38351
38352 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38353
38354         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38355         opr.ctx_type.
38356         (calc_first): Initialize constraint field.
38357         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38358         Fix grammar.
38359         (duplicate_node): Merge constraint field for all node types.
38360         (calc_eclosure_iter): Look at constraint field for all node types.
38361         * lib/regex_internal.c (create_cd_newstate): Don't look at
38362         opr.ctx_type.
38363
38364 2008-05-14  Bruno Haible  <bruno@clisp.org>
38365
38366         Help GCC to do better code generation.
38367         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38368         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38369         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38370         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38371         Declare with attribute 'malloc' if supported.
38372
38373 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38374
38375         use "echo STR|wc -c" rather than unportable "expr length STR"
38376         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38377         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38378
38379 2008-05-14  Jim Meyering  <meyering@redhat.com>
38380
38381         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38382         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38383         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38384         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38385         via Collin Lasse.
38386
38387 2008-05-14  Eric Blake  <ebb9@byu.net>
38388
38389         Avoid quadratic growth in gl_LIBSOURCES.
38390         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38391         Suggested by Bruno Haible.
38392
38393         Test xmemdup0.
38394         * modules/xmemdup0-tests: New file.
38395         * tests/test-xmemdup0.c: Likewise.
38396
38397 2008-05-13  Eric Blake  <ebb9@byu.net>
38398
38399         Split xmemdup0 into its own module.
38400         * modules/xmemdup0: New file.
38401         * lib/xmemdup0.h: Likewise.
38402         * lib/xmemdup0.c: Likewise.
38403         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38404         * lib/xalloc.h (xmemdup0): Remove.
38405         * lib/xmalloc.c (xmemdup0): Likewise.
38406
38407 2008-05-13  Eric Blake  <ebb9@byu.net>
38408             Bruno Haible  <bruno@clisp.org>
38409
38410         Reduce number of forks required during autoconf.
38411         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38412         and gl_LIBSOURCES_DIR.
38413         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38414         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38415         m4_syscmd per file.
38416         <m4_foreach_w>: Move...
38417         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38418
38419 2008-05-13  Eric Blake  <ebb9@byu.net>
38420
38421         * gnulib-tool: Fix various comment typos.
38422
38423 2008-05-12  Bruno Haible  <bruno@clisp.org>
38424
38425         Tailor the linebreaking algorithm.
38426         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38427
38428 2008-05-12  Bruno Haible  <bruno@clisp.org>
38429
38430         Update to Unicode 5.0.0.
38431         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38432         LBP_JV, LBP_JT. Redistribute values.
38433         (unilbrk_table): Change size.
38434         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38435         Unicode TR#14 rev. 22.
38436         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38437         LBP_JV, LBP_JT. Redistribute values.
38438         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38439         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38440         Update.
38441         * lib/unilbrk/lbrkprop1.h: Regenerated.
38442         * lib/unilbrk/lbrkprop2.h: Regenerated.
38443         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38444         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38445         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38446         Likewise.
38447         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38448         Likewise.
38449         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38450         result.
38451         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38452         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38453         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38454         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38455         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38456         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38457
38458 2008-05-11  Bruno Haible  <bruno@clisp.org>
38459
38460         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38461
38462 2008-05-11  Bruno Haible  <bruno@clisp.org>
38463
38464         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38465         * modules/unilbrk/gen-lbrk: New file.
38466
38467 2008-05-11  Bruno Haible  <bruno@clisp.org>
38468
38469         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38470         * m4/sha512.m4 (gl_SHA512): Likewise.
38471
38472 2008-05-11  Jim Meyering  <meyering@redhat.com>
38473
38474         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38475         * modules/crypto/sha256: New file.
38476         * modules/crypto/sha512: Likewise.
38477         * lib/sha256.c: Likewise.
38478         * lib/sha256.h: Likewise.
38479         * lib/sha512.c: Likewise.
38480         * lib/sha512.h: Likewise.
38481         * lib/u64.h: Likewise.
38482         * m4/sha256.m4: Likewise.
38483         * m4/sha512.m4: Likewise.
38484         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38485
38486 2008-05-10  Bruno Haible  <bruno@clisp.org>
38487
38488         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38489         (Input/Output <stdio.h>): Add xprintf.
38490         (Signal handling <signal.h>): Add strsignal.
38491         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38492         (Core language properties): Add func.
38493         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38494         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38495         strings.
38496         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38497         (Input/output): New section.
38498         (File system functions): Add openat-die, stat-macros.
38499         (Networking functions): Add sockets.
38500         (Unicode string functions): Add unictype/*.
38501         (Support for building libraries and executables): Add gperf.
38502         (Support for building documentation): Add agpl-3.0.
38503         (Misc): Add nocrash.
38504
38505 2008-05-10  Bruno Haible  <bruno@clisp.org>
38506
38507         * modules/unictype/gen-ctype: New file.
38508
38509 2008-05-10  Jim Meyering  <meyering@redhat.com>
38510
38511         Make chdir-safer.c more efficient on a system with no symlinks.
38512         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38513         also if ELOOP is zero.  Suggested by Bruno Haible.
38514
38515         Make chdir-safer.c slightly safer.
38516         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38517         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38518
38519         Avoid compile failure on systems without ELOOP (like mingw).
38520         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38521         Reported by Bruno Haible.
38522
38523 2008-05-10  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38526         (is_utf8_encoding): Use a case-insensitive comparison.
38527         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38528         streq.
38529
38530 2008-05-10  Bruno Haible  <bruno@clisp.org>
38531
38532         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38533         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38534         * lib/unilbrk/ulc-common.h (iconv_string_length,
38535         iconv_string_keeping_offsets): Remove declarations.
38536         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38537         Don't include <iconv.h>, streq.h, xsize.h.
38538         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38539         conversion.
38540         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38541         <iconv.h>, streq.h, xsize.h.
38542         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38543         conversion.
38544         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38545         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38546         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38547         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38548
38549 2008-05-10  Bruno Haible  <bruno@clisp.org>
38550
38551         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38552         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38553
38554         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38555         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38556
38557         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38558         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38559
38560         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38561         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38562
38563         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38564         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38565
38566         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38567         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38568
38569         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38570         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38571
38572         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38573         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38574
38575 2008-05-10  Bruno Haible  <bruno@clisp.org>
38576
38577         Split up 'linebreak' module.
38578         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38579         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38580         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38581         modifications.
38582         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38583         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38584         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38585         lib/linebreak.c.
38586         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38587         lib/linebreak.c.
38588         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38589         lib/linebreak.c.
38590         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38591         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38592         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38593         lib/linebreak.c.
38594         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38595         lib/linebreak.c.
38596         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38597         lib/linebreak.c.
38598         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38599         lib/linebreak.c.
38600         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38601         lib/linebreak.c.
38602         * modules/unilbrk/base: New file.
38603         * modules/unilbrk/tables: New file.
38604         * modules/unilbrk/u8-possible-linebreaks: New file.
38605         * modules/unilbrk/u16-possible-linebreaks: New file.
38606         * modules/unilbrk/u32-possible-linebreaks: New file.
38607         * modules/unilbrk/ulc-common: New file.
38608         * modules/unilbrk/ulc-possible-linebreaks: New file.
38609         * modules/unilbrk/u8-width-linebreaks: New file.
38610         * modules/unilbrk/u16-width-linebreaks: New file.
38611         * modules/unilbrk/u32-width-linebreaks: New file.
38612         * modules/unilbrk/ulc-width-linebreaks: New file.
38613         * lib/linebreak.h: Remove file.
38614         * lib/linebreak.c: Remove file.
38615         * m4/linebreak.m4: Remove file.
38616         * modules/linebreak: Remove file.
38617         * NEWS: Mention the changes.
38618
38619 2008-05-09  Eric Blake  <ebb9@byu.net>
38620
38621         Add xmemdup0.
38622         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38623         implementation.
38624         * lib/xmalloc.c (xmemdup0): New C implementation.
38625
38626 2008-05-08  Bruno Haible  <bruno@clisp.org>
38627
38628         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38629
38630 2008-05-07  Eric Blake  <ebb9@byu.net>
38631
38632         Support cross-compilation of <wctype.h>.
38633         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38634         AC_CACHE_CHECK.
38635
38636 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38637
38638         * build-aux/vc-list-files: Add support for bzr.
38639
38640 2008-05-03  Jim Meyering  <meyering@redhat.com>
38641
38642         avoid failed assertion with tight malloc
38643         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38644
38645 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38646
38647         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38648         are needed from arpa/inet.h.
38649         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38650         Reported by Bruno Haible.
38651
38652 2008-05-02  Jim Meyering  <meyering@redhat.com>
38653
38654         avoid compilation error on FreeBSD 6
38655         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38656
38657 2008-05-01  Jim Meyering  <meyering@redhat.com>
38658
38659         useless-if-before-free: correct --help's exit status description
38660         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38661         for one or more matches, etc.  Reported by Bruno Haible.
38662
38663         vc-list-files: make the stand-alone gnulib test work
38664         * modules/vc-list-files-tests (configure.ac):
38665         Define and AC_SUBST abs_aux_dir.
38666         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38667         $(abs_top_srcdir) to each script and having each of them
38668         duplicate the work of setting PATH, set PATH here, using
38669         the new variable, abs_aux_dir instead.
38670         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38671         * tests/test-vc-list-files-git.sh: Likewise.
38672         Reported by Bruno Haible.
38673
38674 2008-05-01  Bruno Haible  <bruno@clisp.org>
38675
38676         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38677         reallocation. Rename 'done' to 'found_delimiter'.
38678
38679 2008-05-01  Jim Meyering  <meyering@redhat.com>
38680
38681         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38682         * build-aux/vc-list-files: Use `...`, not $(...).
38683
38684 2008-04-30  Jim Meyering  <meyering@redhat.com>
38685
38686         add tests for vc-list-files
38687         * modules/vc-list-files-tests: New module.
38688         * tests/test-vc-list-files-cvs.sh: New file.
38689         * tests/test-vc-list-files-git.sh: New file.
38690
38691         avoid a warning from gcc
38692         * lib/getndelim2.c (IF_LINT): Define.
38693         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38694
38695         vc-list-files: work properly with build-aux/cvsu, too
38696         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38697         to all cvs-based clauses.
38698
38699         vc-list-files: work properly in the CVS+awk case, too
38700         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38701
38702         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38703         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38704         take more than one file argument, so .  Add quotes, just in case $dir
38705         ever contains a shell meta-character.  Prompted by Soren Hansen in
38706         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38707
38708 2008-04-29  Eric Blake  <ebb9@byu.net>
38709
38710         Optimize getndelim2 to use block operations when possible.
38711         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38712         freadseek, and memchr2.
38713         * lib/getndelim2.c (getndelim2): Use them for block reads.
38714
38715 2008-04-29  Bruno Haible  <bruno@clisp.org>
38716
38717         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38718         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38719         * modules/inet_ntop (Depends-on): Add extensions.
38720         * modules/inet_pton (Depends-on): Likewise.
38721         Reported by Simon Josefsson.
38722
38723 2008-04-29  Jim Meyering  <meyering@redhat.com>
38724
38725         When the is more than one match in a block, match all of them.
38726         * build-aux/useless-if-before-free: Iterate through each block
38727         until there are no more matches.
38728
38729         Fix broken useless-if-before-free script.
38730         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38731         the expression to match cast of argument to free-like function.
38732
38733 2008-04-29  Eric Blake  <ebb9@byu.net>
38734
38735         Use new header.
38736         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38737
38738 2008-04-29  Jim Meyering  <meyering@redhat.com>
38739
38740         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38741         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38742         by gnulib to exist and to declare e.g., inet_ntop.
38743         Don't include "inet_ntop.h", now removed.
38744
38745         * m4/arpa_inet_h.m4: Remove trailing blanks.
38746
38747 2008-04-29  Eric Blake  <ebb9@byu.net>
38748
38749         Silence valgrind on safe reads beyond potential array bounds.
38750         * lib/rawmemchr.valgrind: New file.
38751         * lib/strchrnul.valgrind: Likewise.
38752         * modules/rawmemchr (Files): Distribute new file.
38753         * modules/strchrnul (Files): Likewise.
38754         Suggested by Bruno Haible.
38755
38756 2008-04-29  Bruno Haible  <bruno@clisp.org>
38757
38758         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38759         (inet_ntop, inet_pton): Change portability warning's wording.
38760         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38761         Invoke gl_CHECK_NEXT_HEADERS.
38762         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38763         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38764         set ARPA_INET_H.
38765         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38766         * modules/arpa_inet (Description): No longer only for systems that
38767         lack it.
38768         (Depends-on): Add include_next.
38769         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38770         HAVE_ARPA_INET_H.
38771
38772 2008-04-29  Jim Meyering  <meyering@redhat.com>
38773
38774         * modules/mkdir (License): Re-license as LGPLv2+.
38775
38776 2008-04-29  Bruno Haible  <bruno@clisp.org>
38777
38778         * modules/rawmemchr (Maintainer): Set to Eric.
38779         * modules/strchrnul (Maintainer): Likewise.
38780
38781 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38782
38783         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38784         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38785
38786         * modules/arpa_inet (arpa/inet.h): Use them.
38787
38788 2008-04-28  Eric Blake  <ebb9@byu.net>
38789
38790         Test getndelim2.
38791         * modules/getndelim2-tests: New file.
38792         * tests/test-getndelim2.c: Likewise.
38793         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38794         stream.
38795         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38796
38797         * MODULES.html.sh: Document new module.
38798
38799 2008-04-20  Bruno Haible  <bruno@clisp.org>
38800
38801         * lib/c-stack.c (die): Use raise.
38802         * modules/c-stack (Depends-on): Add raise.
38803
38804 2008-04-28  Bruno Haible  <bruno@clisp.org>
38805
38806         Expect rpmatch to be declared.
38807         * lib/yesno.c (rpmatch): Remove declaration.
38808
38809         Declare rpmatch.
38810         * lib/stdlib.in.h (rpmatch): New declaration.
38811         * lib/rpmatch.c: Include <stdlib.h> first.
38812         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38813         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38815         HAVE_RPMATCH.
38816         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38817         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38818         (Include): Set to <stdlib.h>.
38819         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38820         HAVE_RPMATCH.
38821         * NEWS: Document the change.
38822
38823 2008-04-28  Bruno Haible  <bruno@clisp.org>
38824
38825         Change rpmatch to use nl_langinfo when appropriate.
38826         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38827         (N_): New macro.
38828         (localized_pattern): New function/macro.
38829         (try): Remove match, nomatch arguments. Copy the pattern into safe
38830         memory before caching it.
38831         (rpmatch): Use localized_pattern. Add translator comments.
38832         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38833         Suggested by Eric Blake.
38834         * modules/rpmatch (Depends-on): Add stdbool.
38835
38836 2008-04-28  Eric Blake  <ebb9@byu.net>
38837
38838         Add rawmemchr module, matching glibc.
38839         * modules/string (Makefile.am): New indicator.
38840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38841         * lib/string.in.h (rawmemchr): Declare when appropriate.
38842         * modules/rawmemchr: New file.
38843         * m4/rawmemchr.m4: Likewise.
38844         * lib/rawmemchr.c: Likewise.
38845         * modules/rawmemchr-tests: Likewise.
38846         * tests/test-rawmemchr.c: Likewise.
38847         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38848         module.
38849         * modules/strchrnul (Depends-on): Add rawmemchr.
38850         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38851
38852         Whitespace cleanup.
38853         * tests/test-strchrnul.c: Reindent.
38854         * lib/strchrnul.c: Likewise.
38855
38856         Optimize and test strchrnul.
38857         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38858         * modules/strchrnul-tests: New file.
38859         * tests/test-strchrnul.c: Likewise.
38860
38861         Remove intprops dependency.
38862         * modules/memchr (Depends-on): Remove intprops.
38863         * modules/memrchr (Depends-on): Likewise.
38864         * modules/memchr2 (Depends-on): Likewise.
38865         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38866         * lib/memrchr.c (__memrchr): Likewise.
38867         * lib/memrchr2.c (memchr2): Likewise.
38868         Reported by Simon Josefsson.
38869
38870 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38871
38872         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38873         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38874
38875 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38876
38877         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38878
38879         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38880
38881         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38882
38883         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38884         declarations.
38885         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38886
38887         * m4/inet_pton.m4: Don't check for header files.
38888
38889         * m4/inet_ntop.m4: Don't check for header files.
38890
38891 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38892
38893         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38894         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38895         trigger for cygwin).
38896         Reported by Bruno Haible  <bruno@clisp.org>.
38897
38898 2008-04-28  Bruno Haible  <bruno@clisp.org>
38899
38900         * doc/posix-functions/strdup.texi: Mention mingw problem.
38901
38902 2008-04-27  Bruno Haible  <bruno@clisp.org>
38903
38904         * modules/stat-time-tests (Depends-on): Add sleep.
38905         * tests/test-stat-time.c (force_unlink): New function.
38906         (cleanup): Use it.
38907         (test_mtime): Remove the ctime related tests.
38908         (test_ctime): New function, containing the ctime related tests.
38909         (main): Call test_ctime, except on native Windows platforms.
38910
38911 2008-04-27  Bruno Haible  <bruno@clisp.org>
38912
38913         * lib/rpmatch.c (rpmatch): Add some comments.
38914         Reported by James Youngman <jay@gnu.org>.
38915
38916 2008-04-27  Bruno Haible  <bruno@clisp.org>
38917
38918         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38919         quiet NaNs.
38920
38921 2008-04-27  Bruno Haible  <bruno@clisp.org>
38922
38923         Make test-yesno.sh work on mingw.
38924         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38925         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38926         (main): Set stdin to binary mode.
38927         * modules/yesno-tests (Depends-on): Add binary-io.
38928
38929 2008-04-27  Bruno Haible  <bruno@clisp.org>
38930
38931         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38932         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38933         argument that lie outside the IEEE 854 domain.
38934         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38935         (gl_ISFINITE): Use it.
38936         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38937
38938 2008-04-27  Bruno Haible  <bruno@clisp.org>
38939
38940         Allow local renaming in config.h.
38941         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38942
38943 2008-04-27  Bruno Haible  <bruno@clisp.org>
38944
38945         * lib/memchr.c (__memchr): Change type of 'i'.
38946         * lib/memchr2.c (memchr2): Likewise.
38947
38948 2008-04-26  Eric Blake  <ebb9@byu.net>
38949         and Bruno Haible  <bruno@clisp.org>
38950
38951         Optimize and test memrchr.
38952         * modules/memrchr (Depends-on): Add intprops.
38953         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38954         * modules/memrchr-tests: New file.
38955         * tests/test-memrchr.c: New file.
38956
38957 2008-04-26  Bruno Haible  <bruno@clisp.org>
38958
38959         Add tentative support for DragonFly BSD.
38960         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38961         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38962         fp.
38963         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38964         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38965         * lib/fpurge.c (fpurge): Likewise.
38966         * lib/freadable.c (freaadable): Likewise.
38967         * lib/freadahead.c (freadahead): Likewise.
38968         * lib/freading.c (freading): Likewise.
38969         * lib/freadptr.c (freadptr): Likewise.
38970         * lib/freadseek.c (freadptrinc): Likewise.
38971         * lib/fseeko.c (fseeko): Likewise.
38972         * lib/fseterr.c (fseterr): Likewise.
38973         * lib/fwritable.c (fwritable): Likewise.
38974         * lib/fwriting.c (fwriting): Likewise.
38975
38976 2008-04-26  Bruno Haible  <bruno@clisp.org>
38977
38978         * lib/stdio-impl.h: New file.
38979         * lib/fbufmode.c: Include stdio-impl.h.
38980         (fbufmode): Use fp_, remove redundant #defines.
38981         * lib/fflush.c: Include stdio-impl.h.
38982         (clear_ungetc_buffer): Remove redundant #defines.
38983         * lib/fpurge.c: Include stdio-impl.h.
38984         (fpurge): Remove redundant #defines.
38985         * lib/freadable.c: Include stdio-impl.h.
38986         (freadable): Remove redundant #defines.
38987         * lib/freadahead.c: Include stdio-impl.h.
38988         (freadahead): Remove redundant #defines.
38989         * lib/freading.c: Include stdio-impl.h.
38990         (freading): Remove redundant #defines.
38991         * lib/freadptr.c: Include stdio-impl.h.
38992         (freadptr): Remove redundant #defines.
38993         * lib/freadseek.c: Include stdio-impl.h.
38994         (freadptrinc): Remove redundant #defines.
38995         * lib/fseeko.c: Include stdio-impl.h.
38996         (rpl_fseeko): Remove redundant #defines.
38997         * lib/fseterr.c: Include stdio-impl.h.
38998         (fseterr): Remove redundant #defines.
38999         * lib/fwritable.c: Include stdio-impl.h.
39000         (fwritable: Remove redundant #defines.
39001         * lib/fwriting.c: Include stdio-impl.h.
39002         (fwriting): Remove redundant #defines.
39003         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39004         * modules/fflush (Files): Likewise.
39005         * modules/fpurge (Files): Likewise.
39006         * modules/freadable (Files): Likewise.
39007         * modules/freadahead (Files): Likewise.
39008         * modules/freading (Files): Likewise.
39009         * modules/freadptr (Files): Likewise.
39010         * modules/freadseek (Files): Likewise.
39011         * modules/fseeko (Files): Likewise.
39012         * modules/fseterr (Files): Likewise.
39013         * modules/fwritable (Files): Likewise.
39014         * modules/fwriting (Files): Likewise.
39015
39016 2008-04-26  Bruno Haible  <bruno@clisp.org>
39017
39018         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39019         restore_seek_optimization, update_fpos_cache): New functions, extracted
39020         from rpl_fflush.
39021         (rpl_fflush): Use them.
39022         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39023         (gl_REPLACE_FFLUSH): Use it.
39024
39025 2008-04-26  Bruno Haible  <bruno@clisp.org>
39026
39027         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39028         on Solaris.
39029         * tests/test-xstrtoimax.sh: Likewise.
39030         * tests/test-xstrtoumax.sh: Likewise.
39031         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39032
39033 2008-04-26  Bruno Haible  <bruno@clisp.org>
39034
39035         * modules/memchr-tests: New file.
39036         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39037
39038 2008-04-26  Eric Blake  <ebb9@byu.net>
39039             Bruno Haible  <bruno@clisp.org>
39040
39041         * lib/memchr.c: Include intprops.h.
39042         (__memchr): Optimize parallel detection of matching bytes. Rename local
39043         variables. Add explanatory comments.
39044
39045 2008-04-26  Bruno Haible  <bruno@clisp.org>
39046
39047         Fix module 'memchr', broken since 2000-10-28.
39048         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39049
39050 2008-04-26  Bruno Haible  <bruno@clisp.org>
39051
39052         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39053         comments.
39054
39055 2008-04-25  Eric Blake  <ebb9@byu.net>
39056
39057         Use native fstatat on cygwin 1.7.0.
39058         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39059         first.
39060
39061 2008-04-23  Eric Blake  <ebb9@byu.net>
39062
39063         Improve memchr2 performance.
39064         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39065         NUL bytes.
39066         * modules/memchr2 (Depends-on): Use intprops.h.
39067
39068 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39069
39070         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39071         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39072         <blp@cs.stanford.edu>.
39073
39074 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39075
39076         * lib/arpa_inet.in.h: New file.
39077
39078         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39079         (Makefile.am): Sed in substitute header file.
39080
39081         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39082         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39083
39084         * modules/inet_ntop (configure.ac): Use
39085         gl_ARPA_INET_MODULE_INDICATOR.
39086
39087         * modules/inet_pton (configure.ac): Use
39088         gl_ARPA_INET_MODULE_INDICATOR.
39089
39090 2008-04-22  Jim Meyering  <meyering@redhat.com>
39091
39092         * modules/verify (License): Re-license as LGPLv2+.
39093
39094 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39095
39096         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39097         parameter to void* as per POSIX standard (MinGW uses char*).
39098
39099 2008-04-21  Bruno Haible  <bruno@clisp.org>
39100
39101         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39102         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39103         Define to replacements if REPLACE_ISWCNTRL is 1.
39104         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39105         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39106         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39107         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39108         what it fixes.
39109         * doc/posix-functions/iswalpha.texi: Likewise.
39110         * doc/posix-functions/iswblank.texi: Likewise.
39111         * doc/posix-functions/iswcntrl.texi: Likewise.
39112         * doc/posix-functions/iswdigit.texi: Likewise.
39113         * doc/posix-functions/iswgraph.texi: Likewise.
39114         * doc/posix-functions/iswlower.texi: Likewise.
39115         * doc/posix-functions/iswprint.texi: Likewise.
39116         * doc/posix-functions/iswpunct.texi: Likewise.
39117         * doc/posix-functions/iswspace.texi: Likewise.
39118         * doc/posix-functions/iswupper.texi: Likewise.
39119         * doc/posix-functions/iswxdigit.texi: Likewise.
39120         Reported by Alain Guibert.
39121
39122 2008-04-21  Bruno Haible  <bruno@clisp.org>
39123
39124         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39125         Patch by Alain Guibert.
39126
39127 2008-04-21  Bruno Haible  <bruno@clisp.org>
39128
39129         Fix test failures on mingw.
39130         * tests/test-xstrtol.c (print_no_progname): New function.
39131         (main): Install it in error_print_progname hook.
39132         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39133         * tests/test-xstrtoimax.sh: Likewise.
39134         * tests/test-xstrtoumax.sh: Likewise.
39135
39136 2008-04-21  Bruno Haible  <bruno@clisp.org>
39137
39138         Fix test failure on mingw.
39139         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39140
39141 2008-04-21  Bruno Haible  <bruno@clisp.org>
39142
39143         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39144         Actually assign a value.
39145
39146 2008-04-20  Bruno Haible  <bruno@clisp.org>
39147
39148         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39149         take 2.
39150         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39151         'canonicalize-lgpl' module is also used.
39152         * lib/canonicalize-lgpl.c: Undo last change.
39153         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39154
39155 2008-04-20  Bruno Haible  <bruno@clisp.org>
39156
39157         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39158         config.h. Provide _mkdir based fallback for mingw.
39159         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39160         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39161         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39162         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39163         rather than defining mkdir in config.h.
39164         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39165         (gl_SYS_STAT_H_DEFAULTS): New macro.
39166         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39167         HAVE_IO_H any more.
39168         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39169         HAVE_DECL_MKDIR and HAVE_IO_H.
39170
39171 2008-04-20  Bruno Haible  <bruno@clisp.org>
39172
39173         * lib/isapipe.c: Port to native Windows platforms.
39174
39175 2008-04-20  Bruno Haible  <bruno@clisp.org>
39176
39177         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39178
39179 2008-04-21  Eric Blake  <ebb9@byu.net>
39180
39181         Work around preprocessors that don't handle UINTMAX_MAX.
39182         * lib/memchr2.c (memchr2): Avoid embedded #if.
39183         Reported by Alain Guibert, fix suggested by Bruno Haible.
39184
39185 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39186
39187         * doc/posix-functions/strftime.texi (strftime): Explain better
39188         Windows incompatibility.  Suggested by Micah Cowan
39189         <micah@cowan.name>.
39190
39191 2008-04-20  Bruno Haible  <bruno@clisp.org>
39192
39193         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39194         unistr/u8-mblen.
39195
39196 2008-04-20  Bruno Haible  <bruno@clisp.org>
39197
39198         Fix test failure on platforms with non-GNU iconv.
39199         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39200         (U_TO_U8): Use it, rather than u16_to_u8.
39201         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39202         units at the end of the input string.
39203         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39204
39205 2008-04-20  Bruno Haible  <bruno@clisp.org>
39206
39207         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39208         when the resulting length is 0.
39209         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39210
39211 2008-04-20  Bruno Haible  <bruno@clisp.org>
39212
39213         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39214         works.
39215         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39216
39217 2008-04-20  Bruno Haible  <bruno@clisp.org>
39218
39219         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39220         * modules/tsearch-tests (configure.ac): Test for initstate function.
39221
39222 2008-04-20  Bruno Haible  <bruno@clisp.org>
39223
39224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39225         for nlink_t if missing.
39226         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39227
39228 2008-04-19  Bruno Haible  <bruno@clisp.org>
39229
39230         Work around snprintf bug on Linux libc5.
39231         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39233         gl_SNPRINTF_SIZE1.
39234         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39235         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39236         that test failed.
39237         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39238         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39239         * modules/snprintf (Files): Add m4/printf.m4.
39240         * modules/vsnprintf (Files): Likewise.
39241         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39242         * doc/posix-functions/vsnprintf.texi: Likewise.
39243
39244 2008-04-19  Bruno Haible  <bruno@clisp.org>
39245
39246         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39247         from 0.0058 to less than 10^-7.
39248
39249 2008-04-19  Bruno Haible  <bruno@clisp.org>
39250
39251         Fix rounding when a precision is given.
39252         * lib/vasnprintf.c (is_borderline): New function.
39253         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39254         9...9x.
39255         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39256         %e, %g.
39257         * tests/test-vasprintf-posix.c (test_function): Likewise.
39258         * tests/test-snprintf-posix.h (test_function): Likewise.
39259         * tests/test-sprintf-posix.h (test_function): Likewise.
39260         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39261         * tests/test-printf-posix.h (test_function): Likewise.
39262         * tests/test-printf-posix.output: Update.
39263         Reported by John Darrington <john@darrington.wattle.id.au> via
39264         Ben Pfaff <blp@cs.stanford.edu>.
39265
39266 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39267
39268         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39269         Suggested by Bruno Haible <bruno@clisp.org>.
39270
39271 2008-04-17  Bruno Haible  <bruno@clisp.org>
39272
39273         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39274         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39275         implementation.
39276         Patch by Bruce Merry <bmerry@gmail.com>.
39277
39278 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39279
39280         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39281         doesn't work under Windows.
39282
39283 2008-04-16  Bruno Haible  <bruno@clisp.org>
39284
39285         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39286         New macros.
39287         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39288         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39289         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39290         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39291         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39292         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39293         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39294         macros.
39295         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39296         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39297         Northern Sotho, Uighur.
39298
39299 2008-04-16  Bruno Haible  <bruno@clisp.org>
39300
39301         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39302         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39303         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39304         Reported by Daniel Bergström <daniel@octocode.com>.
39305
39306 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39307             Bruno Haible  <bruno@clisp.org>
39308
39309         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39310         function.
39311         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39312         New functions, mostly extracted from gl_locale_name_default.
39313         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39314
39315 2008-04-16  Eric Blake  <ebb9@byu.net>
39316
39317         Adjust strtod detection to catch glibc 2.7 bug.
39318         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39319         Reported by John Gatewood Ham.
39320
39321 2008-04-16  Bruno Haible  <bruno@clisp.org>
39322
39323         Add tentative support for Linux libc5.
39324         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39325         * lib/fpurge.c (fpurge): Likewise.
39326         * lib/freadable.c (freadable): Likewise.
39327         * lib/freadahead.c (freadahead): Likewise.
39328         * lib/freading.c (freading): Likewise.
39329         * lib/freadptr.c (freadptr): Likewise.
39330         * lib/freadseek.c (freadptrinc): Likewise.
39331         * lib/fseeko.c (rpl_fseeko): Likewise.
39332         * lib/fseterr.c (fseterr): Likewise.
39333         * lib/fwritable.c (fwritable): Likewise.
39334         * lib/fwriting.c (fwriting): Likewise.
39335         Reported by Alain Guibert <alguibert+bts@free.fr>.
39336
39337 2008-04-15  Bruno Haible  <bruno@clisp.org>
39338
39339         * modules/mathl (configure.ac): Define module indicator.
39340
39341 2008-04-15  Bruno Haible  <bruno@clisp.org>
39342
39343         * lib/logl.c (logl): Remove unused variables.
39344
39345 2008-04-15  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39348         fails.
39349
39350 2008-04-15  Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/trim.c (trim2): Fix argument of isspace() macro.
39353
39354 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39355
39356         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39357         to 0.
39358         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39359
39360 2008-04-14  Bruno Haible  <bruno@clisp.org>
39361
39362         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39363         AC_LANG_PROGRAM argument.
39364         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39365         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39367         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39368         * m4/math_h.m4 (gl_MATH_H): Likewise.
39369         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39371         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39372         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39373         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39374         * m4/regex.m4 (gl_REGEX): Likewise.
39375         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39376         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39379         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39380         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39383
39384 2008-04-14  Jim Meyering  <meyering@redhat.com>
39385
39386         test-strtod: fix typos: s/abs/fabs/
39387         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39388
39389 2008-04-13  Bruno Haible  <bruno@clisp.org>
39390
39391         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39392         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39393         module is also used and while not building the reloc-wrapper.
39394
39395 2008-04-13  Bruno Haible  <bruno@clisp.org>
39396
39397         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39398
39399 2008-04-13  Bruno Haible  <bruno@clisp.org>
39400
39401         Fix AIX compilation failure introduced on 2008-04-02.
39402         * tests/test-frexp.c (exp): Undefine before redefining.
39403         * tests/test-frexpl.c (exp): Likewise.
39404
39405 2008-04-13  Bruno Haible  <bruno@clisp.org>
39406
39407         Work around a HP-UX stdio bug.
39408         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39409         * tests/test-ftello.c (main): Likewise.
39410         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39411         * doc/posix-functions/ftello.texi: Likewise.
39412
39413 2008-04-13  Bruno Haible  <bruno@clisp.org>
39414
39415         Make test-signbit pass on HP-UX/hppa.
39416         * tests/test-signbit.c (minus_zerol): New variable.
39417         (test_signbitl): Use it.
39418
39419 2008-04-13  Bruno Haible  <bruno@clisp.org>
39420
39421         Make truncl work on OSF/1 4.0.
39422         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39423         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39424         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39426         HAVE_DECL_TRUNCL.
39427         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39428         HAVE_DECL_TRUNCL.
39429         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39430
39431 2008-04-13  Bruno Haible  <bruno@clisp.org>
39432
39433         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39434
39435 2008-04-13  Bruno Haible  <bruno@clisp.org>
39436
39437         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39438         expression, so as to avoid HP-UX 11 cc compiler bug.
39439
39440 2008-04-13  Bruno Haible  <bruno@clisp.org>
39441
39442         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39443
39444 2008-04-13  Bruno Haible  <bruno@clisp.org>
39445
39446         * lib/git-merge-changelog.c: Remove empty declaration outside of
39447         functions.
39448
39449 2008-04-13  Bruno Haible  <bruno@clisp.org>
39450
39451         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39452
39453 2008-04-13  Bruno Haible  <bruno@clisp.org>
39454
39455         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39456         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39458         also if it exists but lacks definitions of the SHUT_* macros.
39459         * modules/sys_socket (Description): Update.
39460         Reported by Elbert Pol <e.pol@chello.nl>.
39461
39462 2008-04-13  Bruno Haible  <bruno@clisp.org>
39463
39464         * lib/localcharset.c (OS2): Don't redefine if already defined.
39465         Reported by Elbert Pol <e.pol@chello.nl>.
39466
39467 2008-04-13  Bruno Haible  <bruno@clisp.org>
39468
39469         * lib/binary-io.h [__EMX__]: Include <io.h>.
39470         Reported by Elbert Pol <e.pol@chello.nl>.
39471
39472 2008-04-12  Bruno Haible  <bruno@clisp.org>
39473
39474         * lib/fpucw.h: Enable the definitions also for x86_64.
39475         Needed for NetBSD/x86_64.
39476         Reported by Thomas Klausner <tk@giga.or.at>.
39477
39478 2008-04-12  Bruno Haible  <bruno@clisp.org>
39479
39480         * tests/test-strtod.c: Include isnand.h.
39481         (main): Use isnand instead of isnan.
39482         Reported by Jim Meyering.
39483
39484 2008-04-12  Bruno Haible  <bruno@clisp.org>
39485
39486         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39487         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39488
39489 2008-04-12  Jim Meyering  <meyering@redhat.com>
39490
39491         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39492
39493 2008-04-12  Bruno Haible  <bruno@clisp.org>
39494
39495         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39496         Reported by Elbert Pol <e.pol@chello.nl>.
39497
39498 2008-04-12  Eric Blake  <ebb9@byu.net>
39499
39500         Work around Solaris 10 math.h bug.
39501         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39502         (gl_MATH_H_DEFAULTS): Set up default.
39503         * modules/math (Makefile.am): Replace new indicators.
39504         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39505         * tests/test-math.c (main): Test this.
39506         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39507         * doc/posix-headers/math.texi (math.h): Mention bug.
39508         Reported by Nelson H. F. Beebe and Jim Meyering.
39509
39510 2008-04-11  Bruno Haible  <bruno@clisp.org>
39511
39512         Adapt to future versions of Apple GCC.
39513         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39514         Reported by Peter O'Gorman <peter@pogma.com>.
39515
39516 2008-04-11  Bruno Haible  <bruno@clisp.org>
39517
39518         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39519
39520 2008-04-11  Bruno Haible  <bruno@clisp.org>
39521
39522         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39523
39524         * modules/getaddrinfo-tests (Makefile.am): Define
39525         test_getaddrinfo_LDADD.
39526
39527 2008-04-11  Bruno Haible  <bruno@clisp.org>
39528
39529         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39530         (init): Fix syntax error.
39531         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39532         is declared.
39533
39534 2008-04-11  Bruno Haible  <bruno@clisp.org>
39535
39536         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39537         * modules/glob (Depends-on): Add stdbool.
39538
39539 2008-04-11  Bruno Haible  <bruno@clisp.org>
39540
39541         * lib/trim.c: Include <string.h>.
39542
39543 2008-04-11  Eric Blake  <ebb9@byu.net>
39544
39545         Avoid compile failure on OS/2.
39546         * lib/regex_internal.h (internal_function): Disable optimization
39547         on OS/2 (__EMX__), where it caused compiler error.
39548         Reported by Elbert Pol.
39549
39550 2008-04-11  Bruno Haible  <bruno@clisp.org>
39551
39552         Flush the standard error stream before aborting. Needed on mingw.
39553         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39554         * tests/test-array_list.c (ASSERT): Likewise.
39555         * tests/test-array_oset.c (ASSERT): Likewise.
39556         * tests/test-avltree_list.c (ASSERT): Likewise.
39557         * tests/test-avltree_oset.c (ASSERT): Likewise.
39558         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39559         * tests/test-binary-io.c (ASSERT): Likewise.
39560         * tests/test-byteswap.c (ASSERT): Likewise.
39561         * tests/test-c-ctype.c (ASSERT): Likewise.
39562         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39563         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39564         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39565         * tests/test-c-strstr.c (ASSERT): Likewise.
39566         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39567         * tests/test-canonicalize.c (ASSERT): Likewise.
39568         * tests/test-carray_list.c (ASSERT): Likewise.
39569         * tests/test-ceilf1.c (ASSERT): Likewise.
39570         * tests/test-ceilf2.c (ASSERT): Likewise.
39571         * tests/test-ceill.c (ASSERT): Likewise.
39572         * tests/test-count-one-bits.c (ASSERT): Likewise.
39573         * tests/test-fbufmode.c (ASSERT): Likewise.
39574         * tests/test-fflush2.c (ASSERT): Likewise.
39575         * tests/test-floorf1.c (ASSERT): Likewise.
39576         * tests/test-floorf2.c (ASSERT): Likewise.
39577         * tests/test-floorl.c (ASSERT): Likewise.
39578         * tests/test-fopen.c (ASSERT): Likewise.
39579         * tests/test-fpending.c (ASSERT): Likewise.
39580         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39581         * tests/test-fpurge.c (ASSERT): Likewise.
39582         * tests/test-freadable.c (ASSERT): Likewise.
39583         * tests/test-freadahead.c (ASSERT): Likewise.
39584         * tests/test-freading.c (ASSERT): Likewise.
39585         * tests/test-freadptr.c (ASSERT): Likewise.
39586         * tests/test-freadptr2.c (ASSERT): Likewise.
39587         * tests/test-freadseek.c (ASSERT): Likewise.
39588         * tests/test-freopen.c (ASSERT): Likewise.
39589         * tests/test-frexp.c (ASSERT): Likewise.
39590         * tests/test-frexpl.c (ASSERT): Likewise.
39591         * tests/test-fseek.c (ASSERT): Likewise.
39592         * tests/test-fseeko.c (ASSERT): Likewise.
39593         * tests/test-fstrcmp.c (ASSERT): Likewise.
39594         * tests/test-ftell.c (ASSERT): Likewise.
39595         * tests/test-ftello.c (ASSERT): Likewise.
39596         * tests/test-func.c (ASSERT): Likewise.
39597         * tests/test-fwritable.c (ASSERT): Likewise.
39598         * tests/test-fwriting.c (ASSERT): Likewise.
39599         * tests/test-getdelim.c (ASSERT): Likewise.
39600         * tests/test-getline.c (ASSERT): Likewise.
39601         * tests/test-i-ring.c (ASSERT): Likewise.
39602         * tests/test-iconv-utf.c (ASSERT): Likewise.
39603         * tests/test-iconv.c (ASSERT): Likewise.
39604         * tests/test-isfinite.c (ASSERT): Likewise.
39605         * tests/test-isnand.c (ASSERT): Likewise.
39606         * tests/test-isnanf.c (ASSERT): Likewise.
39607         * tests/test-isnanl.h (ASSERT): Likewise.
39608         * tests/test-ldexpl.c (ASSERT): Likewise.
39609         * tests/test-linked_list.c (ASSERT): Likewise.
39610         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39611         * tests/test-localename.c (ASSERT): Likewise.
39612         * tests/test-lseek.c (ASSERT): Likewise.
39613         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39614         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39615         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39616         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39617         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39618         * tests/test-mbschr.c (ASSERT): Likewise.
39619         * tests/test-mbscspn.c (ASSERT): Likewise.
39620         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39621         * tests/test-mbspbrk.c (ASSERT): Likewise.
39622         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39623         * tests/test-mbsrchr.c (ASSERT): Likewise.
39624         * tests/test-mbsspn.c (ASSERT): Likewise.
39625         * tests/test-mbsstr1.c (ASSERT): Likewise.
39626         * tests/test-mbsstr2.c (ASSERT): Likewise.
39627         * tests/test-mbsstr3.c (ASSERT): Likewise.
39628         * tests/test-memchr2.c (ASSERT): Likewise.
39629         * tests/test-memmem.c (ASSERT): Likewise.
39630         * tests/test-open.c (ASSERT): Likewise.
39631         * tests/test-printf-frexp.c (ASSERT): Likewise.
39632         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39633         * tests/test-printf-posix.c (ASSERT): Likewise.
39634         * tests/test-quotearg.c (ASSERT): Likewise.
39635         * tests/test-rbtree_list.c (ASSERT): Likewise.
39636         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39637         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39638         * tests/test-round1.c (ASSERT): Likewise.
39639         * tests/test-roundf1.c (ASSERT): Likewise.
39640         * tests/test-roundl.c (ASSERT): Likewise.
39641         * tests/test-signbit.c (ASSERT): Likewise.
39642         * tests/test-sleep.c (ASSERT): Likewise.
39643         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39644         * tests/test-snprintf.c (ASSERT): Likewise.
39645         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39646         * tests/test-stat-time.c (ASSERT): Likewise.
39647         * tests/test-strcasestr.c (ASSERT): Likewise.
39648         * tests/test-strerror.c (ASSERT): Likewise.
39649         * tests/test-striconv.c (ASSERT): Likewise.
39650         * tests/test-striconveh.c (ASSERT): Likewise.
39651         * tests/test-striconveha.c (ASSERT): Likewise.
39652         * tests/test-strsignal.c (ASSERT): Likewise.
39653         * tests/test-strstr.c (ASSERT): Likewise.
39654         * tests/test-strtod.c (ASSERT): Likewise.
39655         * tests/test-trunc1.c (ASSERT): Likewise.
39656         * tests/test-trunc2.c (ASSERT): Likewise.
39657         * tests/test-truncf1.c (ASSERT): Likewise.
39658         * tests/test-truncf2.c (ASSERT): Likewise.
39659         * tests/test-truncl.c (ASSERT): Likewise.
39660         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39661         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39662         * tests/test-vasnprintf.c (ASSERT): Likewise.
39663         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39664         * tests/test-vasprintf.c (ASSERT): Likewise.
39665         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39666         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39667         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39668         * tests/test-vsnprintf.c (ASSERT): Likewise.
39669         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39670         * tests/test-wcwidth.c (ASSERT): Likewise.
39671         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39672         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39673         * tests/test-xvasprintf.c (ASSERT): Likewise.
39674         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39675         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39676         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39677         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39678         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39679         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39680         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39681         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39682         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39683         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39684         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39685         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39686         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39687         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39688         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39689         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39690         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39691         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39692         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39693         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39694         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39695         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39696         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39697         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39698         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39699         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39700         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39701         * tests/unictype/test-combining.c (ASSERT): Likewise.
39702         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39703         * tests/unictype/test-digit.c (ASSERT): Likewise.
39704         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39705         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39706         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39707         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39708         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39709         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39710         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39711         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39712         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39713         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39714         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39715         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39716         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39717         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39718         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39719         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39720         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39721         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39722         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39723         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39724         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39725         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39726         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39727         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39728         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39729         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39730         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39731         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39732         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39733         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39734         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39735         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39736         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39737         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39738         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39739         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39740         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39741         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39742         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39743         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39744         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39745         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39746         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39747         Reported by Eric Blake.
39748
39749 2008-04-11  Bruno Haible  <bruno@clisp.org>
39750
39751         * lib/wchar.in.h: Tweak comment.
39752
39753 2008-04-11  Bruno Haible  <bruno@clisp.org>
39754
39755         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39756         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39757         gl_COMMON.
39758         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39759
39760 2008-04-11  Bruno Haible  <bruno@clisp.org>
39761
39762         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39763
39764 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39765
39766         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39767         of attempting to use non-existing /dev/*random.  Based on patch
39768         from Adam Strzelecki <ono@java.pl> in
39769         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39770
39771 2008-04-08  Bruno Haible  <bruno@clisp.org>
39772
39773         Add tentative support for emx+gcc.
39774         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39775         * lib/fpurge.c (fpurge): Likewise.
39776         * lib/freadable.c (freadable): Likewise.
39777         * lib/freadahead.c (freadahead): Likewise.
39778         * lib/freading.c (freading): Likewise.
39779         * lib/freadptr.c (freadptr): Likewise.
39780         * lib/freadseek.c (freadptrinc): Likewise.
39781         * lib/fseeko.c (rpl_fseeko): Likewise.
39782         * lib/fseterr.c (fseterr): Likewise.
39783         * lib/fwritable.c (fwritable): Likewise.
39784         * lib/fwriting.c (fwriting): Likewise.
39785         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39786
39787 2008-04-09  Eric Blake  <ebb9@byu.net>
39788
39789         Avoid some autoconf warnings.
39790         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39791         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39792         * m4/afs.m4 (gl_AFS): Likewise.
39793         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39794         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39795         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39796         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39797         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39798         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39799         (AC_CHECK_DECLS_ONCE): Likewise.
39800         Rename file...
39801         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39802         gnulib-tool requires autoconf 2.59 or better.
39803         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39804
39805 2008-04-08  Eric Blake  <ebb9@byu.net>
39806
39807         Use 'git describe --match' if present (added in git 1.5.5).
39808         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39809         if possible.
39810
39811 2008-04-08  Bruno Haible  <bruno@clisp.org>
39812
39813         Add tentative support for OpenServer.
39814         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39815         _ptr, _cnt.
39816         * lib/fpurge.c (fpurge): Likewise.
39817         * lib/freadable.c (freadable): Likewise.
39818         * lib/freadahead.c (freadahead): Likewise.
39819         * lib/freading.c (freading): Likewise.
39820         * lib/freadptr.c (freadptr): Likewise.
39821         * lib/freadseek.c (freadptrinc): Likewise.
39822         * lib/fseeko.c (rpl_fseeko): Likewise.
39823         * lib/fseterr.c (fseterr): Likewise.
39824         * lib/fwritable.c (fwritable): Likewise.
39825         * lib/fwriting.c (fwriting): Likewise.
39826         Reported by Roger Cornelius <rac@tenzing.org> and
39827         Brian K. White <brian@aljex.com>.
39828
39829 2008-04-06  Jim Meyering  <meyering@redhat.com>
39830
39831         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39832
39833 2008-04-06  Bruno Haible  <bruno@clisp.org>
39834
39835         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39836         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39837         * tests/test-printf-posix.sh: Likewise.
39838         * tests/test-vfprintf-posix.sh: Likewise.
39839         * tests/test-vprintf-posix.sh: Likewise.
39840         * tests/test-xprintf-posix.sh: Likewise.
39841
39842 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39843
39844         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39845         hide error from 'ls', needed on OS/2.
39846         Report by Elbert Pol <elbert.pol@gmail.com>.
39847
39848 2008-04-04  Eric Blake  <ebb9@byu.net>
39849
39850         Make test-fseeko.c failures meaningful.
39851         * tests/test-fseeko.c: Print line number on failure.
39852         * tests/test-fseek.c: Likewise.
39853         Reported by Nelson H. F. Beebe.
39854
39855         Improve strtod bug detection check.
39856         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39857         required for Solaris 10.
39858         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39859
39860 2008-04-04  Bruno Haible  <bruno@clisp.org>
39861
39862         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39863         by m4/setenv.m4.
39864
39865 2008-04-03  Eric Blake  <ebb9@byu.net>
39866
39867         Ensure sane .version contents.
39868         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39869         version string.
39870         * build-aux/git-version-gen: Improve documentation.
39871
39872         Make GNU make output nicer.
39873         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39874         MAKECMDGOALS to enforce message for all command line targets.  Set
39875         srcdir for use in maint.mk.
39876
39877         Another maintainer tweak.
39878         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39879         a target that regenerates version.
39880
39881 2008-04-03  Jim Meyering  <meyering@redhat.com>
39882
39883         vc-list-files: don't cause coreutils "make po-check" failure
39884         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39885
39886 2008-04-03  Eric Blake  <ebb9@byu.net>
39887
39888         Allow VPATH usage of vc-list-files.
39889         * build-aux/vc-list-files (scriptversion): Add timestamp.
39890         (options): Add --help, --version, -C.
39891         (CVS): Support installed cvsu.
39892
39893 2008-04-02  Bruno Haible  <bruno@clisp.org>
39894
39895         Avoid some "statement with no effect" warnings from gcc.
39896         * tests/test-wctype.c (main): Explicitly ignore unused values.
39897         Reported by Jim Meyering.
39898
39899 2008-04-02  Jim Meyering  <meyering@redhat.com>
39900
39901         Avoid some warnings from "gcc -Wshadow".
39902         * tests/test-frexp.c (exp): Define to a different identifier.
39903         * tests/test-frexpl.c (exp): Likewise.
39904
39905 2008-04-03  Jim Meyering  <meyering@redhat.com>
39906
39907         bootstrap: remove dangling *.[ch] symlinks from lib
39908         * build-aux/bootstrap [dangling symlink removal]: Move find's
39909         -depth option to precede all others, to avoid a warning.
39910         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39911
39912 2008-04-02  Bruno Haible  <bruno@clisp.org>
39913
39914         Avoid some warnings from "gcc -Wshadow".
39915         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39916         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39917         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39918         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39919         Reported by Jim Meyering.
39920
39921 2008-04-01  Bruno Haible  <bruno@clisp.org>
39922
39923         Fix test to work on IRIX 6.5 with cc.
39924         * tests/test-math.c (numeric_equal): New function.
39925         (main): Use it.
39926
39927 2008-04-01  Bruno Haible  <bruno@clisp.org>
39928
39929         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39930
39931 2008-04-01  Bruno Haible  <bruno@clisp.org>
39932
39933         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39934         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39935         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39936         (Depends-on): Remove math.
39937
39938         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39939         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39940         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39941         (Depends-on): Remove math.
39942
39943         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39944         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39945         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39946         (Depends-on): Remove math.
39947         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39948         (Depends-on): Remove math.
39949
39950         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39951         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39952         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39953         (Depends-on): Remove math.
39954         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39955         (Depends-on): Remove math.
39956
39957         * tests/test-round1.c: Include nan.h.
39958         (main): Use NaNd instead of NAN.
39959         * modules/round-tests (Files): Add tests/nan.h.
39960
39961         * tests/test-trunc1.c: Include nan.h.
39962         (main): Use NaNd instead of NAN.
39963         * modules/trunc-tests (Files): Add tests/nan.h.
39964
39965         * tests/test-roundf1.c: Include nan.h.
39966         (main): Use NaNf instead of NAN.
39967         * modules/roundf-tests (Files): Add tests/nan.h.
39968
39969         * tests/test-truncf1.c: Include nan.h.
39970         (main): Use NaNf instead of NAN.
39971         * modules/truncf-tests (Files): Add tests/nan.h.
39972
39973         * tests/test-ceilf1.c: Include nan.h.
39974         (main): Use NaNf instead of NAN.
39975         * modules/ceilf-tests (Files): Add tests/nan.h.
39976
39977         * tests/test-floorf1.c: Include nan.h.
39978         (main): Use NaNf instead of NAN.
39979         * modules/floorf-tests (Files): Add tests/nan.h.
39980
39981         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39982         (main): Use NaNf instead of NAN.
39983         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39984
39985         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39986         (main): Use NaNd instead of NAN.
39987         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39988
39989         * tests/test-frexp.c: Include nan.h.
39990         (main): Use NaNd instead of NAN.
39991         * modules/frexp-tests (Files): Add tests/nan.h.
39992
39993         * lib/isnan.c: Don't include <math.h>.
39994         (FUNC): Don't use NAN macro.
39995         * modules/isnand-nolibm (Depends-on): Remove math.
39996         * modules/isnanf-nolibm (Depends-on): Remove math.
39997         * modules/isnanl (Depends-on): Remove math.
39998         * modules/isnanl-nolibm (Depends-on): Remove math.
39999
40000         * tests/nan.h: New file.
40001
40002 2008-04-01  Eric Blake  <ebb9@byu.net>
40003
40004         Fix typos.
40005         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40006         values to be the right type.
40007
40008         For now, cater to gnulib strtod inaccuracies.
40009         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40010         fractional results.  While not as nice from a QoI perspective, it
40011         is a quicker patch than correctly implementing decimal to binary
40012         rounding.
40013
40014 2008-03-31  Eric Blake  <ebb9@byu.net>
40015
40016         Guarantee a definition of NAN.
40017         * lib/math.in.h (NAN): Define if missing.
40018         * tests/test-math.c (main): Test it.
40019         * doc/posix-headers/math.texi (math.h): Document this.
40020         * lib/isnan.c (rpl_isnand): Use it.
40021         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40022         * tests/test-floorf1.c (NaN): Likewise.
40023         * tests/test-frexp.c (NaN): Likewise.
40024         * tests/test-isnand.c (NaN): Likewise.
40025         * tests/test-isnanf.c (NaN): Likewise.
40026         * tests/test-round1.c (NaN): Likewise.
40027         * tests/test-roundf1.c (NaN): Likewise.
40028         * tests/test-snprintf-posix.h (NaN): Likewise.
40029         * tests/test-sprintf-posix.h (NaN): Likewise.
40030         * tests/test-trunc1.c (NaN): Likewise.
40031         * tests/test-truncf1.c (NaN): Likewise.
40032         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40033         * tests/test-vasprintf-posix.c (NaN): Likewise.
40034         * modules/isnand-nolibm (Depends-on): Add math.
40035         * modules/isnanf-nolibm (Depends-on): Likewise.
40036         * modules/isnanl (Depends-on): Likewise.
40037         * modules/isnanl-nolibm (Depends-on): Likewise.
40038         * modules/snprintf-posix-tests (Depends-on): Likewise.
40039         * modules/sprintf-posix-tests (Depends-on): Likewise.
40040         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40041         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40042         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40043         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40044
40045 2008-03-31  Bruno Haible  <bruno@clisp.org>
40046
40047         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40048         * doc/posix-functions/strtod.texi: Likewise.
40049
40050 2008-03-31  Bruno Haible  <bruno@clisp.org>
40051
40052         * tests/test-strtod.c (main): Don't use C99 syntax.
40053
40054 2008-03-31  Bruno Haible  <bruno@clisp.org>
40055
40056         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40057         Reported by Eric Blake.
40058
40059 2008-03-31  Jim Meyering  <meyering@redhat.com>
40060
40061         Don't compare actual signbit return values.
40062         * tests/test-strtod.c (main): Rather, compare only their
40063         zero/non-zero nature.
40064
40065 2008-03-31  Eric Blake  <ebb9@byu.net>
40066
40067         More strtod documentation.
40068         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40069         failures as distinct bugs.
40070
40071 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40072
40073         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40074         Problem reported by Erik Benada in
40075         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40076
40077 2008-03-30  Bruno Haible  <bruno@clisp.org>
40078
40079         * tests/test-strtod.c: Add comments about which assertion fails on which
40080         platform.
40081         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40082
40083 2008-03-30  Eric Blake  <ebb9@byu.net>
40084
40085         Test signbit behavior on zeros.
40086         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40087         (test_signbitd, test_signbitl): Likewise.
40088
40089         More strtod touchups.
40090         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40091         sign of negative underflow, for now.  Use .5, not .1.
40092         * doc/posix-functions/strtod.texi (strtod): Mention these
40093         limitations.
40094         Reported by Jim Meyering.
40095
40096 2008-03-30  Bruno Haible  <bruno@clisp.org>
40097
40098         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40099         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40100
40101 2008-03-30  Bruno Haible  <bruno@clisp.org>
40102
40103         Avoid failure when attempting to return empty iconv results on some
40104         platforms.
40105         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40106         allocation, don't report ENOMEM when the resulting string is empty.
40107
40108 2008-03-30  Bruno Haible  <bruno@clisp.org>
40109
40110         Fix buffer overrun.
40111         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40112         Don't consider the width for tmp_length. Check count against tmp_length
40113         before doing the padding. Ensure enough allocation during padding.
40114
40115 2008-03-30  Eric Blake  <ebb9@byu.net>
40116
40117         strtod touchups.
40118         * lib/strtod.c (strtod): Avoid compiler warnings.
40119         Reported by Jim Meyering.
40120
40121 2008-03-30  Bruno Haible  <bruno@clisp.org>
40122
40123         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40124         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40125         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40126         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40127         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40128         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40129         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40130         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40131
40132         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40133         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40134         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40135         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40136         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40137         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40138         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40139         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40140
40141         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40142         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40143         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40144         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40145         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40146         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40147         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40148         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40149
40150         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40151         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40152
40153         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40154         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40155
40156         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40157         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40158
40159         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40161         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40162
40163         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40165         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40166
40167         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40168         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40169         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40170
40171         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40173         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40174
40175         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40176         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40178         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40179         (Depends-on): Add EOVERFLOW.
40180         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40181         (Depends-on): Add EOVERFLOW.
40182         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40183         (Depends-on): Add EOVERFLOW.
40184         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40185         (Depends-on): Add EOVERFLOW.
40186         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40187         (Depends-on): Add EOVERFLOW.
40188         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40189         (Depends-on): Add EOVERFLOW.
40190         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40191         (Depends-on): Add EOVERFLOW.
40192         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40193         (Depends-on): Add EOVERFLOW.
40194
40195         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40196         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40197         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40198
40199         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40201         * modules/snprintf (Depends-on): Add EOVERFLOW.
40202
40203         * lib/poll.c (EOVERFLOW): Remove fallback.
40204         * modules/poll (Depends-on): Add EOVERFLOW.
40205
40206         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40207         * modules/getugroups (Depends-on): Add EOVERFLOW.
40208
40209         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40210         * modules/getdelim (Depends-on): Add EOVERFLOW.
40211
40212         * lib/ftell.c (EOVERFLOW): Remove fallback.
40213         * modules/ftell (Depends-on): Add EOVERFLOW.
40214
40215         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40217         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40218
40219         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40220
40221         * modules/EOVERFLOW-tests: New file.
40222         * tests/test-EOVERFLOW.c: New file.
40223
40224         * modules/EOVERFLOW: New file.
40225         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40226
40227 2008-03-30  Bruno Haible  <bruno@clisp.org>
40228
40229         Fix bug introduced on 2007-06-10.
40230         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40231         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40232
40233 2008-03-30  Bruno Haible  <bruno@clisp.org>
40234
40235         Improve freadseek's efficiency after ungetc.
40236         * lib/freadseek.c: Include freadahead.h.
40237         (freadptrinc): New function, extracted from freadseek.
40238         (freadseek): Use it in a loop. Use freadahead to determine the number
40239         of loop iterations.
40240         * modules/freadseek (Depends-on): Add freadahead.
40241         (configure.ac): Require AC_C_INLINE.
40242
40243 2008-03-30  Bruno Haible  <bruno@clisp.org>
40244
40245         * lib/freadseek.c (freadseek): Don't ignore the return value of
40246         freadptr.
40247
40248 2008-03-29  Eric Blake  <ebb9@byu.net>
40249
40250         Add hex float support.
40251         * modules/strtod (Depends-on): Add c-ctype.
40252         (Link): Mention POW_LIB.
40253         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40254         whitespace between 'e' and exponent.
40255         * tests/test-strtod.c (main): Enable hex float tests.
40256         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40257         now provides.
40258
40259         Document various strtod bugs, with some fixes.
40260         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40261         "-0x", "inf", "nan", and hex constants.
40262         * doc/posix-functions/atof.texi (atof): Likewise.
40263         * modules/stdlib (Makefile.am): Support strtod.
40264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40265         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40266         detect additional strtod bugs.
40267         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40268         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40269         bool where appropriate.  Parse 'inf' and 'nan'.
40270         * tests/test-strtod.c: New file.
40271         * modules/strtod (Depends-on): Add stdbool, stdlib.
40272         (configure.ac): Turn on module indicator.
40273         * modules/strtod-tests: New module.
40274
40275 2008-03-29  Eric Blake  <ebb9@byu.net>
40276
40277         Fix ftell on mingw.
40278         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40279         * modules/ftell-tests (Depends-on): Add binary-io.
40280         * modules/ftello-tests (Depends-on): Likewise.
40281         * tests/test-ftell.c (main): Enhance test to cover behavior after
40282         ungetc.  Enforce binary mode.
40283         * tests/test-ftello.c (main): Likewise.
40284
40285         Pass test-freadseek on cygwin.
40286         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40287         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40288         ungetc buffer.
40289
40290         * tests/test-fflush2.c (main): Fix typo.
40291
40292 2008-03-29  Bruno Haible  <bruno@clisp.org>
40293
40294         * tests/test-fflush2.c (main): Temporarily disable the contents of
40295         this test.
40296         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40297         Reported by Eric Blake.
40298
40299 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40300
40301         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40302         (GC_SHA224_DIGEST_SIZE): Add.
40303
40304         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40305         (gc_hash_digest_length): Likewise.
40306         (gc_hash_buffer): Likewise.
40307
40308 2008-03-25  Bruno Haible  <bruno@clisp.org>
40309
40310         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40311         detail which gettext release to use.
40312         Reported by Simon Josefsson.
40313
40314 2008-03-26  Jim Meyering  <meyering@redhat.com>
40315
40316         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40317         * modules/gnumakefile (clean-GNUmakefile): Also, use
40318         test ... && ... || : syntax rather than if-then ... fi.
40319
40320         gnumakefile: Don't double-quote-expand $(VPATH) value.
40321         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40322
40323 2008-03-24  Eric Blake  <ebb9@byu.net>
40324
40325         Alter GNUmakefile to install into top directory.
40326         * modules/maintainer-makefile: Split, and add dependency...
40327         * modules/gnumakefile: to this new module.
40328         * build-aux/GNUmakefile: Move...
40329         * top/GNUmakefile: ...here.
40330         * build-aux/maint.mk: Move...
40331         * top/maint.mk: ...here.
40332         * MODULES.html.sh (Support for maintaining...): Document new
40333         module.
40334
40335 2008-03-23  Bruno Haible  <bruno@clisp.org>
40336
40337         * gnulib-tool: New options --vc-files, --no-vc-files.
40338         (func_usage): Document them.
40339         (vc_files): New variable.
40340         (func_import): Consider vc_files.
40341         (func_create_testdir): Set vc_files to empty.
40342         Suggested by Jim Meyering and Karl Berry.
40343
40344 2008-03-23  Bruno Haible  <bruno@clisp.org>
40345
40346         Fix regex compilation error on HP-UX 11.
40347         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40348         * modules/regex (Files): Add m4/mbstate_t.m4.
40349         Reported by Ton Voon <ton.voon@altinity.com>.
40350
40351 2008-03-23  Bruno Haible  <bruno@clisp.org>
40352
40353         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40354
40355 2008-03-23  Eric Blake  <ebb9@byu.net>
40356             Bruno Haible  <bruno@clisp.org>
40357
40358         Install files from top/ in the destination directory.
40359         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40360         augmentation also for the files from top/.
40361         (func_import, func_create_testdir): Rewrite file names:
40362         top/filename -> filename.
40363
40364 2008-03-23  Bruno Haible  <bruno@clisp.org>
40365
40366         Tweak "gnulib --version" output.
40367         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40368
40369 2008-03-23  Bruno Haible  <bruno@clisp.org>
40370
40371         Tweak "gnulib --version" output.
40372         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40373         rather than contents of ChangeLog, when possible.
40374
40375 2008-03-21  Eric Blake  <ebb9@byu.net>
40376
40377         More --version tweaks.
40378         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40379         date of last ChangeLog entry.
40380
40381 2008-03-21  Jim Meyering  <meyering@redhat.com>
40382
40383         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40384
40385 2008-03-20  Eric Blake  <ebb9@byu.net>
40386
40387         VPATH fix.
40388         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40389
40390 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40391
40392         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40393         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40394
40395 2008-03-20  Eric Blake  <ebb9@byu.net>
40396
40397         Sync GNUmakefile with coreutils.
40398         * build-aux/GNUmakefile (have-Makefile): Rename...
40399         (_have-Makefile): ...to this, for namespace consideration.
40400         (GNUmakefile.cfg): Include, if present.
40401         (_autoreconf): Define a default.
40402         (_is-dist-target): New rule for rebuilds to pick up intra-release
40403         version.
40404         (maint-cfg.mk): Rename...
40405         (cfg.mk): ...to this.
40406
40407 2008-03-18  Jim Meyering  <meyering@redhat.com>
40408
40409         New script and module: mktempd
40410         * MODULES.html.sh (maint+release support): Add mktempd.
40411         * build-aux/mktempd: New file.
40412         * modules/mktempd: New file.
40413
40414 2008-03-15  Jim Meyering  <meyering@redhat.com>
40415
40416         Undo last change.
40417         * lib/sha1.c, lib/md5.c: 63 != ~63.
40418         Reported by Andreas Schwab.
40419
40420         sha1.c, md5.c: Hoist a redundant expression.
40421         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40422         "ctx->buflen" only once, before calling *_process_block.
40423         * lib/md5.c (md5_process_bytes): Likewise.
40424
40425 2008-03-14  Eric Blake  <ebb9@byu.net>
40426
40427         Bump copyright year in files generated by gnulib-tool.
40428         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40429         gnulib-tool, rather than hard-coding it.
40430
40431         Fix 'gnulib-tool --version' output to work with git.
40432         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40433         (startup): ...here.
40434         (func_version): Use it to invoke git-version-gen, rather than
40435         relying on CVS keyword expansion.  Modernize wording.
40436         (cvsdatestamp, last_checkin_date, version): Kill unused
40437         variables.
40438
40439 2008-03-12  Jim Meyering  <meyering@redhat.com>
40440
40441         Recognize optional cast of the argument to free.
40442         * build-aux/useless-if-before-free: Update regexps.
40443
40444         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40445
40446 2008-03-11  Bruno Haible  <bruno@clisp.org>
40447
40448         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40449         by a single package.
40450         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40451         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40452         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40453         Reported by Sam Steingold <sds@gnu.org>.
40454
40455 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40456
40457         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40458         repositories.
40459
40460 2008-03-11  Bruno Haible  <bruno@clisp.org>
40461
40462         Avoid conflicts between local macro definitions.
40463         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40464         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40465
40466 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40467             Bruno Haible  <bruno@clisp.org>
40468
40469         Make va_copy work with some version of xlc on AIX 5.1.
40470         * lib/stdarg.in.h: New file.
40471         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40472         On AIX, use a <stdarg.h> file substitute.
40473         * modules/stdarg (Files): Add lib/stdarg.in.h.
40474         (Depends-on): Add include_next.
40475         (Makefile.am): Build a stdarg.h substitute if requested.
40476         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40477
40478 2008-03-10  Bruno Haible  <bruno@clisp.org>
40479
40480         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40481         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40482         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40483
40484 2008-03-10  Bruno Haible  <bruno@clisp.org>
40485
40486         * modules/stdlib (Depends-on): Add include_next, remove
40487         absolute-header.
40488
40489 2008-03-09  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/freadahead.h (freadahead): Document more precisely.
40492         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40493         the sum of both buffer sizes.
40494         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40495         * NEWS: Document the change.
40496
40497 2008-03-09  Bruno Haible  <bruno@clisp.org>
40498
40499         Extend freadptr to return also the buffer size.
40500         * lib/freadptr.h (freadptr): Add sizep argument.
40501         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40502         (freadptr): Add sizep argument. Determine buffer size like freadahead
40503         does.
40504         * tests/test-freadptr.c: Don't include freadahead.h.
40505         (main): Adapt for new calling convention of freadptr.
40506         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40507         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40508         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40509         tests/test-freadptr2.sh.
40510         (Depends): Remove freadahead.
40511         (TESTS): Add test-freadptr2.sh.
40512         (check_PROGRAMS): Add test-freadptr2.
40513
40514 2008-03-09  Bruno Haible  <bruno@clisp.org>
40515
40516         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40517         Report and solution by Simon Josefsson.
40518
40519 2008-03-06  Bruno Haible  <bruno@clisp.org>
40520
40521         Make fflush after ungetc work on BSD platforms.
40522         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40523         * tests/test-fflush2.c: New file.
40524         * tests/test-fflush2.sh: New file.
40525         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40526         tests/test-fflush2.c.
40527         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40528         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40529
40530 2008-03-06  Eric Blake  <ebb9@byu.net>
40531
40532         Likewise for ftello.
40533         * modules/ftello (Dependencies): Add extensions.
40534         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40535
40536 2008-03-06  Bruno Haible  <bruno@clisp.org>
40537
40538         * modules/fseeko (Dependencies): Add extensions.
40539         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40540         Needed on glibc systems.
40541
40542 2008-03-06  Bruno Haible  <bruno@clisp.org>
40543
40544         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40545         email address.
40546         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40547
40548 2008-03-06  Bruno Haible  <bruno@clisp.org>
40549
40550         * users.txt: Add libgnupdf.
40551
40552 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40553
40554         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40555         (Header File Substitutes, Function Substitutes,
40556         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40557         (Build robot for gnulib): Fix typo.
40558
40559 2008-03-06  Bruno Haible  <bruno@clisp.org>
40560
40561         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40562         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40563
40564 2008-03-06  Bruno Haible  <bruno@clisp.org>
40565
40566         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40567         * doc/gnulib.texi: Include it.
40568
40569 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40570
40571         * modules/func (License): Change license to unlimited; there was
40572         no LGPL parts in the module anyway.
40573
40574 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40575
40576         * modules/__func__: Renamed to modules/func.
40577         * modules/__func__-tests: Renamed to modules/func-tests.
40578         * tests/test-__func__.c: Renamed to tests/test-func.c.
40579         * m4/__func__.m4: Renamed to m4/func.m4.
40580         * doc/gnulib.texi (__func__): Section renamed to func.
40581         Suggested by Eric Blake <ebb9@byu.net>.
40582
40583 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40584
40585         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40586         about __func__.  Make example self-contained.  Suggested by Eric
40587         Blake <ebb9@byu.net>.
40588
40589         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40590         Suggested by Eric Blake <ebb9@byu.net>.
40591
40592 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40593
40594         * modules/__func__: New file.
40595         * modules/__func__-tests: New file.
40596         * tests/test-__func__.c: New file.
40597         * m4/__func__.m4: New file.
40598         * doc/gnulib.texi (__func__): Document __func__ module.
40599
40600 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40601
40602         * modules/byteswap (License): Re-license as LGPLv2+.
40603
40604 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40605
40606         * doc/Makefile: Add pdf target.
40607
40608 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40609
40610         * modules/inline (License): Use 'unlimited', since there are only
40611         *.m4 files in this module.
40612
40613 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40614             Bruno Haible  <bruno@clisp.org>
40615
40616         Add support for HP C 7.1 on OpenVMS 8.3.
40617         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40618
40619 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40620
40621         Update VMS specifics.
40622         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40623
40624 2008-03-02  Jim Meyering  <meyering@redhat.com>
40625
40626         Remove the last dependency on the "free" module.
40627         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40628         Reported by Bob Proulx.
40629
40630         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40631
40632         Remove useless "if" tests before free.  Deprecate "free" module.
40633         * doc/posix-functions/free.texi: Mention that this
40634         module is no longer useful.
40635         * modules/free (Notice): Say this module is obsolete.
40636         * modules/readutmp (Depends-on): Remove free.
40637         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40638         * lib/putenv.c (putenv): Likewise.
40639         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40640         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40641         * tests/test-c-strcasestr.c (main): Likewise.
40642         * tests/test-c-strstr.c (main): Likewise.
40643         * tests/test-mbscasestr1.c (main): Likewise.
40644         * tests/test-mbscasestr2.c (main): Likewise.
40645         * tests/test-mbsstr1.c (main): Likewise.
40646         * tests/test-mbsstr2.c (main): Likewise.
40647         * tests/test-memmem.c (main): Likewise.
40648         * tests/test-strcasestr.c (main): Likewise.
40649         * tests/test-striconv.c (main): Likewise.
40650         * tests/test-striconveh.c (main): Likewise.
40651         * tests/test-striconveha.c (main): Likewise.
40652         * tests/test-strstr.c (main): Likewise.
40653
40654         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40655
40656         bootstrap: sync from coreutils again
40657         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40658
40659 2008-03-01  Jim Meyering  <meyering@redhat.com>
40660
40661         bootstrap: sync from coreutils
40662         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40663         also when the target doesn't exist.
40664
40665 2008-03-01  Eric Blake  <ebb9@byu.net>
40666
40667         Fix bugs in last patch.
40668         * lib/memchr2.c (memchr2): Fix typo.
40669         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40670         extension.
40671         Reported by Bruce Korb.
40672
40673         New module 'memchr2'.
40674         * modules/memchr2: New file.
40675         * modules/memchr2-tests: Likewise.
40676         * lib/memchr2.h: Likewise.
40677         * lib/memchr2.c: Likewise, based on memchr.c.
40678         * tests/test-memchr2.c: New test.
40679         * MODULES.html.sh (String handling): Add memchr2.
40680
40681 2008-02-29  Bruno Haible  <bruno@clisp.org>
40682
40683         * modules/freadseek-tests: New file.
40684         * tests/test-freadseek.sh: New file.
40685         * tests/test-freadseek.c: New file.
40686
40687         New module 'freadseek'.
40688         * modules/freadseek: New file.
40689         * lib/freadseek.h: New file.
40690         * lib/freadseek.c: New file.
40691         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40692
40693 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40694
40695         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40696         wydawca.
40697
40698         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40699         program_invocation_name and program_invocation_short_name are
40700         present.
40701
40702 2008-02-28  Bruno Haible  <bruno@clisp.org>
40703
40704         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40705         * tests/test-freadptr.sh: Also test non-seekable stdin.
40706
40707 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40708
40709         * build-aux/bootstrap (source_base, m4_base)
40710         (doc_base, tests_base): New variables.
40711         (gnulib_tool_options): Do not hardcode base directories, use
40712         the above variables instead.
40713
40714 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40715
40716         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40717
40718 2008-02-28  Bruno Haible  <bruno@clisp.org>
40719
40720         * modules/freadptr-tests: New file.
40721         * tests/test-freadptr.sh: New file.
40722         * tests/test-freadptr.c: New file.
40723
40724         New module 'freadptr'.
40725         * modules/freadptr: New file.
40726         * lib/freadptr.h: New file.
40727         * lib/freadptr.c: New file.
40728         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40729
40730 2008-02-26  Karl Berry  <karl@freefriends.org>
40731
40732         Sync from Libtool:
40733         * libltdl/argz.c (argz_add, argz_count): New functions.
40734         * libltdl/argz.in.h: Declare them.
40735         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40736
40737 2008-02-22  Bruno Haible  <bruno@clisp.org>
40738
40739         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40740         is a pointer type.  Needed for HP-UX 10.
40741         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40742         * doc/posix-functions/gmtime_r.texi: Likewise.
40743         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40744
40745 2008-02-24  Bruno Haible  <bruno@clisp.org>
40746
40747         * modules/environ-tests: New file.
40748         * tests/test-environ.c: New file.
40749
40750         New module 'environ'.
40751         * modules/environ: New file.
40752         * lib/unistd.in.h (environ): New declaration.
40753         * m4/environ.m4: New file.
40754         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40755         after use.
40756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40757         HAVE_DECL_ENVIRON.
40758         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40759         HAVE_DECL_ENVIRON.
40760         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40761         wrong claim that 'environ' is missing on some systems.
40762         * modules/execute (Depends-on): Add environ.
40763         * lib/execute.c (environ): Remove fallback declaration.
40764         * modules/pipe (Depends-on): Add environ.
40765         * lib/pipe.c (environ): Remove fallback declaration.
40766         * modules/setenv (Depends-on): Add environ.
40767         * lib/setenv.c (environ): Remove fallback declaration.
40768         * modules/unsetenv (Depends-on): Add environ.
40769         * lib/unsetenv.c (environ): Remove fallback declaration.
40770         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40771         m4/environ.m4.
40772         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40773         (gl_PREREQ_UNSETENV): Likewise.
40774
40775 2008-02-24  Bruno Haible  <bruno@clisp.org>
40776
40777         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40778
40779 2008-02-20  Bob Proulx  <bob@proulx.com>
40780
40781         Enable use of older two part flavor 'git describe'.
40782         * build-aux/git-version-gen: If using the older two part flavor of
40783         git version then recreate the third part now present in the
40784         newer three part flavor of git describe.
40785
40786 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40787
40788         * lib/fts.c (fts_build): Typo correction to comment.
40789
40790 2008-02-17  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40793         generating no-op conflicts.
40794
40795 2008-02-17  Bruno Haible  <bruno@clisp.org>
40796
40797         Speed up by 10%.
40798         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40799         result_entries, rather than an index-based loop.
40800
40801 2008-02-17  Bruno Haible  <bruno@clisp.org>
40802
40803         Speed up by 25%.
40804         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40805         'hashcode_cached'.
40806         (entry_create): New function.
40807         (entry_hashcode): Use the cached hashcode if possible.
40808         (read_changelog_file, try_split_merged_entry): Use entry_create.
40809
40810 2008-02-17  Bruno Haible  <bruno@clisp.org>
40811
40812         Speed up from O(n^2) to O(n) for long ChangeLog files.
40813         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40814         (read_changelog_file): Change implementation of entries_reversed list
40815         to rbtreehash.
40816         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40817
40818 2008-02-17  Bruno Haible  <bruno@clisp.org>
40819
40820         New option --split-merged-entry.
40821         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40822         (find_paragraph_end, try_split_merged_entry): New functions.
40823         (long_options): Add option --split-merged-entry.
40824         (usage): Document option --split-merged-entry.
40825         (main): Implement option --split-merged-entry.
40826         Reported by Eric Blake.
40827
40828 2008-02-17  Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/git-merge-changelog.c: Include c-strstr.h.
40831         (main): Support the "git pull --rebase" situation.
40832         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40833         Reported by Eric Blake.
40834
40835 2008-02-16  Eric Blake  <ebb9@byu.net>
40836
40837         Avoid doubling \ in common case of "c-maybe" quoting style.
40838         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40839         eliding outer quotes.
40840         * lib/quotearg.h: Document this.
40841         * tests/test-quotearg.c (result_strings, inputs, results_g)
40842         (flag_results, locale_results): Test it by adding a new string to
40843         each test group.
40844         (compare_strings): Test new string.
40845
40846 2008-02-13  Eric Blake  <ebb9@byu.net>
40847
40848         Avoid trigraph quoting in default output.
40849         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40850         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40851         unless explicitly requested.
40852         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40853
40854 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40855
40856         Don't rely on signed integer overflowing to negative value.
40857         * lib/getugroups.c (getugroups): Include <limits.h>.
40858         Instead, compare against INT_MAX, and increment only if the test passes.
40859
40860 2008-02-13  Jim Meyering  <meyering@redhat.com>
40861         and Eric Blake  <ebb9@byu.net>
40862
40863         Avoid shadowing warning and compile errors on Linux.
40864         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40865         forwarding macros on Linux.
40866         (dcgettext): Define a stub, for Linux.
40867         (results_g, main): Avoid warnings.
40868
40869 2008-02-12  Eric Blake  <ebb9@byu.net>
40870
40871         Silence warning in last patch.
40872         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40873
40874         Quotearg part 4: add tests, fix c-maybe colon quoting.
40875         * lib/quotearg.h: Improve documentation.
40876         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40877         escapes when adding outer quotes.  When quoting trigraphs, use
40878         valid C notation.  When quoting NUL, omit extra characters if next
40879         character is not digit.  Alter prototype.
40880         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40881         callers.
40882         * modules/quotearg-tests: New module.
40883         * tests/test-quotearg.c: New test.
40884
40885 2008-02-07  Eric Blake  <ebb9@byu.net>
40886
40887         Quotearg part 3: add flag to control outer quote elision.
40888         * lib/quotearg.h (c_maybe_quoting_style): New style.
40889         (enum quoting_flags): Better documentation of flags.
40890         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40891         c-maybe style.
40892         (quotearg_buffer_restyled): Handle new flag to elide outer
40893         quotes.
40894
40895         Quotearg part 2: add flag that can control NUL elision.
40896         * lib/quotearg.h (set_quoting_flags): New prototype.
40897         * lib/quotearg.c (struct quoting_options): Add flag field.
40898         (set_quoting_flags): New function.
40899         (quotearg_buffer_restyled): Add flags parameter.
40900         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40901         (quotearg_n_options): Set the flag, since length cannot be
40902         returned.
40903         (quoting_options_from_style): Default flags correctly.
40904
40905         Quotearg part 1: more wrappers, restore quotearg_char state.
40906         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40907         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40908         (quotearg_colon_mem): New wrappers.
40909         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40910         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40911         functions.
40912         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40913         (quotearg_colon_mem): New functions.
40914
40915 2008-02-11  Bruno Haible  <bruno@clisp.org>
40916
40917         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40918         library in the current directory: it does not work with parallel make.
40919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40920
40921 2008-02-11  Bruno Haible  <bruno@clisp.org>
40922
40923         * .gitattributes: New file.
40924
40925 2008-02-11  Jim Meyering  <meyering@redhat.com>
40926
40927         useless-if-before-free: Fix reversed exit values.
40928         * build-aux/useless-if-before-free: Use correct values
40929         for EXIT_MATCH and EXIT_NO_MATCH.
40930
40931         * build-aux/useless-if-before-free: Close stdout carefully.
40932
40933 2008-02-10  Bruno Haible  <bruno@clisp.org>
40934
40935         New module 'git-merge-changelog'.
40936         * modules/git-merge-changelog: New file.
40937         * lib/git-merge-changelog.c: New file.
40938
40939 2008-02-10  Jim Meyering  <meyering@redhat.com>
40940
40941         useless-if-before-free: New option: --list (-l).
40942
40943         useless-if-before-free: Don't exit immediately upon open failure.
40944         * build-aux/useless-if-before-free: Exit 2 for errors.
40945         Upon failure to open a file, don't exit immediately.
40946         Rather, just warn and continue with any remaining files.
40947
40948 2008-02-10  Bruno Haible  <bruno@clisp.org>
40949
40950         New abstract list operation 'node_set_value'.
40951         * lib/gl_list.h (gl_list_node_set_value): New function.
40952         (struct gl_list_implementation): New field node_set_value.
40953         * lib/gl_list.c (gl_list_node_set_value): New function.
40954         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40955         (gl_array_list_implementation): Update.
40956         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40957         (gl_carray_list_implementation): Update.
40958         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40959         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40960         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40961         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40962         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40963         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40964         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40965         Update.
40966         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40967         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40968         (gl_sublist_list_implementation): Update.
40969
40970 2008-02-10  Bruno Haible  <bruno@clisp.org>
40971
40972         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40973         Needed when ELEMENT is #defined to 'some_type *'.
40974
40975 2008-02-10  Jim Meyering  <meyering@redhat.com>
40976
40977         New script and module: useless-if-before-free
40978         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40979         * build-aux/useless-if-before-free: New file.
40980         * modules/useless-if-before-free: New file.
40981
40982         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40983
40984         xstrtol_error: Fix typo.
40985         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40986         s/exit_failure/exit_status/.
40987
40988 2008-02-09  Jim Meyering  <meyering@redhat.com>
40989
40990         New script and module: gitlog-to-changelog
40991         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40992         * modules/gitlog-to-changelog: New file.
40993         * build-aux/gitlog-to-changelog: New file.
40994
40995 2008-02-08  Jim Meyering  <meyering@redhat.com>
40996
40997         Avoid two "parameter unused" warnings.
40998         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40999         Mark "st" as used.
41000
41001         Use "git COMMAND", not "git-COMMAND".
41002         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41003         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41004         * build-aux/git-version-gen: Use "git status", not "git-status".
41005
41006 2008-02-07  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41009         Avoids a crash on Windows Vista.
41010         Reported by Adam Strzelecki <ono@java.pl> via
41011         Simon Josefsson <simon@josefsson.org>.
41012
41013 2008-02-06  Bruno Haible  <bruno@clisp.org>
41014
41015         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41016         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41017         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41019         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41021         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41022         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41024         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41026         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41027         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41029         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41030         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41031         left-adjust flag.
41032         * tests/test-snprintf-posix.h (test_function): Likewise.
41033         * tests/test-sprintf-posix.h (test_function): Likewise.
41034         * tests/test-vasprintf-posix.c (test_function): Likewise.
41035         * doc/posix-functions/fprintf.texi: Update.
41036         * doc/posix-functions/printf.texi: Update.
41037         * doc/posix-functions/snprintf.texi: Update.
41038         * doc/posix-functions/sprintf.texi: Update.
41039         * doc/posix-functions/vfprintf.texi: Update.
41040         * doc/posix-functions/vprintf.texi: Update.
41041         * doc/posix-functions/vsnprintf.texi: Update.
41042         * doc/posix-functions/vsprintf.texi: Update.
41043         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41044
41045 2008-02-06  Bruno Haible  <bruno@clisp.org>
41046
41047         Fix bug introduced on 2008-01-26.
41048         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41049
41050 2008-02-06  Bruno Haible  <bruno@clisp.org>
41051
41052         Fix bug introduced on 2007-06-10.
41053         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41054         !NEED_PRINTF_FLAG_ZERO.
41055
41056 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41057
41058         getloadavg: use libperfstat on AIX5
41059         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41060
41061 2008-02-03  Bruno Haible  <bruno@clisp.org>
41062
41063         * lib/diffseq.h: Add comments about required #includes.
41064         Reported by Michael Biggs <gnulib@doubleplum.net>.
41065
41066 2008-02-01  Bruno Haible  <bruno@clisp.org>
41067
41068         * users.txt: Add gnuit.
41069
41070 2008-01-31  Bruno Haible  <bruno@clisp.org>
41071
41072         * lib/md4.c (set_uint32): Mark as inline.
41073         * lib/md5.c (set_uint32): Likewise.
41074         * lib/sha1.c (set_uint32): Likewise.
41075         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41076         * m4/md5.m4 (gl_MD5): Likewise.
41077         * m4/sha1.m4 (gl_SHA1): Likewise.
41078
41079 2008-01-31  Jim Meyering  <meyering@redhat.com>
41080
41081         Use "sizeof VAR", rather than a literal "4".
41082         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41083         * lib/md4.c (md4_read_ctx): Likewise.
41084         * lib/sha1.c (sha1_read_ctx): Likewise.
41085
41086 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41087
41088         * tests/test-sha1.c: New file, based on test-md5.c.
41089
41090         * modules/crypto/sha1-tests: New file.
41091
41092 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41093
41094         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41095
41096 2008-01-31  Jim Meyering  <meyering@redhat.com>
41097
41098         Prefer "sizeof v" over the equivalent "4".
41099         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41100         * lib/md5.c (set_uint32): Likewise.
41101         * lib/sha1.c (set_uint32): Likewise.
41102
41103 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41104
41105         * lib/sha1.c (set_uint32): Mark function as static.
41106
41107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41108
41109         md2: clarify comments to say that alignment is not required.
41110         * lib/md2.h: Remove warning about alignment in comment.
41111         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41112         never been required.
41113
41114 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41115
41116         md4: adapt alignment constraint fix from sha1.
41117         * lib/md4.c (set_uint32): New function, from sha1.c
41118         (md4_read_ctx): Use it.
41119         (md4_finish_ctx): Doc fix.
41120         * lib/md4.h: Doc fix.
41121
41122 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41123
41124         md5: adapt alignment constraint fix from sha1.
41125         * lib/md5.c (set_uint32): New function, from sha1.c
41126         (md5_read_ctx): Use it.
41127         (md5_finish_ctx): Doc fix.
41128         * lib/md5.h: Doc fix.
41129
41130 2008-01-30  Peter Palfrader  <weasel@debian.org>
41131
41132         sha1: remove the result buffer alignment constraint
41133         * lib/sha1.c (set_uint32): New function.
41134         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41135         constraint.
41136         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41137         * lib/sha1.h: Likewise.
41138
41139 2008-01-30  Andreas Schwab  <schwab@suse.de>
41140             Bruno Haible  <bruno@clisp.org>
41141
41142         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41143         correct definition of LDBL_MIN_EXP.
41144
41145 2008-01-30  Karl Berry  <karl@gnu.org>
41146
41147         * config/srclist-update: try to preserve x bit on updates.
41148         * config/srclistvars.sh: update for karl.
41149
41150 2008-01-29  Jim Meyering  <meyering@redhat.com>
41151
41152         vasnprintf.c: Avoid warning about unused label
41153         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41154         "overflow" label definition and associated code with the
41155         same cpp condition that guards the sole use of that label.
41156
41157 2008-01-26  Bruno Haible  <bruno@clisp.org>
41158
41159         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41160         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41161         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41162         * lib/isnanl-nolibm.h (isnanl): Likewise.
41163         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41164
41165 2008-01-26  Bruno Haible  <bruno@clisp.org>
41166
41167         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41168         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41169
41170 2008-01-26  Bruno Haible  <bruno@clisp.org>
41171
41172         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41173         GCC >= 4.0 built-in.
41174         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41175
41176 2008-01-26  Bruno Haible  <bruno@clisp.org>
41177
41178         Rename isnan, applicable to 'double' only, to isnand.
41179         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41180         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41181         (configure.ac): Update.
41182         (Include): Replace "isnan.h" with "isnand.h".
41183         * m4/isnand.m4: Renamed from m4/isnan.m4.
41184         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41185         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41186         instead of isnan.c.
41187         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41188         instead of HAVE_ISNAN_IN_LIBC.
41189         (isnand): Renamed from isnan.
41190         * lib/isnand.c: New file.
41191         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41192         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41193         (Makefile.am): Update.
41194         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41195         Include isnand.h instead of isnan.h.
41196         (main): Test isnand instead of isnan.
41197         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41198         isnan-nolibm.
41199         * modules/frexp (Depends-on): Likewise.
41200         * modules/frexp-tests (Depends-on): Likewise.
41201         * modules/frexp-nolibm (Depends-on): Likewise.
41202         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41203         * modules/isfinite (Depends-on): Likewise.
41204         * modules/round-tests (Depends-on): Likewise.
41205         * modules/signbit (Depends-on): Likewise.
41206         * modules/signbit-tests (Depends-on): Likewise.
41207         * modules/snprintf-posix (Depends-on): Likewise.
41208         * modules/sprintf-posix (Depends-on): Likewise.
41209         * modules/trunc-tests (Depends-on): Likewise.
41210         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41211         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41212         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41213         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41214         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41215         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41216         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41217         * modules/vasnprintf-posix (Depends-on): Likewise.
41218         * modules/vasprintf-posix (Depends-on): Likewise.
41219         * modules/vfprintf-posix (Depends-on): Likewise.
41220         * modules/vsnprintf-posix (Depends-on): Likewise.
41221         * modules/vsprintf-posix (Depends-on): Likewise.
41222         * lib/frexp.c: Include isnand.h instead of isnan.h.
41223         (ISNAN): Set to isnand instead of isnan.
41224         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41225         (gl_isfinited): Use isnand instead of isnan.
41226         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41227         (gl_signbitd): Use isnand instead of isnan.
41228         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41229         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41230         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41231         (main): Use isnand instead of isnan.
41232         * tests/test-round1.c: Include isnand.h.
41233         (main): Use isnand instead of isnan.
41234         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41235         (ISNAN): Set to isnand instead of isnan.
41236         * tests/test-trunc1.c: Include isnand.h.
41237         (main): Use isnand instead of isnan.
41238         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41239         (equal): Use isnand instead of isnan.
41240         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41241         isnand-nolibm.
41242         * NEWS: Mention the change.
41243
41244 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41245             Bruno Haible  <bruno@clisp.org>
41246
41247         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41248         the GCC builtins for signbits are present and set
41249         REPLACE_SIGNBIT_USING_GCC if so.
41250         * lib/math.in.h (signbit): Define using GCC builtins if
41251         REPLACE_SIGNBIT_USING_GCC is set.
41252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41253         REPLACE_SIGNBIT_USING_GCC.
41254         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41255
41256 2008-01-25  Jim Meyering  <meyering@redhat.com>
41257
41258         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41259         * lib/poll.c: Include <config.h>, not "config.h".
41260         * tests/test-getaddrinfo.c: Likewise.
41261
41262 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41263
41264         * modules/sockets-tests: New file.
41265
41266 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41267
41268         * modules/sockets: New module, can be used to call WSA_Startup and
41269         WSA_Cleanup when needed.
41270
41271         * lib/sockets.h, lib/sockets.c: New files.
41272
41273         * m4/sockets.m4: New file.
41274
41275         * tests/test-sockets.c: New file.
41276
41277 2008-01-19  Bruno Haible  <bruno@clisp.org>
41278
41279         * doc/posix-headers: Renamed from doc/headers.
41280         * doc/posix-functions: Renamed from doc/functions.
41281         * doc/gnulib.texi: Update.
41282
41283 2008-01-19  Bruno Haible  <bruno@clisp.org>
41284
41285         * doc/glibc-functions/strcasestr.texi: Include contents of
41286         doc/functions/strcasestr.texi, fixing the list of platforms.
41287         * doc/functions/strcasestr.texi: Remove file.
41288
41289 2008-01-19  Bruno Haible  <bruno@clisp.org>
41290
41291         * doc/glibc-functions/memmem.texi: Include contents of
41292         doc/functions/memmem.texi.
41293         * doc/functions/memmem.texi: Remove file.
41294
41295 2008-01-18  Bruno Haible  <bruno@clisp.org>
41296
41297         * doc/glibc-functions/*.texi: New files.
41298         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41299         to use the new files.
41300
41301 2008-01-17  Bruno Haible  <bruno@clisp.org>
41302
41303         * tests/test-gethostname.c (main): Fix printf statement.
41304
41305 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41306
41307         * modules/gethostname-tests: New file.
41308
41309         * tests/test-gethostname.c: New file.
41310
41311 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41312
41313         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41314         used by the UNAME case.  Reported by Bruno Haible
41315         <bruno@clisp.org>.
41316
41317 2008-01-17  Eric Blake  <ebb9@byu.net>
41318
41319         Convert c-strcasestr to be more efficient.
41320         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41321         (Depends-on): Add c-strcase, remove malloca, strnlen.
41322         * tests/test-c-strcasestr.c (main): Enhance test.
41323         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41324
41325 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41326
41327         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41328         Use it in creating po/Makevars.
41329
41330 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41331
41332         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41333         Applications that requires it should initialize libgcrypt
41334         manually.
41335
41336 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41337
41338         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41339
41340 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41341
41342         Fix problem with getdate on mingw32 reported by Simon Josefsson
41343         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41344         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41345         tzname", when deciding whether to declare tzname.
41346         * lib/strftime.c (tzname): Likewise.
41347
41348 2008-01-15  Bruno Haible  <bruno@clisp.org>
41349
41350         Work around a MacOS X 10.5 bug in frexpl().
41351         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41352         * doc/functions/frexpl.texi: Document the bug.
41353         Reported by Elias Pipping <pipping@gentoo.org>.
41354
41355 2008-01-14  Eric Blake  <ebb9@byu.net>
41356
41357         Touch up previous patch.
41358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41359         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41360
41361         Convert strcasestr module to use Two-Way algorithm.
41362         * modules/strcasestr-simple: New module, based on the old
41363         strcasestr, but with Two-Way rather than KMP.
41364         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41365         * lib/string.in.h (rpl_strcasestr): Declare.
41366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41367         performance.
41368         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41369         * modules/string (Makefile.am): Support strcasestr.
41370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41371         * modules/strcasestr-tests (Depends-on): Check for alarm.
41372         * tests/test-strcasestr.c: Augment test.
41373         * lib/str-two-way.h: Clean up stray macro.
41374         * NEWS: Document new module.
41375         * MODULES.html.sh (string handling): Likewise.
41376         * doc/functions/strcasestr.texi: New file.
41377         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41378         here, since it is not a POSIX function.
41379
41380 2008-01-14  Colin Watson  <cjwatson@debian.org>
41381             Bruno Haible  <bruno@clisp.org>
41382
41383         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41384         works fine; if not, set REPLACE_STRSIGNAL.
41385         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41387         REPLACE_STRSIGNAL.
41388         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41389         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41390         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41391
41392 2008-01-14  Bruno Haible  <bruno@clisp.org>
41393
41394         * modules/strsignal (Include): Change to <string.h>.
41395
41396 2008-01-14  Colin Watson  <cjwatson@debian.org>
41397
41398         * modules/argp (Notice): Add a notice recommending to change
41399         XGETTEXT_OPTIONS.
41400         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41401
41402 2008-01-13  Colin Watson  <cjwatson@debian.org>
41403
41404         * modules/strsignal-tests: New file.
41405         * tests/test-strsignal.c: New file.
41406
41407         * lib/strsignal.c: New file, from glibc with modifications.
41408         * lib/siglist.h: New file, from glibc with modifications.
41409         * lib/string.in.h (strsignal): New declaration.
41410         * m4/strsignal.m4: New file.
41411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41412         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41413         * modules/strsignal: New file.
41414         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41415         HAVE_DECL_STRSIGNAL.
41416
41417 2008-01-13  Bruno Haible  <bruno@clisp.org>
41418
41419         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41420         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41421         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41422         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41423
41424 2008-01-13  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41427         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41428         * lib/argp.h (__attribute__): Likewise.
41429         * lib/c-stack.c (__attribute__): Likewise.
41430         * lib/error.h (__attribute__): Likewise.
41431         * lib/fts.c (__attribute__): Likewise.
41432         * lib/openat.h (__attribute__): Likewise.
41433         * lib/stdio.in.h (__attribute__): Likewise.
41434         * lib/string.in.h (__attribute__): Likewise.
41435         * lib/utimens.c (__attribute__): Likewise.
41436         * lib/vasnprintf.h (__attribute__): Likewise.
41437         * lib/xalloc.h (__attribute__): Likewise.
41438         * lib/xprintf.h (__attribute__): Likewise.
41439         * lib/xstrtol.h (__attribute__): Likewise.
41440         * lib/xvasprintf.h (__attribute__): Likewise.
41441
41442 2008-01-12  Bruno Haible  <bruno@clisp.org>
41443
41444         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41445         * doc/glibc-headers/a.out.texi: New file.
41446         * doc/glibc-headers/aliases.texi: New file.
41447         * doc/glibc-headers/alloca.texi: New file.
41448         * doc/glibc-headers/ar.texi: New file.
41449         * doc/glibc-headers/argp.texi: New file.
41450         * doc/glibc-headers/argz.texi: New file.
41451         * doc/glibc-headers/byteswap.texi: New file.
41452         * doc/glibc-headers/crypt.texi: New file.
41453         * doc/glibc-headers/endian.texi: New file.
41454         * doc/glibc-headers/envz.texi: New file.
41455         * doc/glibc-headers/err.texi: New file.
41456         * doc/glibc-headers/error.texi: New file.
41457         * doc/glibc-headers/execinfo.texi: New file.
41458         * doc/glibc-headers/fpu_control.texi: New file.
41459         * doc/glibc-headers/fstab.texi: New file.
41460         * doc/glibc-headers/fts.texi: New file.
41461         * doc/glibc-headers/getopt.texi: New file.
41462         * doc/glibc-headers/ieee754.texi: New file.
41463         * doc/glibc-headers/ifaddrs.texi: New file.
41464         * doc/glibc-headers/libintl.texi: New file.
41465         * doc/glibc-headers/mcheck.texi: New file.
41466         * doc/glibc-headers/mntent.texi: New file.
41467         * doc/glibc-headers/obstack.texi: New file.
41468         * doc/glibc-headers/paths.texi: New file.
41469         * doc/glibc-headers/printf.texi: New file.
41470         * doc/glibc-headers/pty.texi: New file.
41471         * doc/glibc-headers/resolv.texi: New file.
41472         * doc/glibc-headers/shadow.texi: New file.
41473         * doc/glibc-headers/sysexits.texi: New file.
41474         * doc/glibc-headers/ttyent.texi: New file.
41475
41476 2008-01-12  Jim Meyering  <meyering@redhat.com>
41477
41478         announce-gen: emit Gnulib's git-based version string.
41479         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41480         New option --gnulib-version=V, where V is expected to be
41481         the output of running git describe in the gnulib directory.
41482         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41483         not useful, and plan to stop publishing an xdelta file with each
41484         coreutils release.
41485
41486         * build-aux/announce-gen: Also check for lzma-compressed files.
41487
41488 2008-01-11  Bruno Haible  <bruno@clisp.org>
41489
41490         * tests/test-memmem.c (main): Increase maximum allowed time.
41491         * tests/test-strstr.c (main): Likewise.
41492
41493 2008-01-11  Bruno Haible  <bruno@clisp.org>
41494
41495         * doc/functions/memmem.texi: Add more precisions about platforms.
41496         * doc/functions/strstr.texi: Likewise.
41497
41498 2008-01-10  Eric Blake  <ebb9@byu.net>
41499
41500         * m4/strstr.m4: Delete cruft from copy-n-paste.
41501         Reported by Bruno Haible.
41502
41503 2008-01-10  Bruno Haible  <bruno@clisp.org>
41504
41505         Make c-strstr rely on strstr.
41506         * lib/c-strstr.c: Don't include str-kmp.h.
41507         (c_strstr): Define in terms of strstr.
41508         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41509         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41510
41511 2008-01-10  Bruno Haible  <bruno@clisp.org>
41512
41513         * doc/gnulib.texi (String Functions in C Locale): New section.
41514         * doc/c-ctype.texi: New file.
41515         * doc/c-strcase.texi: New file.
41516         * doc/c-strcaseeq.texi: New file.
41517         * doc/c-strcasestr.texi: New file.
41518         * doc/c-strstr.texi: New file.
41519         * doc/c-strtod.texi: New file.
41520         * doc/c-strtold.texi: New file.
41521
41522 2008-01-10  Eric Blake  <ebb9@byu.net>
41523
41524         * lib/relocatable.h: Fix a comment.
41525
41526 2008-01-10  Eric Blake  <ebb9@byu.net>
41527
41528         Share two-way algorithm.
41529         * lib/str-two-way.h: New file, merged from...
41530         * lib/memmem.c: ...here...
41531         * lib/strstr.c: ...and here.
41532         * modules/memmem (Files): Use it.
41533         * modules/strstr (Files): Likewise.
41534
41535         Avoid quadratic strstr implementations.
41536         * lib/strstr.c: New file.
41537         * m4/strstr.m4: Likewise.
41538         * modules/strstr: Likewise.
41539         * modules/strstr-tests: Likewise.
41540         * tests/test-strstr.c: Likewise.
41541         * lib/string.in.h (rpl_strstr): Declare.
41542         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41544         * modules/string (Makefile.am): Likewise.
41545         * MODULES.html.sh (string handling): Mention new module.
41546         * doc/functions/strstr.texi (strstr): Document the bug.
41547
41548 2008-01-10  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/relocatable.h (relocate): State whether result is freshly
41551         allocated or not.
41552         * lib/relocatable.c (relocate): Return a freshly allocated string
41553         instead of a pointer to a privately held string.
41554         Reported by Sylvain Beucler <beuc@gnu.org>.
41555
41556 2008-01-10  Colin Watson  <cjwatson@debian.org>
41557
41558         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41559         s/S_ISNLK/S_ISLNK/.
41560
41561 2008-01-09  Bruno Haible  <bruno@clisp.org>
41562
41563         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41564         and other files.
41565         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41566         if it's only a guess.
41567         * modules/memmem: Simplify by depending on memmem-simple.
41568
41569 2008-01-09  Bruno Haible  <bruno@clisp.org>
41570
41571         Work around OpenBSD 4.0 tdelete() bug.
41572         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41573         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41574         macros and don't redefine the enum values.
41575         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41576         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41577         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41578
41579 2008-01-09  Bruno Haible  <bruno@clisp.org>
41580
41581         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41582         (main): Don't perform the tests if setlocale did not install a UTF-8
41583         locale. Needed on OpenBSD 4.0.
41584         * modules/wcwidth-tests (Depends-on): Add localcharset.
41585
41586 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41587
41588         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41589         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41590         * NEWS: announce this.
41591         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41592
41593 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41594         and Eric Blake  <ebb9@byu.net>
41595
41596         Add memmem-simple module.
41597         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41598         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41599         * modules/memmem-simple: New file.
41600         * modules/memmem (Description): Tweak.
41601         * MODULES.html.sh (string handling): Mention new module.
41602         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41603         addressed by memmem-simple.
41604         * NEWS: Document the difference.
41605
41606 2008-01-09  Eric Blake  <ebb9@byu.net>
41607
41608         Give gcc some memmem optimization hints.
41609         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41610         (strcasestr): Declare as pure.
41611         * modules/memmem (Maintainer): Claim my implementation.
41612
41613 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41614
41615         Support AIX 6.1 and higher.
41616         * build-aux/config.libpath: Likewise.
41617         * build-aux/config.rpath: Likewise.
41618
41619 2008-01-08  Jim Meyering  <meyering@redhat.com>
41620             Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41623         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41624         Reported by Peter Fales in
41625         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41626
41627 2008-01-08  Bruno Haible  <bruno@clisp.org>
41628
41629         * modules/unictype/category-of (Depends-on): Add
41630         unictype/category-none.
41631         * modules/unictype/category-and-tests (Depends-on): Add
41632         unictype/category-{L,N,Lu,Nd}.
41633         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41634         * modules/unictype/category-or-tests (Depends-on): Add
41635         unictype/category-{L,N}.
41636         * modules/unictype/category-name-tests (Depends-on): Add
41637         unictype/category-{Z,Nl}.
41638         Reported by Simon Josefsson.
41639
41640 2008-01-08  Bruno Haible  <bruno@clisp.org>
41641
41642         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41643         convention better.
41644         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41645         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41646         Reported by Peter Miller <millerp@canb.auug.org.au>.
41647
41648 2008-01-08  Eric Blake  <ebb9@byu.net>
41649
41650         Rewrite memmem to guarantee linear complexity without malloc.
41651         * lib/memmem.c (memmem): Use Two-Way rather than
41652         Knuth-Morris-Pratt, to allow O(1) space usage.
41653         (critical_factorization, two_way_short_needle)
41654         (two_way_long_needle): New functions.
41655         (knuth_morris_pratt): Delete.
41656         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41657         Add stdint.
41658         * tests/test-memmem.c (main): Add tests for periodic needle and
41659         sublinear performance.
41660         * doc/functions/memmem.texi (memmem): Document other deficiencies
41661         in cygwin and older glibc.
41662
41663 2008-01-08  Bruno Haible  <bruno@clisp.org>
41664
41665         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41666         augmentation.
41667
41668 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41669
41670         Add a configure time option: --disable-acl.
41671         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41672         AC_ARG_ENABLE(acl).
41673
41674 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41675
41676         * tests/test-localename.c: Don't include obsolete "setenv.h".
41677
41678         * modules/localename-tests (Depends-on): Need unsetenv.
41679
41680 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41681
41682         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41683
41684 2008-01-06  Colin Watson  <cjwatson@debian.org>
41685
41686         * users.txt: Add man-db.
41687
41688 2008-01-07  Bruno Haible  <bruno@clisp.org>
41689
41690         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41691         previous section name.
41692
41693 2008-01-07  Bruno Haible  <bruno@clisp.org>
41694
41695         * lib/progname.c (set_program_name): Don't strip off a leading
41696         "lt-" prefix outside a .libs directory.
41697         Suggested by Paul Eggert.
41698
41699 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41700             Bruno Haible  <bruno@clisp.org>
41701
41702         Improve memory cleanup in 'relocatable' module.
41703         * lib/relocatable.h (compute_curr_prefix): Change return type to
41704         'char *'.
41705         * lib/relocatable.c (compute_curr_prefix): Change return type to
41706         'char *'. Free curr_installdir after use.
41707         (relocate): Free curr_prefix_better after use.
41708         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41709
41710 2008-01-01  Bruno Haible  <bruno@clisp.org>
41711
41712         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41713         failure on older glibc systems.
41714         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41715
41716 2008-01-05  Eric Blake  <ebb9@byu.net>
41717
41718         Avoid quadratic system memmem.
41719         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41720         Reported by Ralf Wildenhues.
41721
41722         Fix memmem test for mingw.
41723         * modules/memmem-tests (configure.ac): Check for alarm.
41724         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41725         it.
41726         * doc/functions/memmem.texi: New file.
41727         * doc/gnulib.texi (Function Substitutes): Add memmem.
41728         Reported by Bruno Haible.
41729
41730 2008-01-04  Bruno Haible  <bruno@clisp.org>
41731
41732         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41733         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41734         gl_HEADER_STRING_H_DEFAULTS.
41735
41736 2008-01-04  Eric Blake  <ebb9@byu.net>
41737
41738         Shorten duration of memmem test.
41739         * tests/test-memmem.c (main): Use alarm to declare failure if test
41740         is taking too long.
41741         Reported by Ralf Wildenhues.
41742
41743 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41744
41745         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41746         string, needed by strerror.
41747
41748 2008-01-03  Colin Watson  <cjwatson@debian.org>
41749             Bruno Haible  <bruno@clisp.org>
41750
41751         * doc/gnulib-tool.texi (Localization): New section.
41752
41753 2008-01-02  Bruno Haible  <bruno@clisp.org>
41754
41755         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41756         variables to 'unsigned char *' type.
41757         Reported by Paul Eggert.
41758
41759 2008-01-02  Jim Meyering  <jim@meyering.net>
41760
41761         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41762
41763 2007-12-31  Jim Meyering  <jim@meyering.net>
41764
41765         Avoid use of private FTS type name.
41766         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41767
41768 2007-12-30  Karl Berry  <karl@gnu.org>
41769
41770         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41771         work around defect in Texinfo and/or the standalone Info browser.
41772
41773 2007-12-30  Bruno Haible  <bruno@clisp.org>
41774
41775         Unify 5 copies of the KMP code.
41776         * lib/str-kmp.h: New file.
41777         * lib/c-strcasestr.c: Include str-kmp.h.
41778         (knuth_morris_pratt): Remove function.
41779         (c_strcasestr): Update.
41780         * lib/c-strstr.c: Include str-kmp.h.
41781         (knuth_morris_pratt): Remove function.
41782         (c_strcasestr): Update.
41783         * lib/mbscasestr.c: Include str-kmp.h.
41784         (knuth_morris_pratt_unibyte): Remove function.
41785         * lib/mbsstr.c: Include str-kmp.h.
41786         (knuth_morris_pratt_unibyte): Remove function.
41787         * lib/strcasestr.c: Include str-kmp.h.
41788         (knuth_morris_pratt): Remove function.
41789         (strcasestr): Update.
41790         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41791         * modules/c-strstr (Files): Likewise.
41792         * modules/mbscasestr (Files): Likewise.
41793         * modules/mbsstr (Files): Likewise.
41794         * modules/strcasestr (Files): Likewise.
41795         Suggested by Paul Eggert.
41796
41797 2007-12-30  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41800         defined.
41801
41802 2007-12-30  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/xmalloca.h: Include xalloc.h.
41805         (xnmalloca): New macro.
41806
41807 2007-12-30  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/malloca.h (nmalloca): New macro.
41810         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41811         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41812         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41813         knuth_morris_pratt_multibyte): Likewise.
41814         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41815         knuth_morris_pratt_multibyte): Likewise.
41816         * lib/memmem.c (knuth_morris_pratt): Likewise.
41817         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41818
41819 2007-12-25  Bruno Haible  <bruno@clisp.org>
41820
41821         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41822         * lib/glob.c: Don't include openat.h.
41823         (link_exists2_p): Add back the code that deals with the
41824         !GLOB_ALTDIRFUNC case.
41825         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41826         let it do the filename concatenation.
41827         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41828         * modules/glob (Depends-on): Remove openat.
41829
41830 2007-12-31  Bruno Haible  <bruno@clisp.org>
41831
41832         * modules/dirfd (License): Change to LGPLv2+.
41833         Approved by Jim Meyering.
41834
41835 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41836
41837         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41838         when multiplying M by sizeof (size_t).
41839
41840 2007-12-10  Martin Lambers  <marlam@marlam.de>
41841
41842         Override getpagesize on mingw.
41843         * lib/getpagesize.c: New file.
41844         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41845         * modules/getpagesize (Files): Add lib/getpagesize.c.
41846         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41848         REPLACE_GETPAGESIZE.
41849         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41850
41851 2007-12-25  Bruno Haible  <bruno@clisp.org>
41852
41853         * modules/localcharset (Notice): New field.
41854         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41855         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41856
41857 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41858             Bruno Haible  <bruno@clisp.org>
41859
41860         Avoid using the syntax symbol() in formatted documentation.
41861         * MODULES.html.sh (func_module): When replacing symbol() with a
41862         hyperlink, remove the parentheses. Show an error if some remain.
41863         Recognize and render the '...' syntax.
41864         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41865         Rework. Add paragraph about GCC's inlining.
41866         * doc/alloca.texi: Likewise.
41867         * doc/error.texi: Remove parentheses from symbol reference.
41868         * doc/gnulib-intro.texi: Likewise.
41869         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41870         * modules/fnmatch (Description): Reword to say "the ... function".
41871         * modules/full-read (Description): Likewise.
41872         * modules/full-write (Description): Likewise.
41873         * modules/safe-read (Description): Likewise.
41874         * modules/safe-write (Description): Likewise.
41875         * modules/strchrnul (Description): Likewise.
41876         * modules/trim (Description): Likewise.
41877         * modules/error (Description): Remove parentheses from symbol
41878         references.
41879         * modules/verror (Description): Likewise.
41880         Reported by Karl Berry.
41881
41882 2007-12-25  Bruno Haible  <bruno@clisp.org>
41883
41884         Fixup after 2007-10-16 commit.
41885         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41886
41887 2007-12-24  Bruno Haible  <bruno@clisp.org>
41888
41889         Make --enable-relocatable work with DESTDIR.
41890         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41891         to compute installdir from destprog.
41892         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41893         also set the RELOC_DESTDIR variable.
41894         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41895
41896 2007-12-24  Bruno Haible  <bruno@clisp.org>
41897
41898         Fix link error due to xalloc_die().
41899         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41900         of xreadlink.
41901         * lib/relocwrapper.c: Update comments.
41902         * build-aux/install-reloc: Remove xreadlink.c from file list.
41903         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41904         xreadlink.c.
41905         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41906
41907 2007-12-24  Bruno Haible  <bruno@clisp.org>
41908
41909         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41910         * lib/setenv.h: Remove file.
41911         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41912         lib/setenv.h.
41913         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41914         (Depends-on): Add stdlib.
41915         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41916         gl_FUNC_UNSETENV.
41917         (Include): Replace setenv.h with <stdlib.h>.
41918         * modules/unsetenv: New file.
41919         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41920         * lib/unsetenv.c: Include <stdlib.h> first.
41921         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41922         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41923         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41924         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41925         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41926         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41928         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41929         * doc/functions/unsetenv.texi: Update.
41930         * modules/xsetenv (Depends-on): Add unsetenv.
41931         * modules/getdate (Depends-on): Likewise.
41932         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41933         * lib/xsetenv.c: Don't include setenv.h.
41934         * lib/getdate.y: Likewise.
41935         * lib/relocwrapper.c: Likewise.
41936         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41937         (Depends-on): Add stdlib.
41938         * NEWS: Mention the changes.
41939         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41940
41941 2007-12-23  Bruno Haible  <bruno@clisp.org>
41942
41943         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41944         indentation.
41945
41946 2007-12-23  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/c-strcasestr.c: Add more comments.
41949         * lib/c-strstr.c: Likewise.
41950         * lib/mbscasestr.c: Likewise.
41951         * lib/mbsstr.c: Likewise.
41952         * lib/strcasestr.c: Likewise.
41953         * lib/memmem.c: Likewise.
41954
41955 2007-12-23  Bruno Haible  <bruno@clisp.org>
41956
41957         * tests/test-memmem.c: Include <string.h> first.
41958
41959 2007-12-22  Bruno Haible  <bruno@clisp.org>
41960
41961         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41962         the contents of $testsbase.
41963         Reported by Ralf Wildenhues.
41964
41965 2007-12-22  Bruno Haible  <bruno@clisp.org>
41966
41967         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41968         two variables local_ldadd_before, local_ldadd_last.
41969
41970 2007-12-20  Eric Blake  <ebb9@byu.net>
41971
41972         Work around circular library issue when cross-compiling.
41973         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41974         that progname.o does not need to pull in rpl_memcmp.
41975
41976 2007-12-19  Eric Blake  <ebb9@byu.net>
41977
41978         Fix memmem to avoid O(n^2) worst-case complexity.
41979         * lib/memmem.c (knuth_morris_pratt): New function.
41980         (memmem): Use it if first few naive iterations fail.
41981         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41982         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41983         * modules/memchr (License): Likewise.
41984         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41985         malloca.
41986         * tests/test-memmem.c: Rewrite, borrowing ideas from
41987         test-mbsstr1.c; the old version wouldn't even compile!
41988         * modules/memmem-tests: New file.
41989         * lib/string.in.h (rpl_memmem): Add declaration.
41990         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41992         REPLACE_MEMMEM.
41993
41994 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41995
41996         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41997         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41998         before any system include files, and undef after them all.  This
41999         should fix a problem on VMS reported by John E. Malmberg in
42000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42001
42002 2007-12-17  Eric Blake  <ebb9@byu.net>
42003
42004         Revert addition of verify, for BSD/OS.
42005         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42006         can't handle large files, for the sake of obsolete platforms.
42007         * modules/fseeko (Depends-on): Remove verify.
42008         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42009         * doc/functions/ftello.texi (ftello): Likewise.
42010         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42011         Reported by Larry Jones.
42012
42013 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42014
42015         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42016         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42017
42018 2007-12-17  Jim Meyering  <meyering@redhat.com>
42019
42020         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42021         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42022         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42023         * modules/getcwd (Depends-on): Add openat.
42024         Reported by Petr Salinger.
42025
42026 2007-12-17  Bruno Haible  <bruno@clisp.org>
42027
42028         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42029         avoid a segmentation fault of the configure test on x86_64 systems.
42030
42031 2007-12-15  Jim Meyering  <meyering@redhat.com>
42032
42033         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42034
42035 2007-12-13  Eric Blake  <ebb9@byu.net>
42036
42037         Another fseek test.
42038         * tests/test-fseek.c (main): Also test ungetc handling.
42039         * tests/test-fseeko.c (main): Likewise.
42040         * modules/fseeko (Depends-on): Add verify.
42041         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42042         large.
42043         Reported by Larry Jones.
42044
42045         Fix fseeko on mingw.
42046         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42047         seek.
42048
42049         Beef up fseek tests.
42050         * tests/test-fseek.c (main): Also test eof handling.
42051         * tests/test-fseeko.c (main): Likewise.
42052         Reported by Larry Jones.
42053
42054 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42055
42056         Fix fseeko on BSD-based platforms.
42057         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42058         successful seek.
42059
42060 2007-12-12  Eric Blake  <ebb9@byu.net>
42061
42062         Allow circular dependency of separate libtests.a
42063         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42064         when use_libtests.
42065
42066 2007-12-11  Eric Blake  <ebb9@byu.net>
42067
42068         Fix bug with -0.0L in previous patch.
42069         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42070         * tests/test-isnan.c (main): Also test on zeroes.
42071         * tests/test-isnanf.c (main): Likewise.
42072         * tests/test-isnanl.h (main): Likewise.
42073
42074         Detect pseudo-denormals on x86 even when cross-compiling.
42075         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42076         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42077         invalid bit patterns that happen to satisfy ==.
42078
42079         Avoid link failures with separate libtests.a.
42080         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42081         last, to satisfy circular dependencies.
42082
42083 2007-12-11  Eric Blake  <ebb9@byu.net>
42084         and Bruno Haible  <bruno@clisp.org>
42085
42086         Fix OpenBSD 4.0 <float.h> handling of long double.
42087         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42088         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42089         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42090
42091 2007-12-11  Jim Meyering  <meyering@redhat.com>
42092
42093         * users.txt: Add libvirt.
42094
42095         Support versions of autoconf prior to 2.59c.
42096         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42097         if it is not already defined.
42098
42099 2007-12-09  Bruno Haible  <bruno@clisp.org>
42100
42101         Let 'gnulib-tool --import' collect sources needed for the tests in
42102         tests/ rather than in lib/.
42103         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42104         argument. If true, add rules to generate libtests.a, and put libtests.a
42105         into $(LDADD). Consider source files in subdirectories and set
42106         uses_subdirs.
42107         (func_emit_initmacro_start, func_emit_initmacro_end,
42108         func_emit_initmacro_done): Pass all arguments explicitly.
42109         (func_import): Determine two module lists main_modules,
42110         testsrelated_modules. Determine use_libtests. Determine two variables
42111         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42112         instead of just sed_transform_lib_file. Determine two variables
42113         main_files and testsrelated_files. Compute 'files' as the union of
42114         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42115         func_add_or_update. In the generated gnulib-comp.m4, collect the
42116         object files for tests/ in different variables than those for lib/.
42117         Substitute LIBTESTS_LIBDEPS.
42118         (func_create_testdir): Combine the uses_subdirs results from
42119         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42120
42121 2007-12-09  Bruno Haible  <bruno@clisp.org>
42122
42123         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42124         the build-aux directory.
42125
42126 2007-12-09  Bruno Haible  <bruno@clisp.org>
42127
42128         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42129         introduced on 2006-09-09.
42130
42131 2007-12-07  Jim Meyering  <meyering@redhat.com>
42132
42133         Let these macros work also with autoconf-2.59.
42134         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42135         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42136         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42137
42138 2007-12-06  Jim Meyering  <meyering@redhat.com>
42139
42140         Avoid a configure-time syntax error in gl_FUNC_ACL.
42141         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42142         function in each branch, before testing the cache variable.
42143
42144 2007-12-04  Eric Blake  <ebb9@byu.net>
42145
42146         Make scripts executable.
42147         * build-aux/config.guess: Add execute permissions.
42148         * build-aux/config.sub: Likewise.
42149         * build-aux/gendocs.sh: Likewise.
42150
42151         Fix frexp on mingw.
42152         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42153         cross-compiling.
42154         * doc/functions/frexp.texi (frexp): Document the bug.
42155
42156         Make cygwin fseeko check more reliable.
42157         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42158         version numbers, rather than unrelated feature check.
42159         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42160         * doc/functions/ftello.texi (ftello): Likewise.
42161         Reported by Bruno Haible.
42162
42163         * m4/strerror.m4: Bump version number.
42164
42165 2007-12-03  Bruno Haible  <bruno@clisp.org>
42166
42167         * doc/functions/mprotect.texi: Mention the mingw problem.
42168
42169 2007-12-03  Eric Blake  <ebb9@byu.net>
42170
42171         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42172         REPLACE_STRERROR is initialized before this macro.
42173
42174 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42175
42176         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42177         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42178         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42179         put -lsec in even for programs other than 'ls'.  This fixes a problem
42180         for gettext reported by Bruno Haible in
42181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42182         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42183         Add support for Solaris 10.  This isn't efficient, but should get the
42184         job done for now.
42185
42186 2007-12-03  James Youngman  <jay@gnu.org>
42187
42188         * doc/regexprops-generic.texi: change "an close-group" to "a
42189         close-group" and "illegal" to "not allowed".
42190
42191 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42192
42193         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42194         pr_byname.h. Needed for the rare case when the maintainer has done
42195         "make maintainer-clean" in the source directory and then attempts a
42196         build outside the source directory.
42197         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42198         scripts_byname.h.
42199
42200 2007-12-02  Martin Lambers <marlam@marlam.de>
42201             Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/getpagesize.h: Remove file.
42204         * lib/unistd.in.h: Include declaration of getpagesize here.
42205         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42206         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42207         HAVE_SYS_PARAM_H.
42208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42209         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42210         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42211         (Depends-on): Add unistd.
42212         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42213         (Include): Use <unistd.h> instead of getpagesize.h.
42214         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42215         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42216         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42217         gl_GETPAGESIZE invocation, already handled by module dependency.
42218         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42219
42220 2007-12-02  Bruno Haible  <bruno@clisp.org>
42221
42222         * modules/strings-tests: New file.
42223         * tests/test-strings.c: New file.
42224
42225         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42226         * lib/strings.in.h: New file.
42227         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42228         * m4/strings_h.m4: New file.
42229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42230         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42231         * modules/strings: New file.
42232         * modules/string (Makefile.am): Update.
42233         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42234         Reported by Karl Berry.
42235
42236 2007-12-01  Eric Blake  <ebb9@byu.net>
42237
42238         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42239         accomodate fix in cygwin 1.5.25.
42240
42241 2007-12-01  Jim Meyering  <meyering@redhat.com>
42242
42243         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42244         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42245         that would inhibit utf8-optimization of a regexp containing line-
42246         or buffer-anchors, e.g., `^', `$'.
42247
42248 2007-11-30  Bruno Haible  <bruno@clisp.org>
42249
42250         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42251         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42252         glthread_recursive_lock_init.
42253         * lib/lock.c (glthread_recursive_lock_init)
42254         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42255         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42256
42257 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42258
42259         New function qset_acl, like set_acl but with syscall semantics.
42260         * lib/acl.h (qset_acl): New decl.
42261         * lib/acl.c (qset_acl): New function.
42262         (set_acl): Use new function.  Use more-consistent diagnostics.
42263
42264 2007-11-28  Jim Meyering  <meyering@redhat.com>
42265
42266         * modules/physmem (License): Change from GPL to LGPLv2+.
42267
42268 2007-11-26  Bruno Haible  <bruno@clisp.org>
42269
42270         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42271         'long double' type has excess precision.
42272         Reported by Jim Meyering in
42273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42274
42275 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42276
42277         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42278         Sync from <http://gnu.org/licenses>.
42279         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42280         with license text from same location.
42281         * doc/maintain.texi, doc/standards.texi:  Sync from
42282         <http://savannah.gnu.org/projects/gnustandards>.
42283
42284 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
42285         and Jim Meyering  <meyering@redhat.com>
42286
42287         Adjust getdate' grammar to accept a slightly more regular language.
42288         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42289         Before, the former was rejected.
42290         * lib/getdate.y (digits_to_date_time): New function, factored
42291         out of ...
42292         (number): ...here.  Just call digits_to_date_time.
42293         (hybrid): New non-terminal to handle an <unsigned number,
42294         signed relative offset> sequence consistently.
42295
42296 2007-11-18  Jim Meyering  <meyering@redhat.com>
42297
42298         Pull my changes from coreutils:
42299         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42300         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42301         use of $gnulib_tool_option_extras, so that it's separated from the
42302         preceding argument.
42303
42304         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42305         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42306         parent destination directories before copying a file into place.
42307
42308 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42309
42310         bootstrap: work also with 4-argument variant of AC_INIT
42311         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42312
42313 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42314
42315         Port test-getaddrinfo to Solaris.
42316         Problem reported by Bruno Haible in
42317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42318         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42319         explanation of setting 'hints'.
42320         Don't reject an implementation merely because it returns EAI_SERVICE.
42321         (EAI_SERVICE): Define to 0 if not defined.
42322
42323 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42324
42325         The license of gnu-make and posix-shell is now "GPLed build tool".
42326         * modules/gnu-make (License): Likewise.
42327         * modules/posix-shell (License): Likewise.
42328
42329         New module posix-shell, for determining a POSIX shell
42330         or perhaps something that is close enough to a POSIX shell.
42331         * m4/posix-shell.m4: New file.
42332         * modules/posix-shell: New file.
42333
42334         * MODULES.html.sh: Mention new module.
42335
42336         New module gnu-make, for determining whether we're using GNU Make.
42337         * m4/gnu-make.m4: New file.
42338         * modules/gnu-make: New file.
42339         * MODULES.html.sh: Mention new module.
42340
42341 2007-11-14  Jim Meyering  <meyering@redhat.com>
42342
42343         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42344         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42345         use this macro to create a function _definition_.
42346         Remove useless "#undef ARGMATCH_DIE".
42347
42348 2007-11-14  Bruno Haible  <bruno@clisp.org>
42349
42350         * lib/config.charset: Update for OpenBSD 4.1.
42351         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42352
42353 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42354
42355         Document 64-bit #if problems in stdint.texi.
42356         * doc/headers/stdint.texi (stdint.h): Mention problems with
42357         64-bit-#if, and how to work around them.
42358
42359         Don't insist on 'long long int' support in the preprocessor.  It
42360         breaks too many things.  For example, PRIdMAX still uses a 'long
42361         long int' format with the latest Sun compiler, even though
42362         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42363         preprocessor problem.  This causes the latest coreutils to dump
42364         core on Solaris 10 sparc with the Sun C compiler.
42365         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42366         the troublesome expressions at configure-time, not at #if-time.
42367         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42368         preprocessor.
42369         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42370         compile-time C checks, done at 'configure'-time.
42371         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42372         * modules/inttypes (Makefile): Substitute the new symbols that
42373         gl_INTTYPES_H now generates.
42374         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42375
42376 2007-11-12  Bruno Haible  <bruno@clisp.org>
42377
42378         Tests for Unicode character classification functions.
42379
42380         * modules/unictype/bidicategory-byname-tests: New file.
42381         * modules/unictype/bidicategory-name-tests: New file.
42382         * modules/unictype/bidicategory-of-tests: New file.
42383         * modules/unictype/bidicategory-test-tests: New file.
42384         * modules/unictype/block-list-tests: New file.
42385         * modules/unictype/block-of-tests: New file.
42386         * modules/unictype/block-test-tests: New file.
42387         * modules/unictype/category-C-tests: New file.
42388         * modules/unictype/category-Cc-tests: New file.
42389         * modules/unictype/category-Cf-tests: New file.
42390         * modules/unictype/category-Cn-tests: New file.
42391         * modules/unictype/category-Co-tests: New file.
42392         * modules/unictype/category-Cs-tests: New file.
42393         * modules/unictype/category-L-tests: New file.
42394         * modules/unictype/category-Ll-tests: New file.
42395         * modules/unictype/category-Lm-tests: New file.
42396         * modules/unictype/category-Lo-tests: New file.
42397         * modules/unictype/category-Lt-tests: New file.
42398         * modules/unictype/category-Lu-tests: New file.
42399         * modules/unictype/category-M-tests: New file.
42400         * modules/unictype/category-Mc-tests: New file.
42401         * modules/unictype/category-Me-tests: New file.
42402         * modules/unictype/category-Mn-tests: New file.
42403         * modules/unictype/category-N-tests: New file.
42404         * modules/unictype/category-Nd-tests: New file.
42405         * modules/unictype/category-Nl-tests: New file.
42406         * modules/unictype/category-No-tests: New file.
42407         * modules/unictype/category-P-tests: New file.
42408         * modules/unictype/category-Pc-tests: New file.
42409         * modules/unictype/category-Pd-tests: New file.
42410         * modules/unictype/category-Pe-tests: New file.
42411         * modules/unictype/category-Pf-tests: New file.
42412         * modules/unictype/category-Pi-tests: New file.
42413         * modules/unictype/category-Po-tests: New file.
42414         * modules/unictype/category-Ps-tests: New file.
42415         * modules/unictype/category-S-tests: New file.
42416         * modules/unictype/category-Sc-tests: New file.
42417         * modules/unictype/category-Sk-tests: New file.
42418         * modules/unictype/category-Sm-tests: New file.
42419         * modules/unictype/category-So-tests: New file.
42420         * modules/unictype/category-Z-tests: New file.
42421         * modules/unictype/category-Zl-tests: New file.
42422         * modules/unictype/category-Zp-tests: New file.
42423         * modules/unictype/category-Zs-tests: New file.
42424         * modules/unictype/category-and-not-tests: New file.
42425         * modules/unictype/category-and-tests: New file.
42426         * modules/unictype/category-byname-tests: New file.
42427         * modules/unictype/category-name-tests: New file.
42428         * modules/unictype/category-none-tests: New file.
42429         * modules/unictype/category-of-tests: New file.
42430         * modules/unictype/category-or-tests: New file.
42431         * modules/unictype/category-test-withtable-tests: New file.
42432         * modules/unictype/combining-class-tests: New file.
42433         * modules/unictype/ctype-alnum-tests: New file.
42434         * modules/unictype/ctype-alpha-tests: New file.
42435         * modules/unictype/ctype-blank-tests: New file.
42436         * modules/unictype/ctype-cntrl-tests: New file.
42437         * modules/unictype/ctype-digit-tests: New file.
42438         * modules/unictype/ctype-graph-tests: New file.
42439         * modules/unictype/ctype-lower-tests: New file.
42440         * modules/unictype/ctype-print-tests: New file.
42441         * modules/unictype/ctype-punct-tests: New file.
42442         * modules/unictype/ctype-space-tests: New file.
42443         * modules/unictype/ctype-upper-tests: New file.
42444         * modules/unictype/ctype-xdigit-tests: New file.
42445         * modules/unictype/decimal-digit-tests: New file.
42446         * modules/unictype/digit-tests: New file.
42447         * modules/unictype/mirror-tests: New file.
42448         * modules/unictype/numeric-tests: New file.
42449         * modules/unictype/property-alphabetic-tests: New file.
42450         * modules/unictype/property-ascii-hex-digit-tests: New file.
42451         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42452         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42453         * modules/unictype/property-bidi-block-separator-tests: New file.
42454         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42455         * modules/unictype/property-bidi-common-separator-tests: New file.
42456         * modules/unictype/property-bidi-control-tests: New file.
42457         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42458         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42459         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42460         * modules/unictype/property-bidi-european-digit-tests: New file.
42461         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42462         * modules/unictype/property-bidi-left-to-right-tests: New file.
42463         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42464         * modules/unictype/property-bidi-other-neutral-tests: New file.
42465         * modules/unictype/property-bidi-pdf-tests: New file.
42466         * modules/unictype/property-bidi-segment-separator-tests: New file.
42467         * modules/unictype/property-bidi-whitespace-tests: New file.
42468         * modules/unictype/property-byname-tests: New file.
42469         * modules/unictype/property-combining-tests: New file.
42470         * modules/unictype/property-composite-tests: New file.
42471         * modules/unictype/property-currency-symbol-tests: New file.
42472         * modules/unictype/property-dash-tests: New file.
42473         * modules/unictype/property-decimal-digit-tests: New file.
42474         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42475         * modules/unictype/property-deprecated-tests: New file.
42476         * modules/unictype/property-diacritic-tests: New file.
42477         * modules/unictype/property-extender-tests: New file.
42478         * modules/unictype/property-format-control-tests: New file.
42479         * modules/unictype/property-grapheme-base-tests: New file.
42480         * modules/unictype/property-grapheme-extend-tests: New file.
42481         * modules/unictype/property-grapheme-link-tests: New file.
42482         * modules/unictype/property-hex-digit-tests: New file.
42483         * modules/unictype/property-hyphen-tests: New file.
42484         * modules/unictype/property-id-continue-tests: New file.
42485         * modules/unictype/property-id-start-tests: New file.
42486         * modules/unictype/property-ideographic-tests: New file.
42487         * modules/unictype/property-ids-binary-operator-tests: New file.
42488         * modules/unictype/property-ids-trinary-operator-tests: New file.
42489         * modules/unictype/property-ignorable-control-tests: New file.
42490         * modules/unictype/property-iso-control-tests: New file.
42491         * modules/unictype/property-join-control-tests: New file.
42492         * modules/unictype/property-left-of-pair-tests: New file.
42493         * modules/unictype/property-line-separator-tests: New file.
42494         * modules/unictype/property-logical-order-exception-tests: New file.
42495         * modules/unictype/property-lowercase-tests: New file.
42496         * modules/unictype/property-math-tests: New file.
42497         * modules/unictype/property-non-break-tests: New file.
42498         * modules/unictype/property-not-a-character-tests: New file.
42499         * modules/unictype/property-numeric-tests: New file.
42500         * modules/unictype/property-other-alphabetic-tests: New file.
42501         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42502         * modules/unictype/property-other-grapheme-extend-tests: New file.
42503         * modules/unictype/property-other-id-continue-tests: New file.
42504         * modules/unictype/property-other-id-start-tests: New file.
42505         * modules/unictype/property-other-lowercase-tests: New file.
42506         * modules/unictype/property-other-math-tests: New file.
42507         * modules/unictype/property-other-uppercase-tests: New file.
42508         * modules/unictype/property-paired-punctuation-tests: New file.
42509         * modules/unictype/property-paragraph-separator-tests: New file.
42510         * modules/unictype/property-pattern-syntax-tests: New file.
42511         * modules/unictype/property-pattern-white-space-tests: New file.
42512         * modules/unictype/property-private-use-tests: New file.
42513         * modules/unictype/property-punctuation-tests: New file.
42514         * modules/unictype/property-quotation-mark-tests: New file.
42515         * modules/unictype/property-radical-tests: New file.
42516         * modules/unictype/property-sentence-terminal-tests: New file.
42517         * modules/unictype/property-soft-dotted-tests: New file.
42518         * modules/unictype/property-space-tests: New file.
42519         * modules/unictype/property-terminal-punctuation-tests: New file.
42520         * modules/unictype/property-test-tests: New file.
42521         * modules/unictype/property-titlecase-tests: New file.
42522         * modules/unictype/property-unassigned-code-value-tests: New file.
42523         * modules/unictype/property-unified-ideograph-tests: New file.
42524         * modules/unictype/property-uppercase-tests: New file.
42525         * modules/unictype/property-variation-selector-tests: New file.
42526         * modules/unictype/property-white-space-tests: New file.
42527         * modules/unictype/property-xid-continue-tests: New file.
42528         * modules/unictype/property-xid-start-tests: New file.
42529         * modules/unictype/property-zero-width-tests: New file.
42530         * modules/unictype/scripts-tests: New file.
42531         * modules/unictype/syntax-c-ident-tests: New file.
42532         * modules/unictype/syntax-c-whitespace-tests: New file.
42533         * modules/unictype/syntax-java-ident-tests: New file.
42534         * modules/unictype/syntax-java-whitespace-tests: New file.
42535         * tests/unictype/test-bidi_byname.c: New file.
42536         * tests/unictype/test-bidi_name.c: New file.
42537         * tests/unictype/test-bidi_of.c: New file.
42538         * tests/unictype/test-bidi_test.c: New file.
42539         * tests/unictype/test-block_list.c: New file.
42540         * tests/unictype/test-block_of.c: New file.
42541         * tests/unictype/test-block_test.c: New file.
42542         * tests/unictype/test-categ_and.c: New file.
42543         * tests/unictype/test-categ_and_not.c: New file.
42544         * tests/unictype/test-categ_byname.c: New file.
42545         * tests/unictype/test-categ_name.c: New file.
42546         * tests/unictype/test-categ_none.c: New file.
42547         * tests/unictype/test-categ_of.c: New file.
42548         * tests/unictype/test-categ_or.c: New file.
42549         * tests/unictype/test-categ_test_withtable.c: New file.
42550         * tests/unictype/test-combining.c: New file.
42551         * tests/unictype/test-decdigit.c: New file.
42552         * tests/unictype/test-digit.c: New file.
42553         * tests/unictype/test-mirror.c: New file.
42554         * tests/unictype/test-numeric.c: New file.
42555         * tests/unictype/test-pr_byname.c: New file.
42556         * tests/unictype/test-pr_test.c: New file.
42557         * tests/unictype/test-predicate-part1.h: New file.
42558         * tests/unictype/test-predicate-part2.h: New file.
42559         * tests/unictype/test-scripts.c: New file.
42560         * tests/unictype/test-sy_c_ident.c: New file.
42561         * tests/unictype/test-sy_java_ident.c: New file.
42562
42563         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42564         for Unicode 5.0.0.
42565         * tests/unictype/test-categ_Cc.c: Likewise.
42566         * tests/unictype/test-categ_Cf.c: Likewise.
42567         * tests/unictype/test-categ_Cn.c: Likewise.
42568         * tests/unictype/test-categ_Co.c: Likewise.
42569         * tests/unictype/test-categ_Cs.c: Likewise.
42570         * tests/unictype/test-categ_L.c: Likewise.
42571         * tests/unictype/test-categ_Ll.c: Likewise.
42572         * tests/unictype/test-categ_Lm.c: Likewise.
42573         * tests/unictype/test-categ_Lo.c: Likewise.
42574         * tests/unictype/test-categ_Lt.c: Likewise.
42575         * tests/unictype/test-categ_Lu.c: Likewise.
42576         * tests/unictype/test-categ_M.c: Likewise.
42577         * tests/unictype/test-categ_Mc.c: Likewise.
42578         * tests/unictype/test-categ_Me.c: Likewise.
42579         * tests/unictype/test-categ_Mn.c: Likewise.
42580         * tests/unictype/test-categ_N.c: Likewise.
42581         * tests/unictype/test-categ_Nd.c: Likewise.
42582         * tests/unictype/test-categ_Nl.c: Likewise.
42583         * tests/unictype/test-categ_No.c: Likewise.
42584         * tests/unictype/test-categ_P.c: Likewise.
42585         * tests/unictype/test-categ_Pc.c: Likewise.
42586         * tests/unictype/test-categ_Pd.c: Likewise.
42587         * tests/unictype/test-categ_Pe.c: Likewise.
42588         * tests/unictype/test-categ_Pf.c: Likewise.
42589         * tests/unictype/test-categ_Pi.c: Likewise.
42590         * tests/unictype/test-categ_Po.c: Likewise.
42591         * tests/unictype/test-categ_Ps.c: Likewise.
42592         * tests/unictype/test-categ_S.c: Likewise.
42593         * tests/unictype/test-categ_Sc.c: Likewise.
42594         * tests/unictype/test-categ_Sk.c: Likewise.
42595         * tests/unictype/test-categ_Sm.c: Likewise.
42596         * tests/unictype/test-categ_So.c: Likewise.
42597         * tests/unictype/test-categ_Z.c: Likewise.
42598         * tests/unictype/test-categ_Zl.c: Likewise.
42599         * tests/unictype/test-categ_Zp.c: Likewise.
42600         * tests/unictype/test-categ_Zs.c: Likewise.
42601         * tests/unictype/test-ctype_alnum.c: Likewise.
42602         * tests/unictype/test-ctype_alpha.c: Likewise.
42603         * tests/unictype/test-ctype_blank.c: Likewise.
42604         * tests/unictype/test-ctype_cntrl.c: Likewise.
42605         * tests/unictype/test-ctype_digit.c: Likewise.
42606         * tests/unictype/test-ctype_graph.c: Likewise.
42607         * tests/unictype/test-ctype_lower.c: Likewise.
42608         * tests/unictype/test-ctype_print.c: Likewise.
42609         * tests/unictype/test-ctype_punct.c: Likewise.
42610         * tests/unictype/test-ctype_space.c: Likewise.
42611         * tests/unictype/test-ctype_upper.c: Likewise.
42612         * tests/unictype/test-ctype_xdigit.c: Likewise.
42613         * tests/unictype/test-decdigit.h: Likewise.
42614         * tests/unictype/test-digit.h: Likewise.
42615         * tests/unictype/test-numeric.h: Likewise.
42616         * tests/unictype/test-pr_alphabetic.c: Likewise.
42617         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42618         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42619         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42620         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42621         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42622         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42623         * tests/unictype/test-pr_bidi_control.c: Likewise.
42624         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42625         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42626         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42627         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42628         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42629         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42630         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42631         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42632         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42633         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42634         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42635         * tests/unictype/test-pr_combining.c: Likewise.
42636         * tests/unictype/test-pr_composite.c: Likewise.
42637         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42638         * tests/unictype/test-pr_dash.c: Likewise.
42639         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42640         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42641         * tests/unictype/test-pr_deprecated.c: Likewise.
42642         * tests/unictype/test-pr_diacritic.c: Likewise.
42643         * tests/unictype/test-pr_extender.c: Likewise.
42644         * tests/unictype/test-pr_format_control.c: Likewise.
42645         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42646         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42647         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42648         * tests/unictype/test-pr_hex_digit.c: Likewise.
42649         * tests/unictype/test-pr_hyphen.c: Likewise.
42650         * tests/unictype/test-pr_id_continue.c: Likewise.
42651         * tests/unictype/test-pr_id_start.c: Likewise.
42652         * tests/unictype/test-pr_ideographic.c: Likewise.
42653         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42654         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42655         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42656         * tests/unictype/test-pr_iso_control.c: Likewise.
42657         * tests/unictype/test-pr_join_control.c: Likewise.
42658         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42659         * tests/unictype/test-pr_line_separator.c: Likewise.
42660         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42661         * tests/unictype/test-pr_lowercase.c: Likewise.
42662         * tests/unictype/test-pr_math.c: Likewise.
42663         * tests/unictype/test-pr_non_break.c: Likewise.
42664         * tests/unictype/test-pr_not_a_character.c: Likewise.
42665         * tests/unictype/test-pr_numeric.c: Likewise.
42666         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42667         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42668         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42669         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42670         * tests/unictype/test-pr_other_id_start.c: Likewise.
42671         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42672         * tests/unictype/test-pr_other_math.c: Likewise.
42673         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42674         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42675         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42676         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42677         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42678         * tests/unictype/test-pr_private_use.c: Likewise.
42679         * tests/unictype/test-pr_punctuation.c: Likewise.
42680         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42681         * tests/unictype/test-pr_radical.c: Likewise.
42682         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42683         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42684         * tests/unictype/test-pr_space.c: Likewise.
42685         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42686         * tests/unictype/test-pr_titlecase.c: Likewise.
42687         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42688         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42689         * tests/unictype/test-pr_uppercase.c: Likewise.
42690         * tests/unictype/test-pr_variation_selector.c: Likewise.
42691         * tests/unictype/test-pr_white_space.c: Likewise.
42692         * tests/unictype/test-pr_xid_continue.c: Likewise.
42693         * tests/unictype/test-pr_xid_start.c: Likewise.
42694         * tests/unictype/test-pr_zero_width.c: Likewise.
42695         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42696         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42697
42698 2007-11-12  Bruno Haible  <bruno@clisp.org>
42699
42700         Unicode character classification functions.
42701         * lib/unictype.h: New file.
42702         * modules/unictype/base: New file.
42703         * modules/unictype/category-L: New file.
42704         * modules/unictype/category-Lu: New file.
42705         * modules/unictype/category-Ll: New file.
42706         * modules/unictype/category-Lt: New file.
42707         * modules/unictype/category-Lm: New file.
42708         * modules/unictype/category-Lo: New file.
42709         * modules/unictype/category-M: New file.
42710         * modules/unictype/category-Mn: New file.
42711         * modules/unictype/category-Mc: New file.
42712         * modules/unictype/category-Me: New file.
42713         * modules/unictype/category-N: New file.
42714         * modules/unictype/category-Nd: New file.
42715         * modules/unictype/category-Nl: New file.
42716         * modules/unictype/category-No: New file.
42717         * modules/unictype/category-P: New file.
42718         * modules/unictype/category-Pc: New file.
42719         * modules/unictype/category-Pd: New file.
42720         * modules/unictype/category-Ps: New file.
42721         * modules/unictype/category-Pe: New file.
42722         * modules/unictype/category-Pi: New file.
42723         * modules/unictype/category-Pf: New file.
42724         * modules/unictype/category-Po: New file.
42725         * modules/unictype/category-S: New file.
42726         * modules/unictype/category-Sm: New file.
42727         * modules/unictype/category-Sc: New file.
42728         * modules/unictype/category-Sk: New file.
42729         * modules/unictype/category-So: New file.
42730         * modules/unictype/category-Z: New file.
42731         * modules/unictype/category-Zs: New file.
42732         * modules/unictype/category-Zl: New file.
42733         * modules/unictype/category-Zp: New file.
42734         * modules/unictype/category-C: New file.
42735         * modules/unictype/category-Cc: New file.
42736         * modules/unictype/category-Cf: New file.
42737         * modules/unictype/category-Cs: New file.
42738         * modules/unictype/category-Co: New file.
42739         * modules/unictype/category-Cn: New file.
42740         * modules/unictype/category-or: New file.
42741         * modules/unictype/category-of: New file.
42742         * modules/unictype/category-test: New file.
42743         * modules/unictype/category-test-withtable: New file.
42744         * modules/unictype/category-byname: New file.
42745         * modules/unictype/category-none: New file.
42746         * modules/unictype/category-and: New file.
42747         * modules/unictype/category-and-not: New file.
42748         * modules/unictype/category-name: New file.
42749         * modules/unictype/combining-class: New file.
42750         * modules/unictype/category-all: New file.
42751         * modules/unictype/bidicategory-all: New file.
42752         * modules/unictype/bidicategory-byname: New file.
42753         * modules/unictype/bidicategory-name: New file.
42754         * modules/unictype/bidicategory-of: New file.
42755         * modules/unictype/bidicategory-test: New file.
42756         * modules/unictype/decimal-digit: New file.
42757         * modules/unictype/digit: New file.
42758         * modules/unictype/numeric: New file.
42759         * modules/unictype/mirror: New file.
42760         * modules/unictype/property-white-space: New file.
42761         * modules/unictype/property-alphabetic: New file.
42762         * modules/unictype/property-other-alphabetic: New file.
42763         * modules/unictype/property-not-a-character: New file.
42764         * modules/unictype/property-default-ignorable-code-point: New file.
42765         * modules/unictype/property-other-default-ignorable-code-point: New
42766         file.
42767         * modules/unictype/property-deprecated: New file.
42768         * modules/unictype/property-logical-order-exception: New file.
42769         * modules/unictype/property-variation-selector: New file.
42770         * modules/unictype/property-private-use: New file.
42771         * modules/unictype/property-unassigned-code-value: New file.
42772         * modules/unictype/property-uppercase: New file.
42773         * modules/unictype/property-other-uppercase: New file.
42774         * modules/unictype/property-lowercase: New file.
42775         * modules/unictype/property-other-lowercase: New file.
42776         * modules/unictype/property-titlecase: New file.
42777         * modules/unictype/property-soft-dotted: New file.
42778         * modules/unictype/property-id-start: New file.
42779         * modules/unictype/property-other-id-start: New file.
42780         * modules/unictype/property-id-continue: New file.
42781         * modules/unictype/property-other-id-continue: New file.
42782         * modules/unictype/property-xid-start: New file.
42783         * modules/unictype/property-xid-continue: New file.
42784         * modules/unictype/property-pattern-white-space: New file.
42785         * modules/unictype/property-pattern-syntax: New file.
42786         * modules/unictype/property-join-control: New file.
42787         * modules/unictype/property-grapheme-base: New file.
42788         * modules/unictype/property-grapheme-extend: New file.
42789         * modules/unictype/property-other-grapheme-extend: New file.
42790         * modules/unictype/property-grapheme-link: New file.
42791         * modules/unictype/property-bidi-control: New file.
42792         * modules/unictype/property-bidi-left-to-right: New file.
42793         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42794         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42795         * modules/unictype/property-bidi-european-digit: New file.
42796         * modules/unictype/property-bidi-eur-num-separator: New file.
42797         * modules/unictype/property-bidi-eur-num-terminator: New file.
42798         * modules/unictype/property-bidi-arabic-digit: New file.
42799         * modules/unictype/property-bidi-common-separator: New file.
42800         * modules/unictype/property-bidi-block-separator: New file.
42801         * modules/unictype/property-bidi-segment-separator: New file.
42802         * modules/unictype/property-bidi-whitespace: New file.
42803         * modules/unictype/property-bidi-non-spacing-mark: New file.
42804         * modules/unictype/property-bidi-boundary-neutral: New file.
42805         * modules/unictype/property-bidi-pdf: New file.
42806         * modules/unictype/property-bidi-embedding-or-override: New file.
42807         * modules/unictype/property-bidi-other-neutral: New file.
42808         * modules/unictype/property-hex-digit: New file.
42809         * modules/unictype/property-ascii-hex-digit: New file.
42810         * modules/unictype/property-ideographic: New file.
42811         * modules/unictype/property-unified-ideograph: New file.
42812         * modules/unictype/property-radical: New file.
42813         * modules/unictype/property-ids-binary-operator: New file.
42814         * modules/unictype/property-ids-trinary-operator: New file.
42815         * modules/unictype/property-zero-width: New file.
42816         * modules/unictype/property-space: New file.
42817         * modules/unictype/property-non-break: New file.
42818         * modules/unictype/property-iso-control: New file.
42819         * modules/unictype/property-format-control: New file.
42820         * modules/unictype/property-dash: New file.
42821         * modules/unictype/property-hyphen: New file.
42822         * modules/unictype/property-punctuation: New file.
42823         * modules/unictype/property-line-separator: New file.
42824         * modules/unictype/property-paragraph-separator: New file.
42825         * modules/unictype/property-quotation-mark: New file.
42826         * modules/unictype/property-sentence-terminal: New file.
42827         * modules/unictype/property-terminal-punctuation: New file.
42828         * modules/unictype/property-currency-symbol: New file.
42829         * modules/unictype/property-math: New file.
42830         * modules/unictype/property-other-math: New file.
42831         * modules/unictype/property-paired-punctuation: New file.
42832         * modules/unictype/property-left-of-pair: New file.
42833         * modules/unictype/property-combining: New file.
42834         * modules/unictype/property-composite: New file.
42835         * modules/unictype/property-decimal-digit: New file.
42836         * modules/unictype/property-numeric: New file.
42837         * modules/unictype/property-diacritic: New file.
42838         * modules/unictype/property-extender: New file.
42839         * modules/unictype/property-ignorable-control: New file.
42840         * modules/unictype/property-test: New file.
42841         * modules/unictype/property-byname: New file.
42842         * modules/unictype/property-all: New file.
42843         * modules/unictype/scripts: New file.
42844         * modules/unictype/scripts-all: New file.
42845         * modules/unictype/block-of: New file.
42846         * modules/unictype/block-test: New file.
42847         * modules/unictype/block-list: New file.
42848         * modules/unictype/block-all: New file.
42849         * modules/unictype/syntax-c-whitespace: New file.
42850         * modules/unictype/syntax-java-whitespace: New file.
42851         * modules/unictype/syntax-c-ident: New file.
42852         * modules/unictype/syntax-java-ident: New file.
42853         * modules/unictype/ctype-alnum: New file.
42854         * modules/unictype/ctype-alpha: New file.
42855         * modules/unictype/ctype-cntrl: New file.
42856         * modules/unictype/ctype-digit: New file.
42857         * modules/unictype/ctype-graph: New file.
42858         * modules/unictype/ctype-lower: New file.
42859         * modules/unictype/ctype-print: New file.
42860         * modules/unictype/ctype-punct: New file.
42861         * modules/unictype/ctype-space: New file.
42862         * modules/unictype/ctype-upper: New file.
42863         * modules/unictype/ctype-xdigit: New file.
42864         * modules/unictype/ctype-blank: New file.
42865         * lib/unictype/bidi_byname.c: New file.
42866         * lib/unictype/bidi_name.c: New file.
42867         * lib/unictype/bidi_of.c: New file.
42868         * lib/unictype/bidi_test.c: New file.
42869         * lib/unictype/bitmap.h: New file.
42870         * lib/unictype/block_test.c: New file.
42871         * lib/unictype/blocks.c: New file.
42872         * lib/unictype/categ_C.c: New file.
42873         * lib/unictype/categ_Cc.c: New file.
42874         * lib/unictype/categ_Cf.c: New file.
42875         * lib/unictype/categ_Cn.c: New file.
42876         * lib/unictype/categ_Co.c: New file.
42877         * lib/unictype/categ_Cs.c: New file.
42878         * lib/unictype/categ_L.c: New file.
42879         * lib/unictype/categ_Ll.c: New file.
42880         * lib/unictype/categ_Lm.c: New file.
42881         * lib/unictype/categ_Lo.c: New file.
42882         * lib/unictype/categ_Lt.c: New file.
42883         * lib/unictype/categ_Lu.c: New file.
42884         * lib/unictype/categ_M.c: New file.
42885         * lib/unictype/categ_Mc.c: New file.
42886         * lib/unictype/categ_Me.c: New file.
42887         * lib/unictype/categ_Mn.c: New file.
42888         * lib/unictype/categ_N.c: New file.
42889         * lib/unictype/categ_Nd.c: New file.
42890         * lib/unictype/categ_Nl.c: New file.
42891         * lib/unictype/categ_No.c: New file.
42892         * lib/unictype/categ_P.c: New file.
42893         * lib/unictype/categ_Pc.c: New file.
42894         * lib/unictype/categ_Pd.c: New file.
42895         * lib/unictype/categ_Pe.c: New file.
42896         * lib/unictype/categ_Pf.c: New file.
42897         * lib/unictype/categ_Pi.c: New file.
42898         * lib/unictype/categ_Po.c: New file.
42899         * lib/unictype/categ_Ps.c: New file.
42900         * lib/unictype/categ_S.c: New file.
42901         * lib/unictype/categ_Sc.c: New file.
42902         * lib/unictype/categ_Sk.c: New file.
42903         * lib/unictype/categ_Sm.c: New file.
42904         * lib/unictype/categ_So.c: New file.
42905         * lib/unictype/categ_Z.c: New file.
42906         * lib/unictype/categ_Zl.c: New file.
42907         * lib/unictype/categ_Zp.c: New file.
42908         * lib/unictype/categ_Zs.c: New file.
42909         * lib/unictype/categ_and.c: New file.
42910         * lib/unictype/categ_and_not.c: New file.
42911         * lib/unictype/categ_byname.c: New file.
42912         * lib/unictype/categ_name.c: New file.
42913         * lib/unictype/categ_none.c: New file.
42914         * lib/unictype/categ_of.c: New file.
42915         * lib/unictype/categ_or.c: New file.
42916         * lib/unictype/categ_test.c: New file.
42917         * lib/unictype/combining.c: New file.
42918         * lib/unictype/ctype_alnum.c: New file.
42919         * lib/unictype/ctype_alpha.c: New file.
42920         * lib/unictype/ctype_blank.c: New file.
42921         * lib/unictype/ctype_cntrl.c: New file.
42922         * lib/unictype/ctype_digit.c: New file.
42923         * lib/unictype/ctype_graph.c: New file.
42924         * lib/unictype/ctype_lower.c: New file.
42925         * lib/unictype/ctype_print.c: New file.
42926         * lib/unictype/ctype_punct.c: New file.
42927         * lib/unictype/ctype_space.c: New file.
42928         * lib/unictype/ctype_upper.c: New file.
42929         * lib/unictype/ctype_xdigit.c: New file.
42930         * lib/unictype/decdigit.c: New file.
42931         * lib/unictype/digit.c: New file.
42932         * lib/unictype/identsyntaxmap.h: New file.
42933         * lib/unictype/mirror.c: New file.
42934         * lib/unictype/numeric.c: New file.
42935         * lib/unictype/pr_alphabetic.c: New file.
42936         * lib/unictype/pr_ascii_hex_digit.c: New file.
42937         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42938         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42939         * lib/unictype/pr_bidi_block_separator.c: New file.
42940         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42941         * lib/unictype/pr_bidi_common_separator.c: New file.
42942         * lib/unictype/pr_bidi_control.c: New file.
42943         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42944         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42945         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42946         * lib/unictype/pr_bidi_european_digit.c: New file.
42947         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42948         * lib/unictype/pr_bidi_left_to_right.c: New file.
42949         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42950         * lib/unictype/pr_bidi_other_neutral.c: New file.
42951         * lib/unictype/pr_bidi_pdf.c: New file.
42952         * lib/unictype/pr_bidi_segment_separator.c: New file.
42953         * lib/unictype/pr_bidi_whitespace.c: New file.
42954         * lib/unictype/pr_byname.c: New file.
42955         * lib/unictype/pr_byname.gperf: New file.
42956         * lib/unictype/pr_combining.c: New file.
42957         * lib/unictype/pr_composite.c: New file.
42958         * lib/unictype/pr_currency_symbol.c: New file.
42959         * lib/unictype/pr_dash.c: New file.
42960         * lib/unictype/pr_decimal_digit.c: New file.
42961         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42962         * lib/unictype/pr_deprecated.c: New file.
42963         * lib/unictype/pr_diacritic.c: New file.
42964         * lib/unictype/pr_extender.c: New file.
42965         * lib/unictype/pr_format_control.c: New file.
42966         * lib/unictype/pr_grapheme_base.c: New file.
42967         * lib/unictype/pr_grapheme_extend.c: New file.
42968         * lib/unictype/pr_grapheme_link.c: New file.
42969         * lib/unictype/pr_hex_digit.c: New file.
42970         * lib/unictype/pr_hyphen.c: New file.
42971         * lib/unictype/pr_id_continue.c: New file.
42972         * lib/unictype/pr_id_start.c: New file.
42973         * lib/unictype/pr_ideographic.c: New file.
42974         * lib/unictype/pr_ids_binary_operator.c: New file.
42975         * lib/unictype/pr_ids_trinary_operator.c: New file.
42976         * lib/unictype/pr_ignorable_control.c: New file.
42977         * lib/unictype/pr_iso_control.c: New file.
42978         * lib/unictype/pr_join_control.c: New file.
42979         * lib/unictype/pr_left_of_pair.c: New file.
42980         * lib/unictype/pr_line_separator.c: New file.
42981         * lib/unictype/pr_logical_order_exception.c: New file.
42982         * lib/unictype/pr_lowercase.c: New file.
42983         * lib/unictype/pr_math.c: New file.
42984         * lib/unictype/pr_non_break.c: New file.
42985         * lib/unictype/pr_not_a_character.c: New file.
42986         * lib/unictype/pr_numeric.c: New file.
42987         * lib/unictype/pr_other_alphabetic.c: New file.
42988         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42989         * lib/unictype/pr_other_grapheme_extend.c: New file.
42990         * lib/unictype/pr_other_id_continue.c: New file.
42991         * lib/unictype/pr_other_id_start.c: New file.
42992         * lib/unictype/pr_other_lowercase.c: New file.
42993         * lib/unictype/pr_other_math.c: New file.
42994         * lib/unictype/pr_other_uppercase.c: New file.
42995         * lib/unictype/pr_paired_punctuation.c: New file.
42996         * lib/unictype/pr_paragraph_separator.c: New file.
42997         * lib/unictype/pr_pattern_syntax.c: New file.
42998         * lib/unictype/pr_pattern_white_space.c: New file.
42999         * lib/unictype/pr_private_use.c: New file.
43000         * lib/unictype/pr_punctuation.c: New file.
43001         * lib/unictype/pr_quotation_mark.c: New file.
43002         * lib/unictype/pr_radical.c: New file.
43003         * lib/unictype/pr_sentence_terminal.c: New file.
43004         * lib/unictype/pr_soft_dotted.c: New file.
43005         * lib/unictype/pr_space.c: New file.
43006         * lib/unictype/pr_terminal_punctuation.c: New file.
43007         * lib/unictype/pr_test.c: New file.
43008         * lib/unictype/pr_titlecase.c: New file.
43009         * lib/unictype/pr_unassigned_code_value.c: New file.
43010         * lib/unictype/pr_unified_ideograph.c: New file.
43011         * lib/unictype/pr_uppercase.c: New file.
43012         * lib/unictype/pr_variation_selector.c: New file.
43013         * lib/unictype/pr_white_space.c: New file.
43014         * lib/unictype/pr_xid_continue.c: New file.
43015         * lib/unictype/pr_xid_start.c: New file.
43016         * lib/unictype/pr_zero_width.c: New file.
43017         * lib/unictype/scripts.c: New file.
43018         * lib/unictype/sy_c_ident.c: New file.
43019         * lib/unictype/sy_c_whitespace.c: New file.
43020         * lib/unictype/sy_java_ident.c: New file.
43021         * lib/unictype/sy_java_whitespace.c: New file.
43022
43023         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43024         Unicode 5.0.0.
43025         * lib/unictype/blocks.h: Likewise.
43026         * lib/unictype/categ_C.h: Likewise.
43027         * lib/unictype/categ_Cc.h: Likewise.
43028         * lib/unictype/categ_Cf.h: Likewise.
43029         * lib/unictype/categ_Cn.h: Likewise.
43030         * lib/unictype/categ_Co.h: Likewise.
43031         * lib/unictype/categ_Cs.h: Likewise.
43032         * lib/unictype/categ_L.h: Likewise.
43033         * lib/unictype/categ_Ll.h: Likewise.
43034         * lib/unictype/categ_Lm.h: Likewise.
43035         * lib/unictype/categ_Lo.h: Likewise.
43036         * lib/unictype/categ_Lt.h: Likewise.
43037         * lib/unictype/categ_Lu.h: Likewise.
43038         * lib/unictype/categ_M.h: Likewise.
43039         * lib/unictype/categ_Mc.h: Likewise.
43040         * lib/unictype/categ_Me.h: Likewise.
43041         * lib/unictype/categ_Mn.h: Likewise.
43042         * lib/unictype/categ_N.h: Likewise.
43043         * lib/unictype/categ_Nd.h: Likewise.
43044         * lib/unictype/categ_Nl.h: Likewise.
43045         * lib/unictype/categ_No.h: Likewise.
43046         * lib/unictype/categ_P.h: Likewise.
43047         * lib/unictype/categ_Pc.h: Likewise.
43048         * lib/unictype/categ_Pd.h: Likewise.
43049         * lib/unictype/categ_Pe.h: Likewise.
43050         * lib/unictype/categ_Pf.h: Likewise.
43051         * lib/unictype/categ_Pi.h: Likewise.
43052         * lib/unictype/categ_Po.h: Likewise.
43053         * lib/unictype/categ_Ps.h: Likewise.
43054         * lib/unictype/categ_S.h: Likewise.
43055         * lib/unictype/categ_Sc.h: Likewise.
43056         * lib/unictype/categ_Sk.h: Likewise.
43057         * lib/unictype/categ_Sm.h: Likewise.
43058         * lib/unictype/categ_So.h: Likewise.
43059         * lib/unictype/categ_Z.h: Likewise.
43060         * lib/unictype/categ_Zl.h: Likewise.
43061         * lib/unictype/categ_Zp.h: Likewise.
43062         * lib/unictype/categ_Zs.h: Likewise.
43063         * lib/unictype/categ_of.h: Likewise.
43064         * lib/unictype/combining.h: Likewise.
43065         * lib/unictype/ctype_alnum.h: Likewise.
43066         * lib/unictype/ctype_alpha.h: Likewise.
43067         * lib/unictype/ctype_blank.h: Likewise.
43068         * lib/unictype/ctype_cntrl.h: Likewise.
43069         * lib/unictype/ctype_digit.h: Likewise.
43070         * lib/unictype/ctype_graph.h: Likewise.
43071         * lib/unictype/ctype_lower.h: Likewise.
43072         * lib/unictype/ctype_print.h: Likewise.
43073         * lib/unictype/ctype_punct.h: Likewise.
43074         * lib/unictype/ctype_space.h: Likewise.
43075         * lib/unictype/ctype_upper.h: Likewise.
43076         * lib/unictype/ctype_xdigit.h: Likewise.
43077         * lib/unictype/decdigit.h: Likewise.
43078         * lib/unictype/digit.h: Likewise.
43079         * lib/unictype/mirror.h: Likewise.
43080         * lib/unictype/numeric.h: Likewise.
43081         * lib/unictype/pr_alphabetic.h: Likewise.
43082         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43083         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43084         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43085         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43086         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43087         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43088         * lib/unictype/pr_bidi_control.h: Likewise.
43089         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43090         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43091         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43092         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43093         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43094         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43095         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43096         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43097         * lib/unictype/pr_bidi_pdf.h: Likewise.
43098         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43099         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43100         * lib/unictype/pr_combining.h: Likewise.
43101         * lib/unictype/pr_composite.h: Likewise.
43102         * lib/unictype/pr_currency_symbol.h: Likewise.
43103         * lib/unictype/pr_dash.h: Likewise.
43104         * lib/unictype/pr_decimal_digit.h: Likewise.
43105         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43106         * lib/unictype/pr_deprecated.h: Likewise.
43107         * lib/unictype/pr_diacritic.h: Likewise.
43108         * lib/unictype/pr_extender.h: Likewise.
43109         * lib/unictype/pr_format_control.h: Likewise.
43110         * lib/unictype/pr_grapheme_base.h: Likewise.
43111         * lib/unictype/pr_grapheme_extend.h: Likewise.
43112         * lib/unictype/pr_grapheme_link.h: Likewise.
43113         * lib/unictype/pr_hex_digit.h: Likewise.
43114         * lib/unictype/pr_hyphen.h: Likewise.
43115         * lib/unictype/pr_id_continue.h: Likewise.
43116         * lib/unictype/pr_id_start.h: Likewise.
43117         * lib/unictype/pr_ideographic.h: Likewise.
43118         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43119         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43120         * lib/unictype/pr_ignorable_control.h: Likewise.
43121         * lib/unictype/pr_iso_control.h: Likewise.
43122         * lib/unictype/pr_join_control.h: Likewise.
43123         * lib/unictype/pr_left_of_pair.h: Likewise.
43124         * lib/unictype/pr_line_separator.h: Likewise.
43125         * lib/unictype/pr_logical_order_exception.h: Likewise.
43126         * lib/unictype/pr_lowercase.h: Likewise.
43127         * lib/unictype/pr_math.h: Likewise.
43128         * lib/unictype/pr_non_break.h: Likewise.
43129         * lib/unictype/pr_not_a_character.h: Likewise.
43130         * lib/unictype/pr_numeric.h: Likewise.
43131         * lib/unictype/pr_other_alphabetic.h: Likewise.
43132         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43133         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43134         * lib/unictype/pr_other_id_continue.h: Likewise.
43135         * lib/unictype/pr_other_id_start.h: Likewise.
43136         * lib/unictype/pr_other_lowercase.h: Likewise.
43137         * lib/unictype/pr_other_math.h: Likewise.
43138         * lib/unictype/pr_other_uppercase.h: Likewise.
43139         * lib/unictype/pr_paired_punctuation.h: Likewise.
43140         * lib/unictype/pr_paragraph_separator.h: Likewise.
43141         * lib/unictype/pr_pattern_syntax.h: Likewise.
43142         * lib/unictype/pr_pattern_white_space.h: Likewise.
43143         * lib/unictype/pr_private_use.h: Likewise.
43144         * lib/unictype/pr_punctuation.h: Likewise.
43145         * lib/unictype/pr_quotation_mark.h: Likewise.
43146         * lib/unictype/pr_radical.h: Likewise.
43147         * lib/unictype/pr_sentence_terminal.h: Likewise.
43148         * lib/unictype/pr_soft_dotted.h: Likewise.
43149         * lib/unictype/pr_space.h: Likewise.
43150         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43151         * lib/unictype/pr_titlecase.h: Likewise.
43152         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43153         * lib/unictype/pr_unified_ideograph.h: Likewise.
43154         * lib/unictype/pr_uppercase.h: Likewise.
43155         * lib/unictype/pr_variation_selector.h: Likewise.
43156         * lib/unictype/pr_white_space.h: Likewise.
43157         * lib/unictype/pr_xid_continue.h: Likewise.
43158         * lib/unictype/pr_xid_start.h: Likewise.
43159         * lib/unictype/pr_zero_width.h: Likewise.
43160         * lib/unictype/scripts.h: Likewise.
43161         * lib/unictype/scripts_byname.gperf: Likewise.
43162         * lib/unictype/sy_c_ident.h: Likewise.
43163         * lib/unictype/sy_c_whitespace.h: Likewise.
43164         * lib/unictype/sy_java_ident.h: Likewise.
43165         * lib/unictype/sy_java_whitespace.h: Likewise.
43166
43167         * lib/unictype/Makefile: New file.
43168         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43169         glibc.
43170         * lib/unictype/3level.h: New file, copied from glibc.
43171         * lib/unictype/3levelbit.h: New file.
43172
43173 2007-11-11  Bruno Haible  <bruno@clisp.org>
43174
43175         * modules/gperf: New file.
43176         * modules/iconv_open (Depends-on): Add it.
43177         (Makefile.am): Remove the GPERF definition.
43178
43179 2007-11-11  Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43182         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43183
43184 2007-11-11  Bruno Haible  <bruno@clisp.org>
43185
43186         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43187         (usage): Remove function.
43188
43189 2007-11-11  Bruno Haible  <bruno@clisp.org>
43190
43191         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43192         gl_FUNC_CEILF_LIBS.
43193         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43194         gl_FUNC_CEIL_LIBS.
43195         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43196         gl_FUNC_CEILL_LIBS.
43197         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43198         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43199         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43200
43201 2007-11-11  Bruno Haible  <bruno@clisp.org>
43202
43203         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43204         roundf were declared but do not exist on functions.
43205         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43206         roundl were declared but do not exist on functions.
43207         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43208         HAVE_FLOORL_AND_CEILL, respectively.
43209         Needed for Sun C on Solaris 10.
43210
43211 2007-11-11  Bruno Haible  <bruno@clisp.org>
43212
43213         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43214         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43215         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43216         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43217         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43218         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43219         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43220         HAVE_DECL_ROUNDF.
43221         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43222         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43224         of HAVE_DECL_ROUND*.
43225         * modules/math (Makefile.am): Update.
43226
43227 2007-11-10  Bruno Haible  <bruno@clisp.org>
43228
43229         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43230         ptrdiff_t as m4/intl.m4.
43231
43232 2007-11-10  Jim Meyering  <meyering@redhat.com>
43233
43234         Avoid link failure for the argmatch test.
43235         * tests/test-argmatch.c (usage): Define function to avoid a link
43236         failure: argmatch_die requires a usage function.
43237
43238 2007-11-09  Bruno Haible  <bruno@clisp.org>
43239
43240         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43241         * doc/functions/vsnprintf.texi: Likewise.
43242         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43243         with a size argument < 2.
43244
43245 2007-11-09  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43248         buffer. Fixes an inefficiency introduced on 2007-11-03.
43249
43250 2007-11-09  Bruno Haible  <bruno@clisp.org>
43251
43252         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43253         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43254
43255 2007-11-08  Jim Meyering  <meyering@redhat.com>
43256
43257         Change cache variable name prefix "jm_" to "gl_" everywhere.
43258         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43259         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43260         * m4/uptime.m4: s/gl_/jm_/
43261
43262 2007-11-07  Bruno Haible  <bruno@clisp.org>
43263
43264         Update to GNU gettext 0.17.
43265         * m4/intl.m4: Update to GNU gettext 0.17.
43266         * m4/po.m4: Likewise.
43267         * modules/gettext (Files): Remove m4/ulonglong.m4.
43268         (configure.ac): Require gettext infrastructure from version 0.17.
43269
43270 2007-11-06  Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43273         symbolic values are not defined in a public header.
43274         * lib/freadable.c (freadable) [QNX]: Likewise.
43275         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43276         * lib/freading.c (freading) [QNX]: Likewise.
43277         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43278         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43279         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43280         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43281         Reported by Alain Magloire.
43282
43283         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43284
43285 2007-11-05  Bruno Haible  <bruno@clisp.org>
43286
43287         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43288         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43289         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43290         Reported by Eric Blake.
43291
43292 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43293             Bruno Haible  <bruno@clisp.org>
43294
43295         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43296         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43297         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43298         (malloc): Undefine also before including <stdlib.h>.
43299         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43300         Needed on OSF/1 4.0.
43301
43302 2007-11-05  Jim Meyering  <meyering@redhat.com>
43303
43304         git-version-gen: sync from coreutils.
43305         * build-aux/git-version-gen: Add comments.
43306         Change the first '-' to '.' in the snapshot version string,
43307         e.g., 6.9-377-08144 -> 6.9.377-08144
43308         Remove first parameter.
43309         Don't declare a version "-dirty" merely because a time
43310         stamp has changed.
43311
43312 2007-11-04  Bruno Haible  <bruno@clisp.org>
43313
43314         * lib/lock.h: Protect all macro definitions containing an 'if'
43315         statement through a "do { ... } while (0)".
43316         * lib/tls.h: Likewise.
43317
43318 2007-11-04  Bruno Haible  <bruno@clisp.org>
43319
43320         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43321
43322 2007-11-04  Bruno Haible  <bruno@clisp.org>
43323
43324         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43325         * modules/fprintf-posix (Depends-on): Add nocrash.
43326         * modules/snprintf-posix (Depends-on): Likewise.
43327         * modules/sprintf-posix (Depends-on): Likewise.
43328         * modules/vasnprintf-posix (Depends-on): Likewise.
43329         * modules/vasprintf-posix (Depends-on): Likewise.
43330         * modules/vfprintf-posix (Depends-on): Likewise.
43331         * modules/vsnprintf-posix (Depends-on): Likewise.
43332         * modules/vsprintf-posix (Depends-on): Likewise.
43333         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43334         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43335         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43336         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43337         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43338         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43339         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43340
43341 2007-11-04  Bruno Haible  <bruno@clisp.org>
43342
43343         * modules/nocrash: New file.
43344         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43345         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43346
43347 2007-11-04  Bruno Haible  <bruno@clisp.org>
43348
43349         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43350         precision handling.
43351         * tests/test-vasprintf-posix.c (test_function): Likewise.
43352         * tests/test-snprintf-posix.h (test_function): Likewise.
43353         * tests/test-sprintf-posix.h (test_function): Likewise.
43354
43355         Fix *printf behaviour for large precisions on mingw and BeOS.
43356         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43357         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43359         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43361         gl_PRINTF_PRECISION and test its result. Invoke
43362         gl_PREREQ_VASNPRINTF_PRECISION.
43363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43370         * doc/functions/fprintf.texi: Update.
43371         * doc/functions/printf.texi: Update.
43372         * doc/functions/snprintf.texi: Update.
43373         * doc/functions/sprintf.texi: Update.
43374         * doc/functions/vfprintf.texi: Update.
43375         * doc/functions/vprintf.texi: Update.
43376         * doc/functions/vsnprintf.texi: Update.
43377         * doc/functions/vsprintf.texi: Update.
43378
43379 2007-11-04  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43382
43383 2007-11-04  Bruno Haible  <bruno@clisp.org>
43384
43385         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43386         Reported by Sylvain Beucler <beuc@gnu.org>.
43387
43388 2007-11-03  Bruno Haible  <bruno@clisp.org>
43389
43390         * tests/test-fprintf-posix2.sh: New file.
43391         * tests/test-fprintf-posix2.c: New file.
43392         * modules/fprintf-posix-tests (Files): Add them.
43393         (TESTS): Add test-fprintf-posix2.sh.
43394         (configure.ac): Check for getrlimit and setrlimit.
43395         (check_PROGRAMS): Add test-fprintf-posix2.
43396
43397         * tests/test-printf-posix2.sh: New file.
43398         * tests/test-printf-posix2.c: New file.
43399         * modules/printf-posix-tests (Files): Add them.
43400         (TESTS): Add test-printf-posix2.sh.
43401         (configure.ac): Check for getrlimit and setrlimit.
43402         (check_PROGRAMS): Add test-printf-posix2.
43403
43404         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43405         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43406         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43407         (decode_double): New function, copied from decode_long_double.
43408         (scale10_round_decimal_decoded): New function, extracted from
43409         scale10_round_decimal_long_double.
43410         (scale10_round_decimal_long_double): Use it.
43411         (scale10_round_decimal_double): New function.
43412         (floorlog10): New function.
43413         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43415         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43417         gl_PRINTF_ENOMEM and test its result. Invoke
43418         gl_PREREQ_VASNPRINTF_ENOMEM.
43419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43426         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43427         * modules/snprintf-posix (Depends-on): Likewise.
43428         * modules/sprintf-posix (Depends-on): Likewise.
43429         * modules/vasnprintf-posix (Depends-on): Likewise.
43430         * modules/vasprintf-posix (Depends-on): Likewise.
43431         * modules/vfprintf-posix (Depends-on): Likewise.
43432         * modules/vsnprintf-posix (Depends-on): Likewise.
43433         * modules/vsprintf-posix (Depends-on): Likewise.
43434         * doc/functions/fprintf.texi: Update.
43435         * doc/functions/printf.texi: Update.
43436         * doc/functions/snprintf.texi: Update.
43437         * doc/functions/sprintf.texi: Update.
43438         * doc/functions/vfprintf.texi: Update.
43439         * doc/functions/vprintf.texi: Update.
43440         * doc/functions/vsnprintf.texi: Update.
43441         * doc/functions/vsprintf.texi: Update.
43442
43443 2007-11-03  Bruno Haible  <bruno@clisp.org>
43444
43445         * modules/frexp-nolibm-tests: New file.
43446
43447         * modules/frexp-nolibm: New file.
43448         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43449
43450 2007-11-03  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43453         value is C99 compliant.
43454         Needed for OSF/1 5.1.
43455
43456 2007-11-03  Bruno Haible  <bruno@clisp.org>
43457
43458         Fix out-of-memory handling of vasnprintf.
43459         * lib/printf-parse.c: Include <errno.h>.
43460         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43461         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43462         is already set.
43463
43464 2007-11-02  Eric Blake  <ebb9@byu.net>
43465
43466         Fix tests on cygwin.
43467         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43468
43469 2007-11-01  Bruno Haible  <bruno@clisp.org>
43470
43471         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43472         warning.
43473         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43474         needed for POSIX compatibility.
43475
43476 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43477
43478         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43479         for compatibility with GNU.
43480
43481 2007-11-01  Bruno Haible  <bruno@clisp.org>
43482
43483         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43484         (putenv): Renamed from rpl_putenv. Change argument type from
43485         'const char *' to 'char *'.
43486         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43487         of defining putenv in config.h, just set REPLACE_PUTENV.
43488         * modules/putenv (Depends-on): Add stdlib.
43489         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43490         (Include): Use <stdlib.h>.
43491         * lib/stdlib.in.h (putenv): New declaration.
43492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43493         REPLACE_PUTENV.
43494         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43495         REPLACE_PUTENV.
43496         Needed for MacOS X 10.5.0.
43497         Reported by Peter O'Gorman <peter@pogma.com>.
43498
43499 2007-11-01  Jim Meyering  <meyering@redhat.com>
43500
43501         Treat an empty date string exactly like "0".
43502         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43503         if the remaining date string (to be parsed) is empty, use "0".
43504         Reported by Mischa Molhoek and discussed in this thread:
43505         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43506
43507 2007-10-31  Bruno Haible  <bruno@clisp.org>
43508
43509         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43510         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43511         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43512         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43513         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43514         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43515
43516 2007-10-31  Bruno Haible  <bruno@clisp.org>
43517
43518         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43519         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43520         (AC_TYPE_LONG_LONG_INT): Use it.
43521         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43522         it as well.
43523         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43524         to m4/longlong.m4.
43525         * modules/stdint (Files): Remove m4/ulonglong.m4.
43526         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43527         m4/ulonglong.m4.
43528         * modules/strtoumax (Files): Likewise.
43529
43530 2007-10-30  Bruno Haible  <bruno@clisp.org>
43531
43532         * modules/xvasprintf-posix: New file.
43533         Suggested by Eric Blake.
43534
43535 2007-10-30  Bruno Haible  <bruno@clisp.org>
43536
43537         * modules/xprintf-posix-tests: New file.
43538         * tests/test-xprintf-posix.sh: New file.
43539         * tests/test-xprintf-posix.c: New file.
43540         * tests/test-xfprintf-posix.c: New file.
43541
43542         * modules/xprintf-posix: New file.
43543
43544 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43545
43546         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43547         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43548         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43549
43550 2007-10-29  Bruno Haible  <bruno@clisp.org>
43551
43552         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43553         contain the special marker '_cv_'.
43554         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43555         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43556         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43557         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43558         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43559         Reported by Ralf Wildenhues.
43560
43561 2007-10-29  Bruno Haible  <bruno@clisp.org>
43562
43563         * gnulib-tool (func_import): When --lgpl is not specified, set
43564         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43565         GPLv3.
43566         Reported by Simon Josefsson.
43567
43568 2007-10-28  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43571         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43572         HAVE_DECL_ISFINITE.
43573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43574         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43575         HAVE_DECL_ISFINITE.
43576
43577 2007-10-28  Bruno Haible  <bruno@clisp.org>
43578
43579         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43580         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43581
43582 2007-10-28  Bruno Haible  <bruno@clisp.org>
43583
43584         Fix link errors with Sun C 5.0 on Solaris 10.
43585         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43586         function is declared but not present in the compiler's libm.
43587         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43588         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43589         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43590         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43591         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43592         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43593         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43595         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43596         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43597         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43598         HAVE_DECL_FLOORL.
43599
43600 2007-10-28  Bruno Haible  <bruno@clisp.org>
43601
43602         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43603         gl_FUNC_FLOORL. Cache the result.
43604         (gl_FUNC_FLOORL): Use it.
43605         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43606         gl_FUNC_CEILL. Cache the result.
43607         (gl_FUNC_CEILL): Use it.
43608
43609         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43610         gl_FUNC_FLOOR. Cache the result.
43611         (gl_FUNC_FLOOR): Use it.
43612         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43613         gl_FUNC_CEIL. Cache the result.
43614         (gl_FUNC_CEIL): Use it.
43615
43616         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43617         gl_FUNC_FLOORF. Cache the result.
43618         (gl_FUNC_FLOORF): Use it.
43619         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43620         gl_FUNC_CEILF. Cache the result.
43621         (gl_FUNC_CEILF): Use it.
43622
43623 2007-10-28  Bruno Haible  <bruno@clisp.org>
43624
43625         * gnulib-tool: Allow specifying the LGPL version number through
43626         --lgpl=2 or --lgpl=3.
43627         (func_usage): Document --lgpl with argument.
43628         Handle --lgpl=... arguments.
43629         (func_import): Recognize also gl_LGPL calls with an argument. When
43630         --lgpl=2 is used and the module's license is just LGPL, report an
43631         error. Set sed_transform_lib_file according to the lgpl variable. In
43632         the generated files, use --lgpl or gl_LGPL invocations with argument,
43633         if necessary.
43634         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43635         an LGPv2+ license.
43636         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43637         gl_LGPL macro.
43638
43639 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43640             Bruno Haible  <bruno@clisp.org>
43641
43642         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43643         (u16_uctomb_aux): Likewise.
43644         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43645         !HAVE_INLINE.
43646         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43647
43648 2007-10-28  Bruno Haible  <bruno@clisp.org>
43649
43650         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43651         Invoke AM_GETTEXT_OPTION if it exists.
43652         * modules/vasprintf: Likewise.
43653         * modules/verror: Likewise.
43654         * modules/xprintf: Likewise.
43655         * modules/xvasprintf: Likewise.
43656
43657 2007-10-27  Ben Pfaff  <blp@gnu.org>
43658
43659         * lib/math.in.h: Define isfinite macro and prototypes for
43660         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43661         implementations.
43662         * m4/math_h.m4: New substitutions for isfinite module.
43663         * lib/isfinite.c: New file.
43664         * m4/isfinite.m4: New file.
43665         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43666         * modules/isfinite: New file.
43667         * modules/isfinite-tests: New file.
43668         * tests/tests-isfinite.c: New file.
43669         * doc/functions/isfinite.texi: Mention isfinite module.
43670         * MODULES.html.sh: Mention new module.
43671
43672 2007-10-27  Ben Pfaff  <blp@gnu.org>
43673
43674         Ralf Wildenhues reported that Tru64 4.0D declares the round
43675         functions but does not have definitions.
43676         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43677         cannot be found in any library, set the output variable to
43678         "missing" instead of "".
43679         * m4/round.m4: Also use our substitute if we cannot find round in
43680         any library, even if it is declared.
43681         * m4/roundf.m4: Likewise for roundf.
43682         * m4/roundl.m4: Likewise for roundl.
43683         * lib/math.in.h: Undefine roundf, round, roundl before defining
43684         their replacements, to allow for hypothetical systems where these
43685         may be defined as macros but not available in libraries.
43686
43687 2007-10-27  Bruno Haible  <bruno@clisp.org>
43688
43689         * doc/gnulib.texi: Invoke @firstparagraphindent.
43690         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43691         changes in gnulib.
43692         (Source changes): New section.
43693
43694 2007-10-26  Bruno Haible  <bruno@clisp.org>
43695
43696         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43697         borrowed from autoconf.
43698
43699 2007-10-26  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43702         strerror returned the empty string. Needed on HP-UX 11.00.
43703
43704 2007-10-24  Micah Cowan  <micah@cowan.name>
43705
43706         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43707         * build-aux/bootstrap: Remove support for now-unnecessary option,
43708         --cvs-user, and envvars CVS_USER, CVS_RSH.
43709
43710 2007-10-24  Jim Meyering  <meyering@redhat.com>
43711
43712         Avoid diagnostics from sha1sum when there is no cached checksum.
43713         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43714         if the po.s1 file hasn't been created yet.
43715
43716         * build-aux/bootstrap: Sync from coreutils:
43717         2007-10-24  Jim Meyering  <meyering@redhat.com>
43718         Get gnulib from the git repository, not from an obsolete cvs one.
43719         * build-aux/bootstrap: Suggestion from Micah Cowan.
43720         2007-10-04  Jim Meyering  <jim@meyering.net>
43721         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43722         (update_po_files): Work also when there are no .po files in po/.
43723
43724 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43725
43726         * README: Append ".git" to git and cg examples.
43727         Problem reported by Benoit Sigoure.
43728
43729 2007-10-23  Micah Cowan  <micah@cowan.name>
43730
43731         * users.txt: Add wget.
43732
43733 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43734
43735         Fix linking of some unistdio tests on FreeBSD.
43736         * modules/unistdio/u16-vsnprintf-tests
43737         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43738         * modules/unistdio/u16-vsprintf-tests
43739         (test_u16_vsnprintf1_LDADD): Likewise.
43740         * modules/unistdio/u32-vsnprintf-tests
43741         (test_u32_vsnprintf1_LDADD): Likewise.
43742         * modules/unistdio/u32-vsprintf-tests
43743         (test_u32_vsprintf1_LDADD): Likewise.
43744         * modules/unistdio/u8-vsnprintf-tests
43745         (test_u8_vsnprintf1_LDADD): Likewise.
43746         * modules/unistdio/u8-vsprintf-tests
43747         (test_u8_vsprintf1_LDADD): Likewise.
43748         * modules/unistdio/ulc-vsnprintf-tests
43749         (test_ulc_vsnprintf1_LDADD): Likewise.
43750         * modules/unistdio/ulc-vsprintf-tests
43751         (test_ulc_vsprintf1_LDADD): Likewise.
43752
43753         Fix linking of some uniconv tests on FreeBSD.
43754         * modules/uniconv/u16-conv-from-enc-tests
43755         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43756         * modules/uniconv/u16-conv-to-enc-tests
43757         (test_u16_conv_to_enc_LDADD): Likewise.
43758         * modules/uniconv/u16-strconv-from-enc-tests
43759         (test_u16_strconv_from_enc_LDADD): Likewise.
43760         * modules/uniconv/u16-strconv-to-enc-tests
43761         (test_u16_strconv_to_enc_LDADD): Likewise.
43762         * modules/uniconv/u32-conv-from-enc-tests
43763         (test_u32_conv_from_enc_LDADD): Likewise.
43764         * modules/uniconv/u32-conv-to-enc-tests
43765         (test_u32_conv_to_enc_LDADD): Likewise.
43766         * modules/uniconv/u32-strconv-from-enc-tests
43767         (test_u32_strconv_from_enc_LDADD): Likewise.
43768         * modules/uniconv/u32-strconv-to-enc-tests
43769         (test_u32_strconv_to_enc_LDADD): Likewise.
43770         * modules/uniconv/u8-conv-from-enc-tests
43771         (test_u8_conv_from_enc_LDADD): Likewise.
43772         * modules/uniconv/u8-conv-to-enc-tests
43773         (test_u8_conv_to_enc_LDADD): Likewise.
43774         * modules/uniconv/u8-strconv-from-enc-tests
43775         (test_u8_strconv_from_enc_LDADD): Likewise.
43776         * modules/uniconv/u8-strconv-to-enc-tests
43777         (test_u8_strconv_to_enc_LDADD): Likewise.
43778
43779 2007-10-22  Bruno Haible  <bruno@clisp.org>
43780
43781         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43782         size.
43783
43784 2007-10-22  Eric Blake  <ebb9@byu.net>
43785
43786         Tweak x*printf documentation.
43787         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43788         variable name and comments.
43789         Suggested by Bruno Haible.
43790
43791 2007-10-22  Bruno Haible  <bruno@clisp.org>
43792
43793         * lib/acl.c (copy_acl): Fix file name in comment.
43794
43795 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43796
43797         Fix Tru64 problem with stdbool.h.
43798         * lib/stdbool.in.h (false, true):
43799         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43800         Don't declare as an enum in this situation; it runs afoul of Tru64.
43801         Problem reported by Steven M. Schweda in
43802         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43803
43804 2007-10-22  Eric Blake  <ebb9@byu.net>
43805
43806         Also wrap vf?printf.
43807         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43808         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43809         (xvprintf, xvfprintf): New functions.
43810
43811 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43812
43813         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43814         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43815
43816         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43817         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43818
43819 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43820
43821         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43822         by Bruno Haible.
43823
43824 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43825
43826         * lib/getloadavg.c
43827         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43828         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43829
43830         * tests/test-i-ring.c: Work for C89.
43831
43832 2007-10-22  Bruno Haible  <bruno@clisp.org>
43833
43834         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43835         -1u, in preprocessor expression, so that we don't test for the bug
43836         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43838
43839 2007-10-22  Eric Blake  <ebb9@byu.net>
43840
43841         * tests/test-yesno.sh: Silence stderr during test.
43842
43843 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43844
43845         * modules/crypto/gc-camellia: New file.
43846
43847         * m4/gc-camellia.m4: New file.
43848
43849         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43850
43851         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43852
43853 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43854
43855         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43856         --help to stdout.  Reported by sms@antinode.org (Steven
43857         M. Schweda).
43858
43859 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43860
43861         * users.txt: Fix link to libksba.
43862
43863 2007-10-21  Ben Pfaff  <blp@gnu.org>
43864
43865         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43866         round.c roundf implementation that depends on floorf and ceilf to
43867         be tested unconditionally.
43868
43869 2007-10-21  Ben Pfaff  <blp@gnu.org>
43870
43871         * m4/check-libm-func.m4: Removed.
43872         * m4/check-math-lib.m4: New file.
43873         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43874         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43875         definition and lack of AC_LIBOBJ([roundf]).
43876         * m4/roundl.m4: Ditto, and similarly for roundl.
43877         * modules/round: Reference new m4 file.
43878         * modules/roundf: Ditto.
43879         * modules/roundl: Ditto.
43880         * tests/test-round2.c (main): Use ROUND instead of round.
43881         Bug report from Bruno Haible.
43882
43883 2007-10-21  Bruno Haible  <bruno@clisp.org>
43884
43885         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43886         context.
43887
43888 2007-10-21  Bruno Haible  <bruno@clisp.org>
43889
43890         * tests/test-wcwidth.c (main): Allow negative result for some control
43891         characters.
43892
43893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43894         Needed on OSF/1 5.1.
43895
43896 2007-10-21  Bruno Haible  <bruno@clisp.org>
43897
43898         * tests/test-floorf1.c: Include isnanf.h.
43899         (main): Use isnanf() instead of isnan().
43900         * tests/test-ceilf1.c: Include isnanf.h.
43901         (main): Use isnanf() instead of isnan().
43902         * tests/test-truncf1.c: Include isnanf.h.
43903         (main): Use isnanf() instead of isnan().
43904         * tests/test-roundf1.c: Include isnanf.h.
43905         (main): Use isnanf() instead of isnan().
43906
43907 2007-10-21  Eric Blake  <ebb9@byu.net>
43908
43909         * users.txt: Update URL for m4.
43910
43911 2007-10-21  Bruno Haible  <bruno@clisp.org>
43912
43913         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43914
43915 2007-10-21  Bruno Haible  <bruno@clisp.org>
43916
43917         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43918         Git's management files if the CVS files are not present.
43919
43920 2007-10-20  Bruno Haible  <bruno@clisp.org>
43921
43922         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43923         gcc-3.4.x.
43924
43925 2007-10-20  Ben Pfaff  <blp@gnu.org>
43926
43927         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43928         implementations.
43929         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43930         * lib/round.c: New file.
43931         * lib/roundf.c: New file.
43932         * lib/roundl.c: New file.
43933         * m4/round.m4: New file.
43934         * m4/roundf.m4: New file.
43935         * m4/roundl.m4: New file.
43936         * m4/check-libm-func-m4: New file.
43937         * modules/math: Replace round, roundf, roundl related @VARS@ in
43938         math.in.h.
43939         * modules/round: New file.
43940         * modules/round-tests: New file.
43941         * modules/roundf: New file.
43942         * modules/roundf-tests: New file.
43943         * modules/roundl: New file.
43944         * modules/roundl-tests: New file.
43945         * tests/test-round1.c: New file.
43946         * tests/test-round2.c: New file.
43947         * tests/test-roundf1.c: New file.
43948         * tests/test-roundf2.c: New file.
43949         * tests/test-roundl.c: New file.
43950         * doc/functions/round.texi: Mention round module.
43951         * doc/functions/roundf.texi: Mention roundf module.
43952         * doc/functions/roundl.texi: Mention roundl module.
43953         * MODULES.html.sh: Mention new modules.
43954         Thanks to Bruno Haible for suggestions.
43955
43956 2007-10-20  Jim Meyering  <meyering@redhat.com>
43957
43958         * lib/xprintf.c: Include <config.h> unconditionally.
43959
43960         Change xprintf's license to GPL.
43961         * modules/xprintf (License): s/LGPL/GPL/, since this module
43962         depends on modules (exit and exitfail) which are GPL.
43963         Suggestion from Bruno Haible.
43964
43965         xprintf fixes.
43966         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43967         Use a clearer diagnostic.
43968         Patch from Bruno Haible.
43969
43970 2007-10-20  Bruno Haible  <bruno@clisp.org>
43971
43972         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43973         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43975
43976 2007-10-20  Bruno Haible  <bruno@clisp.org>
43977
43978         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43979         precision in the comparison result > x - 1 or similar.
43980         * tests/test-ceilf2.c (correct_result_p): Likewise.
43981         * tests/test-truncf2.c (correct_result_p): Likewise.
43982         * tests/test-trunc2.c (correct_result_p): Likewise.
43983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43984
43985 2007-10-20  Bruno Haible  <bruno@clisp.org>
43986
43987         * modules/ceil: New file.
43988         * m4/ceil.m4: New file.
43989         * doc/functions/ceil.texi: Mention the 'ceil' module.
43990
43991 2007-10-20  Bruno Haible  <bruno@clisp.org>
43992
43993         * modules/floor: New file.
43994         * m4/floor.m4: New file.
43995         * doc/functions/floor.texi: Mention the 'floor' module.
43996
43997 2007-10-20  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44000         of %a.
44001         * modules/floorf-tests (Depends-on): Likewise.
44002         * modules/truncf-tests (Depends-on): Likewise.
44003         * modules/trunc-tests (Depends-on): Likewise.
44004         Reported by Ben Pfaff.
44005
44006 2007-10-19  Jim Meyering  <meyering@redhat.com>
44007
44008         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44009         Don't bother testing specific errno values.  Just test ferror.
44010
44011         New module: xprintf
44012         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44013
44014 2007-10-19  Bruno Haible  <bruno@clisp.org>
44015
44016         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44017         syntax.
44018         * modules/javaexec (Makefile.am): Likewise.
44019         * modules/relocatable-prog (Makefile.am): Likewise.
44020         Suggested by Jim Meyering.
44021
44022 2007-10-18  Bruno Haible  <bruno@clisp.org>
44023
44024         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44025         Reported by Jim Meyering.
44026
44027 2007-10-18  Eric Blake  <ebb9@byu.net>
44028
44029         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44030
44031 2007-10-18  Bruno Haible  <bruno@clisp.org>
44032
44033         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44034         the format string into writable memory. Needed in Fortify conditions.
44035
44036 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44037             Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44040         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44041         * modules/trim (Depends-on): Add mbchar.
44042         (configure.ac): Add gl_FUNC_MBRTOWC.
44043         (Makefile.am): Augment lib_SOURCES.
44044
44045 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44046
44047         Modify glob.c to use fstatat and dirfd, to simplify it.
44048         Suggested by Eric Blake.
44049         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44050         Don't include <stdbool.h>; not used.
44051         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44052         (link_exists_p): Simplify implementation, since we can now assume
44053         dirfd and fstatat.
44054         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44055
44056 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44057
44058         * gnulib-tool (func_get_dependencies): Fix sed script to
44059         match only tests.
44060
44061 2007-10-17  Bruno Haible  <bruno@clisp.org>
44062
44063         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44064         allow locale names without encoding suffix.
44065         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44066         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44067
44068 2007-10-16  Bruno Haible  <bruno@clisp.org>
44069
44070         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44071         * lib/getgroups.c (getgroups): Likewise.
44072         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44073
44074 2007-10-16  Bruno Haible  <bruno@clisp.org>
44075
44076         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44077         * modules/malloc-posix (License): Likewise.
44078         * modules/realloc-posix (License): Likewise.
44079         * modules/calloc-posix (License): Likewise.
44080         * modules/intprops (License): Change from GPL to LGPL, with
44081         Paul Eggert's approval.
44082
44083 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44084
44085         Merge glibc changes into lib/glob.c.
44086
44087         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44088         2007-10-15 04:59:03 UTC.  Here are the changes:
44089
44090         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44091
44092         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44093
44094         * lib/glob.c: Add some branch prediction throughout.
44095
44096         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44097
44098         [BZ #5103]
44099         * lib/glob.c (glob): Recognize patterns starting \/.
44100
44101         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44102
44103         [BZ #3996]
44104         * lib/glob.c (attribute_hidden): Define if not defined.
44105         (glob): Unescape dirname, filename or username when needed and not
44106         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44107         is NULL.  Handle unescaped [ in pattern without closing ].
44108         Don't pass GLOB_CHECK down to recursive glob for directories.
44109         (__glob_pattern_type): New function.
44110         (__glob_pattern_p): Implement using __glob_pattern_type.
44111         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44112         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44113         Remove unreachable code.
44114
44115         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44116
44117         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44118         explain why there are no leaks.
44119
44120         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44121
44122         [BZ #3253]
44123         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44124         time, rather allocate increasingly bigger arrays of pointers, if
44125         possible with alloca, if too large with malloc.
44126
44127 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44128
44129         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44130         Problem reported by H.Merijn Brand in
44131         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44132         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44133         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44134
44135 2007-10-15  Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44138         with explicit rpl_ prefix.
44139         * lib/fopen.c (fopen): Likewise.
44140         * lib/freopen.c (freopen): Likewise.
44141         * lib/iconv.c (iconv): Likewise.
44142         * lib/iconv_close.c (iconv_close): Likewise.
44143
44144 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44145
44146         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44147
44148 2007-10-15  Bruno Haible  <bruno@clisp.org>
44149
44150         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44151         <stddef.h> instead of <stdlib.h> since we only need NULL.
44152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44153
44154 2007-10-15  Bruno Haible  <bruno@clisp.org>
44155
44156         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44157         Replace paragraph talking about LIBOBJS.
44158         Reported by Colin Watson <cjwatson@debian.org>.
44159
44160 2007-10-15  Bruno Haible  <bruno@clisp.org>
44161
44162         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44163         <stdlib.h> before using NULL.
44164
44165 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44166
44167         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44168         Reported by Albert Chin <china@thewrittenword.com>.
44169
44170 2007-10-14  Bruno Haible  <bruno@clisp.org>
44171
44172         * modules/iconv_open-utf-tests: New file.
44173         * tests/test-iconv-utf.c: New file.
44174
44175         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44176         * modules/iconv_open-utf: New file.
44177         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44178         (iconv, iconv_close): New declarations.
44179         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44180         be defined.
44181         (iconv_open): Add special handling of conversion between UTF-8 and
44182         UTF-{16,32}{BE,LE}.
44183         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44184         * lib/iconv_close.c: New file.
44185         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44186         gl_FUNC_ICONV_OPEN.
44187         (gl_FUNC_ICONV_OPEN): Use it.
44188         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44189         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44190         and REPLACE_ICONV_UTF.
44191         * modules/iconv_open (Depends-on): Add c-strcase.
44192         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44193         ICONV_CONST.
44194         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44195
44196 2007-10-13  Albert Chin  <china@thewrittenword.com>
44197             Bruno Haible  <bruno@clisp.org>
44198
44199         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44200         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44201
44202 2007-10-13  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44205         defined, use the ISO C99 inline semantics.
44206         * lib/argp.h (ARGP_EI): Likewise.
44207
44208 2007-10-13  Bruno Haible  <bruno@clisp.org>
44209
44210         Handle 'inline' change in gcc 4.3.0.
44211         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44212         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44213         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44214         argp_fmtstream_point): Disable 'extern' declaration if the function
44215         definition is going to be provided inline.
44216         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44217         semantics, not the ISO C99 inline semantics.
44218         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44219         'extern' declaration if the function definition is going to be provided
44220         inline.
44221         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44222         the GNU C inline semantics, not the ISO C99 inline semantics. With
44223         GCC 4.2, avoid a warning.
44224
44225 2007-10-13  Bruno Haible  <bruno@clisp.org>
44226
44227         * lib/freading.h (freading): Enable the use of __freading for
44228         glibc >= 2.7.
44229         * lib/freading.c (freading): Likewise.
44230
44231 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44232
44233         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44234         "warning: C99 inline functions are not supported; using GNU89".
44235
44236 2007-10-12  Bruno Haible  <bruno@clisp.org>
44237
44238         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44239         of 2.
44240         * tests/test-ceilf2.c: New file.
44241         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44242
44243         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44244         * modules/ceilf-tests: Update.
44245
44246 2007-10-12  Bruno Haible  <bruno@clisp.org>
44247
44248         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44249         of 2.
44250         * tests/test-floorf2.c: New file.
44251         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44252
44253         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44254         * modules/floorf-tests: Update.
44255
44256 2007-10-12  Bruno Haible  <bruno@clisp.org>
44257
44258         * tests/test-trunc2.c: New file.
44259         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44260
44261         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44262         * modules/trunc-tests: Update.
44263
44264 2007-10-12  Bruno Haible  <bruno@clisp.org>
44265
44266         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44267         of 2.
44268         * tests/test-truncf2.c: New file.
44269         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44270
44271         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44272         * modules/truncf-tests: Update.
44273
44274 2007-10-11  Eric Blake  <ebb9@byu.net>
44275
44276         Don't claim strerror is broken on Interix.
44277         * doc/functions/strerror.texi (strerror): Known broken systems are
44278         now Solaris 8, and not Interix.
44279         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44280         Interix on cross-compile.
44281         Reported by Martin Koeppe in
44282         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44283
44284 2007-10-11  Bruno Haible  <bruno@clisp.org>
44285
44286         * modules/i-ring-tests: New file.
44287         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44288         instead of assert.
44289
44290 2007-10-11  Bruno Haible  <bruno@clisp.org>
44291
44292         * modules/filenamecat-tests: New file.
44293         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44294         * lib/filenamecat.c: Remove test code.
44295
44296 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44297
44298         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44299
44300         * lib/strerror.c: Include <string.h> always, to test interface,
44301         and to remove the need for the dummy.
44302         Include intprops.h to compute width instead of doing it ourselves
44303         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44304         (strerror): Define it to return NULL if there's no system strerror.
44305         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44306         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44307         ancient pre-strerror Unix systems well any more.  Saying "unknown
44308         system error" is enough.
44309         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44310         simpler strerror.c implementation.
44311         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44312         Simplify the tests to reflect the simpler strerror implementation.
44313         * modules/strerror (Depends-on): Add intprops.
44314
44315 2007-10-09  Eric Blake  <ebb9@byu.net>
44316
44317         Silence test-fpending.
44318         * modules/fpending-tests (Files): Add wrapper script.
44319         * tests/test-fpending.sh: New file.
44320
44321 2007-10-09  Bruno Haible  <bruno@clisp.org>
44322
44323         * MODULES.html.sh (func_module): Don't create a hyperlink for
44324         function names like 'printf_frexp'.
44325         (Misc): Add crc, memxor.
44326         (Characteristics of floating types): New section.
44327         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44328         isnanf-nolibm, signbit, trunc, truncf, truncl.
44329         (Enhancements for ISO C 99 functions): New subsection Input/output.
44330         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44331         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44332         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44333         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44334         (Enhancements for POSIX:2001 functions): Add chdir-long.
44335         (File system functions): Add areadlink, chdir-safer, read-file.
44336         Remove cycle-check.
44337         (File system as inode set): New section.
44338         (Date and time): Add gethrxtime.
44339         (Multithreading): Add openmp.
44340         (Internationalization functions): Add localename.
44341         (Unicode string functions): Add unistr/u*-mbsnlen.
44342         (Support for maintaining and releasing projects): Add git-version-gen.
44343         (Lone files): Remove directories.
44344
44345 2007-10-08  Ben Pfaff  <blp@gnu.org>
44346
44347         * lib/xmalloca.h: Fix typo in comment.
44348
44349 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44350
44351         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44352         when avoiding problems with integer overflow.  Use a portable test
44353         instead.
44354
44355 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44356
44357         * modules/dummy (License): Change to LGPLv2+.
44358         * modules/float (License): Likewise
44359         * modules/realloc (License): Likewise
44360         * modules/stdlib (License): Likewise
44361
44362 2007-10-07  Bruno Haible  <bruno@clisp.org>
44363
44364         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44365         * floor.c (TWO_MANT_DIG): Likewise.
44366         * ceil.c (TWO_MANT_DIG): Likewise.
44367         Reported by Ben Pfaff.
44368
44369 2007-10-07  Bruno Haible  <bruno@clisp.org>
44370
44371         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44372         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44373         * lib/frexp.c (FUNC): Likewise.
44374         * lib/printf-frexp.h (printf_frexp): Likewise.
44375         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44376         * lib/printf-frexp.c (FUNC): Likewise.
44377         Suggested by Jim Meyering.
44378
44379 2007-10-07  Jim Meyering  <meyering@redhat.com>
44380
44381         Make xnanosleep's integer overflow test more robust.
44382         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44383         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44384
44385 2007-10-07  Bruno Haible  <bruno@clisp.org>
44386
44387         * NEWS: Mention the license change.
44388
44389         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44390         abbreviations in the modules files.
44391
44392         Change copyright notice from GPLv2+ to GPLv3+.
44393         * README: Change copyright notice.
44394         * MODULES.html.sh: Likewise.
44395         * build-aux/bootstrap.conf: Likewise.
44396         * build-aux/config.libpath: Likewise.
44397         * build-aux/csharpcomp.sh.in: Likewise.
44398         * build-aux/csharpexec.sh.in: Likewise.
44399         * build-aux/install-reloc: Likewise.
44400         * build-aux/javacomp.sh.in: Likewise.
44401         * build-aux/javaexec.sh.in: Likewise.
44402         * build-aux/ldd.sh.in: Likewise.
44403         * build-aux/reloc-ldflags: Likewise.
44404         * build-aux/relocatable.sh.in: Likewise.
44405         * build-aux/x-to-1.in: Likewise.
44406         * check-module: Likewise.
44407         * config/srclistvars.sh: Likewise.
44408         * gnulib-tool: Likewise.
44409         * lib/acl-internal.h: Likewise.
44410         * lib/acl.c: Likewise.
44411         * lib/acl.h: Likewise.
44412         * lib/acl_entries.c: Likewise.
44413         * lib/areadlink-with-size.c: Likewise.
44414         * lib/areadlink.c: Likewise.
44415         * lib/areadlink.h: Likewise.
44416         * lib/argmatch.c: Likewise.
44417         * lib/argmatch.h: Likewise.
44418         * lib/argp-ba.c: Likewise.
44419         * lib/argp-eexst.c: Likewise.
44420         * lib/argp-fmtstream.c: Likewise.
44421         * lib/argp-fmtstream.h: Likewise.
44422         * lib/argp-fs-xinl.c: Likewise.
44423         * lib/argp-help.c: Likewise.
44424         * lib/argp-namefrob.h: Likewise.
44425         * lib/argp-parse.c: Likewise.
44426         * lib/argp-pin.c: Likewise.
44427         * lib/argp-pv.c: Likewise.
44428         * lib/argp-pvh.c: Likewise.
44429         * lib/argp-xinl.c: Likewise.
44430         * lib/argp.h: Likewise.
44431         * lib/at-func.c: Likewise.
44432         * lib/atanl.c: Likewise.
44433         * lib/backupfile.c: Likewise.
44434         * lib/backupfile.h: Likewise.
44435         * lib/basename.c: Likewise.
44436         * lib/binary-io.h: Likewise.
44437         * lib/byteswap.in.h: Likewise.
44438         * lib/c-stack.c: Likewise.
44439         * lib/c-stack.h: Likewise.
44440         * lib/c-strcasestr.c: Likewise.
44441         * lib/c-strcasestr.h: Likewise.
44442         * lib/c-strstr.c: Likewise.
44443         * lib/c-strstr.h: Likewise.
44444         * lib/c-strtod.c: Likewise.
44445         * lib/calloc.c: Likewise.
44446         * lib/canon-host.c: Likewise.
44447         * lib/canon-host.h: Likewise.
44448         * lib/canonicalize-lgpl.c: Likewise.
44449         * lib/canonicalize.c: Likewise.
44450         * lib/canonicalize.h: Likewise.
44451         * lib/ceil.c: Likewise.
44452         * lib/ceilf.c: Likewise.
44453         * lib/ceill.c: Likewise.
44454         * lib/chdir-long.c: Likewise.
44455         * lib/chdir-long.h: Likewise.
44456         * lib/chdir-safer.c: Likewise.
44457         * lib/chdir-safer.h: Likewise.
44458         * lib/chown.c: Likewise.
44459         * lib/classpath.c: Likewise.
44460         * lib/classpath.h: Likewise.
44461         * lib/clean-temp.c: Likewise.
44462         * lib/clean-temp.h: Likewise.
44463         * lib/cloexec.c: Likewise.
44464         * lib/close-stream.c: Likewise.
44465         * lib/closein.c: Likewise.
44466         * lib/closein.h: Likewise.
44467         * lib/closeout.c: Likewise.
44468         * lib/closeout.h: Likewise.
44469         * lib/concat-filename.c: Likewise.
44470         * lib/copy-file.c: Likewise.
44471         * lib/copy-file.h: Likewise.
44472         * lib/count-one-bits.h: Likewise.
44473         * lib/crc.c: Likewise.
44474         * lib/crc.h: Likewise.
44475         * lib/creat-safer.c: Likewise.
44476         * lib/csharpcomp.c: Likewise.
44477         * lib/csharpcomp.h: Likewise.
44478         * lib/csharpexec.c: Likewise.
44479         * lib/csharpexec.h: Likewise.
44480         * lib/cycle-check.c: Likewise.
44481         * lib/cycle-check.h: Likewise.
44482         * lib/diacrit.c: Likewise.
44483         * lib/diacrit.h: Likewise.
44484         * lib/diffseq.h: Likewise.
44485         * lib/dirchownmod.c: Likewise.
44486         * lib/dirent.in.h: Likewise.
44487         * lib/dirfd.c: Likewise.
44488         * lib/dirfd.h: Likewise.
44489         * lib/dirname.c: Likewise.
44490         * lib/dirname.h: Likewise.
44491         * lib/dummy.c: Likewise.
44492         * lib/dup-safer.c: Likewise.
44493         * lib/dup2.c: Likewise.
44494         * lib/eealloc.h: Likewise.
44495         * lib/error.c: Likewise.
44496         * lib/error.h: Likewise.
44497         * lib/euidaccess.c: Likewise.
44498         * lib/exclude.c: Likewise.
44499         * lib/exclude.h: Likewise.
44500         * lib/execute.c: Likewise.
44501         * lib/execute.h: Likewise.
44502         * lib/exitfail.c: Likewise.
44503         * lib/exitfail.h: Likewise.
44504         * lib/expl.c: Likewise.
44505         * lib/fatal-signal.c: Likewise.
44506         * lib/fatal-signal.h: Likewise.
44507         * lib/fbufmode.c: Likewise.
44508         * lib/fbufmode.h: Likewise.
44509         * lib/fchdir.c: Likewise.
44510         * lib/fchmodat.c: Likewise.
44511         * lib/fchownat.c: Likewise.
44512         * lib/fcntl--.h: Likewise.
44513         * lib/fcntl-safer.h: Likewise.
44514         * lib/fcntl.in.h: Likewise.
44515         * lib/fd-safer.c: Likewise.
44516         * lib/fflush.c: Likewise.
44517         * lib/file-has-acl.c: Likewise.
44518         * lib/file-set.c: Likewise.
44519         * lib/file-type.c: Likewise.
44520         * lib/file-type.h: Likewise.
44521         * lib/fileblocks.c: Likewise.
44522         * lib/filemode.c: Likewise.
44523         * lib/filemode.h: Likewise.
44524         * lib/filename.h: Likewise.
44525         * lib/filenamecat.c: Likewise.
44526         * lib/filenamecat.h: Likewise.
44527         * lib/findprog.c: Likewise.
44528         * lib/findprog.h: Likewise.
44529         * lib/float.in.h: Likewise.
44530         * lib/floor.c: Likewise.
44531         * lib/floorf.c: Likewise.
44532         * lib/floorl.c: Likewise.
44533         * lib/fopen-safer.c: Likewise.
44534         * lib/fopen.c: Likewise.
44535         * lib/fpending.c: Likewise.
44536         * lib/fpending.h: Likewise.
44537         * lib/fprintf.c: Likewise.
44538         * lib/fprintftime.h: Likewise.
44539         * lib/fpucw.h: Likewise.
44540         * lib/fpurge.c: Likewise.
44541         * lib/fpurge.h: Likewise.
44542         * lib/freadable.c: Likewise.
44543         * lib/freadable.h: Likewise.
44544         * lib/freadahead.c: Likewise.
44545         * lib/freadahead.h: Likewise.
44546         * lib/freading.c: Likewise.
44547         * lib/freading.h: Likewise.
44548         * lib/free.c: Likewise.
44549         * lib/freopen.c: Likewise.
44550         * lib/frexp.c: Likewise.
44551         * lib/frexpl.c: Likewise.
44552         * lib/fseek.c: Likewise.
44553         * lib/fseterr.c: Likewise.
44554         * lib/fseterr.h: Likewise.
44555         * lib/fstatat.c: Likewise.
44556         * lib/fstrcmp.c: Likewise.
44557         * lib/fstrcmp.h: Likewise.
44558         * lib/fsusage.c: Likewise.
44559         * lib/fsusage.h: Likewise.
44560         * lib/ftell.c: Likewise.
44561         * lib/ftello.c: Likewise.
44562         * lib/fts-cycle.c: Likewise.
44563         * lib/fts.c: Likewise.
44564         * lib/fts_.h: Likewise.
44565         * lib/full-read.c: Likewise.
44566         * lib/full-read.h: Likewise.
44567         * lib/full-write.c: Likewise.
44568         * lib/full-write.h: Likewise.
44569         * lib/fwritable.c: Likewise.
44570         * lib/fwritable.h: Likewise.
44571         * lib/fwriteerror.c: Likewise.
44572         * lib/fwriteerror.h: Likewise.
44573         * lib/fwriting.c: Likewise.
44574         * lib/fwriting.h: Likewise.
44575         * lib/gcd.c: Likewise.
44576         * lib/gcd.h: Likewise.
44577         * lib/getcwd.c: Likewise.
44578         * lib/getdate.h: Likewise.
44579         * lib/getdate.y: Likewise.
44580         * lib/getdomainname.c: Likewise.
44581         * lib/getdomainname.h: Likewise.
44582         * lib/getgroups.c: Likewise.
44583         * lib/gethostname.c: Likewise.
44584         * lib/gethrxtime.c: Likewise.
44585         * lib/gethrxtime.h: Likewise.
44586         * lib/getloadavg.c: Likewise.
44587         * lib/getndelim2.c: Likewise.
44588         * lib/getndelim2.h: Likewise.
44589         * lib/getnline.c: Likewise.
44590         * lib/getnline.h: Likewise.
44591         * lib/getopt.c: Likewise.
44592         * lib/getopt.in.h: Likewise.
44593         * lib/getopt1.c: Likewise.
44594         * lib/getopt_int.h: Likewise.
44595         * lib/getpagesize.h: Likewise.
44596         * lib/getsubopt.c: Likewise.
44597         * lib/gettime.c: Likewise.
44598         * lib/getugroups.c: Likewise.
44599         * lib/getugroups.h: Likewise.
44600         * lib/getusershell.c: Likewise.
44601         * lib/gl_anyavltree_list1.h: Likewise.
44602         * lib/gl_anyavltree_list2.h: Likewise.
44603         * lib/gl_anyhash_list1.h: Likewise.
44604         * lib/gl_anyhash_list2.h: Likewise.
44605         * lib/gl_anylinked_list1.h: Likewise.
44606         * lib/gl_anylinked_list2.h: Likewise.
44607         * lib/gl_anyrbtree_list1.h: Likewise.
44608         * lib/gl_anyrbtree_list2.h: Likewise.
44609         * lib/gl_anytree_list1.h: Likewise.
44610         * lib/gl_anytree_list2.h: Likewise.
44611         * lib/gl_anytree_oset.h: Likewise.
44612         * lib/gl_anytreehash_list1.h: Likewise.
44613         * lib/gl_anytreehash_list2.h: Likewise.
44614         * lib/gl_array_list.c: Likewise.
44615         * lib/gl_array_list.h: Likewise.
44616         * lib/gl_array_oset.c: Likewise.
44617         * lib/gl_array_oset.h: Likewise.
44618         * lib/gl_avltree_list.c: Likewise.
44619         * lib/gl_avltree_list.h: Likewise.
44620         * lib/gl_avltree_oset.c: Likewise.
44621         * lib/gl_avltree_oset.h: Likewise.
44622         * lib/gl_avltreehash_list.c: Likewise.
44623         * lib/gl_avltreehash_list.h: Likewise.
44624         * lib/gl_carray_list.c: Likewise.
44625         * lib/gl_carray_list.h: Likewise.
44626         * lib/gl_linked_list.c: Likewise.
44627         * lib/gl_linked_list.h: Likewise.
44628         * lib/gl_linkedhash_list.c: Likewise.
44629         * lib/gl_linkedhash_list.h: Likewise.
44630         * lib/gl_list.c: Likewise.
44631         * lib/gl_list.h: Likewise.
44632         * lib/gl_oset.c: Likewise.
44633         * lib/gl_oset.h: Likewise.
44634         * lib/gl_rbtree_list.c: Likewise.
44635         * lib/gl_rbtree_list.h: Likewise.
44636         * lib/gl_rbtree_oset.c: Likewise.
44637         * lib/gl_rbtree_oset.h: Likewise.
44638         * lib/gl_rbtreehash_list.c: Likewise.
44639         * lib/gl_rbtreehash_list.h: Likewise.
44640         * lib/gl_sublist.c: Likewise.
44641         * lib/gl_sublist.h: Likewise.
44642         * lib/group-member.c: Likewise.
44643         * lib/group-member.h: Likewise.
44644         * lib/hard-locale.c: Likewise.
44645         * lib/hard-locale.h: Likewise.
44646         * lib/hash-pjw.c: Likewise.
44647         * lib/hash-pjw.h: Likewise.
44648         * lib/hash-triple.c: Likewise.
44649         * lib/hash.c: Likewise.
44650         * lib/hash.h: Likewise.
44651         * lib/human.c: Likewise.
44652         * lib/human.h: Likewise.
44653         * lib/i-ring.c: Likewise.
44654         * lib/i-ring.h: Likewise.
44655         * lib/idcache.c: Likewise.
44656         * lib/imaxabs.c: Likewise.
44657         * lib/imaxdiv.c: Likewise.
44658         * lib/inet_pton.c: Likewise.
44659         * lib/inet_pton.h: Likewise.
44660         * lib/intprops.h: Likewise.
44661         * lib/inttostr.c: Likewise.
44662         * lib/inttostr.h: Likewise.
44663         * lib/inttypes.in.h: Likewise.
44664         * lib/isapipe.c: Likewise.
44665         * lib/isdir.c: Likewise.
44666         * lib/isnan.c: Likewise.
44667         * lib/isnan.h: Likewise.
44668         * lib/isnanf.c: Likewise.
44669         * lib/isnanf.h: Likewise.
44670         * lib/isnanl-nolibm.h: Likewise.
44671         * lib/isnanl.c: Likewise.
44672         * lib/isnanl.h: Likewise.
44673         * lib/javacomp.c: Likewise.
44674         * lib/javacomp.h: Likewise.
44675         * lib/javaexec.c: Likewise.
44676         * lib/javaexec.h: Likewise.
44677         * lib/javaversion.c: Likewise.
44678         * lib/javaversion.h: Likewise.
44679         * lib/javaversion.java: Likewise.
44680         * lib/lbrkprop.h: Likewise.
44681         * lib/lchmod.h: Likewise.
44682         * lib/lchown.c: Likewise.
44683         * lib/ldexpl.c: Likewise.
44684         * lib/linebreak.c: Likewise.
44685         * lib/linebreak.h: Likewise.
44686         * lib/linebuffer.c: Likewise.
44687         * lib/linebuffer.h: Likewise.
44688         * lib/locale.in.h: Likewise.
44689         * lib/logl.c: Likewise.
44690         * lib/long-options.c: Likewise.
44691         * lib/long-options.h: Likewise.
44692         * lib/lstat.c: Likewise.
44693         * lib/lstat.h: Likewise.
44694         * lib/math.in.h: Likewise.
44695         * lib/mbchar.c: Likewise.
44696         * lib/mbchar.h: Likewise.
44697         * lib/mbfile.h: Likewise.
44698         * lib/mbiter.h: Likewise.
44699         * lib/mbscasecmp.c: Likewise.
44700         * lib/mbscasestr.c: Likewise.
44701         * lib/mbschr.c: Likewise.
44702         * lib/mbscspn.c: Likewise.
44703         * lib/mbslen.c: Likewise.
44704         * lib/mbsncasecmp.c: Likewise.
44705         * lib/mbsnlen.c: Likewise.
44706         * lib/mbspbrk.c: Likewise.
44707         * lib/mbspcasecmp.c: Likewise.
44708         * lib/mbsrchr.c: Likewise.
44709         * lib/mbssep.c: Likewise.
44710         * lib/mbsspn.c: Likewise.
44711         * lib/mbsstr.c: Likewise.
44712         * lib/mbstok_r.c: Likewise.
44713         * lib/mbswidth.c: Likewise.
44714         * lib/mbswidth.h: Likewise.
44715         * lib/mbuiter.h: Likewise.
44716         * lib/memcasecmp.c: Likewise.
44717         * lib/memcasecmp.h: Likewise.
44718         * lib/memchr.c: Likewise.
44719         * lib/memcmp.c: Likewise.
44720         * lib/memcoll.c: Likewise.
44721         * lib/memcoll.h: Likewise.
44722         * lib/memcpy.c: Likewise.
44723         * lib/memrchr.c: Likewise.
44724         * lib/mkancesdirs.c: Likewise.
44725         * lib/mkdir-p.c: Likewise.
44726         * lib/mkdir-p.h: Likewise.
44727         * lib/mkdir.c: Likewise.
44728         * lib/mkdirat.c: Likewise.
44729         * lib/mkdtemp.c: Likewise.
44730         * lib/mkstemp-safer.c: Likewise.
44731         * lib/mkstemp.c: Likewise.
44732         * lib/modechange.c: Likewise.
44733         * lib/modechange.h: Likewise.
44734         * lib/mountlist.c: Likewise.
44735         * lib/mountlist.h: Likewise.
44736         * lib/mpsort.c: Likewise.
44737         * lib/nanosleep.c: Likewise.
44738         * lib/obstack.c: Likewise.
44739         * lib/obstack.h: Likewise.
44740         * lib/open-safer.c: Likewise.
44741         * lib/open.c: Likewise.
44742         * lib/openat-die.c: Likewise.
44743         * lib/openat-priv.h: Likewise.
44744         * lib/openat-proc.c: Likewise.
44745         * lib/openat.c: Likewise.
44746         * lib/openat.h: Likewise.
44747         * lib/pagealign_alloc.c: Likewise.
44748         * lib/pagealign_alloc.h: Likewise.
44749         * lib/physmem.c: Likewise.
44750         * lib/physmem.h: Likewise.
44751         * lib/pipe-safer.c: Likewise.
44752         * lib/pipe.c: Likewise.
44753         * lib/pipe.h: Likewise.
44754         * lib/posixtm.c: Likewise.
44755         * lib/posixtm.h: Likewise.
44756         * lib/posixver.c: Likewise.
44757         * lib/printf-frexp.c: Likewise.
44758         * lib/printf-frexp.h: Likewise.
44759         * lib/printf-frexpl.c: Likewise.
44760         * lib/printf-frexpl.h: Likewise.
44761         * lib/printf.c: Likewise.
44762         * lib/progname.c: Likewise.
44763         * lib/progname.h: Likewise.
44764         * lib/progreloc.c: Likewise.
44765         * lib/putenv.c: Likewise.
44766         * lib/quote.c: Likewise.
44767         * lib/quote.h: Likewise.
44768         * lib/quotearg.c: Likewise.
44769         * lib/quotearg.h: Likewise.
44770         * lib/raise.c: Likewise.
44771         * lib/readline.c: Likewise.
44772         * lib/readline.h: Likewise.
44773         * lib/readlink.c: Likewise.
44774         * lib/readtokens.c: Likewise.
44775         * lib/readtokens.h: Likewise.
44776         * lib/readtokens0.c: Likewise.
44777         * lib/readtokens0.h: Likewise.
44778         * lib/readutmp.c: Likewise.
44779         * lib/readutmp.h: Likewise.
44780         * lib/realloc.c: Likewise.
44781         * lib/relocwrapper.c: Likewise.
44782         * lib/rename-dest-slash.c: Likewise.
44783         * lib/rename.c: Likewise.
44784         * lib/rmdir.c: Likewise.
44785         * lib/rpmatch.c: Likewise.
44786         * lib/safe-read.c: Likewise.
44787         * lib/safe-read.h: Likewise.
44788         * lib/safe-write.c: Likewise.
44789         * lib/safe-write.h: Likewise.
44790         * lib/same-inode.h: Likewise.
44791         * lib/same.c: Likewise.
44792         * lib/same.h: Likewise.
44793         * lib/save-cwd.c: Likewise.
44794         * lib/save-cwd.h: Likewise.
44795         * lib/savedir.c: Likewise.
44796         * lib/savedir.h: Likewise.
44797         * lib/savewd.c: Likewise.
44798         * lib/savewd.h: Likewise.
44799         * lib/search.in.h: Likewise.
44800         * lib/setenv.c: Likewise.
44801         * lib/setenv.h: Likewise.
44802         * lib/settime.c: Likewise.
44803         * lib/sh-quote.c: Likewise.
44804         * lib/sh-quote.h: Likewise.
44805         * lib/sig2str.c: Likewise.
44806         * lib/sig2str.h: Likewise.
44807         * lib/signal.in.h: Likewise.
44808         * lib/signbitd.c: Likewise.
44809         * lib/signbitf.c: Likewise.
44810         * lib/signbitl.c: Likewise.
44811         * lib/sigprocmask.c: Likewise.
44812         * lib/sincosl.c: Likewise.
44813         * lib/sleep.c: Likewise.
44814         * lib/sprintf.c: Likewise.
44815         * lib/sqrtl.c: Likewise.
44816         * lib/stat-time.h: Likewise.
44817         * lib/stdio--.h: Likewise.
44818         * lib/stdio-safer.h: Likewise.
44819         * lib/stdlib--.h: Likewise.
44820         * lib/stdlib-safer.h: Likewise.
44821         * lib/stdlib.in.h: Likewise.
44822         * lib/stpcpy.c: Likewise.
44823         * lib/stpncpy.c: Likewise.
44824         * lib/strchrnul.c: Likewise.
44825         * lib/strcspn.c: Likewise.
44826         * lib/strerror.c: Likewise.
44827         * lib/strftime.c: Likewise.
44828         * lib/strftime.h: Likewise.
44829         * lib/striconveh.c: Likewise.
44830         * lib/striconveh.h: Likewise.
44831         * lib/striconveha.c: Likewise.
44832         * lib/striconveha.h: Likewise.
44833         * lib/stripslash.c: Likewise.
44834         * lib/strnlen1.c: Likewise.
44835         * lib/strnlen1.h: Likewise.
44836         * lib/strtod.c: Likewise.
44837         * lib/strtoimax.c: Likewise.
44838         * lib/strtok_r.c: Likewise.
44839         * lib/strtol.c: Likewise.
44840         * lib/strtoll.c: Likewise.
44841         * lib/strtoul.c: Likewise.
44842         * lib/strtoull.c: Likewise.
44843         * lib/sysexits.in.h: Likewise.
44844         * lib/tempname.c: Likewise.
44845         * lib/tempname.h: Likewise.
44846         * lib/timespec.h: Likewise.
44847         * lib/tls.c: Likewise.
44848         * lib/tls.h: Likewise.
44849         * lib/tmpdir.c: Likewise.
44850         * lib/tmpdir.h: Likewise.
44851         * lib/tmpfile-safer.c: Likewise.
44852         * lib/tmpfile.c: Likewise.
44853         * lib/trigl.c: Likewise.
44854         * lib/trigl.h: Likewise.
44855         * lib/trim.c: Likewise.
44856         * lib/trim.h: Likewise.
44857         * lib/trunc.c: Likewise.
44858         * lib/truncf.c: Likewise.
44859         * lib/truncl.c: Likewise.
44860         * lib/tsearch.c: Likewise.
44861         * lib/unicodeio.c: Likewise.
44862         * lib/unicodeio.h: Likewise.
44863         * lib/unistd--.h: Likewise.
44864         * lib/unistd-safer.h: Likewise.
44865         * lib/unistdio/ulc-fprintf.c: Likewise.
44866         * lib/unistdio/ulc-vfprintf.c: Likewise.
44867         * lib/unlinkdir.c: Likewise.
44868         * lib/unlinkdir.h: Likewise.
44869         * lib/unlocked-io.h: Likewise.
44870         * lib/unsetenv.c: Likewise.
44871         * lib/userspec.c: Likewise.
44872         * lib/utime.c: Likewise.
44873         * lib/utimecmp.c: Likewise.
44874         * lib/utimecmp.h: Likewise.
44875         * lib/utimens.c: Likewise.
44876         * lib/verify.h: Likewise.
44877         * lib/verror.c: Likewise.
44878         * lib/verror.h: Likewise.
44879         * lib/version-etc-fsf.c: Likewise.
44880         * lib/version-etc.c: Likewise.
44881         * lib/version-etc.h: Likewise.
44882         * lib/vfprintf.c: Likewise.
44883         * lib/vprintf.c: Likewise.
44884         * lib/vsprintf.c: Likewise.
44885         * lib/w32spawn.h: Likewise.
44886         * lib/wait-process.c: Likewise.
44887         * lib/wait-process.h: Likewise.
44888         * lib/wcwidth.c: Likewise.
44889         * lib/write-any-file.c: Likewise.
44890         * lib/xalloc-die.c: Likewise.
44891         * lib/xalloc.h: Likewise.
44892         * lib/xasprintf.c: Likewise.
44893         * lib/xgetcwd.c: Likewise.
44894         * lib/xgetcwd.h: Likewise.
44895         * lib/xgetdomainname.c: Likewise.
44896         * lib/xgetdomainname.h: Likewise.
44897         * lib/xgethostname.c: Likewise.
44898         * lib/xmalloc.c: Likewise.
44899         * lib/xmalloca.c: Likewise.
44900         * lib/xmalloca.h: Likewise.
44901         * lib/xmemcoll.c: Likewise.
44902         * lib/xnanosleep.c: Likewise.
44903         * lib/xreadlink.c: Likewise.
44904         * lib/xreadlink.h: Likewise.
44905         * lib/xsetenv.c: Likewise.
44906         * lib/xsetenv.h: Likewise.
44907         * lib/xstriconv.c: Likewise.
44908         * lib/xstriconv.h: Likewise.
44909         * lib/xstrndup.c: Likewise.
44910         * lib/xstrndup.h: Likewise.
44911         * lib/xstrtod.c: Likewise.
44912         * lib/xstrtod.h: Likewise.
44913         * lib/xstrtol-error.c: Likewise.
44914         * lib/xstrtol.c: Likewise.
44915         * lib/xstrtol.h: Likewise.
44916         * lib/xtime.h: Likewise.
44917         * lib/xvasprintf.c: Likewise.
44918         * lib/xvasprintf.h: Likewise.
44919         * lib/yesno.c: Likewise.
44920         * lib/yesno.h: Likewise.
44921         * posix-modules: Likewise.
44922         * tests/test-alloca-opt.c: Likewise.
44923         * tests/test-arcfour.c: Likewise.
44924         * tests/test-arctwo.c: Likewise.
44925         * tests/test-argmatch.c: Likewise.
44926         * tests/test-argp-2.sh: Likewise.
44927         * tests/test-argp.c: Likewise.
44928         * tests/test-arpa_inet.c: Likewise.
44929         * tests/test-array_list.c: Likewise.
44930         * tests/test-array_oset.c: Likewise.
44931         * tests/test-atexit.c: Likewise.
44932         * tests/test-avltree_list.c: Likewise.
44933         * tests/test-avltree_oset.c: Likewise.
44934         * tests/test-avltreehash_list.c: Likewise.
44935         * tests/test-base64.c: Likewise.
44936         * tests/test-binary-io.c: Likewise.
44937         * tests/test-byteswap.c: Likewise.
44938         * tests/test-c-ctype.c: Likewise.
44939         * tests/test-c-strcasecmp.c: Likewise.
44940         * tests/test-c-strcasestr.c: Likewise.
44941         * tests/test-c-strncasecmp.c: Likewise.
44942         * tests/test-c-strstr.c: Likewise.
44943         * tests/test-canonicalize-lgpl.c: Likewise.
44944         * tests/test-canonicalize.c: Likewise.
44945         * tests/test-carray_list.c: Likewise.
44946         * tests/test-ceilf.c: Likewise.
44947         * tests/test-ceill.c: Likewise.
44948         * tests/test-count-one-bits.c: Likewise.
44949         * tests/test-crc.c: Likewise.
44950         * tests/test-dirname.c: Likewise.
44951         * tests/test-fbufmode.c: Likewise.
44952         * tests/test-fcntl.c: Likewise.
44953         * tests/test-fflush.c: Likewise.
44954         * tests/test-floorf.c: Likewise.
44955         * tests/test-floorl.c: Likewise.
44956         * tests/test-fopen.c: Likewise.
44957         * tests/test-fprintf-posix.c: Likewise.
44958         * tests/test-fprintf-posix.h: Likewise.
44959         * tests/test-fpurge.c: Likewise.
44960         * tests/test-freadable.c: Likewise.
44961         * tests/test-freadahead.c: Likewise.
44962         * tests/test-freading.c: Likewise.
44963         * tests/test-freopen.c: Likewise.
44964         * tests/test-frexp.c: Likewise.
44965         * tests/test-frexpl.c: Likewise.
44966         * tests/test-fseek.c: Likewise.
44967         * tests/test-fseeko.c: Likewise.
44968         * tests/test-fseterr.c: Likewise.
44969         * tests/test-fstrcmp.c: Likewise.
44970         * tests/test-ftell.c: Likewise.
44971         * tests/test-ftello.c: Likewise.
44972         * tests/test-fwritable.c: Likewise.
44973         * tests/test-fwriting.c: Likewise.
44974         * tests/test-getaddrinfo.c: Likewise.
44975         * tests/test-getpass.c: Likewise.
44976         * tests/test-gettimeofday.c: Likewise.
44977         * tests/test-hmac-md5.c: Likewise.
44978         * tests/test-hmac-sha1.c: Likewise.
44979         * tests/test-iconv.c: Likewise.
44980         * tests/test-iconvme.c: Likewise.
44981         * tests/test-inttypes.c: Likewise.
44982         * tests/test-isnan.c: Likewise.
44983         * tests/test-isnanf.c: Likewise.
44984         * tests/test-isnanl-nolibm.c: Likewise.
44985         * tests/test-isnanl.c: Likewise.
44986         * tests/test-isnanl.h: Likewise.
44987         * tests/test-ldexpl.c: Likewise.
44988         * tests/test-linked_list.c: Likewise.
44989         * tests/test-linkedhash_list.c: Likewise.
44990         * tests/test-locale.c: Likewise.
44991         * tests/test-localename.c: Likewise.
44992         * tests/test-lock.c: Likewise.
44993         * tests/test-lseek.c: Likewise.
44994         * tests/test-malloca.c: Likewise.
44995         * tests/test-math.c: Likewise.
44996         * tests/test-mbscasecmp.c: Likewise.
44997         * tests/test-mbscasestr1.c: Likewise.
44998         * tests/test-mbscasestr2.c: Likewise.
44999         * tests/test-mbscasestr3.c: Likewise.
45000         * tests/test-mbscasestr4.c: Likewise.
45001         * tests/test-mbschr.c: Likewise.
45002         * tests/test-mbscspn.c: Likewise.
45003         * tests/test-mbsncasecmp.c: Likewise.
45004         * tests/test-mbspbrk.c: Likewise.
45005         * tests/test-mbspcasecmp.c: Likewise.
45006         * tests/test-mbsrchr.c: Likewise.
45007         * tests/test-mbsspn.c: Likewise.
45008         * tests/test-mbsstr1.c: Likewise.
45009         * tests/test-mbsstr2.c: Likewise.
45010         * tests/test-mbsstr3.c: Likewise.
45011         * tests/test-md5.c: Likewise.
45012         * tests/test-memmem.c: Likewise.
45013         * tests/test-netinet_in.c: Likewise.
45014         * tests/test-open.c: Likewise.
45015         * tests/test-printf-frexp.c: Likewise.
45016         * tests/test-printf-frexpl.c: Likewise.
45017         * tests/test-printf-posix.c: Likewise.
45018         * tests/test-printf-posix.h: Likewise.
45019         * tests/test-rbtree_list.c: Likewise.
45020         * tests/test-rbtree_oset.c: Likewise.
45021         * tests/test-rbtreehash_list.c: Likewise.
45022         * tests/test-read-file.c: Likewise.
45023         * tests/test-rijndael.c: Likewise.
45024         * tests/test-search.c: Likewise.
45025         * tests/test-signbit.c: Likewise.
45026         * tests/test-sleep.c: Likewise.
45027         * tests/test-snprintf-posix.c: Likewise.
45028         * tests/test-snprintf-posix.h: Likewise.
45029         * tests/test-snprintf.c: Likewise.
45030         * tests/test-sprintf-posix.c: Likewise.
45031         * tests/test-sprintf-posix.h: Likewise.
45032         * tests/test-stat-time.c: Likewise.
45033         * tests/test-stdbool.c: Likewise.
45034         * tests/test-stdint.c: Likewise.
45035         * tests/test-stdio.c: Likewise.
45036         * tests/test-stdlib.c: Likewise.
45037         * tests/test-stpncpy.c: Likewise.
45038         * tests/test-strcasestr.c: Likewise.
45039         * tests/test-striconv.c: Likewise.
45040         * tests/test-striconveh.c: Likewise.
45041         * tests/test-striconveha.c: Likewise.
45042         * tests/test-string.c: Likewise.
45043         * tests/test-sys_select.c: Likewise.
45044         * tests/test-sys_socket.c: Likewise.
45045         * tests/test-sys_stat.c: Likewise.
45046         * tests/test-sys_time.c: Likewise.
45047         * tests/test-sysexits.c: Likewise.
45048         * tests/test-time.c: Likewise.
45049         * tests/test-tls.c: Likewise.
45050         * tests/test-trunc.c: Likewise.
45051         * tests/test-truncf.c: Likewise.
45052         * tests/test-truncl.c: Likewise.
45053         * tests/test-unistd.c: Likewise.
45054         * tests/test-vasnprintf-posix.c: Likewise.
45055         * tests/test-vasnprintf-posix2.c: Likewise.
45056         * tests/test-vasnprintf.c: Likewise.
45057         * tests/test-vasprintf-posix.c: Likewise.
45058         * tests/test-vasprintf.c: Likewise.
45059         * tests/test-verify.c: Likewise.
45060         * tests/test-vfprintf-posix.c: Likewise.
45061         * tests/test-vprintf-posix.c: Likewise.
45062         * tests/test-vsnprintf-posix.c: Likewise.
45063         * tests/test-vsnprintf.c: Likewise.
45064         * tests/test-vsprintf-posix.c: Likewise.
45065         * tests/test-wchar.c: Likewise.
45066         * tests/test-wctype.c: Likewise.
45067         * tests/test-wcwidth.c: Likewise.
45068         * tests/test-xstrtol.c: Likewise.
45069         * tests/test-xvasprintf.c: Likewise.
45070         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45071         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45072         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45073         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45074         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45075         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45076         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45077         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45078         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45079         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45080         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45081         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45082         * tests/uniname/test-uninames.c: Likewise.
45083         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45084         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45085         * tests/unistdio/test-u16-printf1.h: Likewise.
45086         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45087         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45088         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45089         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45090         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45091         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45092         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45093         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45094         * tests/unistdio/test-u32-printf1.h: Likewise.
45095         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45096         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45097         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45098         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45099         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45100         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45101         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45102         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45103         * tests/unistdio/test-u8-printf1.h: Likewise.
45104         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45105         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45106         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45107         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45108         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45109         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45110         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45111         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45112         * tests/unistdio/test-ulc-printf1.h: Likewise.
45113         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45114         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45115         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45116         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45117         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45118         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45119         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45120         * tests/uniwidth/test-u16-width.c: Likewise.
45121         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45122         * tests/uniwidth/test-u32-width.c: Likewise.
45123         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45124         * tests/uniwidth/test-u8-width.c: Likewise.
45125         * tests/uniwidth/test-uc_width.c: Likewise.
45126         * config/srclist-update: Likewise.
45127         (fixlicense): Update to GPLv3+.
45128
45129         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45130         * tests/test-tsearch.c: Change copyright notice.
45131
45132         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45133         * lib/c-strcaseeq.h: Change copyright notice.
45134         * lib/streq.h: Likewise.
45135         * lib/uniconv.h: Likewise.
45136         * lib/uniconv/u-conv-from-enc.h: Likewise.
45137         * lib/uniconv/u-conv-to-enc.h: Likewise.
45138         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45139         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45140         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45141         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45142         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45143         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45144         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45145         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45146         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45147         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45148         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45149         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45150         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45151         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45152         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45153         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45154         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45155         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45156         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45157         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45158         * lib/uniname.h: Likewise.
45159         * lib/uniname/uniname.c: Likewise.
45160         * lib/unistdio.h: Likewise.
45161         * lib/unistdio/u-asnprintf.h: Likewise.
45162         * lib/unistdio/u-asprintf.h: Likewise.
45163         * lib/unistdio/u-printf-args.c: Likewise.
45164         * lib/unistdio/u-printf-args.h: Likewise.
45165         * lib/unistdio/u-printf-parse.h: Likewise.
45166         * lib/unistdio/u-snprintf.h: Likewise.
45167         * lib/unistdio/u-sprintf.h: Likewise.
45168         * lib/unistdio/u-vasprintf.h: Likewise.
45169         * lib/unistdio/u-vsnprintf.h: Likewise.
45170         * lib/unistdio/u-vsprintf.h: Likewise.
45171         * lib/unistdio/u16-asnprintf.c: Likewise.
45172         * lib/unistdio/u16-asprintf.c: Likewise.
45173         * lib/unistdio/u16-printf-parse.c: Likewise.
45174         * lib/unistdio/u16-snprintf.c: Likewise.
45175         * lib/unistdio/u16-sprintf.c: Likewise.
45176         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45177         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45178         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45179         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45180         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45181         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45182         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45183         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45184         * lib/unistdio/u16-vasnprintf.c: Likewise.
45185         * lib/unistdio/u16-vasprintf.c: Likewise.
45186         * lib/unistdio/u16-vsnprintf.c: Likewise.
45187         * lib/unistdio/u16-vsprintf.c: Likewise.
45188         * lib/unistdio/u32-asnprintf.c: Likewise.
45189         * lib/unistdio/u32-asprintf.c: Likewise.
45190         * lib/unistdio/u32-printf-parse.c: Likewise.
45191         * lib/unistdio/u32-snprintf.c: Likewise.
45192         * lib/unistdio/u32-sprintf.c: Likewise.
45193         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45194         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45195         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45196         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45197         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45198         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45199         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45200         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45201         * lib/unistdio/u32-vasnprintf.c: Likewise.
45202         * lib/unistdio/u32-vasprintf.c: Likewise.
45203         * lib/unistdio/u32-vsnprintf.c: Likewise.
45204         * lib/unistdio/u32-vsprintf.c: Likewise.
45205         * lib/unistdio/u8-asnprintf.c: Likewise.
45206         * lib/unistdio/u8-asprintf.c: Likewise.
45207         * lib/unistdio/u8-printf-parse.c: Likewise.
45208         * lib/unistdio/u8-snprintf.c: Likewise.
45209         * lib/unistdio/u8-sprintf.c: Likewise.
45210         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45211         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45212         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45213         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45214         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45215         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45216         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45217         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45218         * lib/unistdio/u8-vasnprintf.c: Likewise.
45219         * lib/unistdio/u8-vasprintf.c: Likewise.
45220         * lib/unistdio/u8-vsnprintf.c: Likewise.
45221         * lib/unistdio/u8-vsprintf.c: Likewise.
45222         * lib/unistdio/ulc-asnprintf.c: Likewise.
45223         * lib/unistdio/ulc-asprintf.c: Likewise.
45224         * lib/unistdio/ulc-printf-parse.c: Likewise.
45225         * lib/unistdio/ulc-snprintf.c: Likewise.
45226         * lib/unistdio/ulc-sprintf.c: Likewise.
45227         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45228         * lib/unistdio/ulc-vasprintf.c: Likewise.
45229         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45230         * lib/unistdio/ulc-vsprintf.c: Likewise.
45231         * lib/unistr.h: Likewise.
45232         * lib/unistr/u-cpy-alloc.h: Likewise.
45233         * lib/unistr/u-cpy.h: Likewise.
45234         * lib/unistr/u-endswith.h: Likewise.
45235         * lib/unistr/u-move.h: Likewise.
45236         * lib/unistr/u-set.h: Likewise.
45237         * lib/unistr/u-startswith.h: Likewise.
45238         * lib/unistr/u-stpcpy.h: Likewise.
45239         * lib/unistr/u-stpncpy.h: Likewise.
45240         * lib/unistr/u-strcat.h: Likewise.
45241         * lib/unistr/u-strcpy.h: Likewise.
45242         * lib/unistr/u-strcspn.h: Likewise.
45243         * lib/unistr/u-strdup.h: Likewise.
45244         * lib/unistr/u-strlen.h: Likewise.
45245         * lib/unistr/u-strncat.h: Likewise.
45246         * lib/unistr/u-strncpy.h: Likewise.
45247         * lib/unistr/u-strnlen.h: Likewise.
45248         * lib/unistr/u-strpbrk.h: Likewise.
45249         * lib/unistr/u-strspn.h: Likewise.
45250         * lib/unistr/u-strstr.h: Likewise.
45251         * lib/unistr/u-strtok.h: Likewise.
45252         * lib/unistr/u16-check.c: Likewise.
45253         * lib/unistr/u16-chr.c: Likewise.
45254         * lib/unistr/u16-cmp.c: Likewise.
45255         * lib/unistr/u16-cpy-alloc.c: Likewise.
45256         * lib/unistr/u16-cpy.c: Likewise.
45257         * lib/unistr/u16-endswith.c: Likewise.
45258         * lib/unistr/u16-mblen.c: Likewise.
45259         * lib/unistr/u16-mbsnlen.c: Likewise.
45260         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45261         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45262         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45263         * lib/unistr/u16-mbtouc.c: Likewise.
45264         * lib/unistr/u16-mbtoucr.c: Likewise.
45265         * lib/unistr/u16-move.c: Likewise.
45266         * lib/unistr/u16-next.c: Likewise.
45267         * lib/unistr/u16-prev.c: Likewise.
45268         * lib/unistr/u16-set.c: Likewise.
45269         * lib/unistr/u16-startswith.c: Likewise.
45270         * lib/unistr/u16-stpcpy.c: Likewise.
45271         * lib/unistr/u16-stpncpy.c: Likewise.
45272         * lib/unistr/u16-strcat.c: Likewise.
45273         * lib/unistr/u16-strchr.c: Likewise.
45274         * lib/unistr/u16-strcmp.c: Likewise.
45275         * lib/unistr/u16-strcpy.c: Likewise.
45276         * lib/unistr/u16-strcspn.c: Likewise.
45277         * lib/unistr/u16-strdup.c: Likewise.
45278         * lib/unistr/u16-strlen.c: Likewise.
45279         * lib/unistr/u16-strmblen.c: Likewise.
45280         * lib/unistr/u16-strmbtouc.c: Likewise.
45281         * lib/unistr/u16-strncat.c: Likewise.
45282         * lib/unistr/u16-strncmp.c: Likewise.
45283         * lib/unistr/u16-strncpy.c: Likewise.
45284         * lib/unistr/u16-strnlen.c: Likewise.
45285         * lib/unistr/u16-strpbrk.c: Likewise.
45286         * lib/unistr/u16-strrchr.c: Likewise.
45287         * lib/unistr/u16-strspn.c: Likewise.
45288         * lib/unistr/u16-strstr.c: Likewise.
45289         * lib/unistr/u16-strtok.c: Likewise.
45290         * lib/unistr/u16-to-u32.c: Likewise.
45291         * lib/unistr/u16-to-u8.c: Likewise.
45292         * lib/unistr/u16-uctomb-aux.c: Likewise.
45293         * lib/unistr/u16-uctomb.c: Likewise.
45294         * lib/unistr/u32-check.c: Likewise.
45295         * lib/unistr/u32-chr.c: Likewise.
45296         * lib/unistr/u32-cmp.c: Likewise.
45297         * lib/unistr/u32-cpy-alloc.c: Likewise.
45298         * lib/unistr/u32-cpy.c: Likewise.
45299         * lib/unistr/u32-endswith.c: Likewise.
45300         * lib/unistr/u32-mblen.c: Likewise.
45301         * lib/unistr/u32-mbsnlen.c: Likewise.
45302         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45303         * lib/unistr/u32-mbtouc.c: Likewise.
45304         * lib/unistr/u32-mbtoucr.c: Likewise.
45305         * lib/unistr/u32-move.c: Likewise.
45306         * lib/unistr/u32-next.c: Likewise.
45307         * lib/unistr/u32-prev.c: Likewise.
45308         * lib/unistr/u32-set.c: Likewise.
45309         * lib/unistr/u32-startswith.c: Likewise.
45310         * lib/unistr/u32-stpcpy.c: Likewise.
45311         * lib/unistr/u32-stpncpy.c: Likewise.
45312         * lib/unistr/u32-strcat.c: Likewise.
45313         * lib/unistr/u32-strchr.c: Likewise.
45314         * lib/unistr/u32-strcmp.c: Likewise.
45315         * lib/unistr/u32-strcpy.c: Likewise.
45316         * lib/unistr/u32-strcspn.c: Likewise.
45317         * lib/unistr/u32-strdup.c: Likewise.
45318         * lib/unistr/u32-strlen.c: Likewise.
45319         * lib/unistr/u32-strmblen.c: Likewise.
45320         * lib/unistr/u32-strmbtouc.c: Likewise.
45321         * lib/unistr/u32-strncat.c: Likewise.
45322         * lib/unistr/u32-strncmp.c: Likewise.
45323         * lib/unistr/u32-strncpy.c: Likewise.
45324         * lib/unistr/u32-strnlen.c: Likewise.
45325         * lib/unistr/u32-strpbrk.c: Likewise.
45326         * lib/unistr/u32-strrchr.c: Likewise.
45327         * lib/unistr/u32-strspn.c: Likewise.
45328         * lib/unistr/u32-strstr.c: Likewise.
45329         * lib/unistr/u32-strtok.c: Likewise.
45330         * lib/unistr/u32-to-u16.c: Likewise.
45331         * lib/unistr/u32-to-u8.c: Likewise.
45332         * lib/unistr/u32-uctomb.c: Likewise.
45333         * lib/unistr/u8-check.c: Likewise.
45334         * lib/unistr/u8-chr.c: Likewise.
45335         * lib/unistr/u8-cmp.c: Likewise.
45336         * lib/unistr/u8-cpy-alloc.c: Likewise.
45337         * lib/unistr/u8-cpy.c: Likewise.
45338         * lib/unistr/u8-endswith.c: Likewise.
45339         * lib/unistr/u8-mblen.c: Likewise.
45340         * lib/unistr/u8-mbsnlen.c: Likewise.
45341         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45342         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45343         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45344         * lib/unistr/u8-mbtouc.c: Likewise.
45345         * lib/unistr/u8-mbtoucr.c: Likewise.
45346         * lib/unistr/u8-move.c: Likewise.
45347         * lib/unistr/u8-next.c: Likewise.
45348         * lib/unistr/u8-prev.c: Likewise.
45349         * lib/unistr/u8-set.c: Likewise.
45350         * lib/unistr/u8-startswith.c: Likewise.
45351         * lib/unistr/u8-stpcpy.c: Likewise.
45352         * lib/unistr/u8-stpncpy.c: Likewise.
45353         * lib/unistr/u8-strcat.c: Likewise.
45354         * lib/unistr/u8-strchr.c: Likewise.
45355         * lib/unistr/u8-strcmp.c: Likewise.
45356         * lib/unistr/u8-strcpy.c: Likewise.
45357         * lib/unistr/u8-strcspn.c: Likewise.
45358         * lib/unistr/u8-strdup.c: Likewise.
45359         * lib/unistr/u8-strlen.c: Likewise.
45360         * lib/unistr/u8-strmblen.c: Likewise.
45361         * lib/unistr/u8-strmbtouc.c: Likewise.
45362         * lib/unistr/u8-strncat.c: Likewise.
45363         * lib/unistr/u8-strncmp.c: Likewise.
45364         * lib/unistr/u8-strncpy.c: Likewise.
45365         * lib/unistr/u8-strnlen.c: Likewise.
45366         * lib/unistr/u8-strpbrk.c: Likewise.
45367         * lib/unistr/u8-strrchr.c: Likewise.
45368         * lib/unistr/u8-strspn.c: Likewise.
45369         * lib/unistr/u8-strstr.c: Likewise.
45370         * lib/unistr/u8-strtok.c: Likewise.
45371         * lib/unistr/u8-to-u16.c: Likewise.
45372         * lib/unistr/u8-to-u32.c: Likewise.
45373         * lib/unistr/u8-uctomb-aux.c: Likewise.
45374         * lib/unistr/u8-uctomb.c: Likewise.
45375         * lib/unitypes.h: Likewise.
45376         * lib/uniwidth.h: Likewise.
45377         * lib/uniwidth/cjk.h: Likewise.
45378         * lib/uniwidth/u16-strwidth.c: Likewise.
45379         * lib/uniwidth/u16-width.c: Likewise.
45380         * lib/uniwidth/u32-strwidth.c: Likewise.
45381         * lib/uniwidth/u32-width.c: Likewise.
45382         * lib/uniwidth/u8-strwidth.c: Likewise.
45383         * lib/uniwidth/u8-width.c: Likewise.
45384         * lib/uniwidth/width.c: Likewise.
45385
45386 2007-10-07  Bruno Haible  <bruno@clisp.org>
45387
45388         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45389         The file is still under LGPL (see modules/inttypes).
45390
45391 2007-10-06  Bruno Haible  <bruno@clisp.org>
45392
45393         * modules/trunc (Dependencies): Add 'extensions'.
45394         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45395         Reported by Ben Pfaff <blp@gnu.org>.
45396
45397 2007-10-06  Bruno Haible  <bruno@clisp.org>
45398
45399         * modules/freopen-tests: New file.
45400         * tests/test-freopen.c: New file.
45401
45402         * modules/fopen-tests: New file.
45403         * tests/test-fopen.c: New file.
45404
45405         * modules/fopen: New file.
45406         * lib/fopen.c: New file.
45407         * m4/fopen.m4: New file.
45408         * modules/freopen: New file.
45409         * lib/freopen.c: New file.
45410         * m4/freopen.m4: New file.
45411         * lib/stdio.in.h (fopen, freopen): New declarations.
45412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45413         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45414         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45415         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45416         * doc/functions/fopen.texi: Mention the 'fopen' module.
45417         * doc/functions/freopen.texi: Mention the 'freopen' module.
45418
45419 2007-10-06  Bruno Haible  <bruno@clisp.org>
45420
45421         * modules/open-tests: New file.
45422         * tests/test-open.c: New file.
45423
45424         * modules/open: New file.
45425         * lib/open.c: New file.
45426         * m4/open.m4: New file.
45427         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45428         lib/open.c does.
45429         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45430         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45431         macros.
45432         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45433         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45434         REPLACE_OPEN.
45435         * doc/functions/open.texi: Mention the 'open' module.
45436
45437 2007-10-04  Bruno Haible  <bruno@clisp.org>
45438
45439         * modules/ceill-tests: New file.
45440         * tests/test-ceill.c: New file.
45441
45442         * modules/ceill: New file.
45443         * lib/ceill.c: Replace entire file.
45444         * m4/ceill.m4: New file.
45445         * lib/math.in.h (ceill): Replace declaration.
45446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45447         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45448         * doc/functions/ceill.texi: Mention the 'ceill' module.
45449         * modules/mathl (Files): Remove lib/ceill.c.
45450         (Depends-on): Add ceill.
45451
45452 2007-10-04  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/ceilf-tests: New file.
45455         * tests/test-ceilf.c: New file.
45456
45457         * modules/ceilf: New file.
45458         * lib/ceil.c: New file.
45459         * lib/ceilf.c: New file.
45460         * m4/ceilf.m4: New file.
45461         * lib/math.in.h (ceilf): New declaration.
45462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45463         HAVE_DECL_CEILF.
45464         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45465         HAVE_DECL_CEILF.
45466         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45467
45468 2007-10-04  Bruno Haible  <bruno@clisp.org>
45469
45470         * modules/floorl-tests: New file.
45471         * tests/test-floorl.c: New file.
45472
45473         * modules/floorl: New file.
45474         * lib/floorl.c: Replace entire file.
45475         * m4/floorl.m4: New file.
45476         * lib/math.in.h (floorl): Replace declaration.
45477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45478         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45479         * doc/functions/floorl.texi: Mention the 'floorl' module.
45480         * modules/mathl (Files): Remove lib/floorl.c.
45481         (Depends-on): Add floorl.
45482
45483 2007-10-04  Bruno Haible  <bruno@clisp.org>
45484
45485         * modules/floorf-tests: New file.
45486         * tests/test-floorf.c: New file.
45487
45488         * modules/floorf: New file.
45489         * lib/floor.c: New file.
45490         * lib/floorf.c: New file.
45491         * m4/floorf.m4: New file.
45492         * lib/math.in.h (floorf): New declaration.
45493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45494         HAVE_DECL_FLOORF.
45495         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45496         HAVE_DECL_FLOORF.
45497         * doc/functions/floorf.texi: Mention the 'floorf' module.
45498
45499 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45500             Bruno Haible  <bruno@clisp.org>
45501
45502         Advertise for the Git server instead of the CVS server.
45503         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45504         repository instead of the CVS one.
45505         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45506         about all VCS systems generically.
45507         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45508
45509 2007-10-04  Bruno Haible  <bruno@clisp.org>
45510
45511         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45512         means.
45513         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45514
45515 2007-10-04  Bruno Haible  <bruno@clisp.org>
45516
45517         * modules/truncl-tests: New file.
45518         * tests/test-truncl.c: New file.
45519
45520         * modules/truncl: New file.
45521         * lib/truncl.c: New file.
45522         * m4/truncl.m4: New file.
45523         * lib/math.in.h (truncl): New declaration.
45524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45525         HAVE_DECL_TRUNCL.
45526         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45527         HAVE_DECL_TRUNCL.
45528         * doc/functions/truncl.texi: Mention the 'truncl' module.
45529
45530 2007-10-04  Bruno Haible  <bruno@clisp.org>
45531
45532         * modules/truncf-tests: New file.
45533         * tests/test-truncf.c: New file.
45534
45535         * modules/truncf: New file.
45536         * lib/trunc.c: Make paramerizable through USE_* macros.
45537         * lib/truncf.c: New file.
45538         * m4/truncf.m4: New file.
45539         * lib/math.in.h (truncf): New declaration.
45540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45541         HAVE_DECL_TRUNCF.
45542         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45543         HAVE_DECL_TRUNCF.
45544         * doc/functions/truncf.texi: Mention the 'truncf' module.
45545
45546 2007-10-03  Bruno Haible  <bruno@clisp.org>
45547
45548         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45549         augmentation also for tests modules.
45550         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45551         * modules/atexit-tests (Makefile.am): Likewise.
45552         * modules/binary-io-tests (Makefile.am): Likewise.
45553         * modules/c-strcase-tests (Makefile.am): Likewise.
45554         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45555         * modules/canonicalize-tests (Makefile.am): Likewise.
45556         * modules/closein-tests (Makefile.am): Likewise.
45557         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45558         * modules/freadahead-tests (Makefile.am): Likewise.
45559         * modules/fseek-tests (Makefile.am): Likewise.
45560         * modules/fseeko-tests (Makefile.am): Likewise.
45561         * modules/ftell-tests (Makefile.am): Likewise.
45562         * modules/ftello-tests (Makefile.am): Likewise.
45563         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45564         * modules/isnanl-tests (Makefile.am): Likewise.
45565         * modules/lseek-tests (Makefile.am): Likewise.
45566         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45567         * modules/mbscasestr-tests (Makefile.am): Likewise.
45568         * modules/mbschr-tests (Makefile.am): Likewise.
45569         * modules/mbscspn-tests (Makefile.am): Likewise.
45570         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45571         * modules/mbspbrk-tests (Makefile.am): Likewise.
45572         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45573         * modules/mbsrchr-tests (Makefile.am): Likewise.
45574         * modules/mbsspn-tests (Makefile.am): Likewise.
45575         * modules/mbsstr-tests (Makefile.am): Likewise.
45576         * modules/printf-posix-tests (Makefile.am): Likewise.
45577         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45578         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45579         * modules/tsearch-tests (Makefile.am): Likewise.
45580         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45581         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45582         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45583         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45584         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45585         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45586         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45587         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45588         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45589         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45590         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45591         * modules/xstrtol-tests (Makefile.am): Likewise.
45592         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45593         * modules/yesno-tests (Makefile.am): Likewise.
45594
45595 2007-10-03  Bruno Haible  <bruno@clisp.org>
45596
45597         * modules/trunc-tests: New file.
45598         * tests/test-trunc.c: New file.
45599
45600         * modules/trunc: New file.
45601         * lib/trunc.c: New file.
45602         * m4/trunc.m4: New file.
45603         * lib/math.in.h (trunc): New declaration.
45604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45605         HAVE_DECL_TRUNC.
45606         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45607         HAVE_DECL_TRUNC.
45608         * doc/functions/trunc.texi: Mention the 'trunc' module.
45609
45610 2007-10-03  Bruno Haible  <bruno@clisp.org>
45611
45612         * tests/test-fpending.c: New file, mostly copied
45613         from coreutils/lib/t-fpending.c.
45614         * modules/fpending-tests: New file.
45615
45616 2007-10-03  Bruno Haible  <bruno@clisp.org>
45617
45618         Port the stdio extensions to QNX (untested).
45619         * lib/fseterr.c (fseterr): Add support for QNX.
45620         * lib/fbufmode.c (fbufmode): Likewise.
45621         * lib/freadable.c (freadable): Likewise.
45622         * lib/fwritable.c (fwritable): Likewise.
45623         * lib/freading.c (freading): Likewise.
45624         * lib/fwriting.c (fwriting): Likewise.
45625         * lib/freadahead.c (freadahed): Likewise.
45626         * lib/fpurge.c (fpurge): Likewise.
45627         * lib/fseeko.c (rpl_fseeko): Likewise.
45628
45629 2007-10-03  Bruno Haible  <bruno@clisp.org>
45630             Jim Meyering  <jim@meyering.net>
45631             Eric Blake  <ebb9@byu.net>
45632
45633         * doc/relocatable.texi: Use @command instead of @program.
45634
45635 2007-10-02  Jim Meyering  <jim@meyering.net>
45636
45637         Perform one more "_.h" -> ".in.h" substitution.
45638         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45639         instead of unistd_.h here, too.
45640
45641 2007-10-01  Bruno Haible  <bruno@clisp.org>
45642
45643         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45644         Needed for the alloca-opt module.
45645
45646 2007-09-30  Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45649         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45650         alloca_.h.
45651         * lib/argz.in.h: Renamed from lib/argz_.h.
45652         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45653         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45654         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45655         byteswap_.h.
45656         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45657         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45658         dirent_.h.
45659         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45660         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45661         fcntl_.h.
45662         * lib/float.in.h: Renamed from lib/float_.h.
45663         * modules/float (Files, Makefile.am): Use float.in.h instead of
45664         float_.h.
45665         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45666         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45667         fnmatch_.h.
45668         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45669         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45670         getopt_.h.
45671         * lib/glob.in.h: Renamed from lib/glob_.h.
45672         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45673         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45674         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45675         iconv_.h.
45676         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45677         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45678         inttypes_.h.
45679         * lib/locale.in.h: Renamed from lib/locale_.h.
45680         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45681         locale_.h.
45682         * lib/math.in.h: Renamed from lib/math_.h.
45683         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45684         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45685         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45686         of netinet_in_.h. Add dependency.
45687         * lib/poll.in.h: Renamed from lib/poll_.h.
45688         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45689         * lib/search.in.h: Renamed from lib/search_.h.
45690         * modules/search (Files, Makefile.am): Use search.in.h instead of
45691         search_.h.
45692         * lib/signal.in.h: Renamed from lib/signal_.h.
45693         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45694         _signal.h.
45695         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45696         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45697         stdbool_.h.
45698         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45699         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45700         stdint_.h.
45701         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45702         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45703         stdio_.h.
45704         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45705         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45706         stdlib_.h.
45707         * lib/string.in.h: Renamed from lib/string_.h.
45708         * modules/string (Files, Makefile.am): Use string.in.h instead of
45709         string_.h.
45710         * doc/gnulib-tool.texi (Initial import): Update.
45711         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45712         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45713         of sys_select_.h. Add dependency.
45714         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45715         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45716         of sys_socket_.h.
45717         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45718         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45719         sys_stat_.h.
45720         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45721         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45722         sys_time_.h.
45723         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45724         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45725         sysexits_.h.
45726         * lib/time.in.h: Renamed from lib/time_.h.
45727         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45728         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45729         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45730         unistd_.h.
45731         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45732         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45733         wchar_.h.
45734         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45735         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45736         wctype_.h.
45737         * build-aux/bootstrap (slurp): Update.
45738         * lib/.cppi-disable: Update.
45739
45740 2007-09-30  Bruno Haible  <bruno@clisp.org>
45741
45742         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45743         Needed on BeOS.
45744
45745 2007-09-30  Bruno Haible  <bruno@clisp.org>
45746
45747         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45748
45749 2007-09-29  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45752
45753 2007-09-29  Bruno Haible  <bruno@clisp.org>
45754
45755         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45756         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45757         * build-aux/install-reloc: Compile also areadlink.c.
45758         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45759
45760 2007-09-29  Bruno Haible  <bruno@clisp.org>
45761
45762         * gnulib-tool (func_emit_initmacro_done): Indentation.
45763
45764 2007-09-29  Bruno Haible  <bruno@clisp.org>
45765
45766         * README: Add CVS checkout update instructions.
45767         Info from Bob Proulx <bob@proulx.com>.
45768
45769 2007-09-28  Eric Blake  <ebb9@byu.net>
45770
45771         Provide move-if-change.
45772         * build-aux/move-if-change: New file, based on best practice
45773         rather than any canonical upstream location.
45774
45775 2007-09-28  Jim Meyering  <jim@meyering.net>
45776
45777         Fix canonicalize loop-detection corner case.
45778         Do not attempt to stat the symlink values stored via seen_triple.
45779         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45780         on linux-2.6.18, (but not 2.6.22).
45781         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45782         triple_compare.  The former compares dev,ino,filename, while the latter
45783         would actually stat dirname(filename) when dev and ino were equal.
45784         * lib/hash-triple.c: Install <string.h>.
45785         (STREQ): Define.
45786         (triple_compare_ino_str): New function.
45787         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45788
45789 2007-09-28  Eric Blake  <ebb9@byu.net>
45790
45791         Enforce that AC_REPLACE_FUNCS files exist.
45792         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45793         override check for typos.
45794
45795         Fix test-closein on Solaris 10.
45796         * tests/test-closein.c (main): Don't assume stdin can be inherited
45797         closed on all systems.
45798         * tests/test-closein.sh: Likewise.
45799         Reported by Piotr Tarnowski.
45800
45801 2007-09-28  Jim Meyering  <jim@meyering.net>
45802
45803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45804
45805 2007-09-27  Jim Meyering  <jim@meyering.net>
45806
45807         canonicalize: Avoid a false-positive cycle failure.
45808         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45809         Sort.  Remove cycle-check.
45810         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45811         not cycle-check.h.
45812         (seen_triple): New function.
45813         (canonicalize_filename_mode): Use it instead of cycle-check.
45814         * tests/test-canonicalize.c: Add a test for this bug.
45815         * tests/test-canonicalize.sh: Set up and run the test.
45816
45817         New module, file-set, from coreutils.
45818         * modules/file-set: Define it.
45819         * lib/file-set.c, lib/file-set.h: Implement.
45820
45821         New module, hash-triple, from coreutils.
45822         * modules/hash-triple: Define it.
45823         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45824
45825 2007-09-25  Eric Blake  <ebb9@byu.net>
45826
45827         Fix strerror on Interix.
45828         * lib/string_.h (strerror): Declare replacement.
45829         * doc/functions/strerror.texi (strerror): Document the Interix
45830         shortcoming.
45831         * modules/string (Makefile.am): Support new hooks.
45832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45833         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45834         gl_FUNC_STRERROR_SEPARATE.
45835         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45836         * lib/strerror.c (rpl_strerror): Provide replacement.
45837         * modules/strerror (Depends-on): Add string.
45838         (configure.ac): Detect use of module.
45839         * tests/test-strerror.c: New file.
45840         * modules/strerror-tests: New test module.
45841         * modules/argp (Depends-on): Add strerror.
45842         * modules/error (Depends-on): Likewise.
45843         Reported by Martin Koeppe.
45844
45845 2007-09-24  Bruno Haible  <bruno@clisp.org>
45846
45847         * README: Update git instructions.
45848
45849 2007-09-24  Eric Blake  <ebb9@byu.net>
45850
45851         Revert fpending breakage from 2007-09-08.
45852         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45853         __fpending.c.
45854
45855 2007-09-24  Jim Meyering  <jim@meyering.net>
45856
45857         filenamecat.c: Add a test.
45858         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45859         showing how the function works when DIR is the empty string.
45860
45861 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45862
45863         * tests/test-canonicalize.sh: Turn on executable bit.
45864
45865 2007-09-19  Eric Blake  <ebb9@byu.net>
45866
45867         * README: Update CVS instructions.
45868
45869 2007-09-18  Bruno Haible  <bruno@clisp.org>
45870
45871         * modules/areadlink: New file.
45872         * lib/areadlink.h (areadlink): New declaration.
45873         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45874
45875 2007-09-17  Jim Meyering  <jim@meyering.net>
45876
45877         * lib/savewd.c (ESTALE) [!defined]: Define.
45878         Reported to be required on Interix by Martin Koeppe.
45879
45880 2007-09-17  Bruno Haible  <bruno@clisp.org>
45881
45882         * gnulib-tool (func_version): Use $version.
45883
45884 2007-09-16  Bruno Haible  <bruno@clisp.org>
45885
45886         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45887         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45888         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45889         Reported by Greg Schafer <gschafer@zip.com.au>.
45890
45891 2007-09-15  Bruno Haible  <bruno@clisp.org>
45892
45893         * gnulib-tool (sed): Try a little harder to make bash understand the
45894         alias.
45895         Reported by Bruce Korb <bruce.korb@gmail.com>.
45896
45897 2007-09-13  Eric Blake  <ebb9@byu.net>
45898
45899         * ChangeLog: Remove conflict markers.
45900
45901 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45902
45903         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45904         Reported by Bruno Haible <bruno@clisp.org>.
45905
45906 2007-09-12  Bruno Haible  <bruno@clisp.org>
45907
45908         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45909         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45910         is not defined.
45911
45912 2007-09-12  Eric Blake  <ebb9@byu.net>
45913
45914         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45915         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45916         Autoconf definition.
45917         * modules/euidaccess (Depends-on): Add extensions, for
45918         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45919         * modules/fnmatch (Depends-on): Likewise.
45920         * modules/getaddrinfo (Depends-on): Likewise.
45921         * modules/getdelim (Depends-on): Likewise.
45922         * modules/getline (Depends-on): Likewise.
45923         * modules/getsubopt (Depends-on): Likewise.
45924         * modules/gettext (Depends-on): Likewise.
45925         * modules/group-member (Depends-on): Likewise.
45926         * modules/mbchar (Depends-on): Likewise.
45927         * modules/memmem (Depends-on): Likewise.
45928         * modules/mempcpy (Depends-on): Likewise.
45929         * modules/memrchr (Depends-on): Likewise.
45930         * modules/pagealign_alloc (Depends-on): Likewise.
45931         * modules/readutmp (Depends-on): Likewise.
45932         * modules/stpcpy (Depends-on): Likewise.
45933         * modules/stpncpy (Depends-on): Likewise.
45934         * modules/strchrnul (Depends-on): Likewise.
45935         * modules/strndup (Depends-on): Likewise.
45936         * modules/strsep (Depends-on): Likewise.
45937         * modules/strverscmp (Depends-on): Likewise.
45938         * modules/vasprintf (Depends-on): Likewise.
45939         * modules/wcwidth (Depends-on): Likewise.
45940         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45941         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45942         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45944         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45945         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45946         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45947         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45948         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45949         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45950         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45951         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45952         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45953         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45954         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45955         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45956         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45957         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45959         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45960         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45961         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45962         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45963         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45964         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45966         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45967         so that lock.m4 can be used in gettext without extensions module.
45968
45969 2007-09-11  Bruno Haible  <bruno@clisp.org>
45970
45971         * m4/isc-posix.m4: Remove file.
45972         Suggested by Eric Blake.
45973
45974 2007-09-11  Eric Blake  <ebb9@byu.net>
45975
45976         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45977
45978 2007-09-10  Bruno Haible  <bruno@clisp.org>
45979
45980         * posix-modules: Fix typo in error message.
45981         Reported by Matt <mkraai@beckman.com>.
45982
45983 2007-09-09  Bruno Haible  <bruno@clisp.org>
45984
45985         * doc/functions/getdelim.texi: Update list of platforms lacking the
45986         function.
45987         * doc/functions/getline.texi: Likewise.
45988
45989 2007-09-09  Jim Meyering  <jim@meyering.net>
45990
45991         * lib/hash.c (hash_initialize): Detect calloc failure.
45992         Reported by Bruno Haible.
45993
45994 2007-09-09  Bruno Haible  <bruno@clisp.org>
45995
45996         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45997         malloc or realloc fails.
45998
45999 2007-09-09  Bruno Haible  <bruno@clisp.org>
46000
46001         * modules/getcwd (Depends-on): Add malloc-posix.
46002         * modules/glob (Depends-on): Likewise.
46003         * modules/putenv (Depends-on): Likewise.
46004         * modules/strdup (Depends-on): Likewise.
46005         * modules/getdelim (Depends-on): Add realloc-posix.
46006         * modules/read-file (Depends-on): Likewise.
46007
46008 2007-09-09  Bruno Haible  <bruno@clisp.org>
46009
46010         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46011         (gl_FUNC_MALLOC_POSIX): Require it.
46012         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46013         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46014         * modules/realloc (Files): Add m4/malloc.m4.
46015         * modules/calloc (Files): Likewise.
46016
46017 2007-09-09  Bruno Haible  <bruno@clisp.org>
46018
46019         * modules/malloc-posix: New file.
46020         * modules/malloc (Depends-on): Add malloc-posix.
46021         * lib/malloc.c: Include errno.h.
46022         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46023         and a POSIX-compatible malloc into a single function. Set ENOMEM
46024         when returning NULL.
46025         * m4/malloc.m4: New file.
46026         * doc/functions/malloc.texi: Mention the malloc-posix module.
46027         * lib/stdlib_.h (malloc): New declaration.
46028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46029         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46030         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46031         and HAVE_MALLOC_POSIX.
46032
46033 2007-09-09  Bruno Haible  <bruno@clisp.org>
46034
46035         * modules/realloc-posix: New file.
46036         * modules/realloc (Depends-on): Add realloc-posix.
46037         * lib/realloc.c: Include errno.h.
46038         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46039         and a POSIX-compatible realloc into a single function. Set ENOMEM
46040         when returning NULL.
46041         * m4/realloc.m4: New file.
46042         * doc/functions/realloc.texi: Mention the realloc-posix module.
46043         * lib/stdlib_.h (realloc): New declaration.
46044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46045         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46046         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46047         and HAVE_REALLOC_POSIX.
46048
46049 2007-09-09  Bruno Haible  <bruno@clisp.org>
46050
46051         * modules/calloc-posix: New file.
46052         * modules/calloc (Depends-on): Add calloc-posix.
46053         * lib/calloc.c: Include errno.h.
46054         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46055         and a POSIX-compatible calloc into a single function. Set ENOMEM
46056         when returning NULL.
46057         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46058         * doc/functions/calloc.texi: Mention the calloc-posix module.
46059         * lib/stdlib_.h (calloc): New declaration.
46060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46061         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46062         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46063         and HAVE_CALLOC_POSIX.
46064
46065 2007-09-09  Bruno Haible  <bruno@clisp.org>
46066
46067         Allow for modules to show an arbitrary notice.
46068         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46069         * gnulib-tool: New option --extract-notice.
46070         (func_usage): Document it.
46071         (sed_extract_prog): Update.
46072         (func_get_notice): New function.
46073         (func_modules_notice): New function.
46074         (func_import, func_create_testdir): Invoke it.
46075         Suggested by Jim Meyering.
46076
46077 2007-09-09  Bruno Haible  <bruno@clisp.org>
46078
46079         * gnulib-tool: New options --verbose, --quiet.
46080         (func_usage): Document them.
46081         (verbose): New variable.
46082         (func_execute_command): New function.
46083         (func_import): Don't show the module list and the file list if
46084         $verbose < 0.
46085         (func_create_testdir): Likewise. Use func_execute_command.
46086         (func_create_megatestdir): Use func_execute_command.
46087
46088 2007-09-08  Bruno Haible  <bruno@clisp.org>
46089
46090         * gnulib-tool (func_import): Prefer rsync over wget when available,
46091         for fetching the PO files.
46092
46093 2007-09-08  Bruno Haible  <bruno@clisp.org>
46094
46095         * posix-modules: New file. Portions copied from gnulib-tool.
46096         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46097
46098 2007-09-08  Jim Meyering  <jim@meyering.net>
46099
46100         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46101         * lib/fpending.h: Rename from __fpending.h.
46102         * lib/fpending.c: Rename from __fpending.c.
46103         Include "fpending.h", not "__fpending.h".
46104         * lib/__fpending.h, lib/__fpending.c: Remove files.
46105         * modules/fpending (Files): Reflect new file names.
46106         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46107
46108 2007-09-08  Bruno Haible  <bruno@clisp.org>
46109
46110         * m4/inttypes-h.m4: Remove stub file.
46111
46112 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46113
46114         * doc/headers/stdint.texi: Discuss #include_next issue.
46115
46116 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46117
46118         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46119
46120 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46121
46122         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46123         in variable name.
46124
46125 2007-09-03  Jim Meyering  <jim@meyering.net>
46126
46127         New module: git-version-gen.
46128         * modules/git-version-gen: New file.
46129
46130         Import changes from coreutils for bootstrap script.
46131
46132         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46133
46134         bootstrap: uses rsync to download the .po files
46135         * build-aux/bootstrap (po_download_command_format): New global.
46136         (download_po_files): Use rsync.
46137         (update_po_files): Don't remove .po files after download,
46138         so future rsync runs can take advantage of the copies.
46139
46140         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46141
46142         Solve the unnecessary-.po-file-regeneration problem once and for all.
46143         * build-aux/bootstrap (download_po_files): New function, renamed from
46144         get_translations.  Now, downloads, but doesn't update LINGUAS.
46145         (update_po_files): New function.
46146
46147         bootstrap: Ignore more.
46148         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46149         uniwidth to e.g., lib/.gitignore.
46150         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46151
46152         * build-aux/bootstrap: New setting: vc_ignore.
46153         (insert_sorted_if_absent): Create $file if absent.
46154         Adapt to new, possibly empty, list: $vc_ignore.
46155
46156         bootstrap: generate more ignorable names
46157         * build-aux/bootstrap (slurp): When generating ignorable names,
46158         also map .sin to .sed, .gperf to .c, and .y to .c.
46159
46160 2007-09-03  Jim Meyering  <jim@meyering.net>
46161
46162         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46163         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46164
46165 2007-09-02  Bruno Haible  <bruno@clisp.org>
46166
46167         Fix mis-recognition of 'mcs' on QNX 6.
46168         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46169         output contains the string "Mono".
46170         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46171         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46172
46173 2007-09-01  Bruno Haible  <bruno@clisp.org>
46174
46175         Fix collision between uniwidth/* and linebreak modules.
46176         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46177         u32_width): Remove declarations.
46178         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46179         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46180         streq3, streq2, streq1, streq0): Remove functions.
46181         (STREQ): Remove macro.
46182         (is_cjk_encoding): Remove function.
46183         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46184         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46185         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46186         * NEWS: Document the change.
46187
46188 2007-09-01  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/streq.h: Add double-inclusion guard.
46191
46192 2007-09-01  Karl Berry  <karl@gnu.org>
46193
46194         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46195
46196 2007-08-28  Jim Meyering  <jim@meyering.net>
46197
46198         Rename mreadlink_with_size to areadlink_with_size.
46199         * NEWS: Document the change.
46200         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46201         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46202         * lib/mreadlink.h: Rename this to...
46203         * lib/areadlink.h: ...this.
46204         * modules/mreadlink-with-size: Rename this to...
46205         * modules/areadlink-with-size: ...this.
46206         * lib/canonicalize.c: Reflect the renaming.
46207         * modules/canonicalize: Likewise.
46208
46209 2007-08-26  Bruno Haible  <bruno@clisp.org>
46210
46211         * gnulib-tool (func_import): When deciding which files to remove,
46212         consider also dangling symbolic links.
46213         Reported by Eric Blake.
46214
46215 2007-08-26  Bruno Haible  <bruno@clisp.org>
46216
46217         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46218
46219 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46220
46221         * lib/readline.c: Don't include getline.h, the prototype is now
46222         found in stdio.h.
46223
46224 2007-08-23  Jim Meyering  <jim@meyering.net>
46225
46226         Getdelim touchup.
46227         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46228         around the funlockfile call, since funlockfile never sets errno.
46229         Don't set errno upon failed realloc.
46230
46231 2007-08-22  Eric Blake  <ebb9@byu.net>
46232
46233         Getline touchups.
46234         * lib/getdelim.c (getdelim): Revert regression that required *n to
46235         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46237         getdelim, rather than whether implementation is missing.
46238         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46239         * lib/stdio_.h (getline): Also declare if replacement is
46240         required.
46241         * doc/functions/getdelim.texi: New file.
46242         * doc/functions/getline.texi: Likewise.
46243         * doc/gnulib.texi (Function Substitutes): Add new files.
46244         Reported by Bruno Haible.
46245
46246 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46247
46248         * users.txt: Add Guile.
46249
46250 2007-08-22  Eric Blake  <ebb9@byu.net>
46251
46252         * tests/test-getdelim.c (main): Use remove, not unlink.
46253         * tests/test-getline.c (main): Likewise.
46254
46255         Move getline and getdelim into stdio.h, per POSIX 200x.
46256         * modules/getline (Files): Remove getline.h.
46257         (Depends-on): Add stdio.
46258         (configure.ac): Add module indicator.
46259         * modules/getdelim (Files): Remove getdelim.h.
46260         (Depends-on): Add stdio.
46261         (configure.ac): Add module indicator.
46262         * modules/stdio (Makefile.am): Work with new indicators.
46263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46264         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46265         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46266         * lib/getdelim.h: Delete.
46267         * lib/getline.h: Delete.
46268         * lib/stdio_.h (getdelim, getline): Declare.
46269         * modules/getdelim-tests: New module.
46270         * modules/getline-tests: Likewise.
46271         * tests/test-getdelim.c: New file.
46272         * tests/test-getline.c: Likewise.
46273         * NEWS: Document the change.
46274         * lib/getline.c: Update choice of header.
46275         * lib/csharpcomp.c: Likewise.
46276         * lib/getpass.c: Likewise.
46277         * lib/javacomp.c: Likewise.
46278         * lib/javaversion.c: Likewise.
46279         * lib/yesno.c: Likewise.
46280         * lib/getdelim.c: Likewise.
46281         (getdelim): Set errno on failure, and avoid memory leak.
46282
46283 2007-08-19  Bruno Haible  <bruno@clisp.org>
46284
46285         * modules/closein (Depends-on): Add freadahead.
46286         * lib/closein.c: Include freadahead.h.
46287         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46288         is zero.
46289
46290 2007-08-19  Bruno Haible  <bruno@clisp.org>
46291
46292         * modules/freadahead-tests: New file.
46293         * tests/test-freadahead.sh: New file.
46294         * tests/test-freadahead.c: New file.
46295
46296         * modules/freadahead: New file.
46297         * lib/freadahead.h: New file.
46298         * lib/freadahead.c: New file.
46299         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46300         fbufmode, fpurge, freadable, fwritable.
46301
46302 2007-08-19  Eric Blake  <ebb9@byu.net>
46303
46304         Test yesno in combination with closein.
46305         * lib/yesno.c (yesno): Document use of stdin.
46306         * modules/yesno-tests (Files): New module.
46307         * tests/test-yesno.c (main): New file.
46308         * tests/test-yesno.sh: Likewise.
46309
46310 2007-08-19  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46313         * lib/fseeko.c (rpl_fseeko): Likewise.
46314         * lib/fseterr.c (fseterr): Likewise.
46315
46316 2007-08-19  Bruno Haible  <bruno@clisp.org>
46317
46318         * tests/test-lseek.c (main): Disable a test for BeOS.
46319         * doc/functions/lseek.texi: Document the BeOS bug.
46320
46321 2007-08-19  Bruno Haible  <bruno@clisp.org>
46322             Eric Blake  <ebb9@byu.net>
46323
46324         * lib/lseek.c: Include <sys/stat.h>.
46325         (rpl_lseek): Add workaround code also for Unix platforms.
46326         Needed for BeOS.
46327         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46328         * doc/functions/lseek.texi: Document BeOS definiency.
46329
46330 2007-08-18  Bruno Haible  <bruno@clisp.org>
46331
46332         * modules/fstrcmp-tests: New file.
46333         * tests/test-fstrcmp.c: New file.
46334
46335 2007-08-18  Bruno Haible  <bruno@clisp.org>
46336
46337         * modules/fstrcmp: New file, from GNU gettext with modifications.
46338         * lib/fstrcmp.h: New file, from GNU gettext.
46339         * lib/fstrcmp.c: New file, from GNU gettext.
46340         * MODULES.html.sh (String handling): Add fstrcmp.
46341
46342 2007-08-18  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46345         'bool'.
46346         (diag, compareseq): Remove const from the ctxt argument.
46347         (USE_HEURISTIC): Undefine at the end.
46348
46349 2007-08-18  Jim Meyering  <jim@meyering.net>
46350
46351         New file: lib/idcache.h
46352         * NEWS: Mention the addition.
46353         * modules/idcache (Files): Add lib/idcache.h
46354         * lib/idcache.c: Include "idcache.h".
46355         Don't include <sys/types.h>.
46356         Add a FIXME comment.
46357         Move file-scoped "static" declarations to the top.
46358         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46359
46360 2007-08-17  Bruno Haible  <bruno@clisp.org>
46361         and Paul Eggert  <eggert@cs.ucla.edu>
46362
46363         * MODULES.html.sh: Add diffseq.
46364         * modules/diffseq: New file.
46365         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46366         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46367
46368 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46369
46370         Import changes from coreutils for bootstrap script.
46371
46372         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46373
46374         * build-aux/bootstrap (slurp): Work even in environments where
46375         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46376         current code does not slurp files whose names start with ".", and
46377         this looks like it might be a troublesome area.
46378
46379         2007-07-11  Jim Meyering  <jim@meyering.net>
46380
46381         If there's a GPL vN copyright comment, require that N == 3.
46382
46383         2007-07-08  Jim Meyering  <jim@meyering.net>
46384
46385         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46386         * build-aux/bootstrap (mam_template): Move definition out of loop.
46387
46388         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46389
46390         * build-aux/bootstrap (symlink_to_dir): Rename function from
46391         symlink_to_gnulib.  Add a directory parameter.  Update all
46392         callers.
46393         (cp_mark_as_generated): Also check for -- and link to -- files in
46394         gl/.
46395
46396         2007-07-08  Jim Meyering  <jim@meyering.net>
46397
46398         Adapt to deeper hierarchy in gnulib.
46399         * build-aux/bootstrap (symlink_to_dir): If the destination
46400         directory doesn't exist, create it. This is required at least for
46401         "lib/uniwidth/cjk.h".
46402
46403         2007-05-15  Jim Meyering  <jim@meyering.net>
46404
46405         * build-aux/bootstrap: Now that generated Makefile.am files
46406         are no longer under version control, they must be created at
46407         bootstrap time.
46408
46409 2007-08-14  Ben Pfaff  <blp@gnu.org>
46410
46411         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46412
46413 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46414
46415         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46416         given the changes below.
46417         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46418         even on hosts that have padding bits beyond the supported 64.
46419
46420 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46421
46422         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46423         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46424         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46425         depends on it.
46426         (xstrtol_error): Remove.
46427         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46428         but with a different signature.
46429         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46430         * lib/xstrtol-error.c: Include exitfail.h.
46431         (xstrtol_fatal): New function, with a different signature from the
46432         old xstrtol_error, so that the caller need not worry about passing
46433         in an exit status, or about storage management of the option argument.
46434         (xstrtol_error): Now a static function.  Redo signature to
46435         implement xstrtol_fatal.  Output the correct number of hyphens in
46436         front of the option so that the caller need not worry about
46437         storage management.
46438         (N_): New macro.
46439         (_): Remove; not used now.
46440         * modules/xstrtol: Depend on getopt.
46441         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46442         of old STRTOL_FATAL_ERROR macro.
46443         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46444         of test program.
46445         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46446         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46447
46448 2007-08-08  Eric Blake  <ebb9@byu.net>
46449
46450         * lib/xstrtol-error.c: Add missing include.
46451
46452         Move xstrtol messages into gnulib domain, when --pobase is used.
46453         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46454         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46455         * modules/xstrtol (Files): Distribute new file.
46456         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46457         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46458         * tests/test-xstrtol.c: ...into new file.
46459         * tests/test-xstrtoul.c: Also test xstrtoul.
46460         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46461         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46462         * tests/test-xstrtol.sh: Drive the tests.
46463         * tests/test-xstrtoimax.sh: Likewise.
46464         * tests/test-xstrtoumax.sh: Likewise.
46465         * modules/xstrtol-tests: New module.
46466         * modules/xstrtoimax-tests: Likewise.
46467         * modules/xstrtoumax-tests: Likewise.
46468
46469 2007-08-08  Jim Meyering  <jim@meyering.net>
46470
46471         New function: mfile_name_concat.
46472         * lib/filenamecat.c (mfile_name_concat): New function, just like
46473         file_name_concat, but return NULL upon failure rather than exiting
46474         with a diagnostic.
46475         * lib/filenamecat.h: Declare it.
46476
46477 2007-08-07  Bruno Haible  <bruno@clisp.org>
46478
46479         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46480         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46481         warning from gcc.
46482         Reported by Eric Blake.
46483
46484 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46485
46486         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46487         * modules/crypto/arcfour (License): Likewise.
46488         * modules/crypto/des-tests (License): Likewise.
46489         * modules/crypto/gc-arctwo-tests (License): Likewise.
46490         * modules/crypto/gc-des-tests (License): Likewise.
46491         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46492         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46493         * modules/crypto/gc-md2-tests (License): Likewise.
46494         * modules/crypto/gc-md4-tests (License): Likewise.
46495         * modules/crypto/gc-md5-tests (License): Likewise.
46496         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46497         * modules/crypto/gc-rijndael-tests (License): Likewise.
46498         * modules/crypto/gc-sha1-tests (License): Likewise.
46499         * modules/crypto/gc-tests (License): Likewise.
46500         * modules/crypto/hmac-md5 (License): Likewise.
46501         * modules/crypto/hmac-sha1 (License): Likewise.
46502         * modules/crypto/md2-tests (License): Likewise.
46503         * modules/crypto/md4-tests (License): Likewise.
46504         * modules/crypto/md5 (License): Likewise.
46505         * modules/crypto/rijndael (License): Likewise.
46506         * modules/crypto/sha1 (License): Likewise.
46507         * modules/memxor (License): Likewise.
46508
46509 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46510         and Bruno Haible  <bruno@clisp.org>
46511
46512         * NEWS: Describe interface changes to human, xstrtol.
46513         * lib/human.h: Include <xstrtol.h>.
46514         (human_options): Return enum strtol_error, not int.  Remove
46515         bool arg; take int * instead.
46516         * lib/human.c: Don't include "gettext.h".
46517         (_): Remove; no longer used.
46518         Don't include <xstrtol.h>, since human.h does it.
46519         (human_options): Adjust to abovementioned interface changes.
46520         Do not report error to stderr; that's now the caller's
46521         responsibility.
46522         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46523         interface change.
46524         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46525         Str, Argument_type_string.  All uses changed.  Put " argument"
46526         in diagnostics to make them clearer.  Change wording of suffix
46527         message for clarity.
46528         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46529         Argument_type_string.
46530         (STRTOL_FATAL_WARN): Remove; no longer used.
46531         * modules/human (Depends-on): Remove gettext-h.
46532
46533 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46534
46535         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46536
46537 2007-07-31  Bruno Haible  <bruno@clisp.org>
46538
46539         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46540         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46541         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46542
46543 2007-07-31  Bruno Haible  <bruno@clisp.org>
46544
46545         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46546         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46547
46548 2007-07-30  Bruno Haible  <bruno@clisp.org>
46549
46550         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46551         * modules/c-ctype (License): Likewise.
46552         * modules/c-strcase (License): Likewise.
46553         * modules/check-version (License): Likewise.
46554         * modules/iconv (License): Likewise.
46555         * modules/iconv_open (License): Likewise.
46556         * modules/read-file (License): Likewise.
46557         * modules/striconv (License): Likewise.
46558         * modules/strverscmp (License): Likewise.
46559         * modules/vasprintf (License): Likewise.
46560         * modules/crypto/des (License): Likewise.
46561         * modules/crypto/gc (License): Likewise.
46562         * modules/crypto/gc-arcfour (License): Likewise.
46563         * modules/crypto/gc-arctwo (License): Likewise.
46564         * modules/crypto/gc-des (License): Likewise.
46565         * modules/crypto/gc-hmac-md5 (License): Likewise.
46566         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46567         * modules/crypto/gc-md2 (License): Likewise.
46568         * modules/crypto/gc-md4 (License): Likewise.
46569         * modules/crypto/gc-md5 (License): Likewise.
46570         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46571         * modules/crypto/gc-random (License): Likewise.
46572         * modules/crypto/gc-rijndael (License): Likewise.
46573         * modules/crypto/gc-sha1 (License): Likewise.
46574         * modules/crypto/md2 (License): Likewise.
46575         * modules/crypto/md4 (License): Likewise.
46576
46577 2007-07-30  Jim Meyering  <jim@meyering.net>
46578
46579         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46580         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46581         it has valid stat data.  This bug would cause du not to count the
46582         sizes of inaccessible directories.
46583         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46584         in <http://bugzilla.redhat.com/250077>.
46585
46586 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46587             Bruno Haible  <bruno@clisp.org>
46588
46589         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46590         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46591         #include_next, gives a diagnostic about it, but reports no error in
46592         the exit code.
46593         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46594
46595 2007-07-24  Ben Pfaff  <blp@gnu.org>
46596
46597         Improve name: "count-one-bits" is better than "popcount".
46598         * MODULES.html.sh: Update name.
46599         * lib/popcount.h: Renamed lib/count-one-bits.h.
46600         (popcount): Renamed count_one_bits.
46601         (popcountl): Renamed count_one_bits_l.
46602         (popcountll): Renamed count_one_bits_ll.
46603         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46604         * modules/popcount: Renamed module/count-one-bits.
46605         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46606         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46607
46608 2007-07-23  Ben Pfaff  <blp@gnu.org>
46609
46610         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46611         better code generation, and add U to large constants to avoid
46612         warnings, in non-GCC case.
46613         Suggested by Bruno Haible.
46614
46615 2007-07-23  Ben Pfaff  <blp@gnu.org>
46616
46617         * lib/popcount.h: Use verify_true instead of if...abort.
46618         * modules/popcount: Depend on verify module.
46619         Suggested by Jim Meyering.
46620
46621 2007-07-23  Bruno Haible  <bruno@clisp.org>
46622
46623         * gnulib-tool (func_import): Create a .cvsignore file also when the
46624         directory is not yet in CVS but the toplevel directory is. When
46625         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46626         Reported by Karl Berry.
46627
46628 2007-07-22  Ben Pfaff  <blp@gnu.org>
46629
46630         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46631         case.
46632         Suggested by Eric Blake.
46633
46634 2007-07-22  Ben Pfaff  <blp@gnu.org>
46635
46636         New module: popcount.
46637         * MODULES.html.sh: Add popcount.
46638         * modules/popcount: New file.
46639         * modules/popcount-tests: New file.
46640         * tests/test-popcount.c: New file.
46641         * lib/popcount.h: New file.
46642         * m4/popcount.m4: New file.
46643
46644 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46645
46646         * build-aux/announce-gen: Update to GPLv3.
46647
46648         * build-aux/config.guess: Update from config.
46649
46650 2007-07-21  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46653         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46654
46655 2007-07-20  Jim Meyering  <jim@meyering.net>
46656
46657         * check-module: Diagnose a self-dependency.
46658
46659 2007-07-19  Bruno Haible  <bruno@clisp.org>
46660
46661         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46662         empty.
46663         Reported by Eric Blake.
46664
46665 2007-07-18  Bruno Haible  <bruno@clisp.org>
46666
46667         * gnulib-tool: New options --po-base, --po-domain.
46668         (func_usage): Document them.
46669         (pobase, po_domain): New variables.
46670         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46671         DEFAULT_TEXT_DOMAIN.
46672         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46673         (func_import): Consider pobase and po_domain. Create a po/ directory.
46674         (func_create_testdir): Set pobase and po_domain to empty.
46675         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46676         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46677
46678 2007-07-18  Bruno Haible  <bruno@clisp.org>
46679
46680         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46681         EXTRA_DIST augmentation for files in build-aux/.
46682
46683 2007-07-16  Bruno Haible  <bruno@clisp.org>
46684
46685         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46686         * modules/getdelim (License): Likewise.
46687
46688 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46689
46690         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46691         * modules/d-type (License): Likewise.
46692         * modules/extensions (License): Likewise.
46693         * modules/fnmatch (License): Likewise.
46694         * modules/fseeko (License): Likewise.
46695         * modules/getaddrinfo (License): Likewise.
46696         * modules/getline (License): Likewise.
46697         * modules/getlogin_r (License): Likewise.
46698         * modules/getpass (License): Likewise.
46699         * modules/gettimeofday (License): Likewise.
46700         * modules/glob (License): Likewise.
46701         * modules/inet_ntop (License): Likewise.
46702         * modules/malloc (License): Likewise.
46703         * modules/malloca (License): Likewise.
46704         * modules/memmem (License): Likewise.
46705         * modules/mempcpy (License): Likewise.
46706         * modules/memset (License): Likewise.
46707         * modules/minmax (License): Likewise.
46708         * modules/mktime (License): Likewise.
46709         * modules/netinet_in (License): Likewise.
46710         * modules/pathmax (License): Likewise.
46711         * modules/poll (License): Likewise.
46712         * modules/regex (License): Likewise.
46713         * modules/snprintf (License): Likewise.
46714         * modules/stdbool (License): Likewise.
46715         * modules/stdint (License): Likewise.
46716         * modules/stdio (License): Likewise.
46717         * modules/strcase (License): Likewise.
46718         * modules/strcasestr (License): Likewise.
46719         * modules/strdup (License): Likewise.
46720         * modules/string (License): Likewise.
46721         * modules/strndup (License): Likewise.
46722         * modules/strnlen (License): Likewise.
46723         * modules/strpbrk (License): Likewise.
46724         * modules/strptime (License): Likewise.
46725         * modules/strsep (License): Likewise.
46726         * modules/sys_select (License): Likewise.
46727         * modules/sys_socket (License): Likewise.
46728         * modules/sys_stat (License): Likewise.
46729         * modules/sys_time (License): Likewise.
46730         * modules/time (License): Likewise.
46731         * modules/time_r (License): Likewise.
46732         * modules/timegm (License): Likewise.
46733         * modules/unistd (License): Likewise.
46734         * modules/vsnprintf (License): Likewise.
46735         * modules/wctype (License): Likewise.
46736
46737 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46738
46739         * modules/argz (License): LGPLv2+.
46740
46741 2007-07-15  Karl Berry  <karl@gnu.org>
46742
46743         * doc/gnulib.texi: revise node structure per new fdl.texi.
46744
46745 2007-07-14  Bruno Haible  <bruno@clisp.org>
46746
46747         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46748         the output file.
46749         * lib/uniname/uninames.h: Regenerated.
46750
46751 2007-07-14  Karl Berry  <karl@gnu.org>
46752
46753         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46754         omitting sectioning and index commands.
46755
46756 2007-07-13  Bruno Haible  <bruno@clisp.org>
46757
46758         New gnulib-tool option --more-symlinks.
46759         * gnulib-tool (func_usage): Document --more-symlinks.
46760         (do_copyrights): New variable.
46761         Recognize option --more-symlinks.
46762         (func_import): Don't add a copyright notice transform to
46763         sed_transform_lib_file if do_copyrights is empty.
46764
46765 2007-07-13  Bruno Haible  <bruno@clisp.org>
46766
46767         * lib/vasnprintf.c (decimal_point_char): Define also if
46768         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46769         && !NEED_PRINTF_DIRECTIVE_A.
46770         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46771         Gary V. Vaughan <gary@gnu.org>.
46772
46773 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46774
46775         * lib/inttypes_.h: Undo previous change, since it was fixed
46776         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46777
46778 2007-07-13  Bruno Haible  <bruno@clisp.org>
46779
46780         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46781         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46782
46783 2007-07-13  Jim Meyering  <jim@meyering.net>
46784
46785         df: Don't fail for Tru64's "file-on-file mount".
46786         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46787         so we fall through and use statfs instead.  Details here:
46788         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46789         Reported by Albert Chin.
46790
46791 2007-07-13  Bruno Haible  <bruno@clisp.org>
46792
46793         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46794         * modules/configmake (License): Likewise.
46795         * modules/gettext (License): Likewise.
46796         * modules/gettext-h (License): Likewise.
46797         * modules/include_next (License): Likewise.
46798         * modules/link-warning (License): Likewise.
46799         * modules/localcharset (License): Likewise.
46800         * modules/localename (License): Likewise.
46801         * modules/lock (License): Likewise.
46802         * modules/relocatable-lib-lgpl (License): Likewise.
46803         * modules/size_max (License): Likewise.
46804         * modules/vasnprintf (License): Likewise.
46805         * modules/wchar (License): Likewise.
46806         * modules/xsize (License): Likewise.
46807
46808 2007-07-13  Bruno Haible  <bruno@clisp.org>
46809
46810         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46811         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46812
46813 2007-07-12  Bruno Haible  <bruno@clisp.org>
46814
46815         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46816         in the modules files.
46817
46818 2007-07-11  Karl Berry  <karl@gnu.org>
46819
46820         * MODULES.html.sh (func_module): use
46821          sed -e '\|^'"${includefile}"'$|d'
46822          instead of /.../d, to avoid errors on $includefile's containing /.
46823
46824 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46825
46826         * gnulib-tool (func_import): Avoid duplication of --avoid
46827         statements
46828         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46829         names to `_' in variable names.
46830
46831 2007-07-10  Eric Blake  <ebb9@byu.net>
46832
46833         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46834         * NEWS: Document this change.
46835
46836 2007-07-08  Bruno Haible  <bruno@clisp.org>
46837
46838         Update to Unicode 5.0.
46839         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46840         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46841         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46842         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46843         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46844         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46845         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46846         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46847         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46848         U+10A3F, U+1D242..U+1D244.
46849         (nonspacing_table_ind): Update.
46850         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46851         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46852
46853 2007-07-08  Bruno Haible  <bruno@clisp.org>
46854
46855         Update to Unicode 5.0.
46856         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46857         code transform. Extend the name index field of unicode_name_to_code and
46858         unicode_code_to_name from 16 to 24 bits.
46859         * lib/uniname/uniname.c (unicode_character_name,
46860         unicode_name_character): Add the range 0x12xxx to the code transform.
46861         * lib/uniname/uninames.h: Regenerated.
46862         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46863
46864 2007-07-07  Bruno Haible  <bruno@clisp.org>
46865
46866         * modules/wcwidth-tests: New file.
46867         * tests/test-wcwidth.c: New file.
46868
46869         Work around MacOS X wcwidth() bug.
46870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46871         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46872         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46873         original wcwidth in non-UTF-8 locales.
46874         * modules/wcwidth (Depends-on): Add localcharset, streq,
46875         uniwidth/width.
46876         * doc/functions/wcwidth.texi: Update.
46877
46878 2007-07-07  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46881         (wcwidth): New declaration.
46882         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46883         macros.
46884         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46885         here. Prepare for creating <wchar.h> unconditionally.
46886         * modules/wchar (Depends-on): Add link-warning.
46887         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46888         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46889         * lib/wcwidth.h: Remove file.
46890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46891         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46892         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46893         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46894         (Include): Replace wcwidth.h with <wchar.h>.
46895         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46896         * lib/mbchar.h: Don't include wcwidth.h.
46897         * lib/mbswidth.c: Likewise.
46898         * NEWS: Mention the change.
46899
46900 2007-07-07  Bruno Haible  <bruno@clisp.org>
46901
46902         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46903         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46904         definition with an external declaration.
46905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46906         defined as a function. Remove AC_C_INLINE requirement.
46907         * modules/wcwidth (Files): Add lib/wcwidth.c.
46908         (Makefile.am): Remove redundant statement.
46909
46910 2007-07-07  Bruno Haible  <bruno@clisp.org>
46911
46912         * MODULES.html.sh (Unicode string functions): Add the new modules.
46913
46914         * tests/uniwidth/test-u32-strwidth.c: New file.
46915         * modules/uniwidth/u32-strwidth-tests: New file.
46916
46917         * lib/uniwidth/u32-strwidth.c: New file.
46918         * modules/uniwidth/u32-strwidth: New file.
46919
46920         * tests/uniwidth/test-u16-strwidth.c: New file.
46921         * modules/uniwidth/u16-strwidth-tests: New file.
46922
46923         * lib/uniwidth/u16-strwidth.c: New file.
46924         * modules/uniwidth/u16-strwidth: New file.
46925
46926         * tests/uniwidth/test-u8-strwidth.c: New file.
46927         * modules/uniwidth/u8-strwidth-tests: New file.
46928
46929         * lib/uniwidth/u8-strwidth.c: New file.
46930         * modules/uniwidth/u8-strwidth: New file.
46931
46932         * tests/uniwidth/test-u32-width.c: New file.
46933         * modules/uniwidth/u32-width-tests: New file.
46934
46935         * lib/uniwidth/u32-width.c: New file.
46936         * modules/uniwidth/u32-width: New file.
46937
46938         * tests/uniwidth/test-u16-width.c: New file.
46939         * modules/uniwidth/u16-width-tests: New file.
46940
46941         * lib/uniwidth/u16-width.c: New file.
46942         * modules/uniwidth/u16-width: New file.
46943
46944         * tests/uniwidth/test-u8-width.c: New file.
46945         * modules/uniwidth/u8-width-tests: New file.
46946
46947         * lib/uniwidth/u8-width.c: New file.
46948         * modules/uniwidth/u8-width: New file.
46949
46950         * tests/uniwidth/test-uc_width.c: New file.
46951         * modules/uniwidth/width-tests: New file.
46952
46953         * lib/uniwidth/width.c: New file, from GNU libiconv.
46954         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46955         * modules/uniwidth/width: New file.
46956
46957         * lib/uniwidth.h: New file, from GNU libiconv.
46958         * modules/uniwidth/base: New file.
46959
46960 2007-07-07  Bruno Haible  <bruno@clisp.org>
46961
46962         * lib/uniname.h: New file, from GNU gettext.
46963         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46964         * lib/uniname/uninames.h: New file, from GNU gettext.
46965         * lib/uniname/uniname.c: New file, from GNU gettext.
46966         * tests/uniname/test-uninames.sh: New file.
46967         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46968         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46969         * modules/uniname/base: New file.
46970         * modules/uniname/uniname: New file.
46971         * modules/uniname/uniname-tests: New file.
46972         * MODULES.html.sh (Unicode string functions): Add the new modules.
46973
46974 2007-07-06  Bruno Haible  <bruno@clisp.org>
46975
46976         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46977
46978 2007-07-06  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46981         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46982         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46983         include <sys/time.h>.
46984         Reported by Eric Blake.
46985
46986 2007-07-06  Eric Blake  <ebb9@byu.net>
46987
46988         Fix testing canonicalize on cygwin.
46989         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46990         Revert patch from 2007-06-19.
46991         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46992         canonicalize module is also in use.
46993         * tests/test-canonicalize.c: New file.
46994         * tests/test-canonicalize.sh: Likewise.
46995         * modules/canonicalize-tests: Likewise.
46996
46997 2007-07-06  Jim Meyering  <jim@meyering.net>
46998
46999         * lib/getugroups.c (getugroups): Detect getgrent failure.
47000         Adjust comment to reflect reality: this function may return -1.
47001
47002 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47003
47004         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47005         the new TP address.
47006         (usage): Fix typo
47007         (gnulib_mk): New variable.
47008
47009 2007-07-05  Jim Meyering  <jim@meyering.net>
47010
47011         Don't let endgrent clobber errno, no matter how improbable.
47012         * lib/getugroups.c (getugroups): Save and restore errno around
47013         endgrent call.
47014
47015         Close the group DB even when failing with 2^31 or more members.
47016         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47017
47018 2007-07-04  Jim Meyering  <jim@meyering.net>
47019
47020         * lib/getugroups.h: New file.
47021         * lib/getugroups.c: Include "getugroups.h".
47022         Remove uses of "register" keyword.
47023         Move local variable, "cp", down into scope where used.
47024         Give "username" parameter the "const" attribute.
47025         * modules/getugroups (Files): Add lib/getugroups.h
47026
47027 2007-07-04  Karl Berry  <karl@gnu.org>
47028
47029         * MODULES.html.sh (func_all_modules): Complete rename of
47030         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47031
47032 2007-07-02  Bruno Haible  <bruno@clisp.org>
47033
47034         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47035         mode, when inttypes.h comes from gnulib.
47036         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47037
47038 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47039
47040         * NEWS: Mention lgpl module name change.
47041
47042         * modules/lgpl-2.1: Renamed from lgpl.
47043
47044         * NEWS: Mention gpl module name change.
47045
47046         * modules/gpl-3.0: New file, based on gpl-2.0.
47047
47048         * modules/gpl-2.0: Renamed from gpl.
47049
47050         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47051         doc/gpl-2.0.texi.
47052
47053 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47054
47055         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47056         #define __STDC_LIMIT_MACROS temporarily while including
47057         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47058         Problem reported by Joel E. Denny in
47059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47060
47061 2007-07-01  Bruno Haible  <bruno@clisp.org>
47062
47063         * lib/unistdio.h: New file.
47064         * lib/unistdio/u-asnprintf.h: New file.
47065         * lib/unistdio/u-asprintf.h: New file.
47066         * lib/unistdio/u-printf-args.c: New file.
47067         * lib/unistdio/u-printf-args.h: New file.
47068         * lib/unistdio/u-printf-parse.h: New file.
47069         * lib/unistdio/u-snprintf.h: New file.
47070         * lib/unistdio/u-sprintf.h: New file.
47071         * lib/unistdio/u-vasprintf.h: New file.
47072         * lib/unistdio/u-vsnprintf.h: New file.
47073         * lib/unistdio/u-vsprintf.h: New file.
47074         * lib/unistdio/ulc-asnprintf.c: New file.
47075         * lib/unistdio/ulc-asprintf.c: New file.
47076         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47077         * lib/unistdio/ulc-printf-parse.c: New file.
47078         * lib/unistdio/ulc-snprintf.c: New file.
47079         * lib/unistdio/ulc-sprintf.c: New file.
47080         * lib/unistdio/ulc-vasnprintf.c: New file.
47081         * lib/unistdio/ulc-vasprintf.c: New file.
47082         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47083         * lib/unistdio/ulc-vsnprintf.c: New file.
47084         * lib/unistdio/ulc-vsprintf.c: New file.
47085         * lib/unistdio/u8-asnprintf.c: New file.
47086         * lib/unistdio/u8-asprintf.c: New file.
47087         * lib/unistdio/u8-printf-parse.c: New file.
47088         * lib/unistdio/u8-snprintf.c: New file.
47089         * lib/unistdio/u8-sprintf.c: New file.
47090         * lib/unistdio/u8-vasnprintf.c: New file.
47091         * lib/unistdio/u8-vasprintf.c: New file.
47092         * lib/unistdio/u8-vsnprintf.c: New file.
47093         * lib/unistdio/u8-vsprintf.c: New file.
47094         * lib/unistdio/u8-u8-asnprintf.c: New file.
47095         * lib/unistdio/u8-u8-asprintf.c: New file.
47096         * lib/unistdio/u8-u8-snprintf.c: New file.
47097         * lib/unistdio/u8-u8-sprintf.c: New file.
47098         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47099         * lib/unistdio/u8-u8-vasprintf.c: New file.
47100         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47101         * lib/unistdio/u8-u8-vsprintf.c: New file.
47102         * lib/unistdio/u16-asnprintf.c: New file.
47103         * lib/unistdio/u16-asprintf.c: New file.
47104         * lib/unistdio/u16-printf-parse.c: New file.
47105         * lib/unistdio/u16-snprintf.c: New file.
47106         * lib/unistdio/u16-sprintf.c: New file.
47107         * lib/unistdio/u16-vasnprintf.c: New file.
47108         * lib/unistdio/u16-vasprintf.c: New file.
47109         * lib/unistdio/u16-vsnprintf.c: New file.
47110         * lib/unistdio/u16-vsprintf.c: New file.
47111         * lib/unistdio/u16-u16-asnprintf.c: New file.
47112         * lib/unistdio/u16-u16-asprintf.c: New file.
47113         * lib/unistdio/u16-u16-snprintf.c: New file.
47114         * lib/unistdio/u16-u16-sprintf.c: New file.
47115         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47116         * lib/unistdio/u16-u16-vasprintf.c: New file.
47117         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47118         * lib/unistdio/u16-u16-vsprintf.c: New file.
47119         * lib/unistdio/u32-asnprintf.c: New file.
47120         * lib/unistdio/u32-asprintf.c: New file.
47121         * lib/unistdio/u32-printf-parse.c: New file.
47122         * lib/unistdio/u32-snprintf.c: New file.
47123         * lib/unistdio/u32-sprintf.c: New file.
47124         * lib/unistdio/u32-vasnprintf.c: New file.
47125         * lib/unistdio/u32-vasprintf.c: New file.
47126         * lib/unistdio/u32-vsnprintf.c: New file.
47127         * lib/unistdio/u32-vsprintf.c: New file.
47128         * lib/unistdio/u32-u32-asnprintf.c: New file.
47129         * lib/unistdio/u32-u32-asprintf.c: New file.
47130         * lib/unistdio/u32-u32-snprintf.c: New file.
47131         * lib/unistdio/u32-u32-sprintf.c: New file.
47132         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47133         * lib/unistdio/u32-u32-vasprintf.c: New file.
47134         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47135         * lib/unistdio/u32-u32-vsprintf.c: New file.
47136         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47137         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47138         * tests/unistdio/test-ulc-printf1.h: New file.
47139         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47140         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47141         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47142         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47143         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47144         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47145         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47146         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47147         * tests/unistdio/test-u8-asnprintf1.c: New file.
47148         * tests/unistdio/test-u8-asnprintf1.h: New file.
47149         * tests/unistdio/test-u8-printf1.h: New file.
47150         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47151         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47152         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47153         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47154         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47155         * tests/unistdio/test-u8-vasprintf1.c: New file.
47156         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47157         * tests/unistdio/test-u8-vsprintf1.c: New file.
47158         * tests/unistdio/test-u16-asnprintf1.c: New file.
47159         * tests/unistdio/test-u16-asnprintf1.h: New file.
47160         * tests/unistdio/test-u16-printf1.h: New file.
47161         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47162         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47163         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47164         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47165         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47166         * tests/unistdio/test-u16-vasprintf1.c: New file.
47167         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47168         * tests/unistdio/test-u16-vsprintf1.c: New file.
47169         * tests/unistdio/test-u32-asnprintf1.c: New file.
47170         * tests/unistdio/test-u32-asnprintf1.h: New file.
47171         * tests/unistdio/test-u32-printf1.h: New file.
47172         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47173         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47174         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47175         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47176         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47177         * tests/unistdio/test-u32-vasprintf1.c: New file.
47178         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47179         * tests/unistdio/test-u32-vsprintf1.c: New file.
47180         * modules/unistdio/base: New file.
47181         * modules/unistdio/u-printf-args: New file.
47182         * modules/unistdio/ulc-asnprintf: New file.
47183         * modules/unistdio/ulc-asprintf: New file.
47184         * modules/unistdio/ulc-fprintf: New file.
47185         * modules/unistdio/ulc-printf-parse: New file.
47186         * modules/unistdio/ulc-snprintf: New file.
47187         * modules/unistdio/ulc-sprintf: New file.
47188         * modules/unistdio/ulc-vasnprintf: New file.
47189         * modules/unistdio/ulc-vasprintf: New file.
47190         * modules/unistdio/ulc-vfprintf: New file.
47191         * modules/unistdio/ulc-vsnprintf: New file.
47192         * modules/unistdio/ulc-vsprintf: New file.
47193         * modules/unistdio/u8-asnprintf: New file.
47194         * modules/unistdio/u8-asprintf: New file.
47195         * modules/unistdio/u8-printf-parse: New file.
47196         * modules/unistdio/u8-snprintf: New file.
47197         * modules/unistdio/u8-sprintf: New file.
47198         * modules/unistdio/u8-vasnprintf: New file.
47199         * modules/unistdio/u8-vasprintf: New file.
47200         * modules/unistdio/u8-vsnprintf: New file.
47201         * modules/unistdio/u8-vsprintf: New file.
47202         * modules/unistdio/u8-u8-asnprintf: New file.
47203         * modules/unistdio/u8-u8-asprintf: New file.
47204         * modules/unistdio/u8-u8-snprintf: New file.
47205         * modules/unistdio/u8-u8-sprintf: New file.
47206         * modules/unistdio/u8-u8-vasnprintf: New file.
47207         * modules/unistdio/u8-u8-vasprintf: New file.
47208         * modules/unistdio/u8-u8-vsnprintf: New file.
47209         * modules/unistdio/u8-u8-vsprintf: New file.
47210         * modules/unistdio/u16-asnprintf: New file.
47211         * modules/unistdio/u16-asprintf: New file.
47212         * modules/unistdio/u16-printf-parse: New file.
47213         * modules/unistdio/u16-snprintf: New file.
47214         * modules/unistdio/u16-sprintf: New file.
47215         * modules/unistdio/u16-vasnprintf: New file.
47216         * modules/unistdio/u16-vasprintf: New file.
47217         * modules/unistdio/u16-vsnprintf: New file.
47218         * modules/unistdio/u16-vsprintf: New file.
47219         * modules/unistdio/u16-u16-asnprintf: New file.
47220         * modules/unistdio/u16-u16-asprintf: New file.
47221         * modules/unistdio/u16-u16-snprintf: New file.
47222         * modules/unistdio/u16-u16-sprintf: New file.
47223         * modules/unistdio/u16-u16-vasnprintf: New file.
47224         * modules/unistdio/u16-u16-vasprintf: New file.
47225         * modules/unistdio/u16-u16-vsnprintf: New file.
47226         * modules/unistdio/u16-u16-vsprintf: New file.
47227         * modules/unistdio/u32-asnprintf: New file.
47228         * modules/unistdio/u32-asprintf: New file.
47229         * modules/unistdio/u32-printf-parse: New file.
47230         * modules/unistdio/u32-snprintf: New file.
47231         * modules/unistdio/u32-sprintf: New file.
47232         * modules/unistdio/u32-vasnprintf: New file.
47233         * modules/unistdio/u32-vasprintf: New file.
47234         * modules/unistdio/u32-vsnprintf: New file.
47235         * modules/unistdio/u32-vsprintf: New file.
47236         * modules/unistdio/u32-u32-asnprintf: New file.
47237         * modules/unistdio/u32-u32-asprintf: New file.
47238         * modules/unistdio/u32-u32-snprintf: New file.
47239         * modules/unistdio/u32-u32-sprintf: New file.
47240         * modules/unistdio/u32-u32-vasnprintf: New file.
47241         * modules/unistdio/u32-u32-vasprintf: New file.
47242         * modules/unistdio/u32-u32-vsnprintf: New file.
47243         * modules/unistdio/u32-u32-vsprintf: New file.
47244         * modules/unistdio/ulc-asnprintf-tests: New file.
47245         * modules/unistdio/ulc-vasnprintf-tests: New file.
47246         * modules/unistdio/ulc-vasprintf-tests: New file.
47247         * modules/unistdio/ulc-vsnprintf-tests: New file.
47248         * modules/unistdio/ulc-vsprintf-tests: New file.
47249         * modules/unistdio/u8-asnprintf-tests: New file.
47250         * modules/unistdio/u8-vasnprintf-tests: New file.
47251         * modules/unistdio/u8-vasprintf-tests: New file.
47252         * modules/unistdio/u8-vsnprintf-tests: New file.
47253         * modules/unistdio/u8-vsprintf-tests: New file.
47254         * modules/unistdio/u16-asnprintf-tests: New file.
47255         * modules/unistdio/u16-vasnprintf-tests: New file.
47256         * modules/unistdio/u16-vasprintf-tests: New file.
47257         * modules/unistdio/u16-vsnprintf-tests: New file.
47258         * modules/unistdio/u16-vsprintf-tests: New file.
47259         * modules/unistdio/u32-asnprintf-tests: New file.
47260         * modules/unistdio/u32-vasnprintf-tests: New file.
47261         * modules/unistdio/u32-vasprintf-tests: New file.
47262         * modules/unistdio/u32-vsnprintf-tests: New file.
47263         * modules/unistdio/u32-vsprintf-tests: New file.
47264         * MODULES.html.sh (Unicode string functions): Add the new modules.
47265
47266 2007-07-01  Bruno Haible  <bruno@clisp.org>
47267
47268         * lib/sprintf.c (sprintf): Limit the available length estimation,
47269         to avoid address wraparound.
47270         * lib/vsprintf.c (vsprintf): Likewise.
47271         * modules/sprintf-posix (Dependencies): Add stdint.
47272         * modules/vsprintf-posix (Dependencies): Likewise.
47273
47274 2007-07-01  Bruno Haible  <bruno@clisp.org>
47275
47276         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47277         Windows PATH as well. Conservative double-quoting. Comments.
47278
47279 2007-07-01  Bruno Haible  <bruno@clisp.org>
47280             Eric Blake  <ebb9@byu.net>
47281             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47282
47283         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47284         empty components in $PATH, denoting '.'.
47285
47286 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47287
47288         * gnulib-tool: Fix indentation.
47289         (func_create_megatestdir): Likewise.
47290         Report by Bruno Haible.
47291
47292 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47293
47294         Sync from Automake.
47295         * build-aux/gnupload: Fix shell portability issues with for loops.
47296         Report by Karl Berry.
47297
47298 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47299
47300         * build-aux/maint.mk (POURL): Use translationproject.org.
47301
47302 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47303             Bruno Haible  <bruno@clisp.org>
47304
47305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47306         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47307         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47308         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47309         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47310
47311 2007-06-27  Bruno Haible  <bruno@clisp.org>
47312
47313         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47314         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47315
47316 2007-06-26  Karl Berry  <karl@gnu.org>
47317
47318         * MODULES.html.sh: remove xreadlink-with-size.
47319
47320 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47321
47322         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47323         method that I hope also handles the double-include problem noted
47324         by Bruno Haible in
47325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47326
47327 2007-06-23  Bruno Haible  <bruno@clisp.org>
47328
47329         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47330         Don't let the 'mostlyclean' target fail if the last subdirectory could
47331         not be removed.
47332         Reported by Karl Berry.
47333
47334 2007-06-23  Bruno Haible  <bruno@clisp.org>
47335
47336         * gnulib-tool (echo): Add a speedier workaround for ksh.
47337         * tests/test-echo.sh: Likewise.
47338
47339 2007-06-23  Bruno Haible  <bruno@clisp.org>
47340
47341         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47342         * tests/test-echo.sh: Likewise.
47343
47344 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47345
47346         * gnulib-tool (IFS): Initialize early, so we don't set it to
47347         empty later.
47348         (self_abspathname): Rewrite algorithm to set it, reindent.
47349         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47350         (func_create_megatestdir): Merge some sed scripts.
47351
47352 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47355         exposed by Sun Studio 11 cc on Solaris 8.
47356
47357 2007-06-22  Bruno Haible  <bruno@clisp.org>
47358
47359         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47360         backslashes.
47361         * tests/test-echo.sh: New file.
47362
47363 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47364
47365         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47366         simplify `sed_replace_build_aux' scripts, they are portable but
47367         echoing them with `echo' is not.
47368         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47369
47370 2007-06-21  Karl Berry  <karl@gnu.org>
47371
47372         * config/srclist.txt: guess we can't handle the licenses via
47373         srclist at the moment.
47374
47375 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47376
47377         * MODULES.html.sh: Add include_next.
47378         * modules/include_next: New file.
47379
47380 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47381
47382         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47383         INCLUDE_NEXT.
47384         (gl_CHECK_NEXT_HEADERS): New macro.
47385         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47386         the obsolescent gl_ABSOLUTE_HEADER.
47387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47388         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47389         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47390         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47391         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47392         * m4/math_h.m4 (gl_MATH_H): Likewise.
47393         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47394         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47395         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47396         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47397         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47398         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47399         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47400         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47401         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47403         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47404         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47405         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47406         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47407         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47408         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47409         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47410         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47411         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47412         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47413         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47414         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47415         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47416         * lib/float_.h: Likewise.
47417         * lib/inttypes_.h: Likewise.
47418         * lib/math_.h: Likewise.
47419         * lib/search_.h: Likewise.
47420         * lib/signal_.h: Likewise.
47421         * lib/stdint_.h: Likewise.
47422         * lib/stdio_.h: Likewise.
47423         * lib/stdlib_.h: Likewise.
47424         * lib/string_.h: Likewise.
47425         * lib/sys_stat_.h: Likewise.
47426         * lib/sys_time_.h: Likewise.
47427         * lib/time_.h: Likewise.
47428         * lib/unistd_.h: Likewise.
47429         * lib/wchar_.h: Likewise.
47430         * lib/wctype_.h: Likewise.
47431         * lib/dirent_.h: Likewise.
47432         * lib/iconv_.h: Likewise.
47433         * lib/locale_.h: Likewise.
47434         * lib/netinet_in_.h: Likewise.
47435         * lib/sys_select_.h: Likewise.
47436         * lib/sys_socket_.h: Likewise.
47437         * lib/sysexits_.h: Likewise.
47438         * modules/fcntl (Depends-on): Depend on include_next, not
47439         absolute_header.
47440         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47441         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47442         * modules/fchdir: Likewise.
47443         * modules/float: Likewise.
47444         * modules/iconv_open: Likewise.
47445         * modules/inttypes: Likewise.
47446         * modules/locale: Likewise.
47447         * modules/math: Likewise.
47448         * modules/netinet_in: Likewise.
47449         * modules/search: Likewise.
47450         * modules/signal: Likewise.
47451         * modules/stdint: Likewise.
47452         * modules/stdio: Likewise.
47453         * modules/stdlib: Likewise.
47454         * modules/string: Likewise.
47455         * modules/sys_select: Likewise.
47456         * modules/sys_socket: Likewise.
47457         * modules/sys_stat: Likewise.
47458         * modules/sys_time: Likewise.
47459         * modules/sysexits: Likewise.
47460         * modules/time: Likewise.
47461         * modules/unistd: Likewise.
47462         * modules/wchar: Likewise.
47463         * modules/wctype: Likewise.
47464         * modules/sys_stat: Change maintainer to "all".
47465         * modules/unistd: Likewise.
47466
47467 2007-06-20  Karl Berry  <karl@gnu.org>
47468
47469         * config/srclist.txt: track www changes in license files.
47470
47471 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47472
47473         * build-aux/bootstrap: Remove stray dot.
47474         Make sure build_aux settings are honored when linking
47475         gnulib_extra_files.
47476
47477 2007-06-19  Eric Blake  <ebb9@byu.net>
47478
47479         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47480         Allow compilation on cygwin.
47481
47482 2007-06-19  Jim Meyering  <jim@meyering.net>
47483
47484         xreadlink-with-size: Remove module.  No longer used.
47485         Ex-callers now use xreadlink or mreadlink-with-size.
47486         * modules/xreadlink-with-size: Remove module.
47487         * lib/xreadlink-with-size.c: Remove file.
47488         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47489         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47490         just before the function definition *is* accurate.
47491
47492         Eliminate one way canonicalize_filename_mode could exit.
47493         * lib/canonicalize.c (canonicalize_filename_mode):
47494         Use mreadlink_with_size, not xreadlink_with_size.
47495
47496 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47497
47498         Detect porting problems to FreeBSD/arm, which has time_t wider than
47499         long int.  Original problem reported for GNU diff by Xin Li in
47500         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47501         * modules/getdate (Depends-on): Add intprops, verify.
47502         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47503         is an integer type no wider than long int.
47504
47505 2007-06-18  Jim Meyering  <jim@meyering.net>
47506
47507         New module: mreadlink-with-size.
47508         * MODULES.html.sh: Add mreadlink-with-size.
47509         * modules/mreadlink-with-size: New module
47510         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47511         not xreadlink-with-size.
47512         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47513
47514 2007-06-16  Bruno Haible  <bruno@clisp.org>
47515
47516         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47517         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47518         Reported by Gary V. Vaughan <gary@gnu.org>.
47519
47520 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47521
47522         Revamp lchown so that it lives in unistd.h where it belongs.
47523         * lib/lchown.h: Remove.
47524         * lib/dirchownmod.c: Don't include lib/lchown.h.
47525         * lib/fchownat.c: Likewise.
47526         * lib/openat.c: Likewise.
47527         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47528         does not follow symlinks.
47529         (EOPNOTSUPP): Define if not defined.
47530         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47531         is defined to 0.
47532         (lchown): New decl.
47533         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47534         Do not check for lchown decl.
47535         Set REPLACE_LCHOWN.
47536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47537         REPLACE_LCHOWN.
47538         * modules/chown: Make it clear it follows symlinks.
47539         * modules/lchown: Make it clear it doesn't follow symlinks.
47540         (Files): Remove lib/lchown.h
47541         (Depends-on): Add unistd.
47542         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47543         (Include): Include <unistd.h>, not "lchown.h".
47544         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47545         REPLACE_LCHOWN.
47546
47547 2007-06-15  Jim Meyering  <jim@meyering.net>
47548
47549         Change license (GPL to LGPL) of fsusage and dependents.
47550         * modules/fsusage (License): Change to LGPL.
47551         * modules/full-read (License): Likewise.
47552         * modules/full-write (License): Likewise.
47553         * modules/safe-read (License): Likewise.
47554         * modules/safe-write (License): Likewise.
47555
47556 2007-06-14  Ben Pfaff  <blp@gnu.org>
47557
47558         Missing part of allocsa -> malloca transition.
47559         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47560         gl_MALLOCA.
47561
47562 2007-06-12  Bruno Haible  <bruno@clisp.org>
47563
47564         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47565         to ia64, x86_64, i386.
47566         Reported by Eric Blake.
47567
47568 2007-06-12  Bruno Haible  <bruno@clisp.org>
47569
47570         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47571         cross-compiling to x86_64.
47572
47573 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47574
47575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47576         glitch reported by Ralf Wildenhues in
47577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47578
47579         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47580         Vin Shelton.
47581
47582 2007-06-11  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47585         replacement string.
47586         Reported by Eric Blake.
47587
47588 2007-06-10  Bruno Haible  <bruno@clisp.org>
47589
47590         Prepare vasnprintf code for use with Unicode strings.
47591         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47592         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47593         TYPE_U32_STRING.
47594         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47595         a_u32_string variants.
47596         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47597         * lib/printf-args.c: Don't include config.h and the specification
47598         header if PRINTF_FETCHARGS is already defined.
47599         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47600         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47601         TYPE_U16_STRING, TYPE_U32_STRING.
47602         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47603         u16_directive, u16_directives, u32_directive, u32_directives): New
47604         types.
47605         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47606         New declarations.
47607         * lib/printf-parse.c: Don't include config.h and the specification
47608         header if PRINTF_PARSE is already defined. Eliminate the set of
47609         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47610         them now. Include c-ctype.h.
47611         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47612         directive and CHAR_T_ONLY_ASCII.
47613         * lib/vasnprintf.c: Don't include config.h and the specification header
47614         if VASNPRINTF is already defined.
47615         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47616         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47617         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47618         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47619         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47620         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47621         code accordingly.
47622         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47623         pad_ourselves also in this case, with the 'c' and 's' directives, and
47624         with a different notion of "width".
47625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47626
47627 2007-06-10  Bruno Haible  <bruno@clisp.org>
47628
47629         * modules/unistr/u32-mbsnlen: New file.
47630         * lib/unistr/u32-mbsnlen.c: New file.
47631
47632         * modules/unistr/u16-mbsnlen: New file.
47633         * lib/unistr/u16-mbsnlen.c: New file.
47634
47635         * modules/unistr/u8-mbsnlen: New file.
47636         * lib/unistr/u8-mbsnlen.c: New file.
47637
47638         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47639         declarations.
47640
47641 2007-06-10  Bruno Haible  <bruno@clisp.org>
47642
47643         * lib/string_.h (mbsnlen): New declaration.
47644         * lib/mbsnlen.c: New file.
47645         * m4/mbsnlen.m4: New file.
47646         * modules/mbsnlen: New file.
47647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47648         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47649         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47650
47651 2007-06-10  Bruno Haible  <bruno@clisp.org>
47652
47653         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47654
47655 2007-06-10  Bruno Haible  <bruno@clisp.org>
47656
47657         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47658         * lib/mbuiter.h: Likewise.
47659
47660 2007-06-10  Bruno Haible  <bruno@clisp.org>
47661
47662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47663         declaration.
47664
47665 2007-06-10  Karl Berry  <karl@gnu.org>
47666
47667         * config/srclist.txt: remove gettext entries, Bruno prefers
47668         to update individually.
47669
47670 2007-06-10  Bruno Haible  <bruno@clisp.org>
47671
47672         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47673         'maxlen'. Ensure only length + width bytes are allocated, not
47674         length + 1 + width.
47675
47676 2007-06-09  Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47679         (CHAR_T): Remove macro.
47680         (VASNPRINTF): Update.
47681
47682 2007-06-09  Bruno Haible  <bruno@clisp.org>
47683
47684         * MODULES.html.sh (Unicode string functions): Add the new modules.
47685
47686         * modules/uniconv/u32-conv-to-enc: New file.
47687         * lib/uniconv/u32-conv-to-enc.c: New file.
47688         * modules/uniconv/u32-conv-to-enc-tests: New file.
47689         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47690
47691         * modules/uniconv/u16-conv-to-enc: New file.
47692         * lib/uniconv/u16-conv-to-enc.c: New file.
47693         * lib/uniconv/u-conv-to-enc.h: New file.
47694         * modules/uniconv/u16-conv-to-enc-tests: New file.
47695         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47696
47697         * modules/uniconv/u8-conv-to-enc: New file.
47698         * lib/uniconv/u8-conv-to-enc.c: New file.
47699         * modules/uniconv/u8-conv-to-enc-tests: New file.
47700         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47701
47702         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47703         u32_conv_to_encoding): New declarations.
47704
47705 2007-06-09  Bruno Haible  <bruno@clisp.org>
47706
47707         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47708
47709 2007-06-09  Bruno Haible  <bruno@clisp.org>
47710
47711         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47712         * modules/malloca: Renamed from modules/allocsa, updated.
47713         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47714         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47715         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47716         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47717         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47718         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47719         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47720         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47721         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47722         * modules/c-strcasestr (Depends-on): Update.
47723         * lib/c-strcasestr.c: Update.
47724         * modules/c-strstr (Depends-on): Update.
47725         * lib/c-strstr.c: Update.
47726         * modules/canonicalize-lgpl (Depends-on): Update.
47727         * lib/canonicalize-lgpl.c: Update.
47728         * modules/clean-temp (Depends-on): Update.
47729         * lib/clean-temp.c: Update.
47730         * modules/csharpcomp (Depends-on): Update.
47731         * lib/csharpcomp.c: Update.
47732         * modules/csharpexec (Depends-on): Update.
47733         * lib/csharpexec.c: Update.
47734         * modules/javacomp (Depends-on): Update.
47735         * lib/javacomp.c: Update.
47736         * modules/javaexec (Depends-on): Update.
47737         * lib/javaexec.c: Update.
47738         * modules/mbscasestr (Depends-on): Update.
47739         * lib/mbscasestr.c: Update.
47740         * modules/mbsstr (Depends-on): Update.
47741         * lib/mbsstr.c: Update.
47742         * modules/setenv (Depends-on): Update.
47743         * lib/setenv.c: Update.
47744         * modules/strcasestr (Depends-on): Update.
47745         * lib/strcasestr.c: Update.
47746         * modules/striconveha (Depends-on): Update.
47747         * lib/striconveha.c: Update.
47748         * modules/relocatable-prog-wrapper (Files): Update.
47749         * lib/relocwrapper.c: Update.
47750         * build-aux/install-reloc: Update.
47751         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47752
47753 2007-06-08  Bruno Haible  <bruno@clisp.org>
47754
47755         Port to uClibc.
47756         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47757         * lib/fpurge.c (fpurge): Likewise.
47758         * lib/freading.c (freading): Likewise.
47759         * lib/fseeko.c (rpl_fseeko): Likewise.
47760         * lib/fseterr.c (fseterr): Likewise.
47761         * lib/fwriting.c (fwriting): Likewise.
47762         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47763
47764 2007-06-08  Bruno Haible  <bruno@clisp.org>
47765
47766         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47767         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47768         * modules/gettext (Files): Add m4/intlmacosx.m4.
47769
47770 2007-06-07  Bruno Haible  <bruno@clisp.org>
47771
47772         * modules/localename-tests: New file.
47773         * tests/test-localename.c: New file.
47774
47775         New module 'localename'.
47776         * lib/localename.h: New file.
47777         * lib/localename.c: New file, from GNU gettext.
47778         * m4/localename.m4: New file.
47779         * modules/localename: New file.
47780
47781 2007-06-07  Bruno Haible  <bruno@clisp.org>
47782
47783         Work around the lack of <wchar.h> on some builds of uClibc.
47784         * doc/headers/wchar.texi: Update.
47785         * lib/wchar_.h: Include <wchar.h> only if it exists.
47786         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47787         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47788         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47789         doesn't exist.
47790         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47791         * modules/mbfile (Depends-on): Add wchar.
47792         * modules/mbiter (Depends-on): Likewise.
47793         * modules/mbuiter (Depends-on): Likewise.
47794         Reported by Simon Josefsson.
47795
47796 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47797
47798         Work around problem reported by Steven M. Schweda in
47799         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47800         Tru64 5.1B with the Compaq compiler environment installed declares
47801         an 'isblank' function but does not define it in the C library.
47802         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47803         * lib/regex_internal.h (isblank): Likewise.
47804         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47805         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47806
47807 2007-06-05  Bruno Haible  <bruno@clisp.org>
47808
47809         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47810         ia64.
47811         * modules/printf-safe: New file.
47812         * modules/fprintf-posix (Depends-on): Add printf-safe.
47813         * modules/printf-posix (Depends-on): Likewise.
47814         * modules/snprintf-posix (Depends-on): Likewise.
47815         * modules/sprintf-posix (Depends-on): Likewise.
47816         * modules/vasnprintf-posix (Depends-on): Likewise.
47817         * modules/vasprintf-posix (Depends-on): Likewise.
47818         * modules/vfprintf-posix (Depends-on): Likewise.
47819         * modules/vprintf-posix (Depends-on): Likewise.
47820         * modules/vsnprintf-posix (Depends-on): Likewise.
47821         * modules/vsprintf-posix (Depends-on): Likewise.
47822         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47823         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47824         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47825         "no" on i386, x86_64, ia64.
47826         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47827         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47828         on i386, x86_64, ia64.
47829         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47830         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47831         on i386, x86_64, ia64.
47832         * tests/test-vasnprintf-posix.c: Include float.h.
47833         (LDBL80_WORDS): New macro.
47834         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47835         on i386, x86_64, ia64.
47836         * tests/test-vasprintf-posix.c: Include float.h.
47837         (LDBL80_WORDS): New macro.
47838         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47839         on i386, x86_64, ia64.
47840         * tests/test-snprintf-posix.c: Include float.h.
47841         * tests/test-sprintf-posix.c: Likewise.
47842         * tests/test-vsnprintf-posix.c: Likewise.
47843         * tests/test-vsprintf-posix.c: Likewise.
47844
47845 2007-06-05  Bruno Haible  <bruno@clisp.org>
47846
47847         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47848         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47849         non-IEEE numbers on i386, x86_64, ia64.
47850         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47851         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47852         * tests/test-isnanl.h: Include float.h.
47853         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47854
47855 2007-06-05  Bruno Haible  <bruno@clisp.org>
47856
47857         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47858         also the %a / %A. Handle the %a / %A code before this extra handling.
47859
47860 2007-06-05  Bruno Haible  <bruno@clisp.org>
47861
47862         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47863         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47864
47865 2007-06-05  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47868         typo in variable name.
47869
47870 2007-06-05  Eric Blake  <ebb9@byu.net>
47871
47872         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47873         Reported by Simon Josefsson.
47874
47875 2007-06-04  Bruno Haible  <bruno@clisp.org>
47876
47877         Avoid test failures on some PowerPC platforms.
47878         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47879         Define differently for PowerPC.
47880         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47881         Reported by Gary V. Vaughan <gary@gnu.org>.
47882
47883 2007-06-02  Bruno Haible  <bruno@clisp.org>
47884
47885         Fix test-stdint failure on FreeBSD/ia64.
47886         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47887         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47888         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47889         * doc/headers/stdint.texi: Update.
47890
47891 2007-06-01  Bruno Haible  <bruno@clisp.org>
47892
47893         * tests/test-binary-io.c (main): Pass a third argument to open().
47894         Reported by Gary V. Vaughan <gary@gnu.org>.
47895
47896 2007-06-01  Bruno Haible  <bruno@clisp.org>
47897
47898         * doc/functions/frexpl.texi: Update for mingw.
47899
47900 2007-06-01  Bruno Haible  <bruno@clisp.org>
47901
47902         * tests/test-lseek.c (main): Disable test of errno for invalid third
47903         argument.
47904         * doc/functions/lseek.texi: Update.
47905         Reported by Gary V. Vaughan <gary@gnu.org>.
47906
47907 2007-05-28  Bruno Haible  <bruno@clisp.org>
47908
47909         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47910
47911 2007-05-31  Eric Blake  <ebb9@byu.net>
47912
47913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47914         cross compiling.
47915
47916 2007-05-30  Eric Blake  <ebb9@byu.net>
47917         and Bruno Haible  <bruno@clisp.org>
47918
47919         Work around mingw test failures exposed by m4-1.4.9b.
47920         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47921         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47922         moment.
47923
47924 2007-05-30  Bruno Haible  <bruno@clisp.org>
47925
47926         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47927         assuming that they are closed. Needed on HP-UX 11.
47928
47929 2007-05-29  Bruno Haible  <bruno@clisp.org>
47930
47931         Fix a problem with #include_next.
47932         * lib/dirent_.h: Split the double-inclusion guard.
47933         * lib/fcntl_.h: Likewise.
47934         * lib/float_.h: Likewise.
47935         * lib/iconv_.h: Likewise.
47936         * lib/inttypes_.h: Likewise.
47937         * lib/locale_.h: Likewise.
47938         * lib/math_.h: Likewise.
47939         * lib/netinet_in_.h: Likewise.
47940         * lib/search_.h: Likewise.
47941         * lib/signal_.h: Likewise.
47942         * lib/stdint_.h: Likewise.
47943         * lib/stdio_.h: Likewise.
47944         * lib/stdlib_.h: Likewise.
47945         * lib/string_.h: Likewise.
47946         * lib/sys_select_.h: Likewise.
47947         * lib/sys_socket_.h: Likewise.
47948         * lib/sys_stat_.h: Likewise.
47949         * lib/sys_time_.h: Likewise.
47950         * lib/sysexits_.h: Likewise.
47951         * lib/time_.h: Likewise.
47952         * lib/unistd_.h: Likewise.
47953         * lib/wchar_.h: Likewise.
47954         * lib/wctype_.h: Likewise.
47955
47956 2007-05-29  Bruno Haible  <bruno@clisp.org>
47957
47958         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47959         for the moment.
47960
47961 2007-05-29  Bruno Haible  <bruno@clisp.org>
47962
47963         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47964         invocation.
47965         Reported by Eric Blake.
47966
47967 2007-05-29  Bruno Haible  <bruno@clisp.org>
47968
47969         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47970         compiling case.
47971
47972 2007-05-29  Eric Blake  <ebb9@byu.net>
47973             Bruno Haible  <bruno@clisp.org>
47974
47975         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47976         cross compiles.
47977
47978 2007-05-28  Eric Blake  <ebb9@byu.net>
47979
47980         * modules/closein-tests (test_closein_LDADD): Support test on
47981         cygwin with libtool.
47982
47983 2007-05-28  Bruno Haible  <bruno@clisp.org>
47984
47985         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47986         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47987         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47988         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47989         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47990         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47991         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47992         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47993         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47994
47995 2007-05-28  Eric Blake  <ebb9@byu.net>
47996
47997         Unconditionally include <config.h> in unit tests.
47998         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47999         * tests/test-allocsa.c, tests/test-arcfour.c,
48000         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48001         tests/test-array_list.c, tests/test-array_oset.c,
48002         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48003         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48004         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48005         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48006         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48007         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48008         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48009         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48010         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48011         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48012         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48013         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48014         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48015         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48016         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48017         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48018         test-md5.c, test-memmem.c, test-printf-posix.c,
48019         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48020         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48021         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48022         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48023         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48024         test-vasnprintf-posix2.c, test-vasnprintf.c,
48025         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48026         test-vfprintf-posix.c, test-vprintf-posix.c,
48027         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48028         test-xvasprintf.c: Likewise.
48029
48030 2007-05-28  Bruno Haible  <bruno@clisp.org>
48031
48032         * gnulib-tool (func_import): Remember the --with-tests command-line
48033         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48034         Reported by Eric Blake.
48035
48036 2007-05-28  Bruno Haible  <bruno@clisp.org>
48037
48038         * modules/ftell-tests: New file.
48039         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48040         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48041
48042         * lib/ftell.c: New file.
48043         * modules/ftell: New file.
48044         * m4/ftell.m4: New file.
48045         * doc/functions/ftell.texi: Update.
48046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48047         REPLACE_FTELL.
48048         * lib/stdio_.h (rpl_ftell): New declaration.
48049         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48050         REPLACE_FTELL.
48051
48052 2007-05-28  Eric Blake  <ebb9@byu.net>
48053
48054         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48055
48056 2007-05-28  Bruno Haible  <bruno@clisp.org>
48057
48058         * modules/fseek-tests: New file.
48059         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48060         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48061
48062         * lib/fseek.c: New file.
48063         * modules/fseek: New file.
48064         * m4/fseek.m4: New file.
48065         * doc/functions/fseek.texi: Update.
48066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48067         REPLACE_FSEEK.
48068         * lib/stdio_.h (rpl_fseek): New declaration.
48069         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48070         REPLACE_FSEEK.
48071
48072 2007-05-28  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/stdio_.h (fflush): More comments.
48075
48076 2007-05-28  Bruno Haible  <bruno@clisp.org>
48077
48078         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48079         runtime test.
48080
48081 2007-05-28  Eric Blake  <ebb9@byu.net>
48082
48083         Improve lseek module.
48084         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48085         * lib/unistd_.h (lseek): Scale back link warning message.
48086         * tests/test-lseek.c: Beef up test.
48087         * tests/test-lseek.sh: Exercise more facets of lseek.
48088         Reported by Bruno Haible.
48089
48090 2007-05-28  Bruno Haible  <bruno@clisp.org>
48091
48092         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48093         to define.
48094
48095 2007-05-27  Bruno Haible  <bruno@clisp.org>
48096
48097         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48098
48099 2007-05-27  Bruno Haible  <bruno@clisp.org>
48100
48101         * modules/openmp: New file.
48102         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48103         Noah Misch.
48104
48105 2007-05-26  Bruno Haible  <bruno@clisp.org>
48106
48107         * modules/chdir-long (Depends-on): Add fchdir.
48108         * modules/chdir-safer (Depends-on): Likewise.
48109         * modules/fts (Depends-on): Likewise.
48110         * modules/fts-lgpl (Depends-on): Likewise.
48111         * modules/openat (Depends-on): Likewise.
48112         * modules/savewd (Depends-on): Likewise.
48113
48114 2007-05-24  Eric Blake  <ebb9@byu.net>
48115
48116         Fix lseek on mingw.
48117         * modules/lseek: New module.
48118         * m4/lseek.m4: New file.
48119         * lib/lseek.c: New file.
48120         * modules/lseek-tests: New file.
48121         * tests/test-lseek.c: New file.
48122         * tests/test-lseek.sh: New file.
48123         * MODULES.html.sh: Document lseek module.
48124         * modules/fflush (Depends-on): Add lseek, fseeko.
48125         * modules/fseeko (Depends-on): Likewise.
48126         * modules/ftello (Depends-on): Likewise.
48127         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48128         broken.
48129         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48130         broken.
48131         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48132         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48133         * lib/ftello.c (rpl_ftello): Likewise.
48134         * tests/test-fseeko.c (main): Test this.
48135         * tests/test-fseeko.sh: Likewise.
48136         * tests/test-ftello.c (main): Likewise.
48137         * tests/test-ftello.sh: Likewise.
48138         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48139         implies replacing fseek.
48140         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48141         HAVE_FTELLO.
48142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48143         * modules/unistd (Makefile.am): Likewise.
48144         * lib/unistd_.h (lseek): Declare a replacement.
48145         * doc/functions/lseek.texi (lseek): Document this fix.
48146         * doc/functions/fseek.texi (fseek): Likewise.
48147         * doc/functions/ftell.texi (ftell): Likewise.
48148
48149 2007-05-24  Bruno Haible  <bruno@clisp.org>
48150
48151         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48152         in the printed representation of a NaN.
48153         * tests/test-vasprintf-posix.c (test_function): Likewise.
48154         * tests/test-snprintf-posix.h (test_function): Likewise.
48155         * tests/test-sprintf-posix.h (test_function): Likewise.
48156         Reported by Eric Blake.
48157
48158 2007-05-23  Eric Blake  <ebb9@byu.net>
48159
48160         Fix fseeko/ftello on cygwin 1.5.24.
48161         * doc/functions/fseeko.texi (fseeko): Document the fix.
48162         * doc/functions/ftello.texi (ftello): Document the fix.
48163         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48164         * doc/functions/stdout.text (stdout): New file.
48165         * doc/functions/stderr.text (stderr): New file.
48166         * doc/gnulib.texi (Function Substitutes): Use new files.
48167         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48168         prior to 1.7.0.
48169         * tests/test-ftello.c (main): Likewise for ftello.
48170         * tests/test-fseeko.sh: New file.
48171         * tests/test-ftello.sh: New file.
48172         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48173         with seekable stdin.
48174         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48175         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48176         (gl_REPLACE_FSEEKO): New macro.
48177         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48178         * modules/fseeko (Files): Distribute fseeko.c.
48179         * modules/ftello (Files): Distribute ftello.c.
48180         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48181         mode.
48182         * lib/ftello.c (rpl_ftello): New file.
48183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48184         fseeko, ftello.
48185         (gl_STDIN_LARGE_OFFSET): New macro.
48186         * modules/stdio (Makefile.am): Perform the replacement.
48187         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48188
48189 2007-05-23  Bruno Haible  <bruno@clisp.org>
48190
48191         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48192         GNULIB_POSIXCHECK is defined.
48193
48194 2007-05-21  Bruno Haible  <bruno@clisp.org>
48195
48196         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48197         Check also the output for NaN arguments. When cross-compiling, guess
48198         no on IRIX.
48199         * lib/vasnprintf.c: Update comments.
48200         * tests/test-vasnprintf-posix.c (strisnan): New function.
48201         (test_function): Use it.
48202         * tests/test-vasprintf-posix.c (strisnan): New function.
48203         (test_function): Use it.
48204         * tests/test-snprintf-posix.h (strisnan): New function.
48205         (test_function): Use it.
48206         * tests/test-sprintf-posix.h (strisnan): New function.
48207         (test_function): Use it.
48208         Reported by Eric Blake.
48209
48210 2007-05-20  Bruno Haible  <bruno@clisp.org>
48211
48212         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48213         numbers that fails on BeOS.
48214         * doc/functions/frexpl.texi: Update.
48215
48216 2007-05-20  Jim Meyering  <jim@meyering.net>
48217
48218         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48219         forced upon us by glibc-2.6.
48220
48221 2007-05-20  Bruno Haible  <bruno@clisp.org>
48222
48223         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48224         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48225         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48226         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48227         NEED_PRINTF_INFINITE.
48228         (is_infinitel): New function.
48229         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48231         gl_PREREQ_VASNPRINTF_INFINITE.
48232         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48234         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48235         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48236         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48237         gl_PREREQ_VASNPRINTF_INFINITE.
48238         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48240         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48241         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48242         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48243         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48244         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48245         * doc/functions/fprintf.texi: Update.
48246         * doc/functions/printf.texi: Update.
48247         * doc/functions/snprintf.texi: Update.
48248         * doc/functions/sprintf.texi: Update.
48249         * doc/functions/vfprintf.texi: Update.
48250         * doc/functions/vprintf.texi: Update.
48251         * doc/functions/vsnprintf.texi: Update.
48252         * doc/functions/vsprintf.texi: Update.
48253
48254 2007-05-20  Bruno Haible  <bruno@clisp.org>
48255
48256         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48257         was not found in libc.
48258         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48259
48260 2007-05-20  Bruno Haible  <bruno@clisp.org>
48261
48262         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48263         printed as "-nan" instead of "nan".
48264         * tests/test-vasprintf-posix.c (test_function): Likewise.
48265         * tests/test-snprintf-posix.h (test_function): Likewise.
48266         * tests/test-sprintf-posix.h (test_function): Likewise.
48267         Needed for HP-UX 11.
48268
48269 2007-05-20  Jim Meyering  <jim@meyering.net>
48270
48271         Fix buggy test for the fchownat-deref bug.
48272         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48273         symlink required for the run-test.  Without it, this test would
48274         always declare that fchownat doesn't work, and client code would
48275         unnecessarily use the replacement function with fixed libc.
48276         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48277         Reported by Greg Schafer.
48278
48279 2007-05-19  Bruno Haible  <bruno@clisp.org>
48280
48281         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48282         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48283         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48284         Needed for IRIX 6.5 and Solaris 2.5.1.
48285
48286 2007-05-19  Bruno Haible  <bruno@clisp.org>
48287
48288         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48289         (test_function): Skip tests involving -0.0 on platforms where
48290         -0.0 = 0.0.
48291         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48292         (test_function): Skip tests involving -0.0 on platforms where
48293         -0.0 = 0.0.
48294         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48295         (test_function): Skip tests involving -0.0 on platforms where
48296         -0.0 = 0.0.
48297         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48298         (test_function): Skip tests involving -0.0 on platforms where
48299         -0.0 = 0.0.
48300         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48301         tests.
48302         * tests/test-printf-posix.h (test_function): Likewise.
48303         * tests/test-printf-posix.output: Remove all -0.0 related results.
48304         Needed for IRIX 6.5.
48305
48306 2007-05-19  Bruno Haible  <bruno@clisp.org>
48307
48308         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48309         printed as "nan0x7fffffff" instead of "nan".
48310         * tests/test-vasprintf-posix.c (test_function): Likewise.
48311         * tests/test-snprintf-posix.h (test_function): Likewise.
48312         * tests/test-sprintf-posix.h (test_function): Likewise.
48313         * tests/test-fprintf-posix.h (NaN): Remove macro.
48314         (test_function): Remove all NaN related tests.
48315         * tests/test-printf-posix.h (NaN): Remove macro.
48316         (test_function): Remove all NaN related tests.
48317         * tests/test-printf-posix.output: Remove all NaN related results.
48318         Needed for IRIX 6.5.
48319
48320 2007-05-19  Bruno Haible  <bruno@clisp.org>
48321
48322         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48324
48325 2007-05-19  Bruno Haible  <bruno@clisp.org>
48326
48327         * lib/float_.h: New file.
48328         * m4/float_h.m4: New file.
48329         * modules/float: New file.
48330         * modules/isnanl (Dependencies): Add float.
48331         * modules/isnanl-nolibm (Dependencies): Likewise.
48332         * modules/mathl (Dependencies): Likewise.
48333         * modules/printf-frexpl (Dependencies): Likewise.
48334         * modules/signbit (Dependencies): Likewise.
48335         * modules/vasnprintf (Dependencies): Likewise.
48336         * doc/headers/float.texi: Update.
48337
48338 2007-05-19  Jim Meyering  <jim@meyering.net>
48339
48340         * lib/utimens.c (gl_futimens): Rename from futimens,
48341         now that glibc-2.6 declares futimens.
48342         * lib/utimens.h: Likewise.
48343
48344 2007-05-19  Bruno Haible  <bruno@clisp.org>
48345
48346         Avoid test failures on mingw.
48347         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48348         * tests/test-printf-posix.sh: Likewise.
48349         * tests/test-vfprintf-posix.sh: Likewise.
48350         * tests/test-vprintf-posix.sh: Likewise.
48351
48352 2007-05-19  Bruno Haible  <bruno@clisp.org>
48353
48354         Fix *printf result for NaN, Inf, -0.0 on mingw.
48355         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48356         * lib/vasnprintf.c: Include math.h and isnan.h.
48357         (is_infinite_or_zero): New function.
48358         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48359         values in the %f, %F, %e, %E, %g, %G directives.
48360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48361         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48362         gl_PRINTF_INFINITE and test its result. Invoke
48363         gl_PREREQ_VASNPRINTF_INFINITE.
48364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48365         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48366         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48368         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48369         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48371         * doc/functions/fprintf.texi: Update.
48372         * doc/functions/printf.texi: Update.
48373         * doc/functions/snprintf.texi: Update.
48374         * doc/functions/sprintf.texi: Update.
48375         * doc/functions/vfprintf.texi: Update.
48376         * doc/functions/vprintf.texi: Update.
48377         * doc/functions/vsnprintf.texi: Update.
48378         * doc/functions/vsprintf.texi: Update.
48379
48380 2007-05-19  Bruno Haible  <bruno@clisp.org>
48381
48382         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48383         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48384         Instead of multiplying with 10^k, set extra_zeroes to k.
48385         (scale10_round_long_double): Remove function.
48386
48387 2007-05-18  Bruno Haible  <bruno@clisp.org>
48388
48389         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48390         introduced on 2007-05-06.
48391
48392 2007-05-18  Bruno Haible  <bruno@clisp.org>
48393
48394         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48395         %g directives.
48396         * tests/test-vasprintf-posix.c (test_function): Likewise.
48397         * tests/test-snprintf-posix.h (test_function): Likewise.
48398         * tests/test-sprintf-posix.h (test_function): Likewise.
48399
48400 2007-05-18  Bruno Haible  <bruno@clisp.org>
48401
48402         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48403         (strmatch): New function.
48404         (test_function): Test the %f directive on numbers of various exponents.
48405         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48406         (strmatch): New function.
48407         (test_function): Test the %f directive on numbers of various exponents.
48408         * tests/test-snprintf-posix.h (strmatch): New function.
48409         (test_function): Test the %f directive on numbers of various exponents.
48410         * tests/test-sprintf-posix.h (strmatch): New function.
48411         (test_function): Test the %f directive on numbers of various exponents.
48412         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48413         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48414         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48415         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48416
48417 2007-05-18  Bruno Haible  <bruno@clisp.org>
48418
48419         Add support for 'long double' number output.
48420         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48421         * lib/vasnprintf.c: Include math.h and float+.h.
48422         (mp_limb_t): New type.
48423         (GMP_LIMB_BITS): New macro.
48424         (mp_twolimb_t): New type.
48425         (GMP_TWOLIMB_BITS): New macro.
48426         (mpn_t): New type.
48427         (multiply, divide, convert_to_decimal, decode_long_double,
48428         scale10_round_long_double, scale10_round_decimal_long_double,
48429         floorlog10l): New functions.
48430         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48431         for the %f, %F, %e, %E, %g, %G directives.
48432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48434         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48435         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48437         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48443         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48444         * modules/snprintf-posix (Depends-on): Likewise.
48445         * modules/sprintf-posix (Depends-on): Likewise.
48446         * modules/vasnprintf-posix (Depends-on): Likewise.
48447         * modules/vasprintf-posix (Depends-on): Likewise.
48448         * modules/vfprintf-posix (Depends-on): Likewise.
48449         * modules/vsnprintf-posix (Depends-on): Likewise.
48450         * modules/vsprintf-posix (Depends-on): Likewise.
48451         * modules/vasnprintf (Files): Add lib/float+.h.
48452         * doc/functions/fprintf.texi: Update.
48453         * doc/functions/printf.texi: Update.
48454         * doc/functions/snprintf.texi: Update.
48455         * doc/functions/sprintf.texi: Update.
48456         * doc/functions/vfprintf.texi: Update.
48457         * doc/functions/vprintf.texi: Update.
48458         * doc/functions/vsnprintf.texi: Update.
48459         * doc/functions/vsprintf.texi: Update.
48460
48461 2007-05-18  Bruno Haible  <bruno@clisp.org>
48462
48463         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48464
48465 2007-05-18  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48468         for printing 64-bit integers. Needed for mingw.
48469
48470 2007-05-18  Bruno Haible  <bruno@clisp.org>
48471
48472         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48473         gl_FUNC_FREXPL_WORKS.
48474         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48475
48476 2007-05-18  Bruno Haible  <bruno@clisp.org>
48477
48478         * modules/frexpl-nolibm-tests: New file.
48479
48480         * modules/frexpl-nolibm: New file.
48481         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48482
48483 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48484
48485         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48486         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48487         GCC 4.2, which otherwise issues a lot of warnings.
48488         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48489         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48490         Likewise.
48491         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48492         * modules/iconv_open (iconv.h): Likewise.
48493         * modules/locale (locale.h): Likewise.
48494         * modules/netinet_in (netinet/in.h): Likewise.
48495         * modules/sys_select (sys_select.h): Likewise.
48496         * modules/sys_socket (sys/socket.h): Likewise.
48497         * modules/sys_stat (sys/stat.h): Likewise.
48498         * modules/sysexits (sysexits.h): Likewise.
48499         * modules/unistd (unistd.h): Likewise.
48500
48501 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48502
48503         * modules/closein-tests (Makefile.am): Distribute
48504         `test-closein.sh'.
48505
48506 2007-05-17  Bruno Haible  <bruno@clisp.org>
48507
48508         * tests/test-printf-posix.output: Renamed from
48509         tests/test-fprintf-posix.out.
48510         * modules/fprintf-posix-tests: Update.
48511         * modules/printf-posix-tests: Update.
48512         * modules/vfprintf-posix-tests: Update.
48513         * modules/vprintf-posix-tests: Update.
48514         * tests/test-fprintf-posix.sh: Update.
48515         * tests/test-printf-posix.sh: Update.
48516         * tests/test-vfprintf-posix.sh: Update.
48517         * tests/test-vprintf-posix.sh: Update.
48518         Reported by Ralf Wildenhues.
48519
48520 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48521
48522         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48523         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48524         GCC 4.2, which otherwise issues a lot of warnings.
48525         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48526         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48527         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48528         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48529         it should no longer be needed.
48530         * lib/string_.h: Likewise.
48531         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48532         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48533         * modules/inttypes (inttypes.h): Likewise.
48534         * modules/math (math.h): Likewise.
48535         * modules/search (search.h): Likewise.
48536         * modules/signal (signal.h): Likewise.
48537         * modules/stdint (stdint.h): Likewise.
48538         * modules/stdio (stdio.h): Likewise.
48539         * modules/stdlib (stdlib.h): Likewise.
48540         * modules/string (string.h): Likewise.
48541         * modules/sys_time (sys/time.h): Likewise.
48542         * modules/time (time.h): Likewise.
48543         * modules/wchar (wchar.h): Likewise.
48544         * modules/wctype (wtype.h): Likewise.
48545
48546 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48547
48548         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48549
48550 2007-05-13  Bruno Haible  <bruno@clisp.org>
48551
48552         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48553         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48554         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48555         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48556         (gl_PREREQ_STRTOK_R): Don't require it here.
48557
48558 2007-05-13  Bruno Haible  <bruno@clisp.org>
48559
48560         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48561         when used in C++ mode.
48562
48563 2007-05-12  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/linebuffer.h: Tweak doc.
48566         * lib/linebuffer.c: Likewise.
48567
48568 2007-05-12  James Youngman  <jay@gnu.org>
48569
48570         * lib/linebuffer.c (readlinebuffer_delim): New function,
48571         like readlinebuffer, but use a caller-specified delimiter.
48572         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48573         as the delimiter.
48574         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48575
48576 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48577
48578         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48579         * modules/openat (Files): Remove openat-die.c.
48580         (Depends-on): Add openat-die.
48581         * modules/openat-die: New module.
48582
48583 2007-05-06  Bruno Haible  <bruno@clisp.org>
48584
48585         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48586         Update with info about Cygwin.
48587         * doc/functions/fprintf.texi: Update.
48588         * doc/functions/printf.texi: Update.
48589         * doc/functions/snprintf.texi: Update.
48590         * doc/functions/sprintf.texi: Update.
48591         * doc/functions/vfprintf.texi: Update.
48592         * doc/functions/vprintf.texi: Update.
48593         * doc/functions/vsnprintf.texi: Update.
48594         * doc/functions/vsprintf.texi: Update.
48595         Reported by Eric Blake.
48596
48597 2007-05-06  Bruno Haible  <bruno@clisp.org>
48598
48599         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48600         padding ourselves for the floating-point directives.
48601         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48603         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48604         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48605         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48606         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48607         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48613         * tests/test-snprintf-posix.h (test_function): Also check the width
48614         and some flags in the %f directive.
48615         * tests/test-sprintf-posix.h (test_function): Likewise.
48616         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48617         * tests/test-vasprintf-posix.c (test_function): Likewise.
48618         * doc/functions/fprintf.texi: Update.
48619         * doc/functions/printf.texi: Update.
48620         * doc/functions/snprintf.texi: Update.
48621         * doc/functions/sprintf.texi: Update.
48622         * doc/functions/vfprintf.texi: Update.
48623         * doc/functions/vprintf.texi: Update.
48624         * doc/functions/vsnprintf.texi: Update.
48625         * doc/functions/vsprintf.texi: Update.
48626
48627 2007-05-06  Bruno Haible  <bruno@clisp.org>
48628
48629         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48630         pass the ' flag character to sprintf or snprintf.
48631         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48634         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48635         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48640         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48643         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48644         flag.
48645         * tests/test-sprintf-posix.h (test_function): Likewise.
48646         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48647         * tests/test-vasprintf-posix.c (test_function): Likewise.
48648         * doc/functions/fprintf.texi: Update.
48649         * doc/functions/printf.texi: Update.
48650         * doc/functions/snprintf.texi: Update.
48651         * doc/functions/sprintf.texi: Update.
48652         * doc/functions/vfprintf.texi: Update.
48653         * doc/functions/vprintf.texi: Update.
48654         * doc/functions/vsnprintf.texi: Update.
48655         * doc/functions/vsprintf.texi: Update.
48656
48657 2007-05-01  Bruno Haible  <bruno@clisp.org>
48658
48659         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48660
48661 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48662
48663         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48664         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48665
48666 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48667
48668         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48669         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48671
48672 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48673
48674         * lib/argp-help.c (struct hol_entry): New member `ord'.
48675         (HOL_ENTRY_PTRCMP): Use ord for comparison
48676         (hol_sort): Initialize ord.
48677
48678 2007-05-01  Bruno Haible  <bruno@clisp.org>
48679
48680         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48681         Reported by Eric Blake.
48682         * doc/gnulib.texi (Function Substitutes): Update.
48683
48684 2007-05-01  Bruno Haible  <bruno@clisp.org>
48685
48686         * doc/functions.texi: Remove file, now redundant through
48687         doc/functions/*.texi.
48688
48689 2007-05-01  Bruno Haible  <bruno@clisp.org>
48690
48691         * modules/argp (Depends-on): Add sleep.
48692
48693 2007-05-01  Bruno Haible  <bruno@clisp.org>
48694
48695         * modules/sleep-tests: New file.
48696         * tests/test-sleep.c: New file.
48697
48698         * modules/sleep: New file.
48699         * lib/sleep.c: New file.
48700         * m4/sleep.m4: New file.
48701         * lib/unistd_.h (sleep): New declaration.
48702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48703         HAVE_SLEEP.
48704         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48705         * doc/functions/sleep.texi: Document the sleep module.
48706
48707 2007-05-01  Bruno Haible  <bruno@clisp.org>
48708
48709         * lib/sigprocmask.h: Remove file.
48710         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48711         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48712         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48713         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48714         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48715         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48716         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48717         HAVE_SIGSET_T as a shell variable.
48718         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48719         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48720         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48721         (Depends-on): Add signal. Remove verify.
48722         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48723         (Include): Mention <signal.h> instead of sigprocmask.h.
48724         * NEWS: Mention the change.
48725         * lib/fatal-signal.c: Don't include sigprocmask.h.
48726
48727 2007-05-01  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/signal: New file.
48730         * lib/signal_.h: New file.
48731         * m4/signal_h.m4: New file.
48732
48733 2007-05-01  Bruno Haible  <bruno@clisp.org>
48734
48735         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48736         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48737         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48738         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48739
48740 2007-05-01  Bruno Haible  <bruno@clisp.org>
48741
48742         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48743         configure time.
48744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48745         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48746         * modules/sys_stat (Makefile.am): Substitute their values into
48747         sys/stat.h.
48748
48749 2007-05-01  Bruno Haible  <bruno@clisp.org>
48750
48751         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48752         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48753         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48754
48755 2007-05-01  Bruno Haible  <bruno@clisp.org>
48756
48757         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48758         'assert' module here.
48759
48760 2007-05-01  Bruno Haible  <bruno@clisp.org>
48761
48762         * doc/functions/*.texi: New files.
48763         * doc/functions/google-ranking.txt: New file.
48764         * doc/gnulib.texi (Function Substitutes): New chapter.
48765         (ctime, inet_ntoa): Remove sections.
48766         * doc/ctime.texi: Remove file.
48767         * doc/inet_ntoa.texi: Remove file.
48768         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48769         dependencies.
48770         (%.info): New rule, specifying a --reference-limit.
48771
48772 2007-05-01  Bruno Haible  <bruno@clisp.org>
48773
48774         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48775
48776 2007-05-01  Bruno Haible  <bruno@clisp.org>
48777
48778         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48779         the portability of 'mkdir' to mingw systems.
48780
48781 2007-05-01  Bruno Haible  <bruno@clisp.org>
48782
48783         * doc/headers/google-ranking.txt: New file.
48784
48785 2007-04-30  Eric Blake  <ebb9@byu.net>
48786
48787         Prefer fseeko to fseek.
48788         * modules/getpass (Depends-on): Add fseeko.
48789         * lib/getpass.c (getpass): Use fseeko, not fseek.
48790
48791 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48792
48793         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48794         assumes the sorting is stable, while most qsort implementations
48795         are not.  Use argument addresses to ensure they never compare as
48796         equal.
48797
48798         * tests/test-argp-2.sh (usage-indent test): Fix output
48799         (func_compare): Restore diff options
48800         * tests/test-argp.c: Restore #include "progname.h"
48801
48802 2007-04-29  Bruno Haible  <bruno@clisp.org>
48803
48804         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48805         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48806         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48808         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48809         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48810         (TESTS, check_PROGRAMS): Add test-snprintf.
48811         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48812         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48813         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48814         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48815         assertions that fail on HP-UX, OSF/1, or IRIX.
48816         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48817
48818 2007-04-29  Bruno Haible  <bruno@clisp.org>
48819
48820         * MODULES.html.sh (posix_functions): Remove 'contents'.
48821
48822 2007-04-29  Karl Berry  <karl@gnu.org>
48823
48824         * config/srclist.txt (gendocs_template_min): new entry.
48825
48826 2007-04-29  Bruno Haible  <bruno@clisp.org>
48827
48828         Work around fpurge bug on BSD systems.
48829         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48831         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48832         fpurge to rpl_fpurge if the system already has this function.
48833         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48834         the case where the system already has this function. Correct invariants
48835         on BSD systems.
48836         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48837         BSD systems.
48838
48839 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48840
48841         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48842         proposed by Sven Verdoolaege.
48843
48844         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48845         options.
48846         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48847         (usage and help tests): Update
48848
48849 2007-04-29  Bruno Haible  <bruno@clisp.org>
48850
48851         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48852         Print more information in case of failure. Disable a test on BeOS.
48853
48854 2007-04-29  Bruno Haible  <bruno@clisp.org>
48855
48856         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48857         This helps debugging on systems on which no gdb is available.
48858
48859 2007-04-29  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/freading.h: Improve comments.
48862         * lib/fwriting.h: Likewise.
48863         * tests/test-freading.c (main): Don't check freading immediately after
48864         repositioning. Needed for glibc.
48865
48866 2007-04-29  Bruno Haible  <bruno@clisp.org>
48867
48868         * lib/freading.c (freading): Trivial simplification.
48869
48870 2007-04-28  Bruno Haible  <bruno@clisp.org>
48871
48872         * tests/test-fwriting.c (main): Also test the interaction between
48873         fflush and fwriting.
48874         * modules/fwriting-tests (Depends-on): Add fflush.
48875
48876         * tests/test-freading.c (main): Also test the interaction between
48877         fflush and freading.
48878         * modules/freading-tests (Depends-on): Add fflush.
48879
48880 2007-04-28  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48883         fseeko and ftello.
48884         Suggested by Eric Blake.
48885
48886 2007-04-28  Jim Meyering  <jim@meyering.net>
48887
48888         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48889         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48890         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48891
48892 2007-04-27  Eric Blake  <ebb9@byu.net>
48893
48894         * doc/headers/assert.texi (assert.h): Document assert module use.
48895
48896 2007-04-27  Bruno Haible  <bruno@clisp.org>
48897
48898         * doc/headers/*.texi: New files.
48899         * doc/gnulib.texi (Header File Substitutes): New chapter.
48900         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48901         dependencies.
48902         (standards.info ,standards.html, standards.dvi): Update dependencies.
48903         (mostlyclean, clean): New targets.
48904
48905 2007-04-27  Bruno Haible  <bruno@clisp.org>
48906
48907         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48908         * modules/sysexits (Files, Makefile.am): Update.
48909
48910         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48911         * modules/sys_socket (Files, Makefile.am): Update.
48912
48913         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48914         * modules/sys_stat (Files, Makefile.am): Update.
48915
48916 2007-04-27  Eric Blake  <ebb9@byu.net>
48917
48918         * lib/freading.h: Improve comments.
48919         * lib/fwriting.h: Likewise.
48920         * lib/fflush.c: Likewise.
48921
48922         Fix closein for mingw.
48923         * modules/closein-tests: Add tests for closein.
48924         * tests/test-closein.c: New file.
48925         * tests/test-closein.sh: Likewise.
48926         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48927         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48928
48929 2007-04-27  Bruno Haible  <bruno@clisp.org>
48930
48931         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48932         version is < 6.
48933         * lib/math_.h [__DECC]: Likewise.
48934         * lib/stdio_.h [__DECC]: Likewise.
48935         * lib/stdlib_.h [__DECC]: Likewise.
48936         * lib/string_.h [__DECC]: Likewise.
48937         * lib/time_.h [__DECC]: Likewise.
48938         * lib/wchar_.h [__DECC]: Likewise.
48939         * lib/wctype_.h [__DECC]: Likewise.
48940
48941 2007-04-27  Bruno Haible  <bruno@clisp.org>
48942
48943         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48944
48945 2007-04-27  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/fflush.c: Add comments.
48948         * modules/fpurge-tests (Depends-on): Add fflush.
48949         * modules/freadable-tests (Depends-on): Likewise.
48950         * modules/fwritable-tests (Depends-on): Likewise.
48951
48952 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48953
48954         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48955         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48956         Report by Bruno Haible <bruno@clisp.org>.
48957
48958 2007-04-26  Eric Blake  <ebb9@byu.net>
48959
48960         Fix fflush on mingw.
48961         * modules/fflush (Depends-on): Add freading.
48962         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48963         but unread data.
48964
48965 2007-04-26  Eric Blake  <ebb9@byu.net>
48966         and Bruno Haible  <bruno@clisp.org>
48967
48968         Implement freading and fwriting.
48969         * lib/freading.c: New file.
48970         * lib/freading.h: Likewise.
48971         * m4/freading.m4: Likewise.
48972         * modules/freading: Likewise.
48973         * modules/freading-tests: Likewise.
48974         * tests/test-freading.c: Likewise.
48975         * lib/fwriting.c: New file.
48976         * lib/fwriting.h: Likewise.
48977         * m4/fwriting.m4: Likewise.
48978         * modules/fwriting: Likewise.
48979         * modules/fwriting-tests: Likewise.
48980         * tests/test-fwriting.c: Likewise.
48981         * MODULES.html.sh (File stream based Input/Output): Mention them.
48982
48983 2007-04-26  Bruno Haible  <bruno@clisp.org>
48984
48985         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48986         'long' when we assume it.
48987         Suggested by Eric Blake.
48988
48989 2007-04-26  Bruno Haible  <bruno@clisp.org>
48990
48991         Ensure fseeko, ftello are declared on glibc systems.
48992         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48993         * modules/fseeko (configure.ac-early): Likewise.
48994         * modules/ftello (configure.ac-early): Likewise.
48995         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48996         AC_FUNC_FSEEKO for this.
48997         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48998         (gl_CHECK_FSEEKO): Remove macro.
48999
49000 2007-04-26  Bruno Haible  <bruno@clisp.org>
49001
49002         * tests/test-fflush.c (main): Also check the ftell result after
49003         fflush and fseek/fseeko.
49004         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49005         file descriptor position cache in the stream.
49006         * lib/fseeko.c (rpl_fseeko): Likewise.
49007
49008 2007-04-26  Bruno Haible  <bruno@clisp.org>
49009
49010         * modules/fflush-tests (Depends-on): Add fseeko.
49011
49012 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49013             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49014
49015         * lib/argz_.h: ensure error_t definition is obtained in same
49016         mechanism system argz.h would have.
49017         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49018         argz facilities are known bad.  Err on the side of caution if
49019         cross-compiling.
49020
49021 2007-04-25  Eric Blake  <ebb9@byu.net>
49022
49023         * lib/fpurge.c (includes): Use stdlib.h for free.
49024         * tests/test-fflush.c (main): Also test fflush-fseeko.
49025
49026 2007-04-25  Bruno Haible  <bruno@clisp.org>
49027
49028         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49029         * lib/fseeko.c: New file.
49030         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49031         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49032         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49033         gl_FUNC_FSEEKO.
49034         (gl_FUNC_FSEEKO): Invoke it.
49035         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49036         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49037         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49038
49039 2007-04-25  Bruno Haible  <bruno@clisp.org>
49040
49041         * modules/fflush (Depends-on): Add ftello.
49042
49043 2007-04-25  Bruno Haible  <bruno@clisp.org>
49044
49045         * modules/ftello-tests: New file.
49046         * tests/test-ftello.c: New file.
49047
49048         * modules/ftello: New file.
49049         * m4/ftello.m4: New file.
49050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49051         HAVE_FTELLO.
49052         * lib/stdio_.h (ftello): New declaration.
49053         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49054         HAVE_FTELLO.
49055
49056 2007-04-25  Bruno Haible  <bruno@clisp.org>
49057
49058         * modules/fseeko-tests: New file.
49059         * tests/test-fseeko.c: New file.
49060
49061         * modules/fseeko: New file.
49062         * m4/fseeko.m4: New file.
49063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49064         HAVE_FSEEKO.
49065         * lib/stdio_.h (fseeko): New declaration.
49066         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49067         HAVE_FSEEKO.
49068
49069 2007-04-25  Bruno Haible  <bruno@clisp.org>
49070
49071         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49072
49073 2007-04-25  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49076         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49077         * tests/test-unistd.c: Likewise.
49078         * tests/test-fcntl.c: Likewise.
49079
49080 2007-04-23  Eric Blake  <ebb9@byu.net>
49081
49082         * lib/fflush.c: Fix missing include.
49083         Reported by Bruno Haible.
49084
49085 2007-04-23  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49088         Reported by Eric Blake.
49089
49090 2007-04-23  Bruno Haible  <bruno@clisp.org>
49091
49092         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49093
49094 2007-04-23  Bruno Haible  <bruno@clisp.org>
49095
49096         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49097
49098 2007-04-23  Bruno Haible  <bruno@clisp.org>
49099
49100         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49101         Needed on HP-UX 11.
49102
49103 2007-04-16  Eric Blake  <ebb9@byu.net>
49104
49105         Make fflush rely on fpurge.
49106         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49107         open coding all variants.
49108         * modules/fflush (Depends-on): Add fpurge and unistd.
49109         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49110         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49111
49112         Fix --with-tests compilation on cygwin.
49113         * modules/argmatch-tests (Makefile.am): List gnulib library first
49114         in LDADD.
49115         * modules/argp-tests (Makefile.am): Likewise.
49116         * modules/array-list-tests (Makefile.am): Likewise.
49117         * modules/array-oset-tests (Makefile.am): Likewise.
49118         * modules/avltree-list-tests (Makefile.am): Likewise.
49119         * modules/avltree-oset-tests (Makefile.am): Likewise.
49120         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49121         * modules/carray-list-tests (Makefile.am): Likewise.
49122         * modules/dirname-tests (Makefile.am): Likewise.
49123         * modules/frexp-tests (Makefile.am): Likewise.
49124         * modules/isnanl-tests (Makefile.am): Likewise.
49125         * modules/linked-list-tests (Makefile.am): Likewise.
49126         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49127         * modules/lock-tests (Makefile.am): Likewise.
49128         * modules/rbtree-list-tests (Makefile.am): Likewise.
49129         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49130         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49131         * modules/tls-tests (Makefile.am): Likewise.
49132         * modules/tsearch-tests (Makefile.am): Likewise.
49133         * modules/xvasprintf-tests (Makefile.am): Likewise.
49134
49135         Fix fpurge for cygwin.
49136         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49137         value.
49138         * modules/fpurge-tests (Depends-on): Clean up trash.
49139
49140 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49141
49142         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49143
49144         * m4/autobuild.m4: Re-indent.
49145
49146 2007-04-13  Bruno Haible  <bruno@clisp.org>
49147
49148         * modules/fpurge-tests: New file.
49149         * tests/test-fpurge.c: New file.
49150
49151         * modules/fpurge: New file.
49152         * lib/fpurge.h: New file.
49153         * lib/fpurge.c: New file.
49154         * m4/fpurge.m4: New file.
49155
49156 2007-04-13  Bruno Haible  <bruno@clisp.org>
49157
49158         * modules/fbufmode-tests: New file.
49159         * tests/test-fbufmode.c: New file.
49160
49161         * modules/fbufmode: New file.
49162         * lib/fbufmode.h: New file.
49163         * lib/fbufmode.c: New file.
49164         * m4/fbufmode.m4: New file.
49165
49166 2007-04-13  Bruno Haible  <bruno@clisp.org>
49167
49168         * modules/fwritable-tests: New file.
49169         * tests/test-fwritable.c: New file.
49170
49171         * modules/fwritable: New file.
49172         * lib/fwritable.h: New file.
49173         * lib/fwritable.c: New file.
49174         * m4/fwritable.m4: New file.
49175
49176 2007-04-13  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/freadable-tests: New file.
49179         * tests/test-freadable.c: New file.
49180
49181         * modules/freadable: New file.
49182         * lib/freadable.h: New file.
49183         * lib/freadable.c: New file.
49184         * m4/freadable.m4: New file.
49185
49186 2007-04-13  Bruno Haible  <bruno@clisp.org>
49187
49188         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49189         MOSTLYCLEANFILES.
49190
49191 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49192
49193         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49194         gzip bootstrap.conf to avoid dragging in i18n machinery.
49195         (gnulib_tool_option): Use it.
49196
49197 2007-04-13  Bruno Haible  <bruno@clisp.org>
49198
49199         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49200         %F directives.
49201         * tests/test-vasprintf-posix.c (test_function): Likewise.
49202         * tests/test-snprintf-posix.h (test_function): Likewise.
49203         * tests/test-sprintf-posix.h (test_function): Likewise.
49204         * tests/test-fprintf-posix.h (test_function): Likewise.
49205         * tests/test-printf-posix.h (test_function): Likewise.
49206         * tests/test-fprintf-posix.out: Likewise.
49207
49208 2007-04-13  Bruno Haible  <bruno@clisp.org>
49209
49210         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49211         * modules/tls-tests (configure.ac): Likewise.
49212         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49213
49214 2007-04-13  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/tls.c (glthread_tls_get): Fix return type.
49217         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49218
49219 2007-04-12  Eric Blake  <ebb9@byu.net>
49220
49221         * modules/gettime (Depends-on): Remove gettime.
49222         Reported by Dmitry V. Levin.
49223
49224 2007-04-12  Bruno Haible  <bruno@clisp.org>
49225
49226         * modules/fflush (Include): Mention <stdio.h>.
49227         * modules/strtoimax (Include): Mention <inttypes.h>.
49228         * modules/strtoumax (Include): Likewise.
49229
49230 2007-04-12  Eric Blake  <ebb9@byu.net>
49231
49232         * .cvsignore: New file.
49233         * .gitignore: Likewise.
49234
49235 2007-04-12  Bruno Haible  <bruno@clisp.org>
49236
49237         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49238         not before, since $(LDADD) often contains libgnu.a.
49239         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49240         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49241         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49242         Needed on Cygwin.
49243
49244 2007-04-12  Eric Blake  <ebb9@byu.net>
49245
49246         Work around glibc's failure to flush stdin on fclose.
49247         * lib/closein.c (close_stdin): Flush stdin before closing.
49248
49249         Work around glibc's failure to reset seekable stdin on exit.
49250         * modules/closein: New module.
49251         * lib/closein.c: New file.
49252         * lib/closein.h: Likewise.
49253         * m4/closein.m4: Likewise.
49254         * MODULES.html.sh (File stream based Input/Output): Document it.
49255
49256 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49257
49258         * gnulib-tool: Rename generated 'autobuild' script to
49259         'do-autobuild' in --create-megatestdir output.
49260
49261         * doc/gnulib.texi (Build robot for gnulib): Fix.
49262
49263 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49264
49265         * modules/sysexits (Depends-on): Add absolute-header.
49266
49267 2007-04-12  Eric Blake  <ebb9@byu.net>
49268
49269         No need to preserve errno on success.
49270         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49271         Reported by Bruno Haible.
49272
49273 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49274
49275         * MODULES.html.sh (Support for maintaining and releasing
49276         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49277
49278 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49279
49280         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49281
49282 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49283
49284         * modules/autobuild: New module.
49285
49286         * m4/autobuild.m4: New file.
49287
49288 2007-04-11  Bruno Haible  <bruno@clisp.org>
49289
49290         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49291         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49292         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49295         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49296         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49298         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49299         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49301         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49302         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49304         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49305         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49307         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49308         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49309         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49310         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49311         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49313         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49314         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49315         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49318         Reported by Eric Blake.
49319
49320 2007-04-11  Bruno Haible  <bruno@clisp.org>
49321
49322         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49323
49324 2007-04-10  Bruno Haible  <bruno@clisp.org>
49325
49326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49327         for NaN and Infinity. Needed on FreeBSD 6.1.
49328         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49329         regarding results for "%010a" of Infinity and NaN.
49330         * tests/test-vasprintf-posix.c (test_function): Likewise.
49331         * tests/test-snprintf-posix.h (test_function): Likewise.
49332         * tests/test-sprintf-posix.h (test_function): Likewise.
49333         * tests/test-fprintf-posix.h (test_function): Likewise.
49334         * tests/test-printf-posix.h (test_function): Likewise.
49335         * tests/test-fprintf-posix.out: Likewise.
49336
49337 2007-04-10  Bruno Haible  <bruno@clisp.org>
49338
49339         * modules/locale-tests: New file.
49340         * tests/test-locale.c: New file.
49341
49342         * modules/locale: New file.
49343         * lib/locale_.h: New file.
49344         * m4/locale_h.m4: New file.
49345
49346 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49347             Bruno Haible  <bruno@clisp.org>
49348
49349         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49350         be determined, test for availability of the copysignf, copysign,
49351         copysignl functions.
49352         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49353         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49354         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49355
49356 2007-04-09  Eric Blake  <ebb9@byu.net>
49357
49358         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49359         * modules/stdio (Makefile.am): Support fflush.
49360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49361         * modules/fflush: New file.
49362         * lib/fflush.c: Likewise.
49363         * m4/fflush.m4: Likewise.
49364         * modules/fflush-tests: New test.
49365         * tests/test-fflush.c: Likewise.
49366         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49367
49368 2007-04-06  Bruno Haible  <bruno@clisp.org>
49369
49370         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49371         (VASNPRINTF): Use signbit for faster determination whether to print a
49372         minus sign.
49373         * modules/vasnprintf (Files): Remove lib/float+.h.
49374         * modules/fprintf-posix (Depends-on): Add signbit.
49375         * modules/snprintf-posix (Depends-on): Likewise.
49376         * modules/sprintf-posix (Depends-on): Likewise.
49377         * modules/vasnprintf-posix (Depends-on): Likewise.
49378         * modules/vasprintf-posix (Depends-on): Likewise.
49379         * modules/vfprintf-posix (Depends-on): Likewise.
49380         * modules/vsnprintf-posix (Depends-on): Likewise.
49381         * modules/vsprintf-posix (Depends-on): Likewise.
49382
49383 2007-04-06  Bruno Haible  <bruno@clisp.org>
49384
49385         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49386         * tests/test-frexpl.c (main): Likewise.
49387         * tests/test-ldexpl.c (main): Likewise.
49388         * modules/frexp-tests (Depends-on): Add signbit.
49389         * modules/frexpl-tests (Depdends-on): Likewise.
49390         * modules/ldexpl-tests (Depdends-on): Likewise.
49391
49392 2007-04-06  Bruno Haible  <bruno@clisp.org>
49393
49394         * modules/signbit-tests: New file.
49395         * tests/test-signbit.c: New file.
49396
49397         * modules/signbit: New file.
49398         * lib/signbitf.c: New file.
49399         * lib/signbitd.c: New file.
49400         * lib/signbitl.c: New file.
49401         * m4/signbit.m4: New file.
49402         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49403         (signbit): New macro.
49404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49405         REPLACE_SIGNBIT.
49406         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49407         REPLACE_FREXPL into math.h.
49408
49409 2007-04-06  Bruno Haible  <bruno@clisp.org>
49410
49411         * modules/isnanf-nolibm-tests: New file.
49412         * tests/test-isnanf.c: New file.
49413
49414         * modules/isnanf-nolibm: New file.
49415         * lib/isnanf.h: New file.
49416         * lib/isnanf.c: New file.
49417         * lib/isnan.c: Consider the USE_FLOAT macro.
49418         * m4/isnanf.m4: New file.
49419
49420 2007-04-06  Bruno Haible  <bruno@clisp.org>
49421
49422         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49423         (Link): New section.
49424
49425         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49426
49427 2007-04-06  Bruno Haible  <bruno@clisp.org>
49428
49429         Assume the 'long double' type.
49430         * m4/longdouble.m4: Remove file.
49431         * config/srclist.txt: Don't mention longdouble.m4.
49432         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49433         * lib/float+.h: Likewise.
49434         * lib/frexp.c: Likewise.
49435         * lib/printf-args.h: Likewise.
49436         * lib/printf-args.c: Likewise.
49437         * lib/printf-frexp.c: Likewise.
49438         * lib/printf-parse.c: Likewise.
49439         * lib/vasnprintf.c: Likewise.
49440         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49441         * m4/intl.m4: Likewise.
49442         * m4/isnanl.m4: Likewise.
49443         * m4/printf.m4: Likewise.
49444         * m4/printf-frexpl.m4: Likewise.
49445         * m4/vasnprintf.m4: Likewise.
49446         * modules/allocsa (Files): Remove m4/longdouble.m4.
49447         * modules/gettext (Files): Likewise.
49448         * modules/relocatable-prog-wrapper (Files): Likewise.
49449         * modules/vasnprintf (Files): Likewise.
49450         * modules/isnanl (Files): Likewise.
49451         (Include): Simplify.
49452         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49453         (Include): Simplify.
49454         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49455         (Include): Simplify.
49456         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49457         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49458         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49459         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49460         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49461         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49462         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49463         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49464         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49465         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49466         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49467         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49468         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49469         * tests/test-isnanl.c: Likewise.
49470         * tests/test-snprintf-posix.h: Likewise.
49471         * tests/test-sprintf-posix.h: Likewise.
49472         * tests/test-vasnprintf-posix.c: Likewise.
49473         * tests/test-vasnprintf-posix2.c: Likewise.
49474         * tests/test-vasprintf-posix.c: Likewise.
49475
49476 2007-04-06  Bruno Haible  <bruno@clisp.org>
49477
49478         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49479         * lib/math_.h [__DECC]: Include the overridden include file through
49480         #include_next, outside the double-inclusion guard.
49481         * lib/stdio_.h [__DECC]: Likewise.
49482         * lib/stdlib_.h [__DECC]: Likewise.
49483         * lib/string_.h [__DECC]: Likewise.
49484         * lib/time_.h [__DECC]: Likewise.
49485         * lib/wchar_.h [__DECC]: Likewise.
49486         * lib/wctype_.h [__DECC]: Likewise.
49487         * lib/inttypes_.h [__DECC]: Likewise.
49488         Reported by Albert Chin <china@thewrittenword.com> in
49489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49490
49491 2007-04-04  Eric Blake  <ebb9@byu.net>
49492
49493         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49494         1.5.x.
49495
49496 2007-04-04  Bruno Haible  <bruno@clisp.org>
49497
49498         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49499         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49500
49501 2007-04-04  Bruno Haible  <bruno@clisp.org>
49502
49503         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49504         results for "%010a" of Infinity and NaN.
49505         * tests/test-vasprintf-posix.c (test_function): Likewise.
49506         * tests/test-snprintf-posix.h (test_function): Likewise.
49507         * tests/test-sprintf-posix.h (test_function): Likewise.
49508         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49509         * tests/test-printf-posix.h (test_function): Likewise.
49510         * tests/test-fprintf-posix.out: Update.
49511         Needed for FreeBSD 6.1.
49512
49513 2007-04-04  Bruno Haible  <bruno@clisp.org>
49514
49515         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49516         directly used by the gnulib modules nor by gnulib-tool.
49517
49518 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49519
49520         * DEPENDENCIES: Give overall description of version dependency
49521         desirability.  Use more-typical names for apps.
49522         Add shell, coreutils, diffutils, grep, tar, gzip.
49523
49524 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49525
49526         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49527
49528 2007-04-04  Karl Berry  <karl@gnu.org>
49529
49530         * MODULES.html.sh (func_module): missing '.
49531
49532 2007-04-03  Bruno Haible  <bruno@clisp.org>
49533
49534         * modules/argmatch-tests (Makefile.am): New variable
49535         test_argmatch_LDADD.
49536         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49537         * modules/array-list-tests (Makefile.am): New variable
49538         test_array_list_LDADD.
49539         * modules/array-oset-tests (Makefile.am): New variable
49540         test_array_oset_LDADD.
49541         * modules/avltree-list-tests (Makefile.am): New variable
49542         test_avltree_list_LDADD.
49543         * modules/avltree-oset-tests (Makefile.am): New variable
49544         test_avltree_oset_LDADD.
49545         * modules/avltreehash-list-tests (Makefile.am): New variable
49546         test_avltreehash_list_LDADD.
49547         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49548         test_canonicalize_lgpl_LDADD.
49549         * modules/carray-list-tests (Makefile.am): New variable
49550         test_carray_list_LDADD.
49551         * modules/dirname-tests (Makefile.am): New variable
49552         test_dirname_LDADD.
49553         * modules/linked-list-tests (Makefile.am): New variable
49554         test_linked_list_LDADD.
49555         * modules/linkedhash-list-tests (Makefile.am): New variable
49556         test_linkedhash_list_LDADD.
49557         * modules/rbtree-list-tests (Makefile.am): New variable
49558         test_rbtree_list_LDADD.
49559         * modules/rbtree-oset-tests (Makefile.am): New variable
49560         test_rbtree_oset_LDADD.
49561         * modules/rbtreehash-list-tests (Makefile.am): New variable
49562         test_rbtreehash_list_LDADD.
49563         * modules/xvasprintf-tests (Makefile.am): New variable
49564         test_xvasprintf_LDADD.
49565         Reported by Eric Blake.
49566
49567 2007-04-03  Eric Blake  <ebb9@byu.net>
49568
49569         * DEPENDENCIES: Weaken m4 requirements.
49570
49571 2007-04-03  Bruno Haible  <bruno@clisp.org>
49572
49573         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49574         * modules/isnanl-tests (configure.ac): Likewise.
49575
49576 2007-04-03  Ben Pfaff  <blp@gnu.org>
49577
49578         * modules/iconv_open: Add $(srcdir)/ to source directory
49579         references in Makefile fragments that call gperf, to fix VPATH
49580         builds.
49581
49582 2007-04-03  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49585         * lib/ldexpl.c: Undo last change.
49586
49587 2007-04-03  Bruno Haible  <bruno@clisp.org>
49588
49589         * modules/printf-frexpl (Depends-on): Undo last change.
49590         (Files): Add m4/ldexpl.m4.
49591
49592 2007-04-03  Bruno Haible  <bruno@clisp.org>
49593
49594         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49595         * modules/isnanl (Link): New section.
49596
49597         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49598         * modules/frexp (Link): New section.
49599
49600         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49601         * modules/frexpl (Link): New section.
49602
49603         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49604         * modules/ldexpl (Link): New section.
49605
49606 2007-04-03  Bruno Haible  <bruno@clisp.org>
49607
49608         * modules/TEMPLATE-EXTENDED: New file.
49609         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49610
49611 2007-04-03  Bruno Haible  <bruno@clisp.org>
49612
49613         * DEPENDENCIES: New file.
49614         Suggested by Simon Josefsson.
49615
49616 2007-04-03  Bruno Haible  <bruno@clisp.org>
49617
49618         * doc/gnulib.texi: Escape @.
49619
49620 2007-04-03  James Youngman  <jay@gnu.org>
49621         and Paul Eggert  <eggert@cs.ucla.edu>
49622
49623         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49624         birthtime on all systems that have birthtime, not just those which
49625         use st_birthtimensec rather than st_birthtim.  Putting zero in
49626         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49627         that the birth time is not available for files on an NFS mount.
49628
49629 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49630
49631         * modules/memxor: Move back from crypto/, suggested by Bruno.
49632         * modules/crypto/hmac-sha1: Fix memxor dependency.
49633
49634         * modules/crypto/gc: Moved from ../.
49635
49636 2007-04-02  Eric Blake  <ebb9@byu.net>
49637
49638         * lib/ldexpl.c (includes): Avoid libm.
49639
49640         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49641
49642 2007-04-02  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49645         on IRIX.
49646
49647 2007-04-02  Bruno Haible  <bruno@clisp.org>
49648
49649         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49650         x86 or x86_64 platforms running MacOS X.
49651         Reported by Ryan Schmidt <@ryandesign.com>.
49652
49653 2007-04-02  Bruno Haible  <bruno@clisp.org>
49654
49655         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49656         i386.
49657
49658 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49659
49660         * modules/crypto/arcfour: Moved from ../.
49661         * modules/crypto/arcfour-tests: Moved from ../.
49662         * modules/crypto/arctwo: Moved from ../.
49663         * modules/crypto/arctwo-tests: Moved from ../.
49664         * modules/crypto/des: Moved from ../.
49665         * modules/crypto/des-tests: Moved from ../.
49666         * modules/crypto/gc-arcfour: Moved from ../.
49667         * modules/crypto/gc-arcfour-tests: Moved from ../.
49668         * modules/crypto/gc-arctwo: Moved from ../.
49669         * modules/crypto/gc-arctwo-tests: Moved from ../.
49670         * modules/crypto/gc-des: Moved from ../.
49671         * modules/crypto/gc-des-tests: Moved from ../.
49672         * modules/crypto/gc-hmac-md5: Moved from ../.
49673         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49674         * modules/crypto/gc-hmac-sha1: Moved from ../.
49675         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49676         * modules/crypto/gc-md2: Moved from ../.
49677         * modules/crypto/gc-md2-tests: Moved from ../.
49678         * modules/crypto/gc-md4: Moved from ../.
49679         * modules/crypto/gc-md4-tests: Moved from ../.
49680         * modules/crypto/gc-md5: Moved from ../.
49681         * modules/crypto/gc-md5-tests: Moved from ../.
49682         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49683         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49684         * modules/crypto/gc-random: Moved from ../.
49685         * modules/crypto/gc-rijndael: Moved from ../.
49686         * modules/crypto/gc-rijndael-tests: Moved from ../.
49687         * modules/crypto/gc-sha1: Moved from ../.
49688         * modules/crypto/gc-sha1-tests: Moved from ../.
49689         * modules/crypto/gc-tests: Moved from ../.
49690         * modules/crypto/hmac-md5: Moved from ../.
49691         * modules/crypto/hmac-md5-tests: Moved from ../.
49692         * modules/crypto/hmac-sha1: Moved from ../.
49693         * modules/crypto/hmac-sha1-tests: Moved from ../.
49694         * modules/crypto/md2: Moved from ../.
49695         * modules/crypto/md2-tests: Moved from ../.
49696         * modules/crypto/md4: Moved from ../.
49697         * modules/crypto/md4-tests: Moved from ../.
49698         * modules/crypto/md5: Moved from ../.
49699         * modules/crypto/md5-tests: Moved from ../.
49700         * modules/crypto/memxor: Moved from ../.
49701         * modules/crypto/rijndael: Moved from ../.
49702         * modules/crypto/rijndael-tests: Moved from ../.
49703         * modules/crypto/sha1: Moved from ../.
49704
49705 2007-03-30  James Youngman  <jay@gnu.org>
49706
49707         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49708         rename() to change the ctime of a file (because ctime is unaffected
49709         by rename on jfs2 on AIX 5.1).
49710         (main): Start by doing cleanup, in case a previous run failed leaving
49711         test files behind.
49712
49713 2007-03-31  Bruno Haible  <bruno@clisp.org>
49714
49715         Support old proprietary implementations of iconv.
49716         * modules/iconv_open: New file.
49717         * lib/iconv_.h: New file.
49718         * m4/iconv_h.m4: New file.
49719         * lib/iconv_open.c: New file.
49720         * lib/iconv_open-aix.gperf: New file.
49721         * lib/iconv_open-hpux.gperf: New file.
49722         * lib/iconv_open-irix.gperf: New file.
49723         * lib/iconv_open-osf.gperf: New file.
49724         * m4/iconv_open.m4: New file.
49725         * modules/linebreak (Depends-on): Add iconv_open.
49726         * modules/striconv (Depends-on): Likewise.
49727         * modules/striconveh (Depends-on): Likewise.
49728         * modules/unicodeio (Depends-on): Likewise.
49729         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49730         (iconv_t)(-1).
49731         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49732         conversion if cd is (iconv_t)(-1).
49733         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49734         is not possible.
49735
49736 2007-03-31  Bruno Haible  <bruno@clisp.org>
49737
49738         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49739         work on Solaris either. Protect also second use of "autodetect_jp".
49740
49741 2007-03-31  Bruno Haible  <bruno@clisp.org>
49742
49743         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49744         the function is not present.
49745
49746 2007-03-31  Bruno Haible  <bruno@clisp.org>
49747
49748         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49749         the function is not present.
49750
49751 2007-03-31  Bruno Haible  <bruno@clisp.org>
49752
49753         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49754         a bug in HP-UX iconv_open().
49755
49756 2007-03-31  Bruno Haible  <bruno@clisp.org>
49757
49758         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49759         (Mathematics <math.h>): New section, add fpieee.
49760         (Input/output <stdio.h>): Add fseterr.
49761         (Mathematics <math.h>): New section, add printf-frexp.
49762         (Container data structures): Add sublist.
49763         (Core language properties): Add fpucw, inline.
49764         (Functions for greatest-width integer types <inttypes.h>): Add
49765         imaxabs, imaxdiv, inttypes.
49766         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49767         isnanl-nolibm, ldexp.
49768         (Mathematics <math.h>): New section, add printf-frexpl.
49769         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49770         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49771         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49772         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49773         (Unicode string functions): Add unistr/u*-mbtoucr.
49774         (Java): Add javacomp-script, javaexec-script.
49775         (C#): Add csharpcomp-script, csharpexec-script.
49776         (Support for building libraries and executables): Add havelib,
49777         relocatable-*.
49778         (Support for maintaining and releasing projects): Renamed from
49779         'Support for maintaining and release projects'. Add announce-gen.
49780
49781 2007-03-31  Bruno Haible  <bruno@clisp.org>
49782
49783         * README: Talk primarily about git.
49784         (git and CVS): Renamed from CVS.
49785         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49786         gnulib is available through git.
49787         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49788
49789 2007-03-30  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49792         * lib/poll_.h: Likewise.
49793         * lib/stat_.h: Likewise.
49794         * lib/sys_time_.h: Likewise.
49795         * lib/sysexit_.h: Likewise.
49796         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49797         * lib/stdbool_.h: Likewise.
49798         * lib/byteswap_.h: Add double-inclusion guard.
49799
49800 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49801
49802         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49803
49804 2007-03-30  Karl Berry  <karl@gnu.org>
49805
49806         * config/srclist-update: double space after USA in the license
49807         substitution, since that's how it's usually (?) written.
49808
49809 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49810
49811         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49812         reported by Bruno Haible.
49813
49814 2007-03-29  Bruno Haible  <bruno@clisp.org>
49815
49816         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49817         a bug in AIX iconv().
49818
49819 2007-03-29  Bruno Haible  <bruno@clisp.org>
49820
49821         * modules/ldexpl-tests: New file.
49822         * tests/test-ldexpl.c: New file.
49823
49824 2007-03-29  Bruno Haible  <bruno@clisp.org>
49825
49826         * lib/ldexpl.c: Include fpucw.h.
49827         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49828         multiplication.
49829         * modules/ldexpl (Depends-on): Add fpucw.
49830
49831 2007-03-29  Bruno Haible  <bruno@clisp.org>
49832
49833         * modules/ldexpl: New file.
49834         * m4/ldexpl.m4: New file.
49835         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49836         set.
49837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49838         REPLACE_LDEXPL.
49839         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49840         REPLACE_LDEXPL.
49841         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49842         gl_FUNC_LDEXPL_WORKS.
49843         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49844         * modules/mathl (Files): Remove lib/ldexpl.c.
49845         (Depends-on): Add ldexpl.
49846
49847 2007-03-29  Bruno Haible  <bruno@clisp.org>
49848
49849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49850
49851 2007-03-29  Bruno Haible  <bruno@clisp.org>
49852
49853         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49854         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49855         and possibly also HP-UX.
49856         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49857         work on AIX, IRIX, HP-UX, OSF/1.
49858         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49859         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49860         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49861         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49862         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49863         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49864
49865 2007-03-29  Bruno Haible  <bruno@clisp.org>
49866
49867         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49868
49869 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49870
49871         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49872         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49873
49874 2007-03-29  Eric Blake  <ebb9@byu.net>
49875
49876         * lib/acl-internal.h: Remove redundant include.
49877         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49878         Cygwin when a file is locked.
49879
49880 2007-03-29  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49883         file.
49884         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49885
49886 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49889         try to remove a parent directory if the child couldn't be removed
49890         (except for the first rmdir, which could fail because the child
49891         doesn't exist).  Problem reported by Jeff Blaine in
49892         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49893
49894 2007-03-28  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/striconveh.c (utf8conv_carefully): New function.
49897         (mem_cd_iconveh_internal): Invoke it.
49898
49899 2007-03-28  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49902         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49903         input.
49904         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49905         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49906         unistr/u8-uctomb.
49907
49908 2007-03-28  Bruno Haible  <bruno@clisp.org>
49909
49910         * modules/unistr/u8-mbtoucr: New file.
49911         * lib/unistr/u8-mbtoucr.c: New file.
49912         * modules/unistr/u16-mbtoucr: New file.
49913         * lib/unistr/u16-mbtoucr.c: New file.
49914         * modules/unistr/u16-mbtoucr: New file.
49915         * lib/unistr/u16-mbtoucr.c: New file.
49916         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49917
49918 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49919             Bruno Haible  <bruno@clisp.org>
49920
49921         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49922         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49923         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49924
49925         * m4/stdio_h.m4: Add stubs for vasprintf too.
49926
49927         * modules/stdio: Support vasprintf in sed command.
49928
49929         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49930         vasprintf.h.  Add stdio module indicator.
49931
49932         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49933         vasprintf.h.
49934
49935         * lib/vasprintf.h: File removed.
49936
49937         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49938         * lib/vasprintf.c: Ditto.
49939         * lib/xvasprintf.c: Ditto.
49940         * tests/test-vasprintf-posix.c: Ditto.
49941         * tests/test-vasprintf.c: Ditto.
49942
49943 2007-03-27  Bruno Haible  <bruno@clisp.org>
49944
49945         Make vasnprintf multithread-safe.
49946         * lib/vasnprintf.c (decimal_point_char): New function.
49947         (VASNPRINTF): Use it.
49948         Suggested by Simon Josefsson.
49949
49950 2007-03-27  Eric Blake  <ebb9@byu.net>
49951
49952         Support sub-second birthtime on cygwin.
49953         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49954         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49955         (get_stat_birthtime): Also work with st_birthtim.
49956
49957 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49960         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49961         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49962         (get_stat_birthtime_ns): Simplify compile-time tests.
49963         (get_stat_birthtime): Change the API to look like
49964         get_stat_mtime etc., except return a negative tv_nsec on error.
49965         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49966         Don't check for "spare" fields.
49967         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49968         or for struct stat.st_birthtime, as these tests aren't used.
49969         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49970
49971 2007-03-27  Bruno Haible  <bruno@clisp.org>
49972
49973         * lib/stat-time.h: Include <sys/stat.h>.
49974
49975 2007-03-27  James Youngman  <jay@gnu.org>
49976
49977         * lib/stat-time.h (get_stat_birthtime): New function for
49978           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49979         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49980           and its variants.
49981         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49982         * modules/stat-time-test: New file.
49983         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49984
49985 2007-03-26  Bruno Haible  <bruno@clisp.org>
49986
49987         Better support of signalling NaNs.
49988         * lib/atanl.c: Include isnanl.h.
49989         (atanl): Perform test for NaN at the beginning of the function and
49990         through a call to isnanl.
49991         * lib/cosl.c: Include isnanl.h.
49992         (cosl): Perform test for NaN at the beginning of the function and
49993         through a call to isnanl.
49994         * lib/ldexpl.c: Include isnanl.h.
49995         (ldexpl): Perform test for NaN through a call to isnanl.
49996         * lib/logl.c: Include isnanl.h.
49997         (logl): Perform test for NaN at the beginning of the function and
49998         through a call to isnanl.
49999         * lib/sinl.c: Include isnanl.h.
50000         (sinl): Perform test for NaN at the beginning of the function and
50001         through a call to isnanl.
50002         * lib/sqrtl.c: Include isnanl.h.
50003         (sqrtl): Perform test for NaN at the beginning of the function and
50004         through a call to isnanl.
50005         * lib/tanl.c: Include isnanl.h.
50006         (tanl): Perform test for NaN at the beginning of the function and
50007         through a call to isnanl.
50008         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50009         * modules/mathl (Depends-on): Add isnanl.
50010
50011 2007-03-26  Eric Blake  <ebb9@byu.net>
50012
50013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50014         regression in logic sense of previous patch.
50015
50016 2007-03-26  Bruno Haible  <bruno@clisp.org>
50017
50018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50019         unportable shell command "if ! ...".
50020         Reported by Ralf Wildenhues.
50021
50022 2007-03-25  Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50025         <sysexits.h> file, and only add EX_CONFIG.
50026         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50027         absolute file name and whether it is sufficient. Substitute also
50028         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50029         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50030         ABSOLUTE_SYSEXITS_H into sysexits.h.
50031
50032 2007-03-25  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50035         hints is NULL.
50036
50037 2007-03-25  Bruno Haible  <bruno@clisp.org>
50038
50039         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50040         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50041
50042 2007-03-25  Bruno Haible  <bruno@clisp.org>
50043
50044         * lib/vasnprintf.c: Include langinfo.h.
50045         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50046         multithread-safe.
50047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50049         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50051         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50052         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50053         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50055         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50056         Reported by Simon Josefsson.
50057
50058 2007-03-25  Bruno Haible  <bruno@clisp.org>
50059
50060         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50061         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50062         * modules/vasnprintf (Depends-on): Add stdint.
50063
50064 2007-03-25  Bruno Haible  <bruno@clisp.org>
50065
50066         * modules/fpieee: New file.
50067         * m4/fpieee.m4: New file.
50068         * modules/isnan-nolibm (Depends-on): Add fpieee.
50069         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50070         * modules/isnanl (Depends-on): Add fpieee.
50071
50072 2007-03-25  Bruno Haible  <bruno@clisp.org>
50073
50074         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50075
50076 2007-03-25  Bruno Haible  <bruno@clisp.org>
50077
50078         Avoid test failures on IRIX 6.5.
50079         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50080         (main): Use it.
50081         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50082         macros.
50083         (main): Use them.
50084
50085 2007-03-25  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50088         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50089         exists but doesn't work.
50090         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50091         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50093         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50094
50095 2007-03-25  Bruno Haible  <bruno@clisp.org>
50096
50097         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50098         returns inf. Needed on IRIX 6.5.
50099
50100 2007-03-25  Bruno Haible  <bruno@clisp.org>
50101
50102         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50103         (main): Use isnanl instead of x != x idiom.
50104         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50105
50106         * tests/test-frexp.c: Include isnan.h.
50107         (main): Use isnan instead of x != x idiom.
50108         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50109
50110 2007-03-25  Bruno Haible  <bruno@clisp.org>
50111
50112         * tests/test-frexp.c (NaN): New function/macro.
50113         (main): Use it instead of 0.0 / 0.0.
50114         * tests/test-isnan.c (NaN): New function/macro.
50115         (main): Use it instead of 0.0 / 0.0.
50116         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50117         (test_function): Use it instead of 0.0 / 0.0.
50118         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50119         (test_function): Use it instead of 0.0 / 0.0.
50120         * tests/test-snprintf-posix.h (NaN): New function/macro.
50121         (test_function): Use it instead of 0.0 / 0.0.
50122         * tests/test-sprintf-posix.h (NaN): New function/macro.
50123         (test_function): Use it instead of 0.0 / 0.0.
50124         * tests/test-fprintf-posix.h (NaN): New function/macro.
50125         (test_function): Use it instead of 0.0 / 0.0.
50126         * tests/test-printf-posix.h (NaN): New function/macro.
50127         (test_function): Use it instead of 0.0 / 0.0.
50128
50129         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50130
50131 2007-03-25  Bruno Haible  <bruno@clisp.org>
50132
50133         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50134
50135 2007-03-25  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/regexec.c (merge_state_with_log): Make static.
50138
50139 2007-03-25  Bruno Haible  <bruno@clisp.org>
50140
50141         * lib/trigl.c (kernel_rem_pio2): Make static.
50142
50143 2007-03-25  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/sincosl.c (sincosl_table): Make static.
50146
50147 2007-03-25  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50150         if the compiler does not support C99.
50151
50152 2007-03-25  Bruno Haible  <bruno@clisp.org>
50153
50154         * modules/time (Makefile.am): Ensure all rule action lines start with a
50155         tab.
50156
50157 2007-03-24  Bruno Haible  <bruno@clisp.org>
50158
50159         * modules/tsearch-tests: New file.
50160         * tests/test-tsearch.sh: New file.
50161         * tests/test-tsearch.c: New file, mostly copied from glibc.
50162
50163         * modules/search-tests: New file.
50164         * tests/test-search.c: New file.
50165
50166         * modules/search: New file.
50167         * lib/search_.h: New file, incorporating lib/tsearch.h.
50168         * m4/search_h.m4: New file.
50169         * lib/tsearch.h: Remove file.
50170         * lib/tsearch.c: Include search.h instead of tsearch.h.
50171         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50172         HAVE_TSEARCH.
50173         * modules/tsearch (Files): Remove lib/tsearch.h.
50174         (Depends-on): Add search.
50175         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50176         (Include): Change tsearch.h into search.h.
50177
50178 2007-03-24  Bruno Haible  <bruno@clisp.org>
50179
50180         * modules/fpucw: New file.
50181         * lib/fpucw.h: New file.
50182         * lib/frexp.c: Include fpucw.h.
50183         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50184         (FUNC): Use them.
50185         * lib/printf-frexp.c: Include fpucw.h.
50186         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50187         (FUNC): Use them.
50188         * lib/vasnprintf.c: Include fpucw.h.
50189         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50190         'long double' calculations.
50191         * tests/test-frexpl.c: Include fpucw.h.
50192         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50193         * tests/test-printf-frexpl.c: Include fpucw.h.
50194         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50195         * modules/frexpl (Depends-on): Add fpucw.
50196         * modules/printf-frexpl (Depends-on): Likewise.
50197         * modules/fprintf-posix (Depends-on): Likewise.
50198         * modules/snprintf-posix (Depends-on): Likewise.
50199         * modules/sprintf-posix (Depends-on): Likewise.
50200         * modules/vasnprintf-posix (Depends-on): Likewise.
50201         * modules/vasprintf-posix (Depends-on): Likewise.
50202         * modules/vfprintf-posix (Depends-on): Likewise.
50203         * modules/vsnprintf-posix (Depends-on): Likewise.
50204         * modules/vsprintf-posix (Depends-on): Likewise.
50205         * modules/frexpl-tests (Depends-on): Likewise.
50206         * modules/printf-frexpl-tests (Depends-on): Likewise.
50207
50208 2007-03-24  Bruno Haible  <bruno@clisp.org>
50209
50210         * lib/float+.h: New file.
50211         * lib/isnan.c: Include float+.h.
50212         (SIZE): New macro.
50213         (FUNC): Compare only SIZE bytes of the value.
50214         * lib/vasnprintf.c: Include float+.h.
50215         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50216         SIZEOF_LDBL or SIZEOF_DBL bytes.
50217         * modules/isnan-nolibm (Files): Add lib/float+.h.
50218         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50219         * modules/isnanl (Files): Add lib/float+.h.
50220         * modules/vasnprintf (Files): Add lib/float+.h.
50221
50222 2007-03-24  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50225         include isnanl-nolibm.h.
50226
50227 2007-03-24  Bruno Haible  <bruno@clisp.org>
50228
50229         * tests/test-read-file.c (main): Don't produce spurious output for
50230         expected situations. Make the test fail if it encountered unexpected
50231         results.
50232
50233 2007-03-24  Bruno Haible  <bruno@clisp.org>
50234
50235         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50236         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50237
50238 2007-03-24  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50241
50242 2007-03-24  Bruno Haible  <bruno@clisp.org>
50243
50244         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50245         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50246
50247         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50248         * modules/utf8-ucs4: Turn into a symbolic link to module
50249         unistr/u8-mbtouc.
50250
50251         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50252         utf8-ucs4-unsafe.
50253         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50254         unistr/u8-mbtouc-unsafe.
50255
50256         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50257         * modules/utf16-ucs4: Turn into a symbolic link to module
50258         unistr/u16-mbtouc.
50259
50260         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50261         utf16-ucs4-unsafe.
50262         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50263         unistr/u16-mbtouc-unsafe.
50264
50265         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50266         * modules/ucs4-utf8: Turn into a symbolic link to module
50267         unistr/u8-ubtomb.
50268
50269         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50270         * modules/ucs4-utf16: Turn into a symbolic link to module
50271         unistr/u16-ubtomb.
50272
50273 2007-03-24  Bruno Haible  <bruno@clisp.org>
50274
50275         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50276         Enable the function only if HAVE_INLINE.
50277         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50278         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50279         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50280         Enable the function only if HAVE_INLINE.
50281         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50282         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50283         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50284         Enable the function only if HAVE_INLINE.
50285         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50286         Enable the function only if HAVE_INLINE.
50287         * modules/utf8-ucs4: Update.
50288         * modules/utf8-ucs4-unsafe: Update.
50289         * modules/utf16-ucs4: Update.
50290         * modules/utf16-ucs4-unsafe: Update.
50291         * modules/ucs4-utf8: Update.
50292         * modules/ucs4-utf16: Update.
50293
50294 2007-03-24  Bruno Haible  <bruno@clisp.org>
50295
50296         * lib/utf8-ucs4.h: Remove file.
50297         * lib/utf8-ucs4-unsafe.h: Remove file.
50298         * lib/utf16-ucs4.h: Remove file.
50299         * lib/utf16-ucs4-unsafe.h: Remove file.
50300         * lib/ucs4-utf8.h: Remove file.
50301         * lib/ucs4-utf16.h: Remove file.
50302         * lib/unistr.h: Include their previous contents.
50303         * m4/utf-ucs4.m4: Remove file.
50304         * m4/ucs4-utf.m4: Remove file.
50305         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50306         (Depends-on): Add unistr/base.
50307         (configure.ac): Remove gl_UTF_UCS4.
50308         (Makefile.am): Update.
50309         (Include): Change to unistr.h.
50310         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50311         (Depends-on): Add unistr/base.
50312         (configure.ac): Remove gl_UTF_UCS4.
50313         (Makefile.am): Update.
50314         (Include): Change to unistr.h.
50315         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50316         (Depends-on): Add unistr/base.
50317         (configure.ac): Remove gl_UTF_UCS4.
50318         (Makefile.am): Update.
50319         (Include): Change to unistr.h.
50320         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50321         (Depends-on): Add unistr/base.
50322         (configure.ac): Remove gl_UTF_UCS4.
50323         (Makefile.am): Update.
50324         (Include): Change to unistr.h.
50325         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50326         (Depends-on): Add unistr/base.
50327         (configure.ac): Remove gl_UCS4_UTF.
50328         (Makefile.am): Update.
50329         (Include): Change to unistr.h.
50330         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50331         (Depends-on): Add unistr/base.
50332         (configure.ac): Remove gl_UCS4_UTF.
50333         (Makefile.am): Update.
50334         (Include): Change to unistr.h.
50335         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50336         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50337         utf8-ucs4-unsafe.h.
50338         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50339         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50340         utf16-ucs4-unsafe.h.
50341         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50342         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50343         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50344         * lib/unistr/u8-strchr.c: Likewise.
50345         * lib/unistr/u8-strrchr.c: Likewise.
50346         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50347         * lib/unistr/u16-strchr.c: Likewise.
50348         * lib/unistr/u16-strrchr.c: Likewise.
50349         * lib/striconveh.c: Update.
50350         * lib/linebreak.c: Update.
50351
50352 2007-03-24  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50355         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50356
50357 2007-03-22  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50360
50361 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50362
50363         * MODULES.html.sh (File system functions): New module write-any-file.
50364         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50365         * m4/write-any-file.m4: New files.
50366
50367 2007-03-23  Eric Blake  <ebb9@byu.net>
50368
50369         * gnulib-tool: Rearrange space-tab sequences, since some editors
50370         like to eat them.
50371
50372 2007-03-23  Eric Blake  <ebb9@byu.net>
50373
50374         * lib/version-etc.c (version_etc_va): Update license wording to
50375         be more concise.  Recommended by Richard Stallman.
50376
50377 2007-03-22  Bruno Haible  <bruno@clisp.org>
50378
50379         * lib/poll.c (MSG_PEEK): New fallback definition.
50380
50381 2007-03-22  Bruno Haible  <bruno@clisp.org>
50382
50383         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50384         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50385         (main): Update.
50386         Fixes a compilation error on BeOS.
50387
50388 2007-03-22  Bruno Haible  <bruno@clisp.org>
50389
50390         * modules/frexpl-tests: New file.
50391         * tests/test-frexpl.c: New file.
50392
50393         * modules/frexpl: New file.
50394         * m4/frexpl.m4: New file.
50395         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50396         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50398         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50399         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50400         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50401
50402 2007-03-22  Bruno Haible  <bruno@clisp.org>
50403
50404         * lib/frexpl.c: Share code with lib/frexp.c.
50405         * modules/mathl (Files): Add lib/frexp.c.
50406         (Depends-on): Add isnanl-nolibm.
50407
50408 2007-03-22  Bruno Haible  <bruno@clisp.org>
50409
50410         * modules/printf-frexp (Files): Add m4/frexp.m4.
50411         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50412         only if the found frexp function actually works.
50413
50414 2007-03-22  Bruno Haible  <bruno@clisp.org>
50415
50416         * lib/frexp.c: Remove older implementation that uses divisions.
50417
50418 2007-03-21  Bruno Haible  <bruno@clisp.org>
50419
50420         * modules/frexp-tests: New file.
50421         * tests/test-frexp.c: New file.
50422
50423         * modules/frexp: New file.
50424         * lib/frexp.c: New file.
50425         * m4/frexp.m4: New file.
50426         * lib/math_.h (frexp): New declaration.
50427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50428         REPLACE_FREXP.
50429         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50430
50431 2007-03-21  Bruno Haible  <bruno@clisp.org>
50432
50433         * modules/isnanl-tests: New file.
50434         * tests/test-isnanl.c: New file.
50435
50436         * modules/isnanl: New file.
50437         * lib/isnanl.h: New file.
50438         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50439         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50440         gl_FUNC_ISNANL_WORKS.
50441         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50442         New macros.
50443
50444 2007-03-21  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50447         lib/isnanl.h.
50448         (Include): Update.
50449         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50450         * lib/vasnprintf.c: Update.
50451         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50452         tests/test-isnanl.h, remove tests/test-isnanl.c.
50453         (Makefile.am): Update.
50454         * tests/test-isnanl-nolibm.c: New file.
50455         * tests/test-isnanl.h: New file.
50456         * tests/test-isnanl.c: Remove file.
50457
50458 2007-03-21  Jim Meyering  <jim@meyering.net>
50459
50460         When trying to open ".", treat ESTALE like EACCES.
50461         * lib/savewd.c (savewd_save): Resort to forking not just upon
50462         failure with EACCES, but also when errno is ESTALE.
50463
50464 2007-03-20  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50467         Needed on AIX 5.1. Reported by Matthew Woehlke.
50468
50469 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50470
50471         Suggestions by Bruno Haible:
50472         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50473         our own.
50474         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50475         * modules/acl (Depends-on): Add gettext.
50476
50477 2007-03-19  Bruno Haible  <bruno@clisp.org>
50478
50479         * modules/iconvme: Remove file.
50480         * lib/iconvme.h: Remove file.
50481         * lib/iconvme.c: Remove file.
50482         * m4/iconvme.m4: Remove file.
50483
50484 2007-03-19  Bruno Haible  <bruno@clisp.org>
50485
50486         * doc/relocatable-maint.texi: Break long shell script line.
50487         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50488
50489 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50490
50491         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50492         handle file_has_acl.
50493         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50494         * lib/acl.c: Move header inclusions and related macro defns into
50495         lib/acl-internal.h.
50496         (S_ISLNK): Remove defn, since that's now done for us.
50497         (file_has_acl): Move to lib/file-has-acl.c.
50498         Call acl_trivial if available.  This is the crucial part of the fix.
50499         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50500         shared within the library.  Rewrite a bit, partly to make it compatible
50501         with the GNU coding style.
50502         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50503         Remove unnecessary double-quotes.
50504         Don't test for acl_to_text; the build will catch that.
50505         Replace acl_entries if it doesn't exist and it is needed.
50506         Check for -lsec and acl_trivial (as used on Solaris 10).
50507         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50508         lib/file-has-acl.c.
50509         (Depends-on): Add sys_stat, for S_ISLNK.
50510
50511 2007-03-19  Ben Pfaff  <blp@gnu.org>
50512
50513         * doc/gnulib.texi: Fix typos.
50514         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50515
50516 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50517
50518         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50519         If size is zero here, buf must be zero.
50520
50521 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50522
50523         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50524         <bruno@clisp.org>.
50525
50526 2007-03-18  Bruno Haible  <bruno@clisp.org>
50527
50528         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50529         Suggested by Eric Blake.
50530
50531 2007-03-18  Ben Pfaff  <blp@gnu.org>
50532
50533         * doc/relocatable.texi: Recommend using as prefix a directory
50534         that does not exist and will never be created.  Based on
50535         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50536         and others.
50537
50538 2007-03-17  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/fchownat.c: Include lchown.h.
50541
50542 2007-03-17  Bruno Haible  <bruno@clisp.org>
50543
50544         Fix endless loop when the given allocated size was > INT_MAX.
50545         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50546         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50547         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50548         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50549         * lib/sprintf.c (sprintf): Likewise.
50550
50551 2007-03-17  Bruno Haible  <bruno@clisp.org>
50552
50553         * tests/test-argp-2.sh (func_compare): Output a context diff.
50554
50555 2007-03-17  Bruno Haible  <bruno@clisp.org>
50556
50557         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50558         locale's decimal-point character.
50559
50560 2007-03-17  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50563         before comparing it. Needed because on some platforms (e.g. x86) a
50564         'long double' occupies less bytes than sizeof (long double).
50565
50566 2007-03-17  Bruno Haible  <bruno@clisp.org>
50567
50568         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50569         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50570         * tests/test-getaddrinfo.c (simple): Likewise.
50571         * tests/test-read-file.c (main): Likewise.
50572
50573 2007-03-17  Bruno Haible  <bruno@clisp.org>
50574
50575         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50576
50577 2007-03-17  Bruno Haible  <bruno@clisp.org>
50578
50579         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50580         unused variable.
50581
50582 2007-03-17  Bruno Haible  <bruno@clisp.org>
50583
50584         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50585         * tests/test-c-strncasecmp.c: Likewise.
50586
50587 2007-03-17  Bruno Haible  <bruno@clisp.org>
50588
50589         * modules/stdlib (Depends-on): Add unistd.
50590         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50591         Needed for MacOS X 10.3.
50592
50593 2007-03-17  Bruno Haible  <bruno@clisp.org>
50594
50595         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50596
50597 2007-03-17  Bruno Haible  <bruno@clisp.org>
50598
50599         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50600
50601 2007-03-17  Bruno Haible  <bruno@clisp.org>
50602
50603         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50604         to reflect files copied from gnulib (with or without modifications).
50605         Suggested by Jim Meyering.
50606
50607 2007-03-17  Eric Blake  <ebb9@byu.net>
50608
50609         * NEWS: Document stdlib change from 2007-02-18.
50610
50611 2007-03-17  Jim Meyering  <jim@meyering.net>
50612
50613         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50614         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50615         someone uses a name containing shell meta-characters.
50616         Reported by Alfred M. Szmidt.
50617
50618         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50619
50620 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50621
50622         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50623         and copy gettext configuration files only if configure.ac contains
50624         a use of AM_GNU_GETTEXT_VERSION.
50625
50626 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50627
50628         * build-aux/bootstrap (gnulib_name): New variable.
50629         (gnulib_tool_options): Use it.
50630
50631 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50632
50633         * tests/test-des.c: Use new namespace.
50634
50635 2007-03-15  Bruno Haible  <bruno@clisp.org>
50636
50637         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50638         Reported by James Youngman <jay@gnu.org>.
50639
50640 2007-03-15  Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50643         declared prototype. Needed with cc on OSF/1 5.1.
50644
50645 2007-03-15  Bruno Haible  <bruno@clisp.org>
50646
50647         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50648         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50649         (struct gl_list_implementation): Add dispose_fn argument to the
50650         'create_empty', 'create' methods.
50651         (struct gl_list_impl_base): Add field 'dispose_fn'.
50652         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50653         argument.
50654         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50655         dispose_fn argument.
50656         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50657         dispose_fn on the dropped values.
50658         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50659         dispose_fn argument.
50660         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50661         dropped values.
50662         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50663         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50664         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50665         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50666         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50667         argument.
50668         (gl_tree_list_free): Call dispose_fn on the dropped values.
50669         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50670         the dropped values.
50671         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50672         Add dispose_fn argument.
50673         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50674         Call dispose_fn on the dropped values.
50675         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50676         Add dispose_fn argument.
50677         (gl_sublist_create): Initialize the 'dispose_fn' field.
50678         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50679         * tests/test-array_list.c (main): Update.
50680         * tests/test-carray_list.c (main): Update.
50681         * tests/test-avltree_list.c (main): Update.
50682         * tests/test-rbtree_list.c (main): Update.
50683         * tests/test-avltreehash_list.c (main): Update.
50684         * tests/test-rbtreehash_list.c (main): Update.
50685         * tests/test-linked_list.c (main): Update.
50686         * tests/test-linkedhash_list.c (main): Update.
50687         * tests/test-array_oset.c (main): Update.
50688
50689 2007-03-15  Bruno Haible  <bruno@clisp.org>
50690
50691         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50692         (gl_oset_create_empty): Add dispose_fn argument.
50693         (struct gl_oset_implementation): Add dispose_fn argument to
50694         'create_empty' method.
50695         (struct gl_oset_impl_base): Add dispose_fn field.
50696         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50697         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50698         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50699         values.
50700         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50701         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50702         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50703         dropped value.
50704         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50705         dropped value.
50706         * tests/test-array_oset.c (main): Update.
50707         * tests/test-avltree_oset.c (main): Update.
50708         * tests/test-rbtree_oset.c (main): Update.
50709         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50710
50711 2007-03-13  Bruno Haible  <bruno@clisp.org>
50712
50713         * tests/test-stdbool.c (i): Update after last patch.
50714
50715 2007-03-12  Bruno Haible  <bruno@clisp.org>
50716
50717         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50718         the iswprint macro. Needed on Solaris 2.5.1.
50719
50720 2007-03-12  Bruno Haible  <bruno@clisp.org>
50721
50722         * tests/test-printf-frexp.c (main): Declare x as volatile.
50723
50724 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50725
50726         * doc/gnulib.texi (Build robot for gnulib): New section.
50727
50728 2007-03-12  Jim Meyering  <jim@meyering.net>
50729
50730         * build-aux/bootstrap: New file.
50731         * build-aux/bootstrap.conf: New file, from coreutils.
50732
50733 2007-03-11  Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50736
50737 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50738
50739         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50740         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50741         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50742
50743 2007-03-11  Bruno Haible  <bruno@clisp.org>
50744
50745         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50746         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50747
50748 2007-03-11  Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50751         formula. Needed for SunPRO C 5.0.
50752
50753 2007-03-11  Bruno Haible  <bruno@clisp.org>
50754
50755         * modules/long-options (Depends-on): Add getopt.
50756
50757 2007-03-11  Bruno Haible  <bruno@clisp.org>
50758
50759         * modules/modechange (Depends-on): Add stdbool.
50760
50761 2007-03-11  Bruno Haible  <bruno@clisp.org>
50762
50763         * modules/i-ring (Depends-on): Add stdbool.
50764
50765 2007-03-11  Bruno Haible  <bruno@clisp.org>
50766
50767         * modules/gc-des (Depends-on): Add stdbool.
50768
50769 2007-03-11  Bruno Haible  <bruno@clisp.org>
50770
50771         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50772
50773 2007-03-11  Bruno Haible  <bruno@clisp.org>
50774
50775         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50776
50777 2007-03-11  Bruno Haible  <bruno@clisp.org>
50778
50779         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50780
50781 2007-03-11  Bruno Haible  <bruno@clisp.org>
50782
50783         * lib/vasnprintf.c (sprintf): Undefine.
50784
50785 2007-03-11  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50788         initializers in SunPRO C and Compaq C compilers.
50789
50790 2007-03-11  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50793         decrementing code ANSI C compliant.
50794
50795 2007-03-11  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50798         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50799
50800 2007-03-11  Bruno Haible  <bruno@clisp.org>
50801
50802         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50803         <stdbool.h> substitute doesn't pass.
50804
50805 2007-03-11  Bruno Haible  <bruno@clisp.org>
50806
50807         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50808
50809 2007-03-11  Bruno Haible  <bruno@clisp.org>
50810
50811         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50812         script, for submission to autobuild.josefsson.org.
50813
50814 2007-03-10  Bruno Haible  <bruno@clisp.org>
50815
50816         * modules/canonicalize-lgpl-tests: New file.
50817         * tests/test-canonicalize-lgpl.sh: New file.
50818         * tests/test-canonicalize-lgpl.c: New file.
50819
50820         * modules/c-strcase-tests: New file.
50821         * tests/test-c-strcase.sh: New file.
50822         * tests/test-c-strcasecmp.c: New file.
50823         * tests/test-c-strncasecmp.c: New file.
50824
50825         * modules/atexit-tests: New file.
50826         * tests/test-atexit.sh: New file.
50827         * tests/test-atexit.c: New file.
50828
50829 2007-03-10  Bruno Haible  <bruno@clisp.org>
50830
50831         * tests/test-binary-io.sh: Use temporary filenames that are not so
50832         likely to clash with those of other tests (in a parallel make).
50833         * tests/test-binary-io.c: Likewise.
50834
50835 2007-03-10  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50838         fallback; use #error instead.
50839         Suggested by Simon Josefsson.
50840
50841 2007-03-10  Bruno Haible  <bruno@clisp.org>
50842
50843         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50844         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50845         first and the last.
50846
50847 2007-03-10  Bruno Haible  <bruno@clisp.org>
50848
50849         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50850
50851 2007-03-10  Bruno Haible  <bruno@clisp.org>
50852
50853         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50854         "make distcheck".
50855         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50856         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50857         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50858
50859 2007-03-10  Bruno Haible  <bruno@clisp.org>
50860
50861         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50862         variable.
50863         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50864         variable.
50865
50866 2007-03-09  Eric Blake  <ebb9@byu.net>
50867         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50868
50869         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50870         types are not being provided by gnulib.
50871         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50872         types are supported.
50873
50874 2007-03-10  Bruno Haible  <bruno@clisp.org>
50875
50876         * lib/stdio_.h (__attribute__): New macro.
50877         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50878         vsprintf): Specify __attribute__ __format__ for GCC.
50879         Suggested by Eric Blake.
50880
50881 2007-03-09  Bruno Haible  <bruno@clisp.org>
50882
50883         * modules/printf-posix-tests: New file.
50884         * tests/test-printf-posix.sh: New file.
50885         * tests/test-printf-posix.c: New file.
50886
50887         * modules/printf-posix: New file.
50888         * lib/printf.c: New file.
50889         * m4/printf-posix-rpl.m4: New file.
50890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50891         REPLACE_PRINTF.
50892         * lib/stdio_.h (printf): New declaration.
50893         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50894         ____strfmon____): New macros.
50895         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50896         REPLACE_PRINTF.
50897
50898 2007-03-09  Bruno Haible  <bruno@clisp.org>
50899
50900         * tests/test-vasnprintf-posix2.sh: New file.
50901         * tests/test-vasnprintf-posix2.c: New file.
50902         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50903         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50904         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50905
50906         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50907         a locale dependent decimal point, rather than always '.'.
50908
50909 2007-03-09  Eric Blake  <ebb9@byu.net>
50910
50911         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50912         spite of platforms like Tandem/NSK that define it to -1.
50913
50914 2007-03-08  Bruno Haible  <bruno@clisp.org>
50915
50916         * modules/vprintf-posix-tests: New file.
50917         * tests/test-vprintf-posix.sh: New file.
50918         * tests/test-vprintf-posix.c: New file.
50919         * tests/test-printf-posix.h: New file.
50920
50921         * modules/vprintf-posix: New file.
50922         * lib/vprintf.c: New file.
50923         * m4/vprintf-posix.m4: New file.
50924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50925         REPLACE_VPRINTF.
50926         * lib/stdio_.h (vprintf): New declaration.
50927         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50928         REPLACE_VPRINTF.
50929
50930 2007-03-08  Bruno Haible  <bruno@clisp.org>
50931
50932         * modules/fprintf-posix-tests: New file.
50933         * tests/test-fprintf-posix.sh: New file.
50934         * tests/test-fprintf-posix.c: New file.
50935
50936         * modules/fprintf-posix: New file.
50937         * lib/fprintf.c: New file.
50938         * m4/fprintf-posix.m4: New file.
50939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50940         REPLACE_FPRINTF.
50941         * lib/stdio_.h (fprintf): New declaration.
50942         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50943         REPLACE_FPRINTF.
50944
50945 2007-03-08  Bruno Haible  <bruno@clisp.org>
50946
50947         * modules/vfprintf-posix-tests: New file.
50948         * tests/test-vfprintf-posix.sh: New file.
50949         * tests/test-vfprintf-posix.c: New file.
50950         * tests/test-fprintf-posix.h: New file.
50951         * tests/test-fprintf-posix.out: New file.
50952
50953         * modules/vfprintf-posix: New file.
50954         * lib/vfprintf.c: New file.
50955         * m4/vfprintf-posix.m4: New file.
50956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50957         REPLACE_VFPRINTF.
50958         * lib/stdio_.h (vfprintf): New declaration.
50959         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50960         REPLACE_VFPRINTF.
50961
50962 2007-03-08  Bruno Haible  <bruno@clisp.org>
50963
50964         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50965
50966 2007-03-08  Bruno Haible  <bruno@clisp.org>
50967
50968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50969         instead of 'expr' invocations.
50970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50975         Suggested by Paul Eggert.
50976
50977 2007-03-08  Bruno Haible  <bruno@clisp.org>
50978
50979         * modules/fseterr-tests: New file.
50980         * tests/test-fseterr.c: New file.
50981
50982         * modules/fseterr: New file.
50983         * lib/fseterr.h: New file.
50984         * lib/fseterr.c: New file.
50985
50986 2007-03-08  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50989         * lib/getopt_.h: Likewise.
50990         * lib/mbswidth.h: Likewise.
50991         * lib/setenv.h: Likewise.
50992         * lib/vasnprintf.h: Likewise.
50993         * lib/vasprintf.h: Likewise.
50994         * lib/verror.h: Likewise.
50995         * lib/xsetenv.h: Likewise.
50996         * lib/xvasprintf.h: Likewise.
50997
50998 2007-03-08  Jim Meyering  <jim@meyering.net>
50999
51000         * users.txt: Add parted.
51001
51002         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51003
51004 2007-03-07  Bruno Haible  <bruno@clisp.org>
51005
51006         * m4/printf.m4: Make the shell script snippets copy&pastable.
51007
51008 2007-03-02  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/netinet_in_.h: New file.
51011         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51012         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51013         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51014         (Depends-on): Add absolute-header.
51015         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51016         into netinet/in.h.
51017
51018 2007-03-03  Bruno Haible  <bruno@clisp.org>
51019
51020         * lib/sys_select_.h: New file.
51021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51022         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51023         * modules/sys_select (Files): Add lib/sys_select_.h.
51024         (Depends-on): Add absolute-header.
51025         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51026         into sys/select.h.
51027
51028 2007-03-02  Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51031         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51032         values.
51033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51034         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51035         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51036         * modules/sys_socket (Depends-on): Add absolute-header.
51037         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51038         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51039         (Include): Remove requirement of inclusion of <sys/types.h>.
51040
51041 2007-03-02  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/byteswap_.h (bswap_32): Fix formula.
51044
51045 2007-03-06  Bruno Haible  <bruno@clisp.org>
51046
51047         * modules/sprintf-posix-tests: New file.
51048         * tests/test-sprintf-posix.c: New file.
51049
51050         * modules/sprintf-posix: New file.
51051         * lib/sprintf.c: New file.
51052         * m4/sprintf-posix.m4: New file.
51053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51054         REPLACE_SPRINTF.
51055         * lib/stdio_.h (sprintf): New declaration.
51056         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51057         REPLACE_SPRINTF.
51058
51059 2007-03-06  Bruno Haible  <bruno@clisp.org>
51060
51061         * modules/vsprintf-posix-tests: New file.
51062         * tests/test-vsprintf-posix.c: New file.
51063         * tests/test-sprintf-posix.h: New file.
51064
51065         * modules/vsprintf-posix: New file.
51066         * lib/vsprintf.c: New file.
51067         * m4/vsprintf-posix.m4: New file.
51068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51069         REPLACE_VSPRINTF.
51070         * lib/stdio_.h (vsprintf): New declaration.
51071         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51072         REPLACE_VSPRINTF.
51073
51074 2007-03-06  Bruno Haible  <bruno@clisp.org>
51075
51076         * modules/vsnprintf (Depend-on): Remove minmax.
51077
51078 2007-03-06  Bruno Haible  <bruno@clisp.org>
51079
51080         * modules/snprintf-posix-tests: New file.
51081         * tests/test-snprintf-posix.c: New file.
51082
51083         * modules/snprintf-posix: New file.
51084         * m4/snprintf-posix.m4: New file.
51085         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51086         gl_FUNC_SNPRINTF.
51087         (gl_FUNC_SNPRINTF): Invoke it.
51088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51089         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51090         is set.
51091         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51092
51093 2007-03-06  Bruno Haible  <bruno@clisp.org>
51094
51095         * modules/vsnprintf-posix-tests: New file.
51096         * tests/test-vsnprintf-posix.c: New file.
51097         * tests/test-snprintf-posix.h: New file.
51098
51099         * modules/vsnprintf-posix: New file.
51100         * m4/vsnprintf-posix.m4: New file.
51101         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51102         gl_FUNC_VSNPRINTF.
51103         (gl_FUNC_VSNPRINTF): Invoke it.
51104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51105         * lib/stdio_.h (vsnprintf): Define as a replacement if
51106         REPLACE_VSNPRINTF is set.
51107         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51108
51109 2007-03-06  Bruno Haible  <bruno@clisp.org>
51110
51111         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51113
51114 2007-03-06  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51117         (asinl): Declare also if HAVE_DECL_ASINL is set.
51118         (atanl): Declare also if HAVE_DECL_ATANL is set.
51119         (ceill): Declare also if HAVE_DECL_CEILL is set.
51120         (cosl): Declare also if HAVE_DECL_COSL is set.
51121         (expl): Declare also if HAVE_DECL_EXPL is set.
51122         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51123         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51124         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51125         (logl): Declare also if HAVE_DECL_LOGL is set.
51126         (sinl): Declare also if HAVE_DECL_SINL is set.
51127         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51128         (tanl): Declare also if HAVE_DECL_TANL is set.
51129         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51131         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51132         declaration of frexpl, ldexpl.
51133         * modules/printf-frexpl (Depends-on): Add math.
51134         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51135
51136 2007-03-05  Bruno Haible  <bruno@clisp.org>
51137
51138         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51139         frexpl and ldexpl are declared.
51140         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51141
51142 2007-03-05  Bruno Haible  <bruno@clisp.org>
51143
51144         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51145         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51146
51147 2007-03-05  Bruno Haible  <bruno@clisp.org>
51148
51149         * lib/stdio_.h: Include <stddef.h>.
51150
51151 2007-03-05  Bruno Haible  <bruno@clisp.org>
51152
51153         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51154
51155 2007-03-05  Bruno Haible  <bruno@clisp.org>
51156
51157         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51158         NetBSD 4, from Ralf Wildenhues.
51159
51160 2007-03-04  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/vasprintf.h: Update #if logic for the case when the functions
51163         exist but are overridden.
51164
51165 2007-03-04  Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51168         implementations: glibc-2.4 and MacOS X 10.3.
51169         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51170         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51171         * tests/test-vasprintf-posix.c (test_function): Likewise.
51172
51173 2007-03-04  Bruno Haible  <bruno@clisp.org>
51174
51175         * modules/vasprintf-posix-tests: New file.
51176         * tests/test-vasprintf-posix.c: New file.
51177
51178         * modules/vasprintf-posix: New file.
51179         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51180         defined.
51181         * m4/vasprintf-posix.m4: New file.
51182         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51183         gl_FUNC_VASPRINTF.
51184         (gl_FUNC_VASPRINTF): Invoke it.
51185         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51186         here.
51187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51188
51189 2007-03-04  Bruno Haible  <bruno@clisp.org>
51190
51191         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51192         REPLACE_GETTIMEOFDAY.
51193         * modules/sys_time (Makefile.am): Likewise.
51194         * m4/sys_time_h.m4: Likewise.
51195         * m4/gettimeofday.m4: Likewise.
51196
51197 2007-03-04  Bruno Haible  <bruno@clisp.org>
51198
51199         * modules/vasnprintf-posix-tests: New file.
51200         * tests/test-vasnprintf-posix.c: New file.
51201
51202         * modules/vasnprintf-posix: New file.
51203         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51204         printf-frexpl.h.
51205         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51206         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51207         REPLACE_VASNPRINTF is defined.
51208         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51209         gl_FUNC_VASNPRINTF.
51210         (gl_FUNC_VASNPRINTF): Invoke it.
51211         * m4/vasnprintf-posix.m4: New file.
51212         * m4/printf.m4: New file.
51213
51214 2007-03-04  Bruno Haible  <bruno@clisp.org>
51215
51216         Compile progreloc.c only if --enable-relocatable is specified.
51217         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51218         if --enable-relocatable was specified.
51219         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51220         lib_SOURCES.
51221
51222 2007-03-04  Jim Meyering  <jim@meyering.net>
51223
51224         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51225         Use it consistently, rather than enumerating errno constants.
51226
51227 2007-03-04  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/xvasprintf-tests: New file.
51230         * tests/test-xvasprintf.c: New file.
51231
51232         * modules/vasprintf-tests: New file.
51233         * tests/test-vasprintf.c: New file.
51234
51235         * modules/vasnprintf-tests: New file.
51236         * tests/test-vasnprintf.c: New file.
51237
51238         * modules/vsnprintf-tests: New file.
51239         * tests/test-vsnprintf.c: New file.
51240
51241         * modules/snprintf-tests: New file.
51242         * tests/test-snprintf.c: New file.
51243
51244 2007-03-04  Bruno Haible  <bruno@clisp.org>
51245
51246         Compile relocatable.c only if --enable-relocatable is specified.
51247         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51248         gl_RELOCATABLE_LIBRARY.
51249         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51250         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51251         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51252         gl_RELOCATABLE_LIBRARY.
51253         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51254         (Makefile.am): Remove lib_SOURCES.
51255         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51256         gl_RELOCATABLE_LIBRARY.
51257         (Makefile.am): Remove lib_SOURCES.
51258         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51259         always.
51260         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51261         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51262
51263 2007-03-04  Bruno Haible  <bruno@clisp.org>
51264
51265         * modules/argmatch-tests: New file.
51266         * tests/test-argmatch.c: New file.
51267
51268         * tests/test-allocsa.c (main): Halve the number of loop runs.
51269
51270         * modules/alloca-opt-tests: New file.
51271         * tests/test-alloca-opt.c: New file.
51272
51273 2007-03-04  Jim Meyering  <jim@meyering.net>
51274
51275         Work around difference between Linux ACLs and Solaris 10 ZFS.
51276         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51277         for EINVAL.
51278
51279 2007-03-03  Bruno Haible  <bruno@clisp.org>
51280
51281         * modules/relocatable-prog (Depends-on): Add back progreloc's
51282         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51283
51284 2007-03-03  Bruno Haible  <bruno@clisp.org>
51285
51286         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51287         * modules/relocatable-lib: New file.
51288
51289 2007-03-03  Bruno Haible  <bruno@clisp.org>
51290
51291         * modules/relocatable-prog: Renamed from modules/relocatable.
51292         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51293
51294 2007-03-03  Bruno Haible  <bruno@clisp.org>
51295
51296         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51297         m4/relocatable-lib.m4.
51298         (Depends-on): Remove 'relocatable'.
51299         (configure.ac): Add gl_RELOCATABLE_NOP.
51300
51301 2007-03-03  Bruno Haible  <bruno@clisp.org>
51302
51303         * modules/relocatable-prog-wrapper: New file.
51304         * modules/relocatable (Depends-on): Add it. Remove all other
51305         dependencies except progname.
51306         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51307
51308         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51309         (gl_FUNC_STRERROR): Nop.
51310         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51311
51312         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51313         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51314
51315         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51316         (gl_FUNC_READLINK): Update.
51317
51318         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51319
51320 2007-03-03  Bruno Haible  <bruno@clisp.org>
51321
51322         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51323         * modules/xreadlink (Depends-on): Add unistd.
51324         * modules/xreadlink-with-size (Depends-on): Likewise.
51325
51326 2007-03-03  Bruno Haible  <bruno@clisp.org>
51327
51328         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51329         extracted from gt_FUNC_SETENV.
51330         (gt_FUNC_SETENV): Remove macro.
51331         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51332         remove gt_FUNC_SETENV.
51333
51334 2007-03-03  Bruno Haible  <bruno@clisp.org>
51335
51336         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51337         ENABLE_RELOCATABLE here.
51338         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51339
51340 2007-03-03  Bruno Haible  <bruno@clisp.org>
51341
51342         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51343         * tests/test-rbtreehash_list.c: Include progname.h.
51344         (main): Call set_program_name.
51345
51346         * modules/rbtree-oset-tests (Depends-on): Add progname.
51347         * tests/test-rbtree_oset.c: Include progname.h.
51348         (main): Call set_program_name.
51349
51350         * modules/rbtree-list-tests (Depends-on): Add progname.
51351         * tests/test-rbtree_list.c: Include progname.h.
51352         (main): Call set_program_name.
51353
51354         * modules/linked-list-tests (Depends-on): Add progname.
51355         * tests/test-linked_list.c: Include progname.h.
51356         (main): Call set_program_name.
51357
51358 2007-03-03  Bruno Haible  <bruno@clisp.org>
51359
51360         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51361         All uses of __restrict changed to _Restrict_.
51362         * lib/glob_.h (__restrict): Remove macro.
51363
51364 2007-03-02  Bruno Haible  <bruno@clisp.org>
51365
51366         * modules/gettext (configure.ac): Require gettext infrastructure
51367         from version 0.16.1.
51368
51369 2007-03-02  Bruno Haible  <bruno@clisp.org>
51370
51371         * modules/linkedhash-list-tests (Depends-on): Add progname.
51372         * tests/test-linkedhash_list.c: Include progname.h.
51373         (main): Call set_program_name.
51374
51375         * modules/carray-list-tests (Depends-on): Add progname.
51376         * tests/test-carray_list.c: Include progname.h.
51377         (main): Call set_program_name.
51378
51379         * modules/avltreehash-list-tests (Depends-on): Add progname.
51380         * tests/test-avltreehash_list.c: Include progname.h.
51381         (main): Call set_program_name.
51382
51383         * modules/avltree-oset-tests (Depends-on): Add progname.
51384         * tests/test-avltree_oset.c: Include progname.h.
51385         (main): Call set_program_name.
51386
51387         * modules/avltree-list-tests (Depends-on): Add progname.
51388         * tests/test-avltree_list.c: Include progname.h.
51389         (main): Call set_program_name.
51390
51391         * modules/array-oset-tests (Depends-on): Add progname.
51392         * tests/test-array_oset.c: Include progname.h.
51393         (main): Call set_program_name.
51394
51395         * modules/array-list-tests (Depends-on): Add progname.
51396         * tests/test-array_list.c: Include progname.h.
51397         (main): Call set_program_name.
51398
51399         * modules/argp-tests (Depends-on): Add progname.
51400         * tests/test-argp.c: Include argp.h first. Include progname.h.
51401         (main): Call set_program_name.
51402
51403 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51404
51405         * doc/gnulib-tool.texi (Initial import): Reword description of
51406         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51407         limited effect even if defined after the first system include.
51408
51409 2007-03-01  Bruno Haible  <bruno@clisp.org>
51410
51411         * build-aux/config.libpath: Update to libtool-1.5.22.
51412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51413
51414 2007-03-01  Bruno Haible  <bruno@clisp.org>
51415
51416         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51417         foo_CFLAGS.
51418         Reported by Ralf Wildenhues.
51419
51420 2007-03-01  Bruno Haible  <bruno@clisp.org>
51421
51422         * build-aux/install-reloc: Remove object files left over by some
51423         compilers.
51424         Reported by Ralf Wildenhues.
51425
51426 2007-03-01  Bruno Haible  <bruno@clisp.org>
51427
51428         * build-aux/install-reloc: Break long lines.
51429
51430 2007-03-01  Bruno Haible  <bruno@clisp.org>
51431
51432         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51433         Reported by Ralf Wildenhues.
51434
51435 2007-03-01  Bruno Haible  <bruno@clisp.org>
51436
51437         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51438         include ordering constraints.
51439
51440 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51441
51442         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51444         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51445         as another example.
51446         * lib/time_.h: Fix misspelling.
51447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51448         Require gl_HEADER_TIME_H_DEFAULTS.
51449         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51450         * m4/time_r.m4 (gl_TIME_R): Likewise.
51451         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51452
51453 2007-03-01  Bruno Haible  <bruno@clisp.org>
51454
51455         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51456         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51457
51458 2007-03-01  Jim Meyering  <jim@meyering.net>
51459
51460         * modules/xreadlink (Maintainer): Add my name.
51461         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51462
51463 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51464             Bruno Haible  <bruno@clisp.org>
51465
51466         * build-aux/install-reloc: Compile also c-ctype.c.
51467         * build-aux/relocatable.sh.in: New file.
51468         * doc/relocatable.texi: New file.
51469         * doc/relocatable-maint.texi: New file.
51470         * doc/gnulib.texi: Include relocatable-maint.texi.
51471         * lib/progreloc.c: Include unistd.h unconditionally.
51472         * lib/relocwrapper.c: Include unistd.h unconditionally.
51473         Include c-ctype.h.
51474         (add_dotbin): Use c_tolower.
51475         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51476         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51477         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51478         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51479         to m4/relocatable-lib.m4.
51480         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51481         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51482         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51483         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51484         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51485         * modules/relocatable: New file.
51486         * modules/relocatable-lib: New file.
51487         * modules/relocatable-script: New file.
51488
51489 2007-02-28  Bruno Haible  <bruno@clisp.org>
51490
51491         Import --enable-relocatable infrastructure.
51492         * build-aux/config.libpath: New file, from GNU gettext.
51493         * build-aux/install-reloc: New file, from GNU gettext.
51494         * build-aux/reloc-ldflags: New file, from GNU gettext.
51495         * lib/relocatable.h: New file, from GNU gettext.
51496         * lib/relocatable.c: New file, from GNU gettext.
51497         * lib/relocwrapper.c: New file, from GNU gettext.
51498         * m4/relocatable.m4: New file, from GNU gettext.
51499
51500 2007-02-28  Bruno Haible  <bruno@clisp.org>
51501
51502         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51503
51504         * modules/xreadlink: New file, from GNU gettext with modifications.
51505         * lib/xreadlink.c: New file, from GNU gettext.
51506         * lib/xreadlink.h: Add comments.
51507         (xreadlink): New declaration.
51508
51509         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51510         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51511         lib/xreadlink-with-size.c.
51512         (configure.ac): Remove gl_XREADLINK invocation.
51513         (Makefile.am): Augment lib_SOURCES.
51514         * m4/xreadlink.m4: Remove file.
51515         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51516         (xreadlink_with_size): Renamed from xreadink.
51517         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51518         * modules/canonicalize (Depends-on): Replace xreadlink with
51519         xreadlink-with-size.
51520         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51521
51522 2007-02-25  Jim Meyering  <jim@meyering.net>
51523
51524         * build-aux/announce-gen: When complaining about excess arguments,
51525         list them.
51526
51527 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         * README: Document signed integer overflow situation more
51530         accurately.
51531
51532 2007-02-25  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51535         'a' or 'A' conversion.
51536
51537 2007-02-25  Bruno Haible  <bruno@clisp.org>
51538
51539         * modules/filename: Renamed from modules/pathname.
51540         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51541         lib/concatpath.c with lib/concat-filename.c.
51542         (Makefile.am): Update.
51543         (Include): Replace pathname.h with filename.h.
51544         * lib/filename.h: Renamed from lib/pathname.h.
51545         (concatenated_filename): Renamed from concatenated_pathname.
51546         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51547         (concatenated_filename): Renamed from concatenated_pathname.
51548         * lib/findprog.c: Include filename.h instead of pathname.h.
51549         (find_in_path): Update.
51550         * lib/javacomp.c: Include filename.h instead of pathname.h.
51551         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51552         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51553         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51554         is_oldgcj_14_13_usable, is_javac_usable): Update.
51555         * lib/javaexec.c: Include filename.h instead of pathname.h.
51556         (execute_java_class): Update.
51557         * modules/findprog: Update.
51558         * modules/javacomp: Update.
51559         * modules/javaexec: Update.
51560         * MODULES.html.sh (File system functions): Add 'filename', remove
51561         'pathname'.
51562
51563 2007-02-25  Bruno Haible  <bruno@clisp.org>
51564
51565         * modules/printf-frexpl-tests: New file.
51566         * tests/test-printf-frexpl.c: New file.
51567
51568         * modules/printf-frexpl: New file.
51569         * lib/printf-frexpl.h: New file.
51570         * lib/printf-frexpl.c: New file.
51571         * m4/printf-frexpl.m4: New file.
51572
51573 2007-02-25  Bruno Haible  <bruno@clisp.org>
51574
51575         * modules/printf-frexp-tests: New file.
51576         * tests/test-printf-frexp.c: New file.
51577
51578         * modules/printf-frexp: New file.
51579         * lib/printf-frexp.h: New file.
51580         * lib/printf-frexp.c: New file.
51581         * m4/printf-frexp.m4: New file.
51582
51583 2007-02-25  Bruno Haible  <bruno@clisp.org>
51584
51585         Assume automake >= 1.10 for the tests.
51586         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51587         * modules/arctwo-tests: Likewise.
51588         * modules/argp-tests: Likewise.
51589         * modules/avltree-list-tests: Likewise.
51590         * modules/avltree-oset-tests: Likewise.
51591         * modules/avltreehash-list-tests: Likewise.
51592         * modules/carray-list-tests: Likewise.
51593         * modules/crc-tests: Likewise.
51594         * modules/des-tests: Likewise.
51595         * modules/gc-arcfour-tests: Likewise.
51596         * modules/gc-arctwo-tests: Likewise.
51597         * modules/gc-des-tests: Likewise.
51598         * modules/gc-hmac-md5-tests: Likewise.
51599         * modules/gc-hmac-sha1-tests: Likewise.
51600         * modules/gc-md2-tests: Likewise.
51601         * modules/gc-md4-tests: Likewise.
51602         * modules/gc-md5-tests: Likewise.
51603         * modules/gc-pbkdf2-sha1-tests: Likewise.
51604         * modules/gc-rijndael-tests: Likewise.
51605         * modules/gc-sha1-tests: Likewise.
51606         * modules/gc-tests: Likewise.
51607         * modules/getaddrinfo-tests: Likewise.
51608         * modules/hmac-md5-tests: Likewise.
51609         * modules/hmac-sha1-tests: Likewise.
51610         * modules/linked-list-tests: Likewise.
51611         * modules/linkedhash-list-tests: Likewise.
51612         * modules/lock-tests: Likewise.
51613         * modules/md2-tests: Likewise.
51614         * modules/md4-tests: Likewise.
51615         * modules/md5-tests: Likewise.
51616         * modules/rbtree-list-tests: Likewise.
51617         * modules/rbtree-oset-tests: Likewise.
51618         * modules/rbtreehash-list-tests: Likewise.
51619         * modules/read-file-tests: Likewise.
51620         * modules/rijndael-tests: Likewise.
51621         * modules/stdint-tests: Likewise.
51622         * modules/tls-tests: Likewise.
51623
51624 2007-02-24  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51627         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51628         function; instead check whether isnan with a double argument links.
51629         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51630         function; instead check whether isnan with a 'long double' argument
51631         links.
51632         Reported by Eric Blake <ebb9@byu.net>.
51633
51634 2007-02-24  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51637         defined.
51638         * lib/isnanl.c: Remove all code. Just include isnan.c.
51639         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51640
51641 2007-02-25  Jim Meyering  <jim@meyering.net>
51642
51643         Avoid conflicting types for 'unsetenv' on FreeBSD.
51644         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51645         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51646         in stdlib.h.
51647
51648 2007-02-24  Bruno Haible  <bruno@clisp.org>
51649
51650         * modules/isnanl-nolibm-tests: New file.
51651         * tests/test-isnanl.c: New file.
51652
51653         * modules/isnanl-nolibm: New file.
51654         * lib/isnanl.h: New file.
51655         * lib/isnanl.c: New file.
51656         * m4/isnanl.m4: New file.
51657
51658 2007-02-24  Bruno Haible  <bruno@clisp.org>
51659
51660         * modules/isnan-nolibm-tests: New file.
51661         * tests/test-isnan.c: New file.
51662
51663         * modules/isnan-nolibm: New file.
51664         * lib/isnan.h: New file.
51665         * lib/isnan.c: New file.
51666         * m4/isnan.m4: New file.
51667
51668 2007-02-24  Bruno Haible  <bruno@clisp.org>
51669
51670         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51671         assume that an exponent fits in 20 bits.
51672
51673 2007-02-24  Jim Meyering  <jim@meyering.net>
51674
51675         * m4/regex.m4: Update the description of the configure-time option,
51676         --without-included-regex, to state accurately what the defaults are,
51677         and perhaps to give people an idea why using this option is risky.
51678
51679 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51682         loops on small arguments.  This attempts to avoid the problem
51683         Bruno Haible reported for AIX 4.3.2 in
51684         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51685
51686 2007-02-23  Bruno Haible  <bruno@clisp.org>
51687
51688         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51689         Needed for help2man.
51690
51691 2007-02-23  Karl Berry  <karl@gnu.org>
51692
51693         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51694         exists, foo.h should be cvs-ignored, not committed.
51695
51696 2007-02-23  Eric Blake  <ebb9@byu.net>
51697
51698         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51699         * lib/stat-time.h (includes): Likewise.
51700         * lib/utimecmp.c (includes): Likewise.
51701         * lib/utimens.h (includes): Likewise.
51702         * lib/getdate.y (includes): Also include "timespec.h" for use
51703         internal to the module.
51704         * modules/utimens (Depends-on): Revert yesterday's patch.
51705         * modules/nanosleep (Depends-on): Add missing dependency.
51706
51707 2007-02-22  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/glob.c: Don't include getlogin_r.h.
51710
51711 2007-02-22  Jim Meyering  <jim@meyering.net>
51712
51713         * modules/utimens (Depends-on): Add timespec, required for
51714         utimens.h's inclusion of timespec.h.
51715
51716 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51719         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51720         Schwab in
51721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51722         I'll try to think of a better way to fix the Solaris problem.
51723
51724         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51725         like glibc; on Solaris 10, it fails with errno == EINVAL.
51726         POSIX says the behavior is unspecified if the first argument is NULL,
51727         so play it safe and never pass NULL to the system getcwd.
51728
51729 2007-02-21  Jim Meyering  <jim@meyering.net>
51730
51731         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51732         of gettimeofday.  It would conflict with the one now always
51733         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51734         an IRIX 6.5 build failure.
51735
51736 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51737
51738         Minor fixups to port to Solaris 10 with Sun C 5.8.
51739         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51740         * modules/getcwd (Depends-on): Add dirfd.
51741         * lib/putenv.c (putenv): #undef it.
51742         (rpl_putenv): New decl.
51743         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51744
51745 2007-02-20  Bruno Haible  <bruno@clisp.org>
51746
51747         * modules/stdio-tests: New file.
51748         * tests/test-stdio.c: New file.
51749
51750         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51751         (Depends-on): Add stdio.
51752         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51753         (Include): Use <stdio.h> instead of vsnprintf.h.
51754         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51755         HAVE_DECL_VSNPRINTF.
51756         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51757
51758         * modules/snprintf (Files): Remove lib/snprintf.h.
51759         (Depends-on): Add stdio.
51760         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51761         (Include): Use <stdio.h> instead of snprintf.h.
51762         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51763         HAVE_DECL_SNPRINTF.
51764         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51765         * lib/getaddrinfo.c: Likewise.
51766
51767         * modules/stdio: New file.
51768         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51769         * lib/snprintf.h: Remove file.
51770         * lib/vsnprintf.h: Remove file.
51771         * lib/.cppi-disable: Remove snprintf.h.
51772         * m4/stdio_h.m4: New file.
51773         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51774
51775 2007-02-20  Jim Meyering  <jim@meyering.net>
51776
51777         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51778         used by e.g., mingw.  From Bruno Haible.
51779
51780 2007-02-19  Bruno Haible  <bruno@clisp.org>
51781
51782         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51783         warnings.
51784         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51785
51786 2007-02-19  Bruno Haible  <bruno@clisp.org>
51787
51788         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51789         from mingw users.
51790
51791 2007-02-19  Bruno Haible  <bruno@clisp.org>
51792
51793         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51794         warnings.
51795         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51796
51797 2007-02-19  Jim Meyering  <jim@meyering.net>
51798
51799         Don't use FD after a successful "fdopendir (fd)".
51800         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51801         Reset it by calling dirfd on the just-obtained DIR*.
51802
51803         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51804         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51805
51806 2007-02-18  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/readlink.c: Include <unistd.h>.
51809         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51810         HAVE_READLINK.
51811         * modules/readlink (Depends-on): Add unistd.
51812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51813         (Include): Add <unistd.h>.
51814
51815         * lib/getlogin_r.h: Remove file.
51816         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51817         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51818         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51819         HAVE_DECL_GETLOGIN_R.
51820         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51822         (Include): Use <unistd.h> instead of getlogin_r.h.
51823
51824         * lib/getcwd.h: Remove file.
51825         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51826         * lib/xgetcwd.c: Likewise.
51827         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51828         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51829         * modules/getcwd (Files): Remove lib/getcwd.h.
51830         (Depends-on): Add unistd.
51831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51832         (Include): Use <unistd.h> instad of getcwd.h.
51833
51834         * lib/ftruncate.c: Include <unistd.h> first.
51835         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51836         Set HAVE_FTRUNCATE.
51837         * modules/ftruncate (Depends-on): Add unistd.
51838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51839
51840         * lib/fchdir.c: Include <unistd.h> first.
51841         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51843         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51844         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51845         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51846
51847         * lib/dup2.c: Include <unistd.h> first.
51848         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51849         HAVE_DUP2.
51850         * modules/dup2 (Depends-on): Add unistd.
51851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51852
51853         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51854         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51855         REPLACE_CHOWN. Don't define chown as a macro here.
51856         * modules/chown (Depends-on): Add unistd.
51857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51858
51859         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51860         Add definition for GL_LINK_WARNING.
51861         (chown, dup2): New declarations.
51862         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51863         link warning.
51864         (ftruncate): New declaration.
51865         (getcwd): New declaration, taken from old getcwd.h.
51866         (getlogin_r): New declaration, taken from old getlogin_r.h.
51867         (readlink): New declaration.
51868         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51869         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51870         (gl_PREREQ_UNISTD): Remove macro.
51871         (gl_UNISTD_MODULE_INDICATOR): New macro.
51872         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51873         many new variables. Don't set UNISTD_H.
51874         * modules/unistd (Description): Change.
51875         (Depends-on): Add link-warning.
51876         (configure.ac): Update.
51877         (Makefile.am): Create unistd.h always. Substitute many new variables
51878         into it.
51879
51880 2007-02-18  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51883         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51884         HAVE_GETSUBOPT.
51885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51886         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51887         * lib/getsubopt.h: Remove file.
51888         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51889         (Depends-on): Add stdlib.
51890         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51891         (Includes): Use <stdlib.h> instead of getsubopt.h.
51892         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51893         Set HAVE_GETSUBOPT.
51894         * lib/getsubopt.c: Don't include getsubopt.h.
51895
51896 2007-02-18  Bruno Haible  <bruno@clisp.org>
51897
51898         * modules/fchdir (Depends-on): Add dup2.
51899
51900 2007-02-18  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/stdlib_.h: Handle glibc's special invocation convention
51903         specially.
51904
51905 2007-02-18  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/stdlib-tests: New file.
51908         * tests/test-stdlib.c: New file.
51909
51910         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51911         (Depends-on): Add stdlib.
51912         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51913         (Includes): Use <stdlib.h> instead of mkstemp.h.
51914         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51915         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51916         * lib/mkstemp.c: Don't include mkstemp.h.
51917         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51918         * lib/stdlib--.h: Don't include mkstemp.h.
51919
51920         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51921         (Depends-on): Add stdlib.
51922         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51923         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51924         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51925         HAVE_MKDTEMP.
51926         * lib/mkdtemp.c: Don't include mkdtemp.h.
51927         * lib/clean-temp.c: Don't include mkdtemp.h.
51928
51929         * modules/exit (Files): Remove lib/exit.h.
51930         (Depends-on): Add stdlib.
51931         (Makefile.am): Remove lib_SOURCES.
51932         (Include): Use <stdlib.h> instead of exit.h.
51933         * lib/argmatch.c: Don't include exit.h.
51934         * lib/execute.c: Likewise.
51935         * lib/pagealign_alloc.c: Likewise.
51936         * lib/pipe.c: Likewise.
51937         * lib/wait-process.c: Likewise.
51938         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51939         * lib/exitfail.c: Likewise.
51940         * lib/savewd.c: Likewise.
51941         * lib/xsetenv.c: Likewise.
51942
51943         * modules/stdlib: New file.
51944         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51945         and extra comments about mkstemp().
51946         * lib/exit.h: Remove file.
51947         * lib/mkdtemp.h: Remove file.
51948         * lib/mkstemp.h: Remove file.
51949         * m4/stdlib_h.m4: New file.
51950         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51951
51952 2007-02-18  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/math-tests: New file.
51955         * tests/test-math.c: New file.
51956
51957         * modules/math: New file.
51958         * modules/mathl (Files): Remove lib/mathl.h.
51959         (Depends-on): Add math.
51960         (Makefile.am): Don't mention mathl.h.
51961         (Include): Use <math.h> instead of mathl.h.
51962         * lib/math_.h: New file.
51963         * lib/mathl.h: Remove file.
51964         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51965         mathl.h.
51966         * lib/asinl.c: Likewise.
51967         * lib/atanl.c: Likewise.
51968         * lib/ceill.c: Likewise.
51969         * lib/cosl.c: Likewise.
51970         * lib/expl.c: Likewise.
51971         * lib/floorl.c: Likewise.
51972         * lib/frexpl.c: Likewise.
51973         * lib/ldexpl.c: Likewise.
51974         * lib/logl.c: Likewise.
51975         * lib/sincosl.c: Likewise.
51976         * lib/sinl.c: Likewise.
51977         * lib/sqrtl.c: Likewise.
51978         * lib/tanl.c: Likewise.
51979         * lib/trigl.c: Likewise.
51980         * m4/math_h.m4: New file.
51981         * MODULES.html.sh (Mathematics): Add math.
51982
51983 2007-02-17  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/wctype-tests: New file.
51986         * tests/test-wctype.c: New file.
51987
51988         * modules/wchar-tests: New file.
51989         * tests/test-wchar.c: New file.
51990
51991         * modules/unistd-tests: New file.
51992         * tests/test-unistd.c: New file.
51993
51994         * modules/time-tests: New file.
51995         * tests/test-time.c: New file.
51996
51997         * modules/sysexits-tests: New file.
51998         * tests/test-sysexits.c: New file.
51999
52000         * modules/sys_time-tests: New file.
52001         * tests/test-sys_time.c: New file.
52002
52003         * modules/sys_stat-tests: New file.
52004         * tests/test-sys_stat.c: New file.
52005
52006         * modules/sys_socket-tests: New file.
52007         * tests/test-sys_socket.c: New file.
52008
52009         * modules/sys_select-tests: New file.
52010         * tests/test-sys_select.c: New file.
52011
52012         * modules/string-tests: New file.
52013         * tests/test-string.c: New file.
52014
52015         * modules/stdbool-tests: New file.
52016         * tests/test-stdbool.c: New file.
52017
52018         * modules/netinet_in-tests: New file.
52019         * tests/test-netinet_in.c: New file.
52020
52021         * modules/inttypes-tests: New file.
52022         * tests/test-inttypes.c: New file.
52023
52024         * modules/fcntl-tests: New file.
52025         * tests/test-fcntl.c: New file.
52026
52027         * modules/byteswap-tests: New file.
52028         * tests/test-byteswap.c: New file.
52029
52030         * modules/arpa_inet-tests: New file.
52031         * tests/test-arpa_inet.c: New file.
52032
52033 2007-02-17  Bruno Haible  <bruno@clisp.org>
52034
52035         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52036         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52037         if the corresponding module is not enabled. Emit link warnings if
52038         the function is used nevertheless.
52039         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52040         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52041         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52042         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52043         * modules/inttypes (Depends-on): Add link-warning.
52044         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52045         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52046         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52047         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52048         * modules/imaxdiv (configure.ac): Likewise.
52049         * modules/strtoimax (configure.ac): Likewise.
52050         * modules/strtoumax (configure.ac): Likewise.
52051
52052 2007-02-17  Bruno Haible  <bruno@clisp.org>
52053
52054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52055         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52056         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52057         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52058
52059 2007-02-17  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/link-warning: New file.
52062         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52063         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52064         * modules/string (Depends-on): Add link-warning.
52065         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52066         string.h.
52067         * MODULES.html.sh (Support for building libraries and executables): Add
52068         link-warning.
52069
52070 2007-02-17  Bruno Haible  <bruno@clisp.org>
52071
52072         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52073         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52074         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52075         long lines.
52076
52077 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/tmpfile: New file.
52081         * lib/tmpfile.c: New file.
52082         * m4/tmpfile.m4: New file.
52083         * MODULES.html.sh (func_all_modules): New section "Input/output".
52084
52085 2007-02-15  Bruno Haible  <bruno@clisp.org>
52086
52087         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52088         (supports_delete_on_close): New function.
52089         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52090
52091 2007-02-14  Bruno Haible  <bruno@clisp.org>
52092
52093         * modules/mbspcasecmp-tests: New file.
52094         * tests/test-mbspcasecmp.sh: New file.
52095         * tests/test-mbspcasecmp.c: New file.
52096
52097         New module mbspcasecmp.
52098         * modules/mbspcasecmp: New file.
52099         * lib/mbspcasecmp.c: New file.
52100         * lib/string_.h (strncasecmp): Change warning message.
52101         (mbspcasecmp): New declaration.
52102         * m4/mbspcasecmp.m4: New file.
52103         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52104         GNULIB_MBSPCASECMP.
52105         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52106         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52107
52108 2007-02-14  Bruno Haible  <bruno@clisp.org>
52109
52110         * modules/mbsncasecmp-tests: New file.
52111         * tests/test-mbsncasecmp.sh: New file.
52112         * tests/test-mbsncasecmp.c: New file.
52113
52114         New module mbsncasecmp.
52115         * modules/mbsncasecmp: New file.
52116         * lib/mbsncasecmp.c: New file.
52117         * lib/string_.h (mbsncasecmp): New declaration.
52118         * m4/mbsncasecmp.m4: New file.
52119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52120         GNULIB_MBSNCASECMP.
52121         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52122         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52123
52124 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52127         Verify that it doesn't overlap with our flags.
52128         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52129         do not have the desired effect in multibyte locales; instead, use
52130         mbscasecmp.
52131         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52132         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52133         we don't require GNU fnmatch ourselves (if our users require it, they
52134         should do so explicitly).
52135
52136         Fix regex code so it doesn't rely on strcasecmp.
52137         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52138         Otherwise, include gnulib's langinfo.h.
52139         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52140         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52141         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52142         * modules/regex (FILES): Remove m4/codeset.m4.
52143         (Depends-on): Add localcharset.  Remove strcase.
52144
52145 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52146
52147         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52148         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52149
52150 2007-02-13  Bruno Haible  <bruno@clisp.org>
52151
52152         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52154
52155 2007-02-12  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52158         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52159         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52160         time warning rather than a link error.
52161
52162 2007-02-12  Bruno Haible  <bruno@clisp.org>
52163
52164         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52167
52168 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52169
52170         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52171         args, not 2.
52172
52173 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52174
52175         New module 'time', so that apps can include <time.h> as per
52176         POSIX and GNU instead of separate include files like time_r.h
52177         and timegm.h.  This implementation tries out a simpler approach
52178         for replacing decls in standard include files (as compared to
52179         the string module), somewhat as an experiment.
52180
52181         * config/srclist.txt: Comment out mktime.c for now.
52182         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52183         since it doesn't apply any more.  Use generic wording instead.
52184         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52185         'time'.
52186         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52187         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52188         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52189         Don't include <sys/types.h>; no longer needed since we assume C89.
52190         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52191         * lib/strftime.c: Likewise.
52192         * lib/time_r.c: Likewise.
52193         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52194         * lib/nanosleep.c: Include <time.h> first, to check interface.
52195         * lib/strptime.c: Likewise.
52196         * lib/time_r.c: Likewise.
52197         * lib/timegm.c: Likewise.
52198         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52199         needed.
52200         * lib/timegm.c: Don't include timegm.h; no longer needed.
52201         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52202         time.h now handles any problems in that area.
52203         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52204         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52205         that time.h defines struct timespec.
52206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52207         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52208         handles that.
52209         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52210         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52211         needed.  Set REPLACE_LOCALTIME.
52212         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52213         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52214         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52215         nanosleep; time_h.m4 now does that.  Don't require
52216         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52217         module handles this now.
52218         * modules/getdate (Depends-on): Remove timespec.  Add time.
52219         * modules/nanosleep (Depends-on): Likewise.
52220         * modules/stat-time (Depends-on): Likewise.
52221         * modules/nanosleep (Include): Include time.h, not timespec.h.
52222         * modules/strptime (Files): Remove lib/strptime.h.
52223         (Depends-on): Add extensions, time.
52224         (Include): Include time.h, not strptime.h.
52225         * modules/time_r (Files): Remove lib/time_r.h.
52226         (Depends-on): Add time.
52227         (Include): Include time.h, not time_r.h.
52228         * modules/timegm: Likewise.
52229         * modules/timespec (Description): Now does timespec-related decls
52230         of our own, instead of struct timespec itself.
52231         (Depends-on): Add time; remove extensions.
52232         (Maintainer): Add self.
52233         * modules/utimecmp (Depends-on): Add time; remove timespec.
52234         * modules/utimens (Depends-on): Likewise.
52235         * modules/xnanosleep (Depends-on): Likewise.
52236
52237 2007-02-11  Bruno Haible  <bruno@clisp.org>
52238
52239         * lib/c-strstr.c: Include allocsa.h.
52240         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52241         * lib/c-strcasestr.c: Include allocsa.h.
52242         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52243         * lib/strcasestr.c: Include allocsa.h.
52244         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52245         * lib/mbsstr.c: Include allocsa.h.
52246         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52247         allocsa/freesa instead of malloc/free.
52248         * lib/mbscasestr.c: Include allocsa.h.
52249         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52250         allocsa/freesa instead of malloc/free.
52251         * modules/c-strstr (Depends-on): Add allocsa.
52252         * modules/c-strcasestr (Depends-on): Likewise.
52253         * modules/strcasestr (Depends-on): Likewise.
52254         * modules/mbsstr (Depends-on): Likewise.
52255         * modules/mbscasestr (Depends-on): Likewise.
52256
52257 2007-02-11  Bruno Haible  <bruno@clisp.org>
52258
52259         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52260
52261         * modules/mbsspn-tests: New file.
52262         * tests/test-mbsspn.sh: New file.
52263         * tests/test-mbsspn.c: New file.
52264
52265 2007-02-11  Bruno Haible  <bruno@clisp.org>
52266
52267         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52268
52269         * modules/mbspbrk-tests: New file.
52270         * tests/test-mbspbrk.sh: New file.
52271         * tests/test-mbspbrk.c: New file.
52272
52273 2007-02-11  Bruno Haible  <bruno@clisp.org>
52274
52275         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52276         unneeded cast.
52277
52278         * modules/mbscspn-tests: New file.
52279         * tests/test-mbscspn.sh: New file.
52280         * tests/test-mbscspn.c: New file.
52281
52282 2007-02-11  Bruno Haible  <bruno@clisp.org>
52283
52284         * modules/mbscasecmp-tests: New file.
52285         * tests/test-mbscasecmp.sh: New file.
52286         * tests/test-mbscasecmp.c: New file.
52287
52288 2007-02-11  Bruno Haible  <bruno@clisp.org>
52289
52290         Ensure O(n) worst-case complexity of mbscasestr.
52291         * lib/mbscasestr.c: Include stdbool.h.
52292         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52293         functions.
52294         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52295         the bookkeeping indicates that it's worth it.
52296         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52297
52298         * modules/mbscasestr-tests: New file.
52299         * tests/test-mbscasestr1.c: New file.
52300         * tests/test-mbscasestr2.sh: New file.
52301         * tests/test-mbscasestr2.c: New file.
52302         * tests/test-mbscasestr3.sh: New file.
52303         * tests/test-mbscasestr3.c: New file.
52304         * tests/test-mbscasestr4.sh: New file.
52305         * tests/test-mbscasestr4.c: New file.
52306         * m4/locale-tr.m4: New file.
52307
52308 2007-02-11  Bruno Haible  <bruno@clisp.org>
52309
52310         Ensure O(n) worst-case complexity of mbsstr.
52311         * lib/mbsstr.c: Include stdbool.h.
52312         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52313         functions.
52314         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52315         bookkeeping indicates that it's worth it.
52316         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52317
52318         * modules/mbsstr-tests: New file.
52319         * tests/test-mbsstr1.c: New file.
52320         * tests/test-mbsstr2.sh: New file.
52321         * tests/test-mbsstr2.c: New file.
52322         * tests/test-mbsstr3.sh: New file.
52323         * tests/test-mbsstr3.c: New file.
52324         * m4/locale-fr.m4: New file.
52325
52326 2007-02-11  Bruno Haible  <bruno@clisp.org>
52327
52328         * lib/mbsrchr.c (mbsrchr): Fix bug.
52329
52330         * modules/mbsrchr-tests: New file.
52331         * tests/test-mbsrchr.sh: New file.
52332         * tests/test-mbsrchr.c: New file.
52333
52334 2007-02-11  Bruno Haible  <bruno@clisp.org>
52335
52336         * lib/mbschr.c (mbschr): Fix bug.
52337
52338         * modules/mbschr-tests: New file.
52339         * tests/test-mbschr.sh: New file.
52340         * tests/test-mbschr.c: New file.
52341         * m4/locale-zh.m4: New file.
52342
52343 2007-02-11  Bruno Haible  <bruno@clisp.org>
52344
52345         Support for copying multibyte string iterators.
52346         * lib/mbiter.h: Include <string.h>.
52347         (mbiter_multi_copy): New function.
52348         (mbi_copy): New macro.
52349         * lib/mbuiter.h: Include <string.h>.
52350         (mbuiter_multi_copy): New function.
52351         (mbui_copy): New macro.
52352
52353 2007-02-11  Bruno Haible  <bruno@clisp.org>
52354
52355         New module mbslen.
52356         * modules/mbslen: New file.
52357         * lib/mbslen.c: New file.
52358         * lib/string_.h (mbslen): New declaration.
52359         * m4/mbslen.m4: New file.
52360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52361         GNULIB_MBSLEN.
52362         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52363         * MODULES.html.sh (Internationalization functions): Add mbslen.
52364
52365 2007-02-11  Bruno Haible  <bruno@clisp.org>
52366
52367         Ensure O(n) worst-case complexity of strcasestr substitute.
52368         * lib/strcasestr.c: Include stdbool.h.
52369         (knuth_morris_pratt): New function.
52370         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52371         bookkeeping indicates that it's worth it.
52372         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52373
52374         * modules/strcasestr-tests: New file.
52375         * tests/test-strcasestr.c: New file.
52376
52377 2007-02-11  Bruno Haible  <bruno@clisp.org>
52378
52379         Ensure O(n) worst-case complexity of c_strcasestr.
52380         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52381         (knuth_morris_pratt): New function.
52382         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52383         the bookkeeping indicates that it's worth it.
52384         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52385
52386         * modules/c-strcasestr-tests: New file.
52387         * tests/test-c-strcasestr.c: New file.
52388
52389 2007-02-11  Bruno Haible  <bruno@clisp.org>
52390
52391         Ensure O(n) worst-case complexity of c_strstr.
52392         * lib/c-strstr.c: Include stdbool.h, string.h.
52393         (knuth_morris_pratt): New function.
52394         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52395         bookkeeping indicates that it's worth it.
52396         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52397
52398         * lib/c-strstr.c: Complete rewrite for maintainability.
52399
52400         * modules/c-strstr-tests: New file.
52401         * tests/test-c-strstr.c: New file.
52402
52403 2007-02-11  Bruno Haible  <bruno@clisp.org>
52404
52405         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52406         5.2.1 and earlier, whereby \055 was treated just like the range
52407         delimiter '-'.
52408         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52409
52410 2007-02-08  Bruno Haible  <bruno@clisp.org>
52411
52412         * modules/regex (Depends-on): Add stdbool.
52413         Reported by Dalibor Topic <robilad@kaffe.org>.
52414
52415 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52418         Prefer returning from main to exiting from it.
52419         Remove unnecessary parens after sizeof.
52420
52421 2007-02-05  Bruno Haible  <bruno@clisp.org>
52422
52423         New module mbssep.
52424         * modules/mbssep: New file.
52425         * lib/mbssep.c: New file.
52426         * lib/string_.h (strsep): Add a conditional link warning.
52427         (mbssep): New declaration.
52428         * m4/mbssep.m4: New file.
52429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52430         GNULIB_MBSSEP.
52431         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52432         * MODULES.html.sh (Internationalization functions): Add mbssep.
52433
52434 2007-02-05  Bruno Haible  <bruno@clisp.org>
52435
52436         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52437         Optimize search in case of 1 delimiter.
52438
52439 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52440
52441         * lib/acl.h: Include sys/types.h before sys/acl.h.
52442
52443 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52444
52445         Merge upstream fix for glibc bugzilla #3957:
52446
52447         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52448
52449         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52450         bit for RE_HAT_LISTS_NOT_NEWLINE.
52451         (build_charclass_op): Remove bogus comment.
52452
52453 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52454
52455         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52456
52457 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52458
52459         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52460         * lib/memmem.c [!defined _LIBC]: Include config.h.
52461
52462 2007-02-04  Bruno Haible  <bruno@clisp.org>
52463
52464         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52465         warning message.
52466
52467 2007-02-04  Bruno Haible  <bruno@clisp.org>
52468
52469         New module mbstok_r.
52470         * modules/mbstok_r: New file.
52471         * lib/mbstok_r.c: New file.
52472         * lib/string_.h (strtok_r): Change argument names to match the
52473         comments. Add a conditional link warning.
52474         (mbstok_r): New declaration.
52475         * m4/mbstok_r.m4: New file.
52476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52477         GNULIB_MBSTOK_R.
52478         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52479         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52480
52481 2007-02-04  Bruno Haible  <bruno@clisp.org>
52482
52483         New module mbsspn.
52484         * modules/mbsspn: New file.
52485         * lib/mbsspn.c: New file.
52486         * lib/string_.h (strspn): Add a conditional link warning.
52487         (mbsspn): New declaration.
52488         * m4/mbsspn.m4: New file.
52489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52490         GNULIB_MBSSPN.
52491         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52492         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52493
52494 2007-02-04  Bruno Haible  <bruno@clisp.org>
52495
52496         New module mbspbrk.
52497         * modules/mbspbrk: New file.
52498         * lib/mbspbrk.c: New file.
52499         * lib/string_.h (strpbrk): Add a conditional link warning.
52500         (mbspbrk): New declaration.
52501         * m4/mbspbrk.m4: New file.
52502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52503         GNULIB_MBSPBRK.
52504         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52505         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52506
52507 2007-02-04  Bruno Haible  <bruno@clisp.org>
52508
52509         New module mbscspn.
52510         * modules/mbscspn: New file.
52511         * lib/mbscspn.c: New file.
52512         * lib/string_.h (strcspn): Add a conditional link warning.
52513         (mbscspn): New declaration.
52514         * m4/mbscspn.m4: New file.
52515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52516         GNULIB_MBSCSPN.
52517         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52518         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52519
52520 2007-02-04  Bruno Haible  <bruno@clisp.org>
52521
52522         New module mbscasestr, reduced goal of strcasestr.
52523         * modules/mbscasestr: New file.
52524         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52525         (mbscasestr): Renamed from strcasestr.
52526         * lib/strcasestr.c: Don't include mbuiter.h.
52527         (strcasestr): Remove support for multibyte locales.
52528         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52529         Change the conditional link warning.
52530         (mbscasestr): New declaration.
52531         * m4/mbscasestr.m4: New file.
52532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52533         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52534         REPLACE_STRCASESTR.
52535         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52537         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52538         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52539         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52540         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52541         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52542         (Depends-on): Remove mbuiter.
52543         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52544
52545 2007-02-04  Bruno Haible  <bruno@clisp.org>
52546
52547         Simplify handling of strncasecmp.
52548         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52549         the conditional link warning.
52550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52551         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52553         * modules/strcase (configure.ac): Don't invoke
52554         gl_STRING_MODULE_INDICATOR.
52555         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52556
52557 2007-02-04  Bruno Haible  <bruno@clisp.org>
52558
52559         New module mbscasecmp, reduced goal of strcasecmp.
52560         * modules/mbscasecmp: New file.
52561         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52562         (mbscasecmp): Renamed from strcasecmp.
52563         * lib/strcasecmp.c: Don't include mbuiter.h.
52564         (strcasecmp): Remove support for multibyte locales.
52565         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52566         Change the conditional link warning.
52567         (mbscasecmp): New declaration.
52568         * m4/mbscasecmp.m4: New file.
52569         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52570         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52571         REPLACE_STRCASECMP.
52572         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52574         GNULIB_MBSCASECMP.
52575         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52576         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52577         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52578         (Depends-on): Remove mbuiter.
52579         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52580
52581 2007-02-04  Bruno Haible  <bruno@clisp.org>
52582
52583         New module mbsstr. Remove module strstr.
52584         * modules/mbsstr: New file.
52585         * modules/strstr: Remove file.
52586         * lib/mbsstr.c: Renamed from lib/strstr.c.
52587         (mbsstr): Renamed from strstr.
52588         * lib/string_.h (strstr): Remove declaration. Change the conditional
52589         link warning.
52590         (mbsstr): New declaration.
52591         * m4/mbsstr.m4: New file.
52592         * m4/strstr.m4: Remove file.
52593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52594         REPLACE_STRSTR.
52595         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52596         Don't initialize GNULIB_STRSTR.
52597         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52598         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52599         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52600         (Support for systems lacking ANSI C 89): Remove strstr.
52601
52602 2007-02-04  Bruno Haible  <bruno@clisp.org>
52603
52604         New module mbsrchr.
52605         * modules/mbsrchr: New file.
52606         * lib/mbsrchr.c: New file.
52607         * lib/string_.h (strrchr): Add a conditional link warning.
52608         (mbsrchr): New declaration.
52609         * m4/mbsrchr.m4: New file.
52610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52611         GNULIB_MBSRCHR.
52612         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52613         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52614
52615 2007-02-04  Bruno Haible  <bruno@clisp.org>
52616
52617         New module mbschr.
52618         * modules/mbschr: New file.
52619         * lib/mbschr.c: New file.
52620         * lib/string_.h (strchr): Add a conditional link warning.
52621         (mbschr): New declaration.
52622         * m4/mbschr.m4: New file.
52623         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52624         GNULIB_MBSCHR.
52625         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52626         * MODULES.html.sh (Internationalization functions): Add mbschr.
52627
52628 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52629
52630         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52631
52632         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52633
52634 2007-02-04  Bruno Haible  <bruno@clisp.org>
52635
52636         New module description section 'configure.ac-early'.
52637         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52638         (func_get_autoconf_early_snippet): New function.
52639         (func_import, func_create_testdir): Use it. Remove special cases for
52640         modules 'extensions' and 'lock'.
52641         * modules/extensions (configure.ac-early): Require
52642         gl_USE_SYSTEM_EXTENSIONS.
52643         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52644
52645 2007-02-04  Bruno Haible  <bruno@clisp.org>
52646
52647         Make use of gcj-4.3's -fsource and -ftarget option.
52648         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52649         and if so try the options -fsource and -ftarget.
52650         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52651         source_version, ftarget_option, target_version arguments.
52652         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52653         (is_envjavac_oldgcj_14_14_usable): Renamed from
52654         is_envjavac_gcj_14_14_usable.
52655         (is_envjavac_oldgcj_14_13_usable): Renamed from
52656         is_envjavac_gcj_14_13_usable.
52657         (is_gcj_present): Update.
52658         (is_gcj_43, is_gcj43_usable): New functions.
52659         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52660         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52661         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52662         try the options -fsource and -ftarget.
52663
52664 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52665
52666         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52667         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52668         larger value.
52669
52670 2007-02-03  Jim Meyering  <jim@meyering.net>
52671
52672         Give tools a better chance to allocate space for very large buffers.
52673         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52674
52675         Make pwd and readlink work also when run with an unreadable parent dir
52676         on systems with openat support.
52677         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52678         provided getcwd function, even when we have openat support.
52679         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52680
52681 2007-02-02  Bruno Haible  <bruno@clisp.org>
52682
52683         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52684         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52685         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52686         portability problems if one of these functions is only used on specific
52687         platforms.
52688         Reported by Paul Eggert.
52689
52690 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52691
52692         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52693         is causing more trouble than it's curing.
52694         * lib/regex_internal.h (__mempcpy): Remove.
52695         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52696         (and make the code a tad smaller to boot).
52697         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52698
52699 2007-02-02  Jim Meyering  <jim@meyering.net>
52700
52701         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52702         section, not in the Makefile.am: one.
52703
52704 2007-02-02  Eric Blake  <ebb9@byu.net>
52705
52706         * lib/strchrnul.c: Always include config.h first.
52707
52708         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52709         gnulib strstr is not necessary here.
52710
52711 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52712
52713         * m4/socklen.m4: Fix typo.
52714
52715 2007-02-02  Eric Blake  <ebb9@byu.net>
52716
52717         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52718         * modules/netinet_in (Makefile.am): Likewise.
52719
52720 2007-02-01  Bruno Haible  <bruno@clisp.org>
52721
52722         * lib/string_.h (GL_LINK_WARNING): New macro.
52723         (strcasecmp, strstr, strcasestr): If provided by the system,
52724         conditionally define as a macro that leads to a warning instead of to
52725         an error.
52726         (strncasecmp): Conditionally define as a macro that leads to a warning.
52727
52728 2007-02-01  Karl Berry  <karl@gnu.org>
52729
52730         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52731
52732 2007-02-01  Bruno Haible  <bruno@clisp.org>
52733
52734         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52735         renamings.
52736
52737 2007-02-01  Eric Blake  <ebb9@byu.net>
52738
52739         * modules/regex (Depends-on): Revert dependence on mempcpy.
52740         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52741         module's definition of mempcpy.
52742         Reported by Paul Eggert.
52743
52744 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52745
52746         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52747         the symbol XYZ before redefining it.  This fixes a problem with
52748         programs that don't use XYZ, when compiled on systems that define
52749         XYZ to something else.
52750
52751 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52752
52753         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52754         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52755         writeable to group or other and (2) is intended to have a special
52756         mode bit that is set or cleared.  In such a case, the directory
52757         should be neither group- nor other-writeable until the special
52758         mode bits are right.
52759
52760 2007-01-31  Eric Blake  <ebb9@byu.net>
52761
52762         * modules/mountlist (Depends-on): Add strstr.
52763
52764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52765         bug.
52766         * modules/string (Makefile.am): Remove redundant replacement.
52767         * modules/regex (Depends-on): Add mempcpy.
52768
52769 2007-01-31  Bruno Haible  <bruno@clisp.org>
52770
52771         New module description field 'Link'.
52772         * gnulib-tool (func_usage): Document --extract-link-directive.
52773         (sed_extract_prog): Recognize 'Link' directive.
52774         (func_get_link_directive): New function.
52775         (func_import): Show summary of link directives.
52776         Handle --extract-link-directive option.
52777         * modules/acl (Link): New section.
52778         * modules/clock-time (Link): New section.
52779         * modules/euidaccess (Link): New section.
52780         * modules/gettext (Link): New section.
52781         * modules/iconv (Link): New section.
52782         * modules/lock (Link): New section.
52783         * modules/nanosleep (Link): New section.
52784         * modules/readline (Link): New section.
52785
52786 2007-01-27  Bruno Haible  <bruno@clisp.org>
52787
52788         Enforce the use of gnulib modules for unportable <string.h> functions.
52789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52790         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52791         (gl_HEADER_STRING_H_BODY): Require it.
52792         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52793         the symbol XYZ to one that gives a link error.
52794         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52795         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52796         * modules/mempcpy (configure.ac): Likewise.
52797         * modules/memrchr (configure.ac): Likewise.
52798         * modules/stpcpy (configure.ac): Likewise.
52799         * modules/stpncpy (configure.ac): Likewise.
52800         * modules/strcase (configure.ac): Likewise.
52801         * modules/strcasestr (configure.ac): Likewise.
52802         * modules/strchrnul (configure.ac): Likewise.
52803         * modules/strdup (configure.ac): Likewise.
52804         * modules/strndup (configure.ac): Likewise.
52805         * modules/strnlen (configure.ac): Likewise.
52806         * modules/strpbrk (configure.ac): Likewise.
52807         * modules/strsep (configure.ac): Likewise.
52808         * modules/strstr (configure.ac): Likewise.
52809         * modules/strtok_r (configure.ac): Likewise.
52810
52811 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52812
52813         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52814
52815 2007-01-30  Jim Meyering  <jim@meyering.net>
52816
52817         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52818
52819 2007-01-29  Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52822         * lib/execute.c: Likewise.
52823         * lib/pipe.c: Likewise.
52824         * lib/printf-args.h: Likewise.
52825         * lib/printf-args.c: Likewise.
52826         * lib/printf-parse.c: Likewise.
52827         * lib/vasnprintf.c: Likewise.
52828
52829 2007-01-29  Eric Blake  <ebb9@byu.net>
52830
52831         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52832         declaration.
52833
52834 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52835
52836         * lib/strptime.h (strptime): Use 'restrict' for args where
52837         POSIX requires this.
52838         * lib/strptime.c (strptime): Likewise.
52839         Change license notice from LGPL to GPL, since gnulib-tool will
52840         change this as needed.
52841         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52842         defined.
52843         Include "strptime.h" first, to check interface.
52844         Do not #undef _LIBC and _NL_CURRENT.
52845         Do not include <stdlib.h>; no longer needed.
52846         Include "time_r.h" and declare ptime_locale_status
52847         only if _LIBC is not defined.
52848         (__P): Remove unused macro.
52849         (match_string): Bring back glibc version, but use it only if _LIBC
52850         is defined.
52851         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52852         Remove unnecessary assertion and abort() call.
52853         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52854         * m4/strptime.m4: Fix serial number comment.
52855         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52856         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52857         (Depends-on): Add time_r.
52858
52859 2007-01-29  Bruno Haible  <bruno@clisp.org>
52860
52861         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52862         strptime.
52863         * modules/strptime (Depends-on): Add stdbool.
52864         * lib/strptime.h: Include <time.h> always. Add comments.
52865
52866 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52867
52868         * modules/strptime: New file.
52869         * lib/strptime.h: New file.
52870         * lib/strptime.c: New file.
52871         * m4/strptime.m4: New file.
52872
52873 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52874
52875         * MODULES.html.sh: New module mpsort.
52876         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52877
52878         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52879         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52881         All uses changed.
52882         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52883         All uses changed.
52884         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52885         to _Restrict_.
52886         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52887         the parameter matches the prototype.
52888
52889 2007-01-28  Jim Meyering  <jim@meyering.net>
52890
52891         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52892         sys/time.h here, reverting that part of the previous patch:
52893         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52894
52895 2007-01-28  Bruno Haible  <bruno@clisp.org>
52896
52897         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52898         value of $(SYS_TIME_H).
52899         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52900         remove it conditionally, too. [added by Jim Meyering]
52901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52902         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52903         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52904         GETTIMEOFDAY_REPLACEMENT to 1.
52905
52906 2007-01-28  Bruno Haible  <bruno@clisp.org>
52907
52908         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52909         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52911         Set UNISTD_H instead of UNISTD_H2.
52912         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52913
52914 2007-01-28  Bruno Haible  <bruno@clisp.org>
52915
52916         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52917         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52918
52919 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52920
52921         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52922         (func_create_testdir): Ensure C locale for `grep' and `tr'
52923         character ranges.
52924         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52925         ACLOCAL_AMFLAGS parsing state machine.
52926
52927 2007-01-27  Bruno Haible  <bruno@clisp.org>
52928
52929         * modules/unistr/base: Update.
52930
52931 2007-01-27  Bruno Haible  <bruno@clisp.org>
52932
52933         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52934         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52935         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52936         modules/unistr/u32-mbtouc.
52937         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52938         * lib/unistr.h: Update.
52939         * lib/linebreak.c: Update.
52940         * modules/unistr/u32-mbtouc: Renamed from
52941         modules/unistr/u32-mbtouc-safe.
52942         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52943         * lib/unistr.h: Update.
52944         * lib/unistr/u32-to-u8.c: Update.
52945         * lib/unistr/u32-to-u16.c: Update.
52946
52947 2007-01-27  Bruno Haible  <bruno@clisp.org>
52948
52949         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52950         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52951         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52952         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52953         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52954         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52955         modules/unistr/u16-mbtouc.
52956         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52957         * lib/unistr.h: Update.
52958         * lib/linebreak.c: Update.
52959         * modules/linebreak: Update.
52960         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52961         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52962         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52963         * modules/unistr/u16-mbtouc: Renamed from
52964         modules/unistr/u16-mbtouc-safe.
52965         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52966         * lib/unistr.h: Update.
52967         * lib/unistr/u16-to-u8.c: Update.
52968         * modules/unistr/u16-to-u8: Update.
52969         * lib/unistr/u16-to-u32.c: Update.
52970         * modules/unistr/u16-to-u32: Update.
52971
52972 2007-01-27  Bruno Haible  <bruno@clisp.org>
52973
52974         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52975         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52976         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52977         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52978         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52979         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52980         modules/unistr/u8-mbtouc.
52981         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52982         * lib/unistr.h: Update.
52983         * lib/striconveh.c: Update.
52984         * modules/striconveh: Update.
52985         * lib/linebreak.c: Update.
52986         * modules/linebreak: Update.
52987         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52988         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52989         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52990         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52991         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52992         * lib/unistr.h: Update.
52993         * lib/striconveh.c: Update.
52994         * modules/striconveh: Update.
52995         * lib/unistr/u8-to-u16.c: Update.
52996         * modules/unistr/u8-to-u16: Update.
52997         * lib/unistr/u8-to-u32.c: Update.
52998         * modules/unistr/u8-to-u32: Update.
52999
53000 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53001
53002         Sync from Libtool.
53003         * lib/argz.c: Do not include strings.h nor memory.h, include
53004         string.h unconditionally.  Patch by Simon Josefsson.
53005
53006 2007-01-27  Bruno Haible  <bruno@clisp.org>
53007
53008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53009         from gl_HEADER_STRING_H_BODY.
53010         (gl_HEADER_STRING_H_BODY): Require it.
53011         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53012         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53014         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53016         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53017         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53018         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53019         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53020         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53021         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53022         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53023         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53024         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53025         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53026
53027 2007-01-27  Bruno Haible  <bruno@clisp.org>
53028
53029         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53030         check_PROGRAMS into noinst_PROGRAMS.
53031         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53032         check_PROGRAMS in this case.
53033         (func_import): Set for_test to false.
53034         (func_create_testdir): Set for_test to true.
53035
53036 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53037             Bruno Haible  <bruno@clisp.org>
53038
53039         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53040         (Depends-on): Add string.
53041         (Includes): Use <string.h> instead of strcasestr.h.
53042         * modules/string (Makefile.am): Also substitute the value of
53043         REPLACE_STRCASESTR.
53044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53045         assume strcasestr is declared in <string.h> not <strings.h>. Also
53046         set REPLACE_STRCASESTR.
53047         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53048         REPLACE_STRCASESTR.
53049         * lib/strcasestr.h: Remove file.
53050         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53051         * lib/string_.h (strcasestr): New declaration.
53052
53053 2007-01-27  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/string_.h: Use 'extern'.
53056
53057 2007-01-27  Jim Meyering  <jim@meyering.net>
53058
53059         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53060         of set-but-not-used local, "q".
53061
53062         * lib/mempcpy.c: Include <config.h> before <string.h>.
53063         This fixes a compilation error on HP-UX, due to the system's
53064         "restrict"-using mempcpy prototype.
53065
53066 2007-01-26  Bruno Haible  <bruno@clisp.org>
53067
53068         Small optimization.
53069         * lib/javacomp.c: Include c-strstr.h.
53070          (is_envjavac_gcj): Use c_strstr instead of strstr.
53071         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53072
53073 2007-01-26  Bruno Haible  <bruno@clisp.org>
53074
53075         * MODULES.html.sh (Unicode string functions): Add the new modules.
53076
53077         * modules/uniconv/u32-strconv-to-locale: New file.
53078         * lib/uniconv/u32-strconv-to-locale.c: New file.
53079
53080         * modules/uniconv/u16-strconv-to-locale: New file.
53081         * lib/uniconv/u16-strconv-to-locale.c: New file.
53082
53083         * modules/uniconv/u8-strconv-to-locale: New file.
53084         * lib/uniconv/u8-strconv-to-locale.c: New file.
53085
53086         * modules/uniconv/u32-strconv-from-locale: New file.
53087         * lib/uniconv/u32-strconv-from-locale.c: New file.
53088
53089         * modules/uniconv/u16-strconv-from-locale: New file.
53090         * lib/uniconv/u16-strconv-from-locale.c: New file.
53091
53092         * modules/uniconv/u8-strconv-from-locale: New file.
53093         * lib/uniconv/u8-strconv-from-locale.c: New file.
53094
53095         * modules/uniconv/u32-strconv-to-enc: New file.
53096         * lib/uniconv/u32-strconv-to-enc.c: New file.
53097         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53098         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53099
53100         * modules/uniconv/u16-strconv-to-enc: New file.
53101         * lib/uniconv/u16-strconv-to-enc.c: New file.
53102         * lib/uniconv/u-strconv-to-enc.h: New file.
53103         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53104         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53105
53106         * modules/uniconv/u8-strconv-to-enc: New file.
53107         * lib/uniconv/u8-strconv-to-enc.c: New file.
53108         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53109         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53110
53111         * modules/uniconv/u32-strconv-from-enc: New file.
53112         * lib/uniconv/u32-strconv-from-enc.c: New file.
53113         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53114         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53115
53116         * modules/uniconv/u16-strconv-from-enc: New file.
53117         * lib/uniconv/u16-strconv-from-enc.c: New file.
53118         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53119         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53120
53121         * modules/uniconv/u8-strconv-from-enc: New file.
53122         * lib/uniconv/u8-strconv-from-enc.c: New file.
53123         * lib/uniconv/u-strconv-from-enc.h: New file.
53124         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53125         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53126
53127         * modules/uniconv/u32-conv-from-enc: New file.
53128         * lib/uniconv/u32-conv-from-enc.c: New file.
53129         * modules/uniconv/u32-conv-from-enc-tests: New file.
53130         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53131
53132         * modules/uniconv/u16-conv-from-enc: New file.
53133         * lib/uniconv/u16-conv-from-enc.c: New file.
53134         * lib/uniconv/u-conv-from-enc.h: New file.
53135         * modules/uniconv/u16-conv-from-enc-tests: New file.
53136         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53137
53138         * modules/uniconv/u8-conv-from-enc: New file.
53139         * lib/uniconv/u8-conv-from-enc.c: New file.
53140         * modules/uniconv/u8-conv-from-enc-tests: New file.
53141         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53142
53143         * modules/uniconv/base: New file.
53144         * lib/uniconv.h: New file.
53145
53146 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53147
53148         * doc/gnulib-tool.texi (Initial import): Update to match current
53149         behavior with strdup module.
53150         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53151         * lib/memmem.h: Remove; all uses removed.  This is now done
53152         by <string.h>.
53153         * lib/mempcpy.h: Likewise.
53154         * lib/memrchr.h: Likewise.
53155         * lib/stpcpy.h: Likewise.
53156         * lib/stpncpy.h: Likewise.
53157         * lib/strcase.h: Likewise.
53158         * lib/strchrnul.h: Likewise.
53159         * lib/strdup.h: Likewise.
53160         * lib/strndup.h: Likewise.
53161         * lib/strnlen.h: Likewise.
53162         * lib/strpbrk.h: Likewise.
53163         * lib/strsep.h: Likewise.
53164         * lib/strstr.h: Likewise.
53165         * lib/strtok_r.h: Likewise.
53166         * lib/string_.h: New file.
53167         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53168         Rely on <string.h> instead.
53169         * lib/canon-host.c: Likewise.
53170         * lib/chdir-long.c: Likewise.
53171         * lib/concatpath.c: Likewise.
53172         * lib/exclude.c: Likewise.
53173         * lib/fchdir.c: Likewise.
53174         * lib/getaddrinfo.c: Likewise.
53175         * lib/getcwd.c: Likewise.
53176         * lib/getsubopt.c: Likewise.
53177         * lib/glob.c: Likewise.
53178         * lib/hard-locale.c: Likewise.
53179         * lib/iconvme.c: Likewise.
53180         * lib/javacomp.c: Likewise.
53181         * lib/mempcpy.c: Likewise.
53182         * lib/memrchr.c: Likewise.
53183         * lib/regex_internal.h: Likewise.
53184         * lib/stpncpy.c: Likewise.
53185         * lib/strcasecmp.c: Likewise.
53186         * lib/strchrnul.c: Likewise.
53187         * lib/strdup.c: Likewise.
53188         * lib/striconv.c: Likewise.
53189         * lib/striconveh.c: Likewise.
53190         * lib/striconveha.c: Likewise.
53191         * lib/strncasecmp.c: Likewise.
53192         * lib/strndup.c: Likewise.
53193         * lib/strnlen.c: Likewise.
53194         * lib/strsep.c: Likewise.
53195         * lib/strstr.c: Likewise.
53196         * lib/strtok_r.c: Likewise.
53197         * lib/userspec.c: Likewise.
53198         * lib/w32spawn.h: Likewise.
53199         * lib/xstrndup.c: Likewise.
53200         * lib/mountlist.c (strstr): Remove decl.
53201         * m4/string_h.m4: New file.
53202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53205         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53206         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53207         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53208         Set REPLACE_STRCASECMP if necessary.
53209         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53210         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53211         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53212         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53213         HAVE_DECL_STRDUP if necessary.
53214         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53215         since gl_FUNC_STRNDUP does that now.
53216         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53217         Check for decl here...
53218         (gl_PREREQ_STRNLEN): ... not here.
53219         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53220         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53221         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53222         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53223         necessary.
53224         * modules/string: New file.
53225         * modules/memmem (Files): Remove special-purpose include file.
53226         (Depends-on): Add string.
53227         (Include): Include <string.h>, not the removed file.
53228         * modules/mempcpy: Likewise.
53229         * modules/memrchr: Likewise.
53230         * modules/stpcpy: Likewise.
53231         * modules/stpncpy: Likewise.
53232         * modules/strcase: Likewise.
53233         * modules/strchrnul: Likewise.
53234         * modules/strdup: Likewise.
53235         * modules/strndup: Likewise.
53236         * modules/strnlen: Likewise.
53237         * modules/strpbrk: Likewise.
53238         * modules/strsep: Likewise.
53239         * modules/strstr: Likewise.
53240         * modules/strtok_r: Likewise.
53241         * tests/test-dirname.c: Don't include "strdup.h", since
53242         <string.h> now suffices.
53243         * tests/test-memmem.c: Don't include "memmem.h", since
53244         <string.h> now suffices.
53245
53246 2007-01-25  Bruno Haible  <bruno@clisp.org>
53247
53248         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53249         *resultp is 0.
53250
53251         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53252         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53253         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53254         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53255
53256         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53257         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53258         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53259         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53260         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53261         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53262
53263 2007-01-24  Bruno Haible  <bruno@clisp.org>
53264
53265         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53267         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53268         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53269         gl_FUNC_FTS_CORE.
53270         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53271         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53272         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53273         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53274         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53275         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53276         gl_FUNC_FCHOWNAT.
53277         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53278         gl_FUNC_STRFTIME.
53279         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53280         Reported by Ralf Wildenhues.
53281
53282 2007-01-24  Bruno Haible  <bruno@clisp.org>
53283
53284         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53285         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53286         gl_GETADDRINFO.
53287         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53288         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53289         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53290
53291 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53292
53293         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53294         Don't use 'exit'; just return from 'main'.
53295         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53296
53297         * lib/fnmatch_.h: Readjust white space and comments to match
53298         glibc, to avoid spurious diffs.
53299
53300 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53301
53302         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53303         2004-12-01 change by Jakub Jelinek, since this code won't compile
53304         if !LIBC.  Problem reported by Bob Proulx.
53305
53306 2007-01-23  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/striconveh.c: Include c-strcaseeq.h.
53309         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53310         * modules/striconveh (Depends-on): Add c-strcaseeq.
53311
53312 2007-01-23  Bruno Haible  <bruno@clisp.org>
53313
53314         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53315
53316         * modules/c-strcaseeq: New file.
53317         * lib/c-strcaseeq.h: New file.
53318
53319         * modules/streq: New file.
53320         * lib/streq.h: New file.
53321
53322 2007-01-23  Bruno Haible  <bruno@clisp.org>
53323
53324         * modules/striconveha-tests: New file.
53325         * tests/test-striconveha.c: New file.
53326
53327         * lib/striconveha.h: Include <stdbool.h>.
53328         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53329         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53330         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53331         (mem_iconveha): New function.
53332         (str_iconveha_notranslit): Renamed from str_iconveha.
53333         (str_iconveha): New function.
53334         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53335         c-strcase.
53336
53337 2007-01-23  Bruno Haible  <bruno@clisp.org>
53338
53339         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53340         encodings without forgiving before trying any encoding with handler.
53341         (str_iconveha): Try all encodings without forgiving before trying any
53342         encoding with handler.
53343
53344 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53345
53346         Import the following changes from libc.
53347
53348         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53349
53350         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53351
53352         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53353
53354         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53355         normal_bracket label.
53356
53357         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53358
53359         [BZ #361]
53360         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53361         to normal_bracket after fetching the next character.
53362
53363 2007-01-22  Bruno Haible  <bruno@clisp.org>
53364
53365         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53366         argument.
53367         * lib/striconveh.c (iconv_carefully_1): New function.
53368         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53369         argument.
53370         (str_cd_iconveh): Update.
53371         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53372         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53373         * tests/test-striconveh.c (MAGIC): New macro.
53374         (new_offsets): New function.
53375         (main): Test call with and without offsets.
53376
53377 2007-01-22  Bruno Haible  <bruno@clisp.org>
53378
53379         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53380         * modules/sys_select (Makefile.am): Likewise.
53381         * modules/sys_socket (Makefile.am): Likewise.
53382         * modules/sys_time (Makefile.am): Likewise.
53383
53384 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53385
53386         * modules/gettimeofday (License): Change from GPL to LGPL, since
53387         gettimeofday is a library function.
53388
53389 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53390
53391         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53392
53393 2007-01-21  Bruno Haible  <bruno@clisp.org>
53394
53395         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53396
53397 2007-01-21  Bruno Haible  <bruno@clisp.org>
53398
53399         * modules/striconveha: New file.
53400         * lib/striconveha.h: New file.
53401         * lib/striconveha.c: New file.
53402         * MODULES.html.sh (Internationalization functions): Add striconveha.
53403         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53404         string.
53405         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53406
53407 2007-01-21  Bruno Haible  <bruno@clisp.org>
53408
53409         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53410         * lib/striconveh.c (str_iconveh): Likewise.
53411
53412 2007-01-21  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/striconveh.h (mem_iconveh): New declaration.
53415         * lib/striconveh.c (mem_iconveh): New function.
53416         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53417
53418 2007-01-21  Bruno Haible  <bruno@clisp.org>
53419
53420         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53421
53422         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53423         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53424         original result buffer.
53425         (str_cd_iconveh): Update.
53426         * tests/test-striconveh.c (main): Update.
53427
53428         * lib/striconv.h (mem_cd_iconv): Change specification.
53429         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53430         result buffer.
53431         (str_cd_iconv): Update.
53432         * tests/test-striconv.c (main): Update.
53433
53434 2007-01-21  Bruno Haible  <bruno@clisp.org>
53435
53436         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53437
53438 2007-01-20  Jim Meyering  <jim@meyering.net>
53439
53440         * lib/userspec.c (parse_with_separator): If a user or group string
53441         starts with "+", skip the corresponding name-to-ID look-up, since
53442         such a look-up must fail: user and group names may not include "+".
53443
53444 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53447         since we now assume the sys_time module.
53448         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53449         check for sys/time.h; no longer needed.
53450         * modules/poll (Depends-on): Depend on sys_time.
53451
53452 2007-01-18  Bruno Haible  <bruno@clisp.org>
53453
53454         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53455         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53456
53457         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53458         gettimeofday.
53459
53460         * tests/test-gettimeofday.c: Include <time.h>.
53461         (dummy): Remove variable.
53462
53463         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53464         gl_HEADER_SYS_TIME_H.
53465         (gl_HEADER_SYS_TIME_H): New macro.
53466
53467         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53468         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53470         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53471         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53472         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53473         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53474         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53475         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53476         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53477         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53478
53479         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53480         last change; it caused a compilation error when cross-compiling to
53481         Cygwin.
53482
53483 2007-01-18  Jim Meyering  <jim@meyering.net>
53484
53485         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53486         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53487         than the race-prone "test -d sys || mkdir sys".
53488         (configure.ac): Use AC_PROG_MKDIR_P.
53489         * modules/sys_select: Likewise.
53490         * modules/sys_socket: Likewise.
53491         * modules/sys_time: Likewise.
53492
53493 2007-01-18  Eric Blake  <ebb9@byu.net>
53494
53495         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53496         replace gettimeofday.
53497         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53498         name, to avoid infinite recursion.
53499
53500 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53501
53502         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53503         module sys_time.
53504         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53505         assume timespec.h defines struct timeval.
53506         * lib/settime.c: Likewise.
53507         * lib/utimens.c: Likewise.
53508         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53509         since we now assume the gettimeofday module.
53510         * lib/tempname.c (__gen_tempname): Likewise.
53511         * lib/gettimeofday.h: Remove.
53512         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53513         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53514         Include <time.h>, for 'time()'.
53515         (localtime_buffer_addr): Also use this workaround if
53516         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53517         to simplify the uses.  All uses changed.
53518         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53519         that #undef is inside {}, and 'const' follows type name consistently.
53520         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53521         (gettimeofday): Do not use the maximum possible value for
53522         tv->tv_usec, since that might break usages other than ls.c.
53523         Instead, we'll leave ls.c alone.  This undoes today's patch
53524         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53525         we've never observed the problem but might as well keep the
53526         canary.
53527         * lib/nanosleep.c: Include timespec.h first, for interface check.
53528         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53529         now assume the sys_time module.
53530         * lib/tempname.c: Likewise.
53531         * lib/timespec.h: Likewise.
53532         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53533         needed.
53534         * lib/strftime.c: Likewise.
53535         * lib/timespec.h: Likewise.
53536         * lib/posixtm.c: Include posixtm.h first, for interface check.
53537         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53538         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53539         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53540         * lib/sys_time_.h: New file.
53541         * lib/timespec.h (struct timespec): Use long int, not long.
53542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53543         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53544         Remove obsolescent call to AC_HEADER_TIME.
53545         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53547         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53548         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53549         Likewise.
53550         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53551         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53552         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53553         into the sys_time module.  Check for gettimeofday just once.
53554         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53555         for gettimeofday signature to just check the signature.  Merely
53556         compile it, since linking doesn't test signature.  Improve test for
53557         whether gettimeofday.o is actually needed.
53558         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53559         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53560         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53561         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53562         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53563         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53564         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53565         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53566         than worrying about sys/time.h.
53567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53568         Don't bother worrying about TIME_WITH_SYS_TIME.
53569         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53570         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53571         * m4/sys_time_h.m4: New file.
53572         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53573         Don't include sys/time.h.  Return from main rather than exiting.
53574         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53575         all uses changed.
53576         * modules/gethrxtime (Depends-on): Add sys_time.
53577         * modules/gettime (Depends-on): Likewise.
53578         * modules/gettimeofday (Depends-on): Likewise.
53579         * modules/nanosleep (Depends-on): Likewise.
53580         * modules/settime (Depends-on): Likewise.
53581         * modules/tempname (Depends-on): Likewise.
53582         * modules/utimens (Depends-on): Likewise.
53583         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53584         (Include:) Change back to <sys/time.h>.
53585         (Maintainer:) Add self.
53586         * modules/sys_time: New file.
53587         * modules/tempname (Depends-on): Add gettimeofday.
53588         * tests/test-gettimeofday.c: Include <sys/time.h>
53589         rather than gettimeofday.h.
53590
53591 2007-01-17  Bruno Haible  <bruno@clisp.org>
53592
53593         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53594         the license default to GPL.
53595         (func_create_testdir): Don't complain if a module is LGPL and its
53596         tests module depends on GPLed modules.
53597
53598 2007-01-17  Bruno Haible  <bruno@clisp.org>
53599
53600         * lib/gettimeofday.c (gettimeofday): Add code for the case
53601         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53602         maximum possible value for tv->tv_usec, rather than the minimum one.
53603
53604 2005-10-08  Martin Lambers  <marlam@marlam.de>
53605 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53606 2007-01-16  Bruno Haible  <bruno@clisp.org>
53607
53608         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53609         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53610         gl_FUNC_GETTIMEOFDAY.
53611         (Include): Add gettimeofday.h.
53612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53613         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53614         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53615         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53616         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53617         * lib/gettimeofday.h: New file.
53618         * lib/gettimeofday.c: Include <sys/timeb.h>.
53619         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53620         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53621         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53622         fall back on time().
53623
53624         * tests/test-gettimeofday.c: New file.
53625         * modules/gettimeofday-tests: New file.
53626
53627 2007-01-16  Eric Blake  <ebb9@byu.net>
53628
53629         * modules/fnmatch (Depends-on): Depend on wchar.
53630         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53631         * m4/fnmatch.m4: Likewise.
53632         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53633         * m4/mbchar.m4: Likewise.
53634         * modules/mbswidth (Depends-on): Depend on wchar.
53635         * lib/mbswidth.c: Assume <wchar.h>.
53636         * m4/mbswidth.m4: Likewise.
53637         * modules/quotearg (Depends-on): Depend on wchar.
53638         * lib/quotearg.c: Assume <wchar.h>.
53639         * m4/quotearg.m4: Likewise.
53640         * modules/regex (Depends-on): Depend on wchar.
53641         * lib/regex_internal.h: Assume <wchar.h>.
53642         * m4/regex.m4: Likewise.
53643         * modules/stdint (Depends-on): Depend on wchar.
53644         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53645         * m4/stdint.m4: Likewise.
53646         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53647         * modules/strftime (Depends-on): Depend on wchar.
53648         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53649         * modules/strtol (Depends-on): Depend on wchar.
53650         * lib/strtol.c: Assume <wchar.h>.
53651         * modules/wcwidth (Depends-on): Depend on wchar.
53652         * lib/wcwidth.h: Assume <wchar.h>.
53653         * m4/wcwidth.m4: Likewise.
53654
53655 2007-01-16  Bruno Haible  <bruno@clisp.org>
53656
53657         * modules/csharpexec-script: New, created from...
53658         * modules/csharpexec: ... this.
53659
53660 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53661
53662         * modules/javaexec-script: New, created from...
53663         * modules/javaexec: ... this.
53664
53665 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53666
53667         * modules/poll (Dependencies): Add sys_select.
53668
53669 2007-01-15  Jim Meyering  <jim@meyering.net>
53670
53671         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53672         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53673         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53674         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53675
53676 2007-01-15  Bruno Haible  <bruno@clisp.org>
53677
53678         * modules/striconveh: New file.
53679         * lib/striconveh.h: New file.
53680         * lib/striconveh.c: New file.
53681         * MODULES.html.sh (Internationalization functions): Add striconveh.
53682
53683         * modules/striconveh-tests: New file.
53684         * tests/test-striconveh.c: New file.
53685
53686 2007-01-15  Bruno Haible  <bruno@clisp.org>
53687
53688         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53689         not from GNU libiconv or GNU libc.
53690
53691 2007-01-15  Bruno Haible  <bruno@clisp.org>
53692
53693         * doc/gnulib-intro.texi (Copyright): Explain the different license
53694         terms for module descriptions, autoconf macros, tests, documentation.
53695
53696 2007-01-14  Bruno Haible  <bruno@clisp.org>
53697
53698         * modules/striconv-tests: New file.
53699         * tests/test-striconv.c: New file.
53700
53701 2007-01-14  Bruno Haible  <bruno@clisp.org>
53702
53703         * modules/iconv-tests: New file.
53704         * tests/test-iconv.c: New file.
53705
53706 2007-01-14  Bruno Haible  <bruno@clisp.org>
53707
53708         * gnulib-tool (func_get_license): For test modules, use the license of
53709         the main module.
53710
53711 2007-01-14  Bruno Haible  <bruno@clisp.org>
53712
53713         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53714         if iconv is found to exist.
53715
53716 2007-01-14  Bruno Haible  <bruno@clisp.org>
53717
53718         * modules/c-ctype-tests: New file.
53719         * tests/test-c-ctype.c: New file.
53720
53721 2007-01-14  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/binary-io-tests: New file.
53724         * tests/test-binary-io.sh: New file.
53725         * tests/test-binary-io.c: New file.
53726
53727 2007-01-14  Bruno Haible  <bruno@clisp.org>
53728
53729         * modules/array-oset-tests: New file.
53730         * tests/test-array_oset.c: New file.
53731
53732 2007-01-14  Bruno Haible  <bruno@clisp.org>
53733
53734         * modules/array-list-tests: New file.
53735         * tests/test-array_list.c: New file.
53736
53737 2007-01-14  Bruno Haible  <bruno@clisp.org>
53738
53739         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53740         and make.
53741         Reported by Simon Josefsson in
53742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53743
53744 2007-01-14  Bruno Haible  <bruno@clisp.org>
53745
53746         * modules/allocsa-tests: New file.
53747         * tests/test-allocsa.c: New file.
53748
53749 2007-01-14  Bruno Haible  <bruno@clisp.org>
53750
53751         * modules/fchdir (Depends-on): Add absolute-header.
53752         * modules/unistd (Depends-on): Likewise.
53753
53754 2006-12-30  Bruno Haible  <bruno@clisp.org>
53755
53756         * modules/fchdir: New file.
53757         * modules/unistd (Files): Add lib/unistd_.h.
53758         (Makefile.am): Generate unistd.h from unistd_.h.
53759         * lib/fchdir.c: New file.
53760         * lib/dirent_.h: New file.
53761         * lib/unistd_.h: New file.
53762         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53763         * m4/fchdir.m4: New file.
53764         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53765         (gl_HEADER_UNISTD): Invoke it.
53766         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53767         function.
53768         * lib/backupfile.c (opendir, closedir): Undefine.
53769         * lib/chown.c (open, close): Undefine.
53770         * lib/clean-temp.c (open, close): Undefine.
53771         * lib/copy-file.c (open, close): Undefine.
53772         * lib/execute.c (open, close): Undefine.
53773         * lib/fsusage.c (open, close): Undefine.
53774         * lib/gc-gnulib.c (open, close): Undefine.
53775         * lib/getcwd.c (opendir, closedir): Undefine.
53776         * lib/glob.c (opendir, closedir): Undefine.
53777         * lib/javacomp.c (open, close): Undefine.
53778         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53779         * lib/openat-proc.c (open, close): Undefine.
53780         * lib/pagealign_alloc.c (open, close): Undefine.
53781         * lib/pipe.c (open, close): Undefine.
53782         * lib/progreloc.c (open, close): Undefine.
53783         * lib/savedir.c (opendir, closedir): Undefine.
53784         * lib/utime.c (open, close): Undefine.
53785         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53786
53787 2007-01-10  Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53790
53791 2007-01-12  Eric Blake  <ebb9@byu.net>
53792
53793         Provide a robust <wchar.h>.  Further simplifications are now
53794         possible in other modules, but not included here.
53795         * modules/wchar: New module.
53796         * m4/wchar.m4: New file.
53797         * lib/wchar_.h: Likewise.
53798         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53799         of the new module.
53800         * MODULES.html.sh (Extended multibyte and wide character utilities):
53801         New section.
53802
53803 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53804
53805         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53806         to a reasonable default for memory allocation.
53807         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53808         file system that reports garbage st_size values for symlinks.
53809         Problem reported by Liyang Hu.
53810
53811 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53812
53813         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53814         Emacs .#* auto-save files).
53815
53816 2007-01-11  Bruno Haible  <bruno@clisp.org>
53817
53818         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53819         directory.
53820
53821 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53822
53823         Use @...@ consistently in lib/wctype_.h.
53824         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53825         on it being set to 1 or 0.
53826         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53827         go back to AC_SUBSTing it.
53828         * modules/wctype (Makefile.am): Undo previous change.
53829
53830 2007-01-10  Eric Blake  <ebb9@byu.net>
53831
53832         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53833         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53834         * modules/wctype (Makefile.am): Likewise.
53835         Reported by Chris McGuire.
53836
53837 2007-01-10  Jim Meyering  <jim@meyering.net>
53838
53839         fts.c: a small readability/maintainability improvement
53840         * lib/fts.c (fts_read): Make this code slightly more readable and
53841         maintainable by hoisting the "sp->fts_cur = p" assignments to
53842         immediately follow the statements that set P.  Derived from
53843         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53844
53845 2007-01-10  Eric Blake  <ebb9@byu.net>
53846
53847         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53848         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53850         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53851         Reported by Chris McGuire.
53852
53853 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53854
53855         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53856         in sed script.
53857
53858 2007-01-09  Bruno Haible  <bruno@clisp.org>
53859
53860         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53861         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53862         variables.
53863         (func_module): Use them.
53864
53865 2007-01-09  Bruno Haible  <bruno@clisp.org>
53866
53867         * modules/unistr/base: New file.
53868         * lib/unistr.h: New file.
53869
53870         * modules/unistr/u8-to-u16: New file.
53871         * lib/unistr/u8-to-u16.c: New file.
53872
53873         * modules/unistr/u8-to-u32: New file.
53874         * lib/unistr/u8-to-u32.c: New file.
53875
53876         * modules/unistr/u16-to-u8: New file.
53877         * lib/unistr/u16-to-u8.c: New file.
53878
53879         * modules/unistr/u16-to-u32: New file.
53880         * lib/unistr/u16-to-u32.c: New file.
53881
53882         * modules/unistr/u32-to-u8: New file.
53883         * lib/unistr/u32-to-u8.c: New file.
53884
53885         * modules/unistr/u32-to-u16: New file.
53886         * lib/unistr/u32-to-u16.c: New file.
53887
53888         * modules/unistr/u8-check: New file.
53889         * modules/unistr/u16-check: New file.
53890         * modules/unistr/u32-check: New file.
53891         * lib/unistr/u8-check.c: New file.
53892         * lib/unistr/u16-check.c: New file.
53893         * lib/unistr/u32-check.c: New file.
53894
53895         * modules/unistr/u8-chr: New file.
53896         * modules/unistr/u16-chr: New file.
53897         * modules/unistr/u32-chr: New file.
53898         * lib/unistr/u8-chr.c: New file.
53899         * lib/unistr/u16-chr.c: New file.
53900         * lib/unistr/u32-chr.c: New file.
53901
53902         * modules/unistr/u8-cmp: New file.
53903         * modules/unistr/u16-cmp: New file.
53904         * modules/unistr/u32-cmp: New file.
53905         * lib/unistr/u8-cmp.c: New file.
53906         * lib/unistr/u16-cmp.c: New file.
53907         * lib/unistr/u32-cmp.c: New file.
53908
53909         * modules/unistr/u8-cpy: New file.
53910         * modules/unistr/u16-cpy: New file.
53911         * modules/unistr/u32-cpy: New file.
53912         * lib/unistr/u8-cpy.c: New file.
53913         * lib/unistr/u16-cpy.c: New file.
53914         * lib/unistr/u32-cpy.c: New file.
53915         * lib/unistr/u-cpy.h: New file.
53916
53917         * modules/unistr/u8-cpy-alloc: New file.
53918         * modules/unistr/u16-cpy-alloc: New file.
53919         * modules/unistr/u32-cpy-alloc: New file.
53920         * lib/unistr/u8-cpy-alloc.c: New file.
53921         * lib/unistr/u16-cpy-alloc.c: New file.
53922         * lib/unistr/u32-cpy-alloc.c: New file.
53923         * lib/unistr/u-cpy-alloc.h: New file.
53924
53925         * modules/unistr/u8-endswith: New file.
53926         * modules/unistr/u16-endswith: New file.
53927         * modules/unistr/u32-endswith: New file.
53928         * lib/unistr/u8-endswith.c: New file.
53929         * lib/unistr/u16-endswith.c: New file.
53930         * lib/unistr/u32-endswith.c: New file.
53931         * lib/unistr/u-endswith.h: New file.
53932
53933         * modules/unistr/u8-mblen: New file.
53934         * modules/unistr/u16-mblen: New file.
53935         * modules/unistr/u32-mblen: New file.
53936         * lib/unistr/u8-mblen.c: New file.
53937         * lib/unistr/u16-mblen.c: New file.
53938         * lib/unistr/u32-mblen.c: New file.
53939
53940         * modules/unistr/u8-mbtouc: New file.
53941         * modules/unistr/u16-mbtouc: New file.
53942         * modules/unistr/u32-mbtouc: New file.
53943         * lib/unistr/u8-mbtouc.c: New file.
53944         * lib/unistr/u16-mbtouc.c: New file.
53945         * lib/unistr/u32-mbtouc.c: New file.
53946
53947         * modules/unistr/u8-mbtouc-safe: New file.
53948         * modules/unistr/u16-mbtouc-safe: New file.
53949         * modules/unistr/u32-mbtouc-safe: New file.
53950         * lib/unistr/u8-mbtouc-safe.c: New file.
53951         * lib/unistr/u16-mbtouc-safe.c: New file.
53952         * lib/unistr/u32-mbtouc-safe.c: New file.
53953
53954         * modules/unistr/u8-move: New file.
53955         * modules/unistr/u16-move: New file.
53956         * modules/unistr/u32-move: New file.
53957         * lib/unistr/u8-move.c: New file.
53958         * lib/unistr/u16-move.c: New file.
53959         * lib/unistr/u32-move.c: New file.
53960         * lib/unistr/u-move.h: New file.
53961
53962         * modules/unistr/u8-next: New file.
53963         * modules/unistr/u16-next: New file.
53964         * modules/unistr/u32-next: New file.
53965         * lib/unistr/u8-next.c: New file.
53966         * lib/unistr/u16-next.c: New file.
53967         * lib/unistr/u32-next.c: New file.
53968
53969         * modules/unistr/u8-prev: New file.
53970         * modules/unistr/u16-prev: New file.
53971         * modules/unistr/u32-prev: New file.
53972         * lib/unistr/u8-prev.c: New file.
53973         * lib/unistr/u16-prev.c: New file.
53974         * lib/unistr/u32-prev.c: New file.
53975
53976         * modules/unistr/u8-set: New file.
53977         * modules/unistr/u16-set: New file.
53978         * modules/unistr/u32-set: New file.
53979         * lib/unistr/u8-set.c: New file.
53980         * lib/unistr/u16-set.c: New file.
53981         * lib/unistr/u32-set.c: New file.
53982         * lib/unistr/u-set.h: New file.
53983
53984         * modules/unistr/u8-startswith: New file.
53985         * modules/unistr/u16-startswith: New file.
53986         * modules/unistr/u32-startswith: New file.
53987         * lib/unistr/u8-startswith.c: New file.
53988         * lib/unistr/u16-startswith.c: New file.
53989         * lib/unistr/u32-startswith.c: New file.
53990         * lib/unistr/u-startswith.h: New file.
53991
53992         * modules/unistr/u8-stpcpy: New file.
53993         * modules/unistr/u16-stpcpy: New file.
53994         * modules/unistr/u32-stpcpy: New file.
53995         * lib/unistr/u8-stpcpy.c: New file.
53996         * lib/unistr/u16-stpcpy.c: New file.
53997         * lib/unistr/u32-stpcpy.c: New file.
53998         * lib/unistr/u-stpcpy.h: New file.
53999
54000         * modules/unistr/u8-stpncpy: New file.
54001         * modules/unistr/u16-stpncpy: New file.
54002         * modules/unistr/u32-stpncpy: New file.
54003         * lib/unistr/u8-stpncpy.c: New file.
54004         * lib/unistr/u16-stpncpy.c: New file.
54005         * lib/unistr/u32-stpncpy.c: New file.
54006         * lib/unistr/u-stpncpy.h: New file.
54007
54008         * modules/unistr/u8-strcat: New file.
54009         * modules/unistr/u16-strcat: New file.
54010         * modules/unistr/u32-strcat: New file.
54011         * lib/unistr/u8-strcat.c: New file.
54012         * lib/unistr/u16-strcat.c: New file.
54013         * lib/unistr/u32-strcat.c: New file.
54014         * lib/unistr/u-strcat.h: New file.
54015
54016         * modules/unistr/u8-strchr: New file.
54017         * modules/unistr/u16-strchr: New file.
54018         * modules/unistr/u32-strchr: New file.
54019         * lib/unistr/u8-strchr.c: New file.
54020         * lib/unistr/u16-strchr.c: New file.
54021         * lib/unistr/u32-strchr.c: New file.
54022
54023         * modules/unistr/u8-strcmp: New file.
54024         * modules/unistr/u16-strcmp: New file.
54025         * modules/unistr/u32-strcmp: New file.
54026         * lib/unistr/u8-strcmp.c: New file.
54027         * lib/unistr/u16-strcmp.c: New file.
54028         * lib/unistr/u32-strcmp.c: New file.
54029
54030         * modules/unistr/u8-strcpy: New file.
54031         * modules/unistr/u16-strcpy: New file.
54032         * modules/unistr/u32-strcpy: New file.
54033         * lib/unistr/u8-strcpy.c: New file.
54034         * lib/unistr/u16-strcpy.c: New file.
54035         * lib/unistr/u32-strcpy.c: New file.
54036         * lib/unistr/u-strcpy.h: New file.
54037
54038         * modules/unistr/u8-strcspn: New file.
54039         * modules/unistr/u16-strcspn: New file.
54040         * modules/unistr/u32-strcspn: New file.
54041         * lib/unistr/u8-strcspn.c: New file.
54042         * lib/unistr/u16-strcspn.c: New file.
54043         * lib/unistr/u32-strcspn.c: New file.
54044         * lib/unistr/u-strcspn.h: New file.
54045
54046         * modules/unistr/u8-strdup: New file.
54047         * modules/unistr/u16-strdup: New file.
54048         * modules/unistr/u32-strdup: New file.
54049         * lib/unistr/u8-strdup.c: New file.
54050         * lib/unistr/u16-strdup.c: New file.
54051         * lib/unistr/u32-strdup.c: New file.
54052         * lib/unistr/u-strdup.h: New file.
54053
54054         * modules/unistr/u8-strlen: New file.
54055         * modules/unistr/u16-strlen: New file.
54056         * modules/unistr/u32-strlen: New file.
54057         * lib/unistr/u8-strlen.c: New file.
54058         * lib/unistr/u16-strlen.c: New file.
54059         * lib/unistr/u32-strlen.c: New file.
54060         * lib/unistr/u-strlen.h: New file.
54061
54062         * modules/unistr/u8-strmblen: New file.
54063         * modules/unistr/u16-strmblen: New file.
54064         * modules/unistr/u32-strmblen: New file.
54065         * lib/unistr/u8-strmblen.c: New file.
54066         * lib/unistr/u16-strmblen.c: New file.
54067         * lib/unistr/u32-strmblen.c: New file.
54068
54069         * modules/unistr/u8-strmbtouc: New file.
54070         * modules/unistr/u16-strmbtouc: New file.
54071         * modules/unistr/u32-strmbtouc: New file.
54072         * lib/unistr/u8-strmbtouc.c: New file.
54073         * lib/unistr/u16-strmbtouc.c: New file.
54074         * lib/unistr/u32-strmbtouc.c: New file.
54075
54076         * modules/unistr/u8-strncat: New file.
54077         * modules/unistr/u16-strncat: New file.
54078         * modules/unistr/u32-strncat: New file.
54079         * lib/unistr/u8-strncat.c: New file.
54080         * lib/unistr/u16-strncat.c: New file.
54081         * lib/unistr/u32-strncat.c: New file.
54082         * lib/unistr/u-strncat.h: New file.
54083
54084         * modules/unistr/u8-strncmp: New file.
54085         * modules/unistr/u16-strncmp: New file.
54086         * modules/unistr/u32-strncmp: New file.
54087         * lib/unistr/u8-strncmp.c: New file.
54088         * lib/unistr/u16-strncmp.c: New file.
54089         * lib/unistr/u32-strncmp.c: New file.
54090
54091         * modules/unistr/u8-strncpy: New file.
54092         * modules/unistr/u16-strncpy: New file.
54093         * modules/unistr/u32-strncpy: New file.
54094         * lib/unistr/u8-strncpy.c: New file.
54095         * lib/unistr/u16-strncpy.c: New file.
54096         * lib/unistr/u32-strncpy.c: New file.
54097         * lib/unistr/u-strncpy.h: New file.
54098
54099         * modules/unistr/u8-strnlen: New file.
54100         * modules/unistr/u16-strnlen: New file.
54101         * modules/unistr/u32-strnlen: New file.
54102         * lib/unistr/u8-strnlen.c: New file.
54103         * lib/unistr/u16-strnlen.c: New file.
54104         * lib/unistr/u32-strnlen.c: New file.
54105         * lib/unistr/u-strnlen.h: New file.
54106
54107         * modules/unistr/u8-strpbrk: New file.
54108         * modules/unistr/u16-strpbrk: New file.
54109         * modules/unistr/u32-strpbrk: New file.
54110         * lib/unistr/u8-strpbrk.c: New file.
54111         * lib/unistr/u16-strpbrk.c: New file.
54112         * lib/unistr/u32-strpbrk.c: New file.
54113         * lib/unistr/u-strpbrk.h: New file.
54114
54115         * modules/unistr/u8-strrchr: New file.
54116         * modules/unistr/u16-strrchr: New file.
54117         * modules/unistr/u32-strrchr: New file.
54118         * lib/unistr/u8-strrchr.c: New file.
54119         * lib/unistr/u16-strrchr.c: New file.
54120         * lib/unistr/u32-strrchr.c: New file.
54121
54122         * modules/unistr/u8-strspn: New file.
54123         * modules/unistr/u16-strspn: New file.
54124         * modules/unistr/u32-strspn: New file.
54125         * lib/unistr/u8-strspn.c: New file.
54126         * lib/unistr/u16-strspn.c: New file.
54127         * lib/unistr/u32-strspn.c: New file.
54128         * lib/unistr/u-strspn.h: New file.
54129
54130         * modules/unistr/u8-strstr: New file.
54131         * modules/unistr/u16-strstr: New file.
54132         * modules/unistr/u32-strstr: New file.
54133         * lib/unistr/u8-strstr.c: New file.
54134         * lib/unistr/u16-strstr.c: New file.
54135         * lib/unistr/u32-strstr.c: New file.
54136         * lib/unistr/u-strstr.h: New file.
54137
54138         * modules/unistr/u8-strtok: New file.
54139         * modules/unistr/u16-strtok: New file.
54140         * modules/unistr/u32-strtok: New file.
54141         * lib/unistr/u8-strtok.c: New file.
54142         * lib/unistr/u16-strtok.c: New file.
54143         * lib/unistr/u32-strtok.c: New file.
54144         * lib/unistr/u-strtok.h: New file.
54145
54146         * modules/unistr/u8-uctomb: New file.
54147         * modules/unistr/u16-uctomb: New file.
54148         * modules/unistr/u32-uctomb: New file.
54149         * lib/unistr/u8-uctomb.c: New file.
54150         * lib/unistr/u16-uctomb.c: New file.
54151         * lib/unistr/u32-uctomb.c: New file.
54152
54153         * MODULES.html.sh (Unicode string functions): Add the new modules.
54154
54155 2007-01-08  Bruno Haible  <bruno@clisp.org>
54156
54157         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54158         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54159         subdirectories.
54160
54161 2007-01-08  Karl Berry  <karl@gnu.org>
54162
54163         * doc/error.texi: mention that main() fns must set program_name
54164         when progname is used.
54165
54166 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54167
54168         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54169         WCTYPE_H is empty, for the benefit of builds from non-distclean
54170         directories.  Problem reported by Eric Blake in
54171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54172
54173 2007-01-08  Bruno Haible  <bruno@clisp.org>
54174
54175         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54176         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54177         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54178         PROVIDE_CANONICALIZE_FILENAME_MODE.
54179         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54180
54181 2007-01-08  Bruno Haible  <bruno@clisp.org>
54182
54183         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54184         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54185         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54186         * lib/fts.c: Likewise.
54187         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54188
54189 2006-12-25  Bruno Haible  <bruno@clisp.org>
54190
54191         * modules/utf8-ucs4-safe: New file.
54192         * lib/utf8-ucs4-safe.h: New file.
54193         * lib/unistr/utf8-ucs4-safe.c: New file.
54194
54195         * modules/utf16-ucs4-safe: New file.
54196         * lib/utf16-ucs4-safe.h: New file.
54197         * lib/unistr/utf16-ucs4-safe.c: New file.
54198
54199         * MODULES.html.sh (Unicode string functions): Add the new modules.
54200
54201 2007-01-08  Bruno Haible  <bruno@clisp.org>
54202
54203         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54204         (Depends-on): Add unitypes.
54205         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54206         (u8_mbtouc_aux): Move out to separate file.
54207         (u8_mbtouc): Use ucs4_t, uint8_t types.
54208         * lib/unistr/utf8-ucs4.c: New file.
54209
54210         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54211         (Depends-on): Add unitypes.
54212         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54213         (u16_mbtouc_aux): Move out to separate file.
54214         (u16_mbtouc): Use ucs4_t, uint16_t types.
54215         * lib/unistr/utf16-ucs4.c: New file.
54216
54217         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54218         (Depends-on): Add unitypes.
54219         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54220         (u8_uctomb_aux): Move out to separate file.
54221         (u8_uctomb): Use ucs4_t, uint8_t types.
54222         * lib/unistr/ucs4-utf8.c: New file.
54223
54224         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54225         (Depends-on): Add unitypes.
54226         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54227         (u16_uctomb_aux): Move out to separate file.
54228         (u16_uctomb): Use ucs4_t, uint16_t types.
54229         * lib/unistr/ucs4-utf16.c: New file.
54230
54231 2006-12-25  Bruno Haible  <bruno@clisp.org>
54232
54233         * modules/unitypes: New file.
54234         * lib/unitypes.h: New file.
54235         * MODULES.html.sh (func_all_modules): New section "Unicode string
54236         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54237         this section. Add unitypes.
54238
54239 2007-01-08  Bruno Haible  <bruno@clisp.org>
54240
54241         Avoid variable names that conflict with those from libtool.
54242         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54243         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54244         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54245         library_names_spec to acl_library_names_spec, hardcode_* to
54246         acl_hardcode_*.
54247         Reported by Ralf Wildenhues.
54248
54249 2007-01-08  Bruno Haible  <bruno@clisp.org>
54250
54251         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54252         definition.
54253         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54254         definition.
54255         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54256         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54257         definition.
54258         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54259         definition.
54260         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54261         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54262         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54263         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54264         definition.
54265         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54266         definition.
54267         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54268         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54269         GC_USE_<algorithm>.
54270         * lib/gc-libgcrypt.c: Likewise.
54271         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54272         * modules/gc-arctwo (configure.ac): Likewise.
54273         * modules/gc-des (configure.ac): Likewise.
54274         * modules/gc-hmac-md5 (configure.ac): Likewise.
54275         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54276         * modules/gc-md2 (configure.ac): Likewise.
54277         * modules/gc-md4 (configure.ac): Likewise.
54278         * modules/gc-md5 (configure.ac): Likewise.
54279         * modules/gc-random (configure.ac): Likewise.
54280         * modules/gc-rijndael (configure.ac): Likewise.
54281         * modules/gc-sha1 (configure.ac): Likewise.
54282
54283 2007-01-08  Bruno Haible  <bruno@clisp.org>
54284
54285         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54286         macro definition.
54287         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54288         definition.
54289         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54290         definition.
54291         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54292         * modules/fcntl-safer (configure.ac): Likewise.
54293         * modules/fopen-safer (configure.ac): Likewise.
54294         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54295         GNULIB_FWRITEERROR macro definition.
54296
54297 2007-01-08  Bruno Haible  <bruno@clisp.org>
54298
54299         * m4/gnulib-common.m4: New file.
54300         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54301         (func_get_filelist): Add m4/gnulib-common.m4.
54302
54303 2007-01-08  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54306         command.
54307
54308 2007-01-08  Jim Meyering  <jim@meyering.net>
54309
54310         Use a more robust test for a "can't happen" condition.
54311         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54312         narrowed the st_size value.  Presuming the "can't happen" condition
54313         is true, that narrowing could conceivably convert an invalid st_size
54314         value into a valid one.  Instead, use a change based on Matthew
54315         Woehlke's original patch.
54316
54317         Slight readability improvement: use an assert-like macro
54318         in place of literal "abort ()" uses.
54319         * lib/fts.c (fts_assert): Define.
54320         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54321         Use this macro instead of a bare 'abort'.
54322
54323 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54324
54325         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54326         simply work around them.
54327         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54328         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54329         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54330         declaring.
54331         Don't bother to define as macros, since the standard doesn't require it.
54332         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54333         longer worry about IRIX 5.3.
54334         (HAVE_WCTYPE_CTMP_BUG): Remove.
54335
54336 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54339         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54340         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54341         Problems reported by Georg Schwarz for IRIX 5.3.
54342
54343         * gnulib-tool (autoconf_minversion): Take the maximum version number
54344         found, not the minimum.  Problem reported by James Youngman.
54345
54346 2007-01-03  Karl Berry  <karl@gnu.org>
54347
54348         * doc/error.texi: new file, explaining interaction with progname.
54349         * doc/gnulib.texi: include it.  Update copyright.
54350
54351 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54352
54353         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54354         AC_CANONICAL_HOST, to improve autobuild outputs.
54355
54356 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54357             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54358
54359         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54360         sockets, server sockets, and other file descriptors.  Count errors
54361         to compute the return value.  Reorder the code a bit to be easier
54362         to follow.  Don't set event bits that were not requested (except
54363         POLLERR and POLLHUP).
54364
54365 2007-01-01  Bruno Haible  <bruno@clisp.org>
54366
54367         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54368
54369 2007-01-03  Jim Meyering  <jim@meyering.net>
54370
54371         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54372
54373 2007-01-02  Bruno Haible  <bruno@clisp.org>
54374
54375         * modules/settime (Include): Require timespec.h.
54376         * modules/nanosleep (Include): Likewise.
54377
54378 2007-01-01  Bruno Haible  <bruno@clisp.org>
54379
54380         * gnulib-tool (func_emit_copyright_notice): Bump year.
54381         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54382
54383 2007-01-01  Bruno Haible  <bruno@clisp.org>
54384
54385         Improve support for OpenBSD.
54386         * build-aux/config.rpath (libname_spec): Export.
54387         (library_names_spec): New variable. Export.
54388         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54389         library_names_spec from the config.rpath output. Locate shared library
54390         through the name pattern in library_names_spec.
54391
54392 2007-01-01  Eric Blake  <ebb9@byu.net>
54393
54394         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54395
54396 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54397
54398         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54399         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54400         assume the C locale, and avoid an "eval" that could cause trouble.
54401         Problem with SORT reported by Bob Proulx.
54402
54403         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54404         Define.  Trivial patch from Henning Nielsen Lund, originally
54405         sent to bug-grep@gnu.org today.
54406
54407 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54408
54409         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54410         struct stat.  Problem reported by Henning Nielsen Lund.
54411         * lib/acl.c: Include acl.h first, to check interface.  Don't
54412         bother to include sys/types.h and sys/stat.h again.
54413
54414 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54415
54416         Import the following change from libc; problem reported by
54417         Sven Verdoolaege.
54418
54419         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54420
54421         [BZ #1373]
54422         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54423
54424 2006-12-28  Jim Meyering  <jim@meyering.net>
54425
54426         * build-aux/announce-gen: Do not assume that the package
54427         builds any of tar.gz, tar.bz2, and .xdelta files.
54428         Suggestion from Simon Josefsson.
54429
54430 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54431
54432         * modules/announce-gen: New file.
54433
54434 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54435
54436         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54437         handles its gotchas now.
54438         * lib/mbswidth.c: Likewise.
54439         * lib/wcwidth.h: Likewise.
54440         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54441         and iswcntrl; the wctype module does this stuff now.
54442         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54444         * modules/mbchar (Depends-on): Add wctype.
54445         * modules/mbswidth (Depends-on): Likewise.
54446         * modules/wcwidth (Depends-on): Likewise.
54447
54448 2006-12-27  Eric Blake  <ebb9@byu.net>
54449
54450         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54451         module uses more than what <wctype.h> is required to provide.
54452
54453 2006-12-26  Eric Blake  <ebb9@byu.net>
54454
54455         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54456
54457 2006-12-26  Eric Blake  <ebb9@byu.net>
54458
54459         * modules/absolute-header: New module.
54460         * modules/fcntl (Depends-on): Depend on it.
54461         * modules/inttypes (Depends-on): Likewise.
54462         * modules/stdint (Depends-on): Likewise.
54463         * modules/sys_stat (Depends-on): Likewise.
54464         * modules/wctype (Depends-on): Likewise.
54465         * MODULES.html.sh (Support for building libraries and
54466         executables): Document it.
54467
54468 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54469
54470         * gnulib-tool (SED): Remove, undoing previous change.
54471         The problem was that it broke coreutils on Solaris, because
54472         "sed --posix" leaked into a makefile.
54473         (sed): New alias, if 'alias' and GNU sed.
54474
54475 2006-12-24  Jim Meyering  <jim@meyering.net>
54476
54477         Work around an fchownat bug in glibc-2.4:
54478         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54479         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54480         in spite of the -P option.
54481         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54482         New macros.
54483         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54484         * modules/openat (Files): Add lib/fchownat.c.
54485         * lib/openat.c (fchownat): Don't define here.  Move to...
54486         * lib/fchownat.c: ...this new file.
54487
54488 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         Fix bug reported by Bruno Haible in
54491         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54492         where quotearg.c didn't compile on Mac OS X 10.2 because it
54493         lacks <wchar.h> and wint_t.
54494         * lib/wctype_.h (__wctype_wint_t): New type.
54495         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54496         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54497         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54498         Arg is now of type __wctype_wint_t, not wint_t.
54499         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54500         substitute HAVE_WINT_T.
54501         * modules/wctype (Files): Add m4/wint_t.m4.
54502         (wctype.h): Substitute HAVE_WINT_T.
54503
54504 2006-12-23  Bruno Haible  <bruno@clisp.org>
54505
54506         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54507
54508 2006-12-23  Bruno Haible  <bruno@clisp.org>
54509
54510         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54511         S_ISLNK.
54512         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54513         mingw.
54514
54515 2006-12-22  Bruno Haible  <bruno@clisp.org>
54516
54517         * lib/copy-file.c: Include acl.h.
54518         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54519         Close the file descriptors only after being done with copy_acl.
54520         * modules/copy-file (Depends-on): Add acl.
54521
54522 2006-12-22  Bruno Haible  <bruno@clisp.org>
54523
54524         * gnulib-tool (SED): New variable.
54525         Use $SED instead of sed everywhere.
54526
54527 2006-12-22  Bruno Haible  <bruno@clisp.org>
54528
54529         * modules/no-c++: New file.
54530         * m4/no-c++.m4: New file.
54531         * MODULES.html.sh (Support for building libraries and executables):
54532         Add no-c++.
54533
54534 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54535
54536         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54537         Include <limits.h>, and use its INT_MAX to rewrite the
54538         j loop so that it does not overflow 'int'.  Problem reported by
54539         Ralf Wildenhues in
54540         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54541         Play it safe by shifting left by 1 rather than multiplying by 2,
54542         as GCC is less likely to optimize this away when the value
54543         is signed (when it assumes overflow leads to undefined behavior).
54544         Also, don't assume time_t uses two's complement.
54545
54546 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54547
54548         * MODULES.html.sh: New module wctype.
54549         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54550         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54551         <wctype.h>, since the new wctype module should fix this.
54552         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54553         the wctype module should arrange for it.
54554         * lib/regex_internal.h: Likewise.
54555         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54556         since the wctype module should handle this now.
54557         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54558         * modules/fnmatch (Depends-on): Add wctype.
54559         * modules/quotearg (Depends-on): Likewise.
54560         * modules/regex (Depends-on): Likewise.
54561
54562 2006-12-19  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54565         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54566
54567 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54568
54569         * modules/savewd (Depends-on): Fix dependency on fcntl.
54570
54571 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54572
54573         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54574         conforms to C99, rather than relying on the user's environment
54575         setting of STDINT_H.
54576
54577 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54578         and Eric Blake  <ebb9@byu.net>
54579
54580         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54581         This is more consistent with the other defines here.
54582         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54583         Port to z/OS.  Problem reported by Paul Gilmartin.
54584         Change local vars to use gl_ prefix rather than ac_.
54585         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54586         with other defines.
54587         * modules/double-slash-root: New module.
54588         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54589         (Depends-on): Add double-slash-root.
54590         * MODULES.html.sh (File system functions): Mention new module.
54591
54592 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54595         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54596         This is for the benefit of gzip, which doesn't do i18n.
54597
54598 2006-12-12  Jim Meyering  <jim@meyering.net>
54599
54600         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54601         Reported by Andreas Schwab <schwab@suse.de>.
54602
54603 2006-12-12  Bruno Haible  <bruno@clisp.org>
54604
54605         Merge these changes.
54606         2006-09-05  Bruno Haible  <bruno@clisp.org>
54607         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54608         iconv_alloc succeeded.
54609         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54610         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54611         test for " && dest " at the end - dest is always != NULL there. Call
54612         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54613         with 2xNULL arguments, also to flush the state storage. Handle the
54614         IRIX iconv behaviour. Realloc the final result, to throw away unused
54615         memory.
54616
54617 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54618
54619         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54620         and fchmodat unconditionally, since glibc 2.4 has them.
54621         Problem reported by Arkadiusz Miskiewicz.
54622
54623 2006-12-10  Bruno Haible  <bruno@clisp.org>
54624
54625         * gnulib-tool (func_import): Show the include files only for those
54626         modules that are copied and specified.
54627         Reported by Karl Berry.
54628
54629 2006-12-08  Jim Meyering  <jim@meyering.net>
54630
54631         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54632         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54633
54634         * build-aux/announce-gen: Add two new options, both optional:
54635         --bootstrap-tools=TOOL_LIST
54636               a comma-separated list of tools, e.g.,
54637               autoconf,automake,bison,gnulib
54638         --gnulib-snapshot-date=DATE
54639               if gnulib is in the bootstrap tool list,
54640               then report this as the snapshot date.
54641               If not specified, use the current date/time.
54642               If you specify a date here, be sure it's UTC.
54643
54644 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54645
54646         * tests/test-argp-2.sh: Fix test to match actual output.
54647         (func_compare): Fix sed script to be portable.
54648
54649 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54652         workaround for this case.  It is not autoconfigured now; offhand
54653         it's hard to see how to autoconfigure it.
54654
54655 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54656
54657         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54658         a directory that is about to be chowned.  Such a directory's
54659         initial file permissions should permit the owner only and this
54660         should not be changed until after the chown, since the group and
54661         other bits would be incorrect if they granted permission before
54662         the chown.
54663
54664         Fix porting problem for iswctype reported by Georg Schwarz in:
54665         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54666         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54667         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54668         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54669         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54670
54671 2006-12-03  Jim Meyering  <jim@meyering.net>
54672
54673         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54674         p->fts_statp may not yet be defined.
54675         (fts_read): Instead, set it in the caller, once p->fts_statp is
54676         sure to be defined, and corresponds to a top-level directory.
54677         This bug made du -x fail.  Here's the coreutils test case:
54678         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54679         Reported by Mike Frysinger.
54680
54681 2006-12-01  Jim Meyering  <jim@meyering.net>
54682
54683         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54684         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54685         Reported by Simon Josefsson.
54686
54687 2006-11-30  Jim Meyering  <jim@meyering.net>
54688
54689         * m4/warning.m4: Use the all-permissive copyright notice
54690         recommended by RMS (rather than LGPL).
54691         * m4/vararrays.m4: Likewise.
54692         * m4/flexmember.m4: Likewise.
54693
54694 2006-11-29  Bruno Haible  <bruno@clisp.org>
54695
54696         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54697         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54698         using +=.
54699         Reported by Simon Josefsson <simon@josefsson.org>.
54700
54701 2006-11-28  James Youngman <jay@gnu.org>
54702
54703         * README: Advise users that they might find the bug-gnulib@gnu.org
54704         and autotools-announce@gnu.org mailing lists useful.
54705
54706 2006-11-28  Bruno Haible  <bruno@clisp.org>
54707
54708         * m4/ptrdiff_max.m4: Remove file.
54709
54710 2006-11-21  Bruno Haible  <bruno@clisp.org>
54711
54712         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54713         _AC_COMPUTE_INT.
54714         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54715         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54716         _AC_COMPUTE_INT.
54717         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54718         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54719         _AC_COMPUTE_INT.
54720         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54721
54722 2006-11-28  Jim Meyering  <jim@meyering.net>
54723
54724         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54725         warning from "gcc -Wshadow" about shadowing the builtin.
54726
54727 2006-11-27  Bruno Haible  <bruno@clisp.org>
54728
54729         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54730         _AC_COMPUTE_INT.
54731         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54732
54733 2006-11-27  Bruno Haible  <bruno@clisp.org>
54734             Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54737
54738 2006-11-26  Bruno Haible  <bruno@clisp.org>
54739
54740         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54741         noinst_LTLIBRARIES.
54742
54743 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54744             Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54747         if compiling with "gcc -ansi".
54748
54749 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54750
54751         Fix some incompatibilities with gcc -ansi -pedantic.
54752         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54753         if compiling pedantically with GCC, unless it's C99 or later.
54754         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54755         it mishandles gcc -ansi -pedantic as well.
54756         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54757         if gcc -pedantic.
54758         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54759         initializers for struct if -pedantic, unless it's C99 or later.
54760
54761 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54762
54763         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54764         Don't close an fd more than once. Identical atimes indicate
54765         success, not failure.
54766
54767 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54768
54769         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54770
54771 2006-11-23  Jim Meyering  <jim@meyering.net>
54772
54773         * build-aux/announce-gen: New file.  From coreutils.
54774
54775 2006-11-22  Jim Meyering  <jim@meyering.net>
54776
54777         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54778         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54779         (fts_read): Use a temporary to narrow the overused st_size member
54780         before using it in a switch statement.  Reported by Matthew Woehlke.
54781
54782         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54783         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54784
54785 2006-11-20  Bruno Haible  <bruno@clisp.org>
54786
54787         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54788         changequote instead of pairs of brackets.
54789         Reported by Andreas Schwab <schwab@suse.de>.
54790
54791 2006-11-21  Jim Meyering  <jim@meyering.net>
54792
54793         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54794         so as to remain compatible with older compilers.
54795         Patch from Michael Deutschmann.
54796
54797 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54798
54799         * MODULES.html.sh (File system functions): Add openat.
54800
54801         * lib/openat.h (rpl_fstatat): New macro, if
54802         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54803         (fstatat): Define to rpl_fstatat under the same conditions,
54804         unless COMPILING_FSTATAT.
54805         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54806         seems to have the bug.
54807         * lib/fstatat.c: New file.
54808         * modules/openat (Files): Add it.
54809
54810 2006-11-20  Bruno Haible  <bruno@clisp.org>
54811
54812         * Makefile: New file.
54813
54814 2006-11-20  Jim Meyering  <jim@meyering.net>
54815
54816         The beginnings of syntax-related checks for gnulib.
54817         * lib/Makefile: New file.
54818         * lib/t-idcache: New script.  Ensure that the two halves of
54819         idcache.c stay in sync.
54820
54821         * lib/idcache.c: Adjust comments in user- and group- portions to
54822         be more accurate, and to be consistent with one another.
54823
54824 2006-11-20  Jim Meyering  <jim@meyering.net>
54825
54826         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54827         continue using the flexible array member (thus, this module performs
54828         half as many malloc calls), with the addition that...
54829         (getgroup, getuser): Consistently record a non-match via an empty
54830         "name" string, and map an empty string match to a NULL return value.
54831         * modules/idcache (Depends-on): Re-add flexmember.
54832
54833         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54834         (getuidbyname, getgroup, getgidbyname): Likewise.
54835
54836         Use cleaner syntax: NULL rather than 0.
54837         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54838
54839 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54842         It mishandled the case where the group was missing.
54843         Problem reported by Greg Schafer.
54844         * modules/idcache: Likewise.
54845
54846 2006-11-18  Jim Meyering  <jim@meyering.net>
54847
54848         * check-module (%exempt_header): Add exception for some
54849         conditionally-included headers.
54850
54851         * modules/i-ring (Depends-on): Add verify.
54852         (License): Change to LGPL.
54853
54854 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54855
54856         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54857         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54858         and inttostr.h.  Use snprintf rather than uinttostr, so that
54859         LGPLed code doesn't depend on GPLed.
54860
54861 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * modules/inline (License): Change from GPL to LGPL.
54864
54865 2006-11-17  Jim Meyering  <jim@meyering.net>
54866
54867         * modules/d-type (License): Switch to LGPL.
54868
54869 2006-11-15  Bruno Haible  <bruno@clisp.org>
54870
54871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54872
54873 2006-11-15  Eric Blake  <ebb9@byu.net>
54874
54875         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54876         the module dependency.
54877
54878 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54879             Bruno Haible  <bruno@clisp.org>
54880
54881         * gnulib-tool (func_create_testdir): Add license consistency check.
54882
54883 2006-11-15  Eric Blake  <ebb9@byu.net>
54884
54885         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54886         random "(cached)" in configure output.
54887
54888 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54889
54890         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54891         test for conforming inttypes.h is both announced and cached.
54892
54893         * MODULES.html.sh (seen_modules, seen_files): New variables.
54894         (func_module): Rewrite to use a few less gnulib-tool and sed
54895         invocations.  Avoid a couple of quadratic algorithms for ...
54896         (missed_modules, missed_files): ... these, with ...
54897         (func_append, func_tmpdir): ... these new functions, from
54898         gnulib-tool.  Analogously, install traps for cleanup.
54899
54900         * tests/test-gc.c (main): Remove unused variables.
54901         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54902
54903 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         * modules/inttostr (License): Change to LGPL.
54906
54907 2006-11-14  Eric Blake  <ebb9@byu.net>
54908
54909         * modules/tempname (License): Change to LGPL.
54910
54911 2006-11-14  Eric Blake  <ebb9@byu.net>
54912
54913         * doc/functions.texi (Function Portability): *printf functions on
54914         Cygwin now understand all POSIX size specifiers.
54915
54916 2006-11-14  Bruno Haible  <bruno@clisp.org>
54917
54918         * modules/c-ctype (License): Change to LGPL.
54919
54920 2006-11-12  Bruno Haible  <bruno@clisp.org>
54921
54922         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54923         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54924         for GNOME libraries, for which the include files are installed in
54925         subdirectories of $prefix/include.
54926
54927 2006-11-12  Bruno Haible  <bruno@clisp.org>
54928
54929         * m4/lib-link.m4: Require at least autoconf-2.54.
54930         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54931         name to underscores for the --with option.
54932
54933 2006-11-13  Bruno Haible  <bruno@clisp.org>
54934
54935         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54936         the tests directory.
54937         Reported by Ralf Wildenhues.
54938
54939 2006-11-13  Bruno Haible  <bruno@clisp.org>
54940
54941         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54942         (func_emit_initmacro_end): Undo the override here.
54943         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54944         Works around the famous automake error in coreutils.
54945
54946 2006-11-13  Eric Blake  <ebb9@byu.net>
54947
54948         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54949         element, not its node.
54950
54951 2006-11-12  Bruno Haible  <bruno@clisp.org>
54952
54953         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54954         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54955
54956 2006-11-12  Bruno Haible  <bruno@clisp.org>
54957
54958         * gnulib-tool: New option --local-symlink.
54959         (func_usage): Document it.
54960         (lsymbolic): New variable.
54961         (func_import, func_create_testdir): If --symlink was not specified,
54962         test whether --local-symlink was specified and the file comes from
54963         the local_gnulib_dir.
54964
54965 2006-11-12  Bruno Haible  <bruno@clisp.org>
54966
54967         * gnulib-tool (func_ln): New function.
54968         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54969
54970 2006-11-12  Bruno Haible  <bruno@clisp.org>
54971
54972         Finish support for source files in subdirectories.
54973         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54974         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54975         AUTOMAKE_OPTIONS.
54976         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54977
54978 2006-11-12  Bruno Haible  <bruno@clisp.org>
54979
54980         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54981         EXTRA_lib_SOURCES augmentation.
54982         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54983
54984 2006-11-12  Jim Meyering  <jim@meyering.net>
54985
54986         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54987         file descriptors.  This also averts a failure on systems with
54988         native openat support when a traversed directory lacks "x" access.
54989         * lib/fts_.h: Include "i-ring.h"
54990         (struct FTS) [fts_fd_ring]: New member.
54991         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54992         (FCHDIR): Add parentheses.
54993         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54994         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54995         When descending, rather than simply closing the previous
54996         fts_cwd_fd value, push that file descriptor onto the ring.
54997         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54998         (fts_open): Initialize the new fd_ring member.
54999         (fts_close): Clear the ring.
55000         (fts_safe_changedir): When possible, use our new fd_ring to skip
55001         the diropen and fstat and dev/ino comparison that would normally
55002         accompany a virtual `chdir ("..")'.
55003
55004         * modules/fts (Depends-on): Add i-ring.
55005         * modules/i-ring: New module.
55006         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55007         * m4/i-ring.m4: New file.
55008
55009 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55010
55011         * gnulib-tool (func_create_testdir): Fix replacement of
55012         `build-aux' in configure.ac.  Run autotools in gltests
55013         subdirectory.
55014         (func_create_testdir, func_create_megatestdir, test): There is
55015         no need for '--force' in most autotool invocations in a new
55016         tree.  Actually fail the whole test if any of the tools, or the
55017         configure or make stages fail.
55018
55019         Sync from Automake.
55020         * build-aux/gnupload: Revert last change.  Add pointer to upload
55021         instructions of the GNU Maintenance Instructions.
55022         Suggestion by Karl Berry.
55023
55024 2006-11-10  Jim Meyering  <jim@meyering.net>
55025
55026         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55027
55028 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55029
55030         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55031         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55032         (bind_textdomain_codeset) [! ENABLE_NLS]:
55033         Evaluate all the arguments.  That way, callers get compatible behavior
55034         if the arguments have side effects.  Also, it avoids some GCC
55035         diagnostics in some cases; Joel E. Denny reported problems when Bison
55036         was configured with --enable-gcc-warnigs.
55037
55038 2006-11-10  Jim Meyering  <jim@meyering.net>
55039
55040         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55041         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55042         account.
55043
55044 2006-11-10  Jim Meyering  <jim@meyering.net>
55045
55046         * modules/inline: New file/module.
55047         * modules/xalloc (Files): Remove m4/inline.m4.
55048         (Depends-on): Add inline, instead.
55049         * modules/oset: Likewise.
55050         * modules/list: Likewise.
55051
55052 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55055         Problem reported by Matthew Woehlke.
55056
55057 2006-11-09  Bruno Haible  <bruno@clisp.org>
55058
55059         * lib/tempname.c (gen_tempname): Remove variant that invokes
55060         __gen_tempname.
55061         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55062         __gen_tempname.
55063
55064 2006-11-08  Bruno Haible  <bruno@clisp.org>
55065
55066         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55067         to 'yes' instead of 'cross-compiling'.
55068
55069 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55070
55071         * lib/quotearg.h (quotearg_free): New decl.
55072         * lib/quotearg.c (quotearg_free): New function.
55073         (slot0, nslots, slotvec0, slotvec):
55074         Now file-scope so that quotearg_free can get at them.
55075
55076 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55077
55078         Sync from Automake.
55079         * build-aux/gnupload: Add missing 'gnu' to example URL.
55080         Report by Karl Berry.
55081
55082 2006-11-08  Bruno Haible  <bruno@clisp.org>
55083
55084         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55085         Suggested by Paul Eggert.
55086
55087 2006-11-08  Jim Meyering  <jim@meyering.net>
55088
55089         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55090         It's already included if !_LIBC.
55091         (fts_safe_changedir): Add a comment.
55092
55093 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55096         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55097         Matthew Woehlke.
55098
55099         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55100         definitions up, to avoid colliding with change below.
55101         (static_inline) [HAVE_INLINE]: New macro.
55102         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55103         Provide extern decls when !HAVE_INLINE.  Do not define unless
55104         static_inline is defined, either by us or by xmalloc.c.  Use
55105         static_inline rather than static inline.
55106         (XCALLOC): Optimize sizeof(T) = 1 case.
55107         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55108
55109 2006-11-07  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55112         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55113         AC_C_INLINE.
55114         * modules/xalloc (Files): Add m4/inline.m4.
55115
55116 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55117
55118         * README: Fix typo.
55119         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55120         (Miscellanous Notes): ...from this.
55121
55122 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55123
55124         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55125         Mention that offsetof should be used instead of sizeof.
55126         From Bruno Haible.
55127
55128 2006-11-07  Bruno Haible  <bruno@clisp.org>
55129
55130         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55131
55132 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55133
55134         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55135         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55136         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55137         (gl_tree_add_before, gl_tree_add_after):
55138         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55139         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55140         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55141         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55142         (gl_linked_add_after, gl_linked_add_at): Likewise.
55143         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55144         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55145         (gl_tree_add_before, gl_tree_add_after): Likewise.
55146         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55147         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55148         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55149
55150 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55151
55152         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55153
55154 2006-11-06  Bruno Haible  <bruno@clisp.org>
55155
55156         * m4/inline.m4: New file.
55157         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55158         * modules/list (Files): Add m4/inline.m4.
55159         * modules/oset (Files): Likewise.
55160
55161 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55162
55163         * lib/idcache.c: Include <stddef.h>, for offsetof.
55164         (struct userid.name): Change from char * to a flexible array member.
55165         All uses changed.
55166         * modules/idcache (Depends-on): Add flexmember.
55167
55168         * MODULES.html.sh (Core language properties): New module flexmember.
55169         * modules/flexmember, m4/flexmember.m4: New files.
55170
55171         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55172         inline functions that are identical with the old xnmalloc_inline,
55173         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55174         that we can avoid some unnecessary integer multiplications and
55175         divisions in the common case where the element size is known at
55176         compile time.
55177         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55178         needed.
55179         (xnboundedmalloc): Remove.
55180         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55181         arguments, for consistency with rest of this header.
55182         (xcharalloc): Rewrite using XNMALLOC.
55183         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55184         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55185         versions have been moved to lib/xalloc.h and renamed to be the
55186         non-*_inline versions.
55187         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55188         and xnrealloc functions, since those functions are now inline and
55189         now call us.
55190         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55191         renaming described above.
55192         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55193         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55194         captures the dependency in AC_C_INLINE.
55195
55196         New module canonicalize-lgpl, proposed by Charles Wilson in
55197         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55198         with a few small changes afterwards.
55199         * MODULES.html.sh (File system functions): New module
55200         canonicalize-lgpl.
55201         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55202         and canonicalize_file_name.
55203         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55204         * modules/canonicalize-lgpl: New files.
55205
55206 2006-11-05  Bruno Haible  <bruno@clisp.org>
55207
55208         * gnulib-tool (func_import, func_create_testdir): Create directories
55209         also for files in subdirectories of lib/.
55210
55211 2006-11-05  Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55214         ANSI C compliant.
55215
55216 2006-11-03  Bruno Haible  <bruno@clisp.org>
55217
55218         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55219         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55220         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55221         (xnboundedmalloc): New inline function.
55222         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55223         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55224         xmalloc.
55225         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55226         xmalloc.
55227         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55228         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55229         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55230         xmalloc.
55231         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55232         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55233         xmalloc.
55234         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55235         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55236         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55237         xmalloc.
55238         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55239         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55240         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55241         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55242         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55243         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55244         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55245
55246 2006-11-03  Bruno Haible  <bruno@clisp.org>
55247
55248         * lib/c-ctype.h [C++]: Define functions without name mangling.
55249         * lib/fwriteerror.h [C++]: Likewise.
55250         * lib/gcd.h [C++]: Likewise.
55251         * lib/linebreak.h [C++]: Likewise.
55252
55253 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55254
55255         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55256         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55257         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55258         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55259         Check for functions and headers just once.
55260         Check for declaration of canonicalize_file_name.
55261         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55262
55263 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55264
55265         * gnulib-tool (func_import): Fix typo in actioncmd.
55266
55267 2006-11-02  Bruno Haible  <bruno@clisp.org>
55268
55269         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55270         newline sequence in the Makefile.am snippet as a space, like "make"
55271         does.
55272         Reported by Roger Persson <perrog@gmail.com>.
55273
55274 2006-11-01  Bruno Haible  <bruno@clisp.org>
55275
55276         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55277         already declared in <string.h>.
55278         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55279
55280 2006-11-01  Bruno Haible  <bruno@clisp.org>
55281
55282         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55283         * lib/strcase.h: Include <string.h>.
55284         (strcasecmp): Define to rpl_strcasecmp here.
55285
55286 2006-11-01  Bruno Haible  <bruno@clisp.org>
55287
55288         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55289
55290 2006-11-01  Eric Blake  <ebb9@byu.net>
55291
55292         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55293
55294         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55295
55296 2006-10-29  Bruno Haible  <bruno@clisp.org>
55297
55298         Make it compile in C++ mode.
55299         * lib/full-write.c (full_rw): Add a cast.
55300
55301 2006-11-01  Bruno Haible  <bruno@clisp.org>
55302
55303         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55304         be POSIX compliant.
55305         Reported by Roger Persson <perrog@gmail.com>.
55306
55307 2006-11-01  Eric Blake  <ebb9@byu.net>
55308
55309         * lib/getopt_.h: Fix comments.
55310
55311 2006-10-31  Eric Blake  <ebb9@byu.net>
55312
55313         * modules/tmpdir (Depends-on): Add sys_stat.
55314         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55315         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55316         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55317         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55318         tempname.
55319
55320 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55321
55322         Avoid some C++ diagnostics reported by Bruno Haible.
55323         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55324         xmalloc.
55325         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55326         (struct slotvec): Move to top level.
55327         (quotearg_n_options): Rewrite to avoid xmalloc.
55328         * lib/xalloc.h (xcharalloc): New function.
55329         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55330         [defined __cplusplus]: Add function template that provides result
55331         type propagation.  This part of the change is from Bruno Haible.
55332
55333 2006-10-29  Bruno Haible  <bruno@clisp.org>
55334
55335         Make it compile in C++ mode.
55336         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55337         * lib/strnlen1.c (strnlen1): Cast memchr result.
55338         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55339         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55340         (create_temp_dir): Rename local variable 'template'.
55341         (compile_csharp_using_sscli): Add cast.
55342         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55343         * lib/findprog.c (find_in_path): Likewise.
55344         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55345         * lib/wait-process.c (register_slave_subprocess): Likewise.
55346
55347 2006-10-22  Bruno Haible  <bruno@clisp.org>
55348
55349         * modules/tsearch: New file.
55350         * lib/tsearch.h: New file.
55351         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55352         * m4/tsearch.m4: New file.
55353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55354
55355 2006-10-29  Eric Blake  <ebb9@byu.net>
55356
55357         * lib/arcfour.c: Assume config.h.
55358         * lib/arctwo.c: Likewise.
55359         * lib/base64.c: Likewise.
55360         * lib/check-version.c: Likewise.
55361         * lib/crc.c: Likewise.
55362         * lib/des.c: Likewise.
55363         * lib/gc-gnulib.c: Likewise.
55364         * lib/gc-libgcrypt.c: Likewise.
55365         * lib/gc-pbkdf2-sha1.c: Likewise.
55366         * lib/getaddrinfo.c: Likewise.
55367         * lib/getdelim.c: Likewise.
55368         * lib/getline.c: Likewise.
55369         * lib/hmac-md5.c: Likewise.
55370         * lib/hmac-sha1.c: Likewise.
55371         * lib/iconvme.c: Likewise.
55372         * lib/md2.c: Likewise.
55373         * lib/md4.c: Likewise.
55374         * lib/memxor.c: Likewise.
55375         * lib/read-file.c: Likewise.
55376         * lib/readline.c: Likewise.
55377         * lib/rijndael-alg-fst.c: Likewise.
55378         * lib/rijndael-api-fst.c: Likewise.
55379         * lib/xgetdomainname.c: Likewise.
55380
55381 2006-10-28  Eric Blake  <ebb9@byu.net>
55382
55383         * lib/xstrndup.c: Assume config.h.
55384
55385 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55386
55387         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55388         stat-macros.h is now for our own macros, whereas stat_h is for
55389         macros in the <sys/stat.h> name space.
55390         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55391         (STAT_MACROS_H): Remove.
55392         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55393         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55394         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55395         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55396         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55397         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55398         Move these macros to ...
55399         * lib/stat_.h: here.  Don't include stat-macros.h.
55400         * lib/canonicalize.c: Don't include stat-macros.h.
55401         * lib/chown.c: Likewise.
55402         * lib/euidaccess.c: Likewise.
55403         * lib/file-type.c: Likewise.
55404         * lib/filemode.c: Likewise.
55405         * lib/glob.c: Likewise.
55406         * lib/isapipe.c: Likewise.
55407         * lib/lchown.c: Likewise.
55408         * lib/lstat.c: Likewise.
55409         * lib/mkdir-p.c: Likewise.
55410         * lib/rmdir.c: Likewise.
55411         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55413         unless mkdir isn't declared, to speed up 'configure'.
55414         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55415         would define all the S_* symbols.
55416         * modules/canonicalize (Depends-on):
55417         Depend on sys_stat, not stat-macros.
55418         * modules/chown: Likewise.
55419         * modules/euidaccess: Likewise.
55420         * modules/filemode: Likewise.
55421         * modules/file-type: Likewise.
55422         * modules/glob: Likewise.
55423         * modules/isapipe: Likewise.
55424         * modules/lchown: Likewise.
55425         * modules/lstat: Likewise.
55426         * modules/mkancesdirs: Likewise.
55427         * modules/rmdir: Likewise.
55428         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55429         * modules/modechange: Likewise.
55430         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55431         (configure.ac): Remove gl_STAT_MACROS.
55432         * modules/sys_stat (Depends-on): Remove stat-macros.
55433
55434 2006-10-27  Bruno Haible  <bruno@clisp.org>
55435
55436         * m4/signed.m4: Remove file.
55437         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55438         invocation.
55439         * modules/vasnprintf (Files): Remove m4/signed.m4.
55440
55441 2006-10-27  Bruno Haible  <bruno@clisp.org>
55442
55443         Update to GNU gettext 0.16.
55444         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55445         m4/inttypes-h.m4, m4/signed.m4.
55446         * m4/gettext.m4: Update to GNU gettext 0.16.
55447         * m4/intl.m4: New file, from GNU gettext.
55448         * m4/intldir.m4: New file, from GNU gettext.
55449         * config/srclist.txt: Update
55450
55451 2006-10-27  Eric Blake  <ebb9@byu.net>
55452
55453         * MODULES.html.sh: Document tempname.
55454         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55455         dependencies.
55456         (Files): Move lib/tempname.c...
55457         * modules/tempname: ...to this new module.
55458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55459         (gl_PREREQ_TEMPNAME): Move...
55460         * m4/tempname.m4: ...to this new file.
55461         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55462         * modules/sys_stat (Depends-on): Add stat-macros.
55463         * lib/stat_.h (includes): Pick up stat macros.
55464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55465         if stat macros are broken.
55466         * lib/tempname.c (includes): No need to include "stat-macros.h".
55467         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55468         (direxists, __path_search) [!_LIBC]: Don't compile these in
55469         gnulib; the tmpdir module covers that.
55470         * lib/tempname.h: New file.
55471
55472 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         * COPYING: Explain how gnulib-tool converts licence headers.
55475         Almost all wording by Eric Blake.
55476
55477 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55478
55479         * lib/mbchar.h (is_basic_table): Make read-only.
55480         * lib/mbchar.c (is_basic_table): Likewise.
55481         Reported by John Darrington.
55482
55483 2006-10-25  Bruno Haible  <bruno@clisp.org>
55484
55485         * lib/progname.h (set_program_name): Undefine before defining.
55486
55487 2006-10-25  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55490         false for non-gcc C++ compilers.
55491         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55492
55493 2006-10-24  Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55496         iconv implementations like Irix iconv.
55497
55498 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         * modules/vararrays: New file.
55501         * m4/vararrays.m4: New file, taken from diffutils.
55502         * MODULES.html.sh: New module vararrays.
55503
55504 2006-10-24  Karl Berry  <karl@gnu.org>
55505
55506         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55507         Don't call GNU Unix.
55508
55509 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55510
55511         * users.txt: Add Libtool.
55512
55513         Sync from Libtool:
55514
55515         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55516
55517         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55518         to gnulib's policy of including config.h unconditionally.
55519
55520 2006-10-24  Bruno Haible  <bruno@clisp.org>
55521
55522         * modules/wcwidth (Files): Add m4/wint_t.m4.
55523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55524         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55525
55526 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55527
55528         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55529         to pacify GCC with some -W flags enabled.  Problem reported by
55530         Bruno Haible.
55531
55532 2006-10-24  Jim Meyering  <jim@meyering.net>
55533
55534         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55535         Reported by Karl Berry.
55536
55537 2006-10-23  Bruno Haible  <bruno@clisp.org>
55538
55539         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55540
55541 2006-10-24  Bruno Haible  <bruno@clisp.org>
55542
55543         * lib/gl_list.h: Use C comment style, not C++ comment style.
55544
55545 2006-10-23  Eric Blake  <ebb9@byu.net>
55546
55547         * lib/getaddrinfo.c (includes): Add missing include.
55548
55549 2006-10-23  Bruno Haible  <bruno@clisp.org>
55550             Paul Eggert  <eggert@cs.ucla.edu>
55551
55552         Ability to rename obstack_free.
55553         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55554         obstack_free.
55555         (obstack_free): Invoke the __obstack_free macro.
55556         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55557
55558 2006-10-23  Bruno Haible  <bruno@clisp.org>
55559             Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55562         __argc, __argv from the declaration. (They are defined as macros on
55563         mingw.)
55564
55565 2006-10-22  Bruno Haible  <bruno@clisp.org>
55566
55567         * doc/gnulib-intro.texi: New file.
55568         * doc/gnulib.texi: Include it.
55569
55570 2006-10-21  Bruno Haible  <bruno@clisp.org>
55571
55572         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55573         "Introduction", "Miscellanous Notes", "Particular Modules".
55574
55575 2006-10-21  Bruno Haible  <bruno@clisp.org>
55576
55577         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55578         Change mostlyclean-local rule to avoid sh syntax error from bash
55579         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55580
55581 2006-10-23  Jim Meyering  <jim@meyering.net>
55582
55583         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55584         in place of snprintf.
55585
55586         * modules/inttostr (Files): Add lib/uinttostr.c.
55587         * lib/uinttostr.c (inttostr): New file/function.
55588         * lib/inttostr.h (uinttostr): Declare.
55589         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55590         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55591         Add uinttostr.
55592         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55593
55594 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55595
55596         * lib/canonicalize.c (ELOOP): Define if not already defined.
55597         Problem reported by Bruno Haible in
55598         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55599
55600 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55601
55602         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55603         Problem reported by Perry Smith and Ville Laurikari.
55604
55605         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55606         uses.
55607
55608 2006-10-19  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55611         for mingw.
55612
55613 2006-10-19  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55616         Needed for mingw.
55617
55618 2006-10-19  Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55621
55622 2006-10-19  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55625         it.
55626
55627 2006-10-19  Bruno Haible  <bruno@clisp.org>
55628
55629         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55630         invocation.
55631
55632 2006-10-19  Bruno Haible  <bruno@clisp.org>
55633
55634         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55635         mountlist by default.
55636
55637 2006-10-16  Bruno Haible  <bruno@clisp.org>
55638
55639         * lib/c-strstr.c: Include c-strstr.h.
55640
55641 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55642
55643         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55644         in a slash.
55645
55646 2006-10-18  Bruno Haible  <bruno@clisp.org>
55647
55648         * lib/lock.h [C++]: Wrap definitions in extern "C".
55649
55650 2006-10-18  Bruno Haible  <bruno@clisp.org>
55651
55652         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55653         gl_LIBOBJS list.
55654
55655 2006-10-18  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55658
55659 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         * lib/xstrtol.h: Include gettext.h.
55662         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55663         Problem reported by Eric Blake.
55664         * modules/xstrtol (Depends-on): Add gettext-h.
55665
55666 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55667
55668         * lib/strftime.c (advance): New macro.
55669         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55670         incomplete type, so you can't add 0 to it.  Problem and patch
55671         reported by Eelco Dolstra for dietlibc.
55672
55673 2006-10-18  Jim Meyering  <jim@meyering.net>
55674
55675         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55676         type for a local, and rename it: s/up/user_proc/.
55677
55678 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55679
55680         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55681         READ_UTMP_USER_PROCESS.
55682         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55683
55684 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55685
55686         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55687         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55688
55689 2006-10-17  Eric Blake  <ebb9@byu.net>
55690
55691         * lib/sigprocmask.c (sigprocmask): Fix typo.
55692
55693         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55694
55695         * modules/clean-temp (Makefile.am): Don't add to make output...
55696         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55697         config.h.
55698
55699 2006-10-17  Bruno Haible  <bruno@clisp.org>
55700
55701         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55702         differently if DEFAULT_TEXT_DOMAIN is set.
55703
55704 2006-10-16  Bruno Haible  <bruno@clisp.org>
55705
55706         * lib/clean-temp.c: Include fwriteerror.h.
55707
55708 2006-10-16  Bruno Haible  <bruno@clisp.org>
55709
55710         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55711
55712 2006-10-16  Bruno Haible  <bruno@clisp.org>
55713
55714         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55715         * lib/sigprocmask.h: Include <sys/types.h>.
55716         (sigset_t): Use the system's definition if present.
55717
55718 2006-10-17  Eric Blake  <ebb9@byu.net>
55719
55720         * lib/xvasprintf.c (includes): Assume config.h.
55721         * lib/xasprintf.c (includes): Likewise.
55722
55723 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55726         at least as wide as intmax_t.
55727
55728 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55729
55730         (Imported from Automake.)
55731         * build-aux/gnupload: Update to version 1.1 of directive file.
55732
55733 2006-10-16  Eric Blake  <ebb9@byu.net>
55734
55735         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55736         match Automake 1.10a.
55737
55738 2006-10-14  Bruno Haible  <bruno@clisp.org>
55739
55740         * modules/sigprocmask: New file.
55741         * lib/sigprocmask.h: New file.
55742         * lib/sigprocmask.c: New file.
55743         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55744         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55745         request sigprocmask.o.
55746         (gl_PREREQ_SIGPROCMASK): New macro.
55747         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55748         (Depends-on): Add sigprocmask.
55749         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55750         gt_SIGNALBLOCKING. Test for 'raise' only once.
55751         * lib/fatal-signal.c: Include sigprocmask.h.
55752         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55753         unblock_fatal_signals): Define always.
55754         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55755         sigprocmask.
55756
55757 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55758
55759         Sync from Automake.
55760         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55761         which incorrectly sets the mode of an existing destination
55762         directory.  In some cases the unpatched install-sh could do the
55763         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55764         system.  We hope this is rare in practice, but it's clearly worth
55765         fixing.  Problem reported by Alex Unleashed in
55766         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55767         Also, don't bother to check for -m bugs unless we're using -m;
55768         suggested by Stepan Kasal.
55769
55770 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55771
55772         Sync from Automake.
55773         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55774         `-c' flag, so they appear at the same position as in %FASTDEP%
55775         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55776         which ignores unknown options only after the first non-option.
55777         Bug report against M4 by Nelson H. F. Beebe.
55778
55779 2006-10-13  Jim Meyering  <jim@meyering.net>
55780
55781         Fix a bug in yesterday's change.
55782         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55783         p->fts_statp->st_dev would be used uninitialized.
55784         Ensures that we always call fts_stat on the very first entry.
55785         Miklos Szeredi reported that find -xdev stopped working.
55786
55787 2006-10-12  Bruno Haible  <bruno@clisp.org>
55788
55789         * gnulib-tool (func_get_automake_snippet): Append an automatically
55790         computed EXTRA_DIST augmentation.
55791         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55792         * modules/alloca-opt (Makefile.am): Likewise.
55793         * modules/allocsa (Makefile.am): Likewise.
55794         * modules/arcfour (Makefile.am): Likewise.
55795         * modules/arctwo (Makefile.am): Likewise.
55796         * modules/argmatch (Makefile.am): Likewise.
55797         * modules/argz (Makefile.am): Likewise.
55798         * modules/atexit (Makefile.am): Likewise.
55799         * modules/backupfile (Makefile.am): Likewise.
55800         * modules/byteswap (Makefile.am): Likewise.
55801         * modules/c-strtod (Makefile.am): Likewise.
55802         * modules/c-strtold (Makefile.am): Likewise.
55803         * modules/calloc (Makefile.am): Likewise.
55804         * modules/canon-host (Makefile.am): Likewise.
55805         * modules/canonicalize (Makefile.am): Likewise.
55806         * modules/chdir-long (Makefile.am): Likewise.
55807         * modules/chdir-safer (Makefile.am): Likewise.
55808         * modules/check-version (Makefile.am): Likewise.
55809         * modules/chown (Makefile.am): Likewise.
55810         * modules/cloexec (Makefile.am): Likewise.
55811         * modules/close-stream (Makefile.am): Likewise.
55812         * modules/closeout (Makefile.am): Likewise.
55813         * modules/crc (Makefile.am): Likewise.
55814         * modules/csharpexec (Makefile.am): Likewise.
55815         * modules/cycle-check (Makefile.am): Likewise.
55816         * modules/des (Makefile.am): Likewise.
55817         * modules/dev-ino (Makefile.am): Likewise.
55818         * modules/dirfd (Makefile.am): Likewise.
55819         * modules/dirname (Makefile.am): Likewise.
55820         * modules/dup2 (Makefile.am): Likewise.
55821         * modules/eealloc (Makefile.am): Likewise.
55822         * modules/error (Makefile.am): Likewise.
55823         * modules/euidaccess (Makefile.am): Likewise.
55824         * modules/exclude (Makefile.am): Likewise.
55825         * modules/exitfail (Makefile.am): Likewise.
55826         * modules/fcntl-safer (Makefile.am): Likewise.
55827         * modules/fcntl (Makefile.am): Likewise.
55828         * modules/file-type (Makefile.am): Likewise.
55829         * modules/fileblocks (Makefile.am): Likewise.
55830         * modules/filemode (Makefile.am): Likewise.
55831         * modules/filenamecat (Makefile.am): Likewise.
55832         * modules/fnmatch (Makefile.am): Likewise.
55833         * modules/fopen-safer (Makefile.am): Likewise.
55834         * modules/fpending (Makefile.am): Likewise.
55835         * modules/fprintftime (Makefile.am): Likewise.
55836         * modules/free (Makefile.am): Likewise.
55837         * modules/fsusage (Makefile.am): Likewise.
55838         * modules/ftruncate (Makefile.am): Likewise.
55839         * modules/fts (Makefile.am): Likewise.
55840         * modules/gc-arcfour (Makefile.am): Likewise.
55841         * modules/gc-des (Makefile.am): Likewise.
55842         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55843         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55844         * modules/gc-md4 (Makefile.am): Likewise.
55845         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55846         * modules/gc-sha1 (Makefile.am): Likewise.
55847         * modules/gc (Makefile.am): Likewise.
55848         * modules/getaddrinfo (Makefile.am): Likewise.
55849         * modules/getcwd (Makefile.am): Likewise.
55850         * modules/getdelim (Makefile.am): Likewise.
55851         * modules/getdomainname (Makefile.am): Likewise.
55852         * modules/getgroups (Makefile.am): Likewise.
55853         * modules/gethostname (Makefile.am): Likewise.
55854         * modules/gethrxtime (Makefile.am): Likewise.
55855         * modules/getline (Makefile.am): Likewise.
55856         * modules/getloadavg (Makefile.am): Likewise.
55857         * modules/getlogin_r (Makefile.am): Likewise.
55858         * modules/getndelim2 (Makefile.am): Likewise.
55859         * modules/getopt (Makefile.am): Likewise.
55860         * modules/getpagesize (Makefile.am): Likewise.
55861         * modules/getpass-gnu (Makefile.am): Likewise.
55862         * modules/getpass (Makefile.am): Likewise.
55863         * modules/getsubopt (Makefile.am): Likewise.
55864         * modules/gettime (Makefile.am): Likewise.
55865         * modules/gettimeofday (Makefile.am): Likewise.
55866         * modules/getugroups (Makefile.am): Likewise.
55867         * modules/getusershell (Makefile.am): Likewise.
55868         * modules/glob (Makefile.am): Likewise.
55869         * modules/group-member (Makefile.am): Likewise.
55870         * modules/hard-locale (Makefile.am): Likewise.
55871         * modules/hash (Makefile.am): Likewise.
55872         * modules/hmac-md5 (Makefile.am): Likewise.
55873         * modules/hmac-sha1 (Makefile.am): Likewise.
55874         * modules/human (Makefile.am): Likewise.
55875         * modules/idcache (Makefile.am): Likewise.
55876         * modules/imaxabs (Makefile.am): Likewise.
55877         * modules/imaxdiv (Makefile.am): Likewise.
55878         * modules/inet_ntop (Makefile.am): Likewise.
55879         * modules/inet_pton (Makefile.am): Likewise.
55880         * modules/intprops (Makefile.am): Likewise.
55881         * modules/inttostr (Makefile.am): Likewise.
55882         * modules/inttypes (Makefile.am): Likewise.
55883         * modules/isapipe (Makefile.am): Likewise.
55884         * modules/javaversion (Makefile.am): Likewise.
55885         * modules/lchmod (Makefile.am): Likewise.
55886         * modules/lchown (Makefile.am): Likewise.
55887         * modules/localcharset (Makefile.am): Likewise.
55888         * modules/long-options (Makefile.am): Likewise.
55889         * modules/lstat (Makefile.am): Likewise.
55890         * modules/malloc (Makefile.am): Likewise.
55891         * modules/mathl (Makefile.am): Likewise.
55892         * modules/mbchar (Makefile.am): Likewise.
55893         * modules/md2 (Makefile.am): Likewise.
55894         * modules/md4 (Makefile.am): Likewise.
55895         * modules/md5 (Makefile.am): Likewise.
55896         * modules/memcasecmp (Makefile.am): Likewise.
55897         * modules/memchr (Makefile.am): Likewise.
55898         * modules/memcmp (Makefile.am): Likewise.
55899         * modules/memcoll (Makefile.am): Likewise.
55900         * modules/memcpy (Makefile.am): Likewise.
55901         * modules/memmem (Makefile.am): Likewise.
55902         * modules/memmove (Makefile.am): Likewise.
55903         * modules/mempcpy (Makefile.am): Likewise.
55904         * modules/memrchr (Makefile.am): Likewise.
55905         * modules/memset (Makefile.am): Likewise.
55906         * modules/memxor (Makefile.am): Likewise.
55907         * modules/mkancesdirs (Makefile.am): Likewise.
55908         * modules/mkdir-p (Makefile.am): Likewise.
55909         * modules/mkdir (Makefile.am): Likewise.
55910         * modules/mkdtemp (Makefile.am): Likewise.
55911         * modules/mkstemp (Makefile.am): Likewise.
55912         * modules/mktime (Makefile.am): Likewise.
55913         * modules/modechange (Makefile.am): Likewise.
55914         * modules/mountlist (Makefile.am): Likewise.
55915         * modules/nanosleep (Makefile.am): Likewise.
55916         * modules/obstack (Makefile.am): Likewise.
55917         * modules/openat (Makefile.am): Likewise.
55918         * modules/pagealign_alloc (Makefile.am): Likewise.
55919         * modules/pathmax (Makefile.am): Likewise.
55920         * modules/physmem (Makefile.am): Likewise.
55921         * modules/poll (Makefile.am): Likewise.
55922         * modules/posixtm (Makefile.am): Likewise.
55923         * modules/posixver (Makefile.am): Likewise.
55924         * modules/putenv (Makefile.am): Likewise.
55925         * modules/quote (Makefile.am): Likewise.
55926         * modules/quotearg (Makefile.am): Likewise.
55927         * modules/raise (Makefile.am): Likewise.
55928         * modules/read-file (Makefile.am): Likewise.
55929         * modules/readline (Makefile.am): Likewise.
55930         * modules/readlink (Makefile.am): Likewise.
55931         * modules/readtokens (Makefile.am): Likewise.
55932         * modules/readutmp (Makefile.am): Likewise.
55933         * modules/realloc (Makefile.am): Likewise.
55934         * modules/regex (Makefile.am): Likewise.
55935         * modules/rename-dest-slash (Makefile.am): Likewise.
55936         * modules/rename (Makefile.am): Likewise.
55937         * modules/rijndael (Makefile.am): Likewise.
55938         * modules/rmdir (Makefile.am): Likewise.
55939         * modules/rpmatch (Makefile.am): Likewise.
55940         * modules/safe-read (Makefile.am): Likewise.
55941         * modules/safe-write (Makefile.am): Likewise.
55942         * modules/same-inode (Makefile.am): Likewise.
55943         * modules/same (Makefile.am): Likewise.
55944         * modules/save-cwd (Makefile.am): Likewise.
55945         * modules/savedir (Makefile.am): Likewise.
55946         * modules/setenv (Makefile.am): Likewise.
55947         * modules/settime (Makefile.am): Likewise.
55948         * modules/sha1 (Makefile.am): Likewise.
55949         * modules/sig2str (Makefile.am): Likewise.
55950         * modules/snprintf (Makefile.am): Likewise.
55951         * modules/stat-macros (Makefile.am): Likewise.
55952         * modules/stat-time (Makefile.am): Likewise.
55953         * modules/stdbool (Makefile.am): Likewise.
55954         * modules/stdint (Makefile.am): Likewise.
55955         * modules/stdlib-safer (Makefile.am): Likewise.
55956         * modules/stpcpy (Makefile.am): Likewise.
55957         * modules/stpncpy (Makefile.am): Likewise.
55958         * modules/strcase (Makefile.am): Likewise.
55959         * modules/strcasestr (Makefile.am): Likewise.
55960         * modules/strchrnul (Makefile.am): Likewise.
55961         * modules/strcspn (Makefile.am): Likewise.
55962         * modules/strdup (Makefile.am): Likewise.
55963         * modules/strerror (Makefile.am): Likewise.
55964         * modules/strftime (Makefile.am): Likewise.
55965         * modules/strndup (Makefile.am): Likewise.
55966         * modules/strnlen (Makefile.am): Likewise.
55967         * modules/strpbrk (Makefile.am): Likewise.
55968         * modules/strsep (Makefile.am): Likewise.
55969         * modules/strstr (Makefile.am): Likewise.
55970         * modules/strtod (Makefile.am): Likewise.
55971         * modules/strtoimax (Makefile.am): Likewise.
55972         * modules/strtok_r (Makefile.am): Likewise.
55973         * modules/strtol (Makefile.am): Likewise.
55974         * modules/strtoll (Makefile.am): Likewise.
55975         * modules/strtoul (Makefile.am): Likewise.
55976         * modules/strtoull (Makefile.am): Likewise.
55977         * modules/strtoumax (Makefile.am): Likewise.
55978         * modules/strverscmp (Makefile.am): Likewise.
55979         * modules/sys_socket (Makefile.am): Likewise.
55980         * modules/sys_stat (Makefile.am): Likewise.
55981         * modules/sysexits (Makefile.am): Likewise.
55982         * modules/time_r (Makefile.am): Likewise.
55983         * modules/timegm (Makefile.am): Likewise.
55984         * modules/timespec (Makefile.am): Likewise.
55985         * modules/tmpfile-safer (Makefile.am): Likewise.
55986         * modules/trim (Makefile.am): Likewise.
55987         * modules/unistd-safer (Makefile.am): Likewise.
55988         * modules/unlinkdir (Makefile.am): Likewise.
55989         * modules/unlocked-io (Makefile.am): Likewise.
55990         * modules/userspec (Makefile.am): Likewise.
55991         * modules/utime (Makefile.am): Likewise.
55992         * modules/utimecmp (Makefile.am): Likewise.
55993         * modules/utimens (Makefile.am): Likewise.
55994         * modules/vasnprintf (Makefile.am): Likewise.
55995         * modules/vasprintf (Makefile.am): Likewise.
55996         * modules/vsnprintf (Makefile.am): Likewise.
55997         * modules/xalloc (Makefile.am): Likewise.
55998         * modules/xgetcwd (Makefile.am): Likewise.
55999         * modules/xnanosleep (Makefile.am): Likewise.
56000         * modules/xreadlink (Makefile.am): Likewise.
56001         * modules/xstrtod (Makefile.am): Likewise.
56002         * modules/xstrtol (Makefile.am): Likewise.
56003         * modules/xstrtold (Makefile.am): Likewise.
56004         * modules/yesno (Makefile.am): Likewise.
56005         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56006
56007 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56008
56009         * modules/error (Makefile.am): Distribute files through
56010         EXTRA_DIST, not lib_SOURCES.
56011
56012 2006-10-12  Eric Blake  <ebb9@byu.net>
56013
56014         * modules/error (Makefile.am): Distribute files in /lib.
56015         * modules/obstack (Makefile.am): Likewise.
56016
56017 2006-10-12  Bruno Haible  <bruno@clisp.org>
56018
56019         * modules/acl (Makefile.am): Distribute all files in lib/ through
56020         EXTRA_DIST.
56021         * modules/arcfour (Makefile.am): Likewise.
56022         * modules/arctwo (Makefile.am): Likewise.
56023         * modules/argmatch (Makefile.am): Likewise.
56024         * modules/argz (Makefile.am): Likewise.
56025         * modules/atexit (Makefile.am): Likewise.
56026         * modules/backupfile (Makefile.am): Likewise.
56027         * modules/c-strtod (Makefile.am): Likewise.
56028         * modules/c-strtold (Makefile.am): Likewise.
56029         * modules/calloc (Makefile.am): Likewise.
56030         * modules/canon-host (Makefile.am): Likewise.
56031         * modules/canonicalize (Makefile.am): Likewise.
56032         * modules/chdir-long (Makefile.am): Likewise.
56033         * modules/chdir-safer (Makefile.am): Likewise.
56034         * modules/check-version (Makefile.am): Likewise.
56035         * modules/chown (Makefile.am): Likewise.
56036         * modules/cloexec (Makefile.am): Likewise.
56037         * modules/close-stream (Makefile.am): Likewise.
56038         * modules/closeout (Makefile.am): Likewise.
56039         * modules/crc (Makefile.am): Likewise.
56040         * modules/cycle-check (Makefile.am): Likewise.
56041         * modules/des (Makefile.am): Likewise.
56042         * modules/dirfd (Makefile.am): Likewise.
56043         * modules/dirname (Makefile.am): Likewise.
56044         * modules/dup2 (Makefile.am): Likewise.
56045         * modules/euidaccess (Makefile.am): Likewise.
56046         * modules/exclude (Makefile.am): Likewise.
56047         * modules/exitfail (Makefile.am): Likewise.
56048         * modules/fcntl-safer (Makefile.am): Likewise.
56049         * modules/file-type (Makefile.am): Likewise.
56050         * modules/fileblocks (Makefile.am): Likewise.
56051         * modules/filemode (Makefile.am): Likewise.
56052         * modules/filenamecat (Makefile.am): Likewise.
56053         * modules/fnmatch (Makefile.am): Likewise.
56054         * modules/fopen-safer (Makefile.am): Likewise.
56055         * modules/fpending (Makefile.am): Likewise.
56056         * modules/fprintftime (Makefile.am): Likewise.
56057         * modules/free (Makefile.am): Likewise.
56058         * modules/fsusage (Makefile.am): Likewise.
56059         * modules/ftruncate (Makefile.am): Likewise.
56060         * modules/fts (Makefile.am): Likewise.
56061         * modules/gc (Makefile.am): Likewise.
56062         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56063         * modules/getaddrinfo (Makefile.am): Likewise.
56064         * modules/getcwd (Makefile.am): Likewise.
56065         * modules/getdelim (Makefile.am): Likewise.
56066         * modules/getdomainname (Makefile.am): Likewise.
56067         * modules/getgroups (Makefile.am): Likewise.
56068         * modules/gethostname (Makefile.am): Likewise.
56069         * modules/gethrxtime (Makefile.am): Likewise.
56070         * modules/getline (Makefile.am): Likewise.
56071         * modules/getloadavg (Makefile.am): Likewise.
56072         * modules/getlogin_r (Makefile.am): Likewise.
56073         * modules/getopt (Makefile.am): Likewise.
56074         * modules/getpass (Makefile.am): Likewise.
56075         * modules/getpass-gnu (Makefile.am): Likewise.
56076         * modules/getsubopt (Makefile.am): Likewise.
56077         * modules/gettime (Makefile.am): Likewise.
56078         * modules/gettimeofday (Makefile.am): Likewise.
56079         * modules/getugroups (Makefile.am): Likewise.
56080         * modules/getusershell (Makefile.am): Likewise.
56081         * modules/glob (Makefile.am): Likewise.
56082         * modules/group-member (Makefile.am): Likewise.
56083         * modules/hard-locale (Makefile.am): Likewise.
56084         * modules/hash (Makefile.am): Likewise.
56085         * modules/hmac-md5 (Makefile.am): Likewise.
56086         * modules/hmac-sha1 (Makefile.am): Likewise.
56087         * modules/human (Makefile.am): Likewise.
56088         * modules/idcache (Makefile.am): Likewise.
56089         * modules/imaxabs (Makefile.am): Likewise.
56090         * modules/imaxdiv (Makefile.am): Likewise.
56091         * modules/inet_ntop (Makefile.am): Likewise.
56092         * modules/inet_pton (Makefile.am): Likewise.
56093         * modules/inttostr (Makefile.am): Likewise.
56094         * modules/isapipe (Makefile.am): Likewise.
56095         * modules/lchown (Makefile.am): Likewise.
56096         * modules/long-options (Makefile.am): Likewise.
56097         * modules/lstat (Makefile.am): Likewise.
56098         * modules/malloc (Makefile.am): Likewise.
56099         * modules/mathl (Makefile.am): Likewise.
56100         * modules/mbchar (Makefile.am): Likewise.
56101         * modules/md2 (Makefile.am): Likewise.
56102         * modules/md4 (Makefile.am): Likewise.
56103         * modules/md5 (Makefile.am): Likewise.
56104         * modules/memcasecmp (Makefile.am): Likewise.
56105         * modules/memchr (Makefile.am): Likewise.
56106         * modules/memcmp (Makefile.am): Likewise.
56107         * modules/memcoll (Makefile.am): Likewise.
56108         * modules/memcpy (Makefile.am): Likewise.
56109         * modules/memmem (Makefile.am): Likewise.
56110         * modules/memmove (Makefile.am): Likewise.
56111         * modules/mempcpy (Makefile.am): Likewise.
56112         * modules/memrchr (Makefile.am): Likewise.
56113         * modules/memset (Makefile.am): Likewise.
56114         * modules/memxor (Makefile.am): Likewise.
56115         * modules/mkancesdirs (Makefile.am): Likewise.
56116         * modules/mkdir (Makefile.am): Likewise.
56117         * modules/mkdir-p (Makefile.am): Likewise.
56118         * modules/mkdtemp (Makefile.am): Likewise.
56119         * modules/mkstemp (Makefile.am): Likewise.
56120         * modules/mktime (Makefile.am): Likewise.
56121         * modules/modechange (Makefile.am): Likewise.
56122         * modules/mountlist (Makefile.am): Likewise.
56123         * modules/nanosleep (Makefile.am): Likewise.
56124         * modules/openat (Makefile.am): Likewise.
56125         * modules/pagealign_alloc (Makefile.am): Likewise.
56126         * modules/physmem (Makefile.am): Likewise.
56127         * modules/poll (Makefile.am): Likewise.
56128         * modules/posixtm (Makefile.am): Likewise.
56129         * modules/posixver (Makefile.am): Likewise.
56130         * modules/putenv (Makefile.am): Likewise.
56131         * modules/quote (Makefile.am): Likewise.
56132         * modules/quotearg (Makefile.am): Likewise.
56133         * modules/raise (Makefile.am): Likewise.
56134         * modules/read-file (Makefile.am): Likewise.
56135         * modules/readline (Makefile.am): Likewise.
56136         * modules/readlink (Makefile.am): Likewise.
56137         * modules/readtokens (Makefile.am): Likewise.
56138         * modules/readutmp (Makefile.am): Likewise.
56139         * modules/realloc (Makefile.am): Likewise.
56140         * modules/regex (Makefile.am): Likewise.
56141         * modules/rename (Makefile.am): Likewise.
56142         * modules/rename-dest-slash (Makefile.am): Likewise.
56143         * modules/rijndael (Makefile.am): Likewise.
56144         * modules/rmdir (Makefile.am): Likewise.
56145         * modules/rpmatch (Makefile.am): Likewise.
56146         * modules/safe-read (Makefile.am): Likewise.
56147         * modules/safe-write (Makefile.am): Likewise.
56148         * modules/same (Makefile.am): Likewise.
56149         * modules/save-cwd (Makefile.am): Likewise.
56150         * modules/savedir (Makefile.am): Likewise.
56151         * modules/setenv (Makefile.am): Likewise.
56152         * modules/settime (Makefile.am): Likewise.
56153         * modules/sha1 (Makefile.am): Likewise.
56154         * modules/sig2str (Makefile.am): Likewise.
56155         * modules/snprintf (Makefile.am): Likewise.
56156         * modules/stdlib-safer (Makefile.am): Likewise.
56157         * modules/stpcpy (Makefile.am): Likewise.
56158         * modules/stpncpy (Makefile.am): Likewise.
56159         * modules/strcase (Makefile.am): Likewise.
56160         * modules/strcasestr (Makefile.am): Likewise.
56161         * modules/strchrnul (Makefile.am): Likewise.
56162         * modules/strcspn (Makefile.am): Likewise.
56163         * modules/strdup (Makefile.am): Likewise.
56164         * modules/strerror (Makefile.am): Likewise.
56165         * modules/strftime (Makefile.am): Likewise.
56166         * modules/strndup (Makefile.am): Likewise.
56167         * modules/strnlen (Makefile.am): Likewise.
56168         * modules/strpbrk (Makefile.am): Likewise.
56169         * modules/strsep (Makefile.am): Likewise.
56170         * modules/strstr (Makefile.am): Likewise.
56171         * modules/strtod (Makefile.am): Likewise.
56172         * modules/strtoimax (Makefile.am): Likewise.
56173         * modules/strtok_r (Makefile.am): Likewise.
56174         * modules/strtol (Makefile.am): Likewise.
56175         * modules/strtoll (Makefile.am): Likewise.
56176         * modules/strtoul (Makefile.am): Likewise.
56177         * modules/strtoull (Makefile.am): Likewise.
56178         * modules/strtoumax (Makefile.am): Likewise.
56179         * modules/strverscmp (Makefile.am): Likewise.
56180         * modules/time_r (Makefile.am): Likewise.
56181         * modules/timegm (Makefile.am): Likewise.
56182         * modules/tmpfile-safer (Makefile.am): Likewise.
56183         * modules/unistd-safer (Makefile.am): Likewise.
56184         * modules/unlinkdir (Makefile.am): Likewise.
56185         * modules/userspec (Makefile.am): Likewise.
56186         * modules/utime (Makefile.am): Likewise.
56187         * modules/utimecmp (Makefile.am): Likewise.
56188         * modules/utimens (Makefile.am): Likewise.
56189         * modules/vasnprintf (Makefile.am): Likewise.
56190         * modules/vasprintf (Makefile.am): Likewise.
56191         * modules/vsnprintf (Makefile.am): Likewise.
56192         * modules/xalloc (Makefile.am): Likewise.
56193         * modules/xgetcwd (Makefile.am): Likewise.
56194         * modules/xnanosleep (Makefile.am): Likewise.
56195         * modules/xreadlink (Makefile.am): Likewise.
56196         * modules/xstrtod (Makefile.am): Likewise.
56197         * modules/xstrtol (Makefile.am): Likewise.
56198         * modules/xstrtold (Makefile.am): Likewise.
56199         * modules/yesno (Makefile.am): Likewise.
56200
56201 2006-10-12  Jim Meyering  <jim@meyering.net>
56202
56203         * m4/getloadavg.m4: Revert the change below.
56204
56205         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56206         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56207         fail with a symlink, which is what coreutils' ./bootstrap now
56208         creates by default.
56209
56210 2006-10-12  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56213         mingw.
56214         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56215         MSVC and mingw explicitly.
56216
56217 2006-10-11  Simon Josefsson  <jas@extundo.com>
56218             Bruno Haible  <bruno@clisp.org>
56219
56220         Add support for multiple gnulib-tool invocations in the scope of a
56221         single configure.ac file.
56222         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56223         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56224         with the same contents as the _LIBADD variable.
56225         (func_emit_initmacro_start, func_emit_initmacro_end,
56226         func_emit_initmacro_done): New functions.
56227         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56228         gl_LIBOBJS and gl_LTLIBOBJS.
56229
56230 2006-10-11  Bruno Haible  <bruno@clisp.org>
56231
56232         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56233         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56234         autoreconf. Instead, invoke autopoint explicitly but move back the
56235         *.m4 files from gnulib.
56236
56237 2006-10-11  Bruno Haible  <bruno@clisp.org>
56238
56239         * gnulib-tool (func_usage): Make module names after --create-testdir
56240         optional.
56241         (func_create_testdir): If no module was specified, use nearly all
56242         modules.
56243
56244 2006-10-12  Jim Meyering  <jim@meyering.net>
56245
56246         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56247         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56248         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56249         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56250         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56251         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56252         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56253         (fts_set_stat_required): New function.
56254         (fts_open): Defer the calls to fts_stat, if possible or requested.
56255         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56256         into fts_stat itself.
56257         (fts_read): Perform any required (deferred) fts_stat call.
56258         (fts_build): Likewise, for the directory we're about to open and read.
56259         In the readdir loop, carefully decide whether each entry will require
56260         an eventual call to fts_stat, using dirent.d_type info if available.
56261         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56262         a command line argument into this function.  Update all callers.
56263         Map a return value of FTS_DOT to FTS_D for a command line argument.
56264         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56265         Thanks to Miklos Szeredi for his tenacity and for the initial
56266         bug report about "find" failing on a FUSE-based file system.
56267
56268         * lib/fts.c (fts_open): Use consistent indentation.
56269
56270 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56271
56272         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56273         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56274         reported by Jim Meyering.  All uses of cache variables renamed
56275         to match Autoconf's.
56276         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56277         the other one.
56278
56279         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56280         Fix misspelling in diagnostic.
56281
56282 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56283
56284         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56285         defined.  Problem reported by Matthew Woehlke.
56286
56287         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56288         Add support for Tandem NonStop R series.
56289         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56290         Use new macro.
56291
56292         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56293         (has_trailing_slash): Omit size arg; all callers changed.
56294         Omit 'inline', since it doesn't help performance and we'd
56295         need to configure it.
56296         Don't count //, ///, etc. as having a trailing slash.
56297         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56298         (rpl_rename_dest_slash): On failure, use rename's errno rather
56299         than (in some cases) an incorrect or junk errno.
56300         Simplify code by removing need to compute length; this does
56301         cause it to make two passes instead of one over the file name,
56302         but it's worth it.
56303
56304         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56305         change, since Autoconf's version may no longer be appropriate now
56306         that we are using CVS Autoconf's version.  Add support for Tandem.
56307
56308 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56309             Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56312         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56313         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56314         gl_AC_TYPE_LONG_LONG.
56315
56316         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56317         instead of HAVE_LONG_LONG.
56318         * lib/printf-args.c (printf_fetchargs): Likewise.
56319         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56320         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56321         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56322         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56323         gl_AC_TYPE_LONG_LONG.
56324
56325 2006-10-11  Bruno Haible  <bruno@clisp.org>
56326
56327         * m4/longlong.m4: Add comments.
56328         * m4/ulonglong.m4: Likewise.
56329
56330 2006-10-10  Bruno Haible  <bruno@clisp.org>
56331
56332         Make it possible to #define stpcpy, strdup to aliases.
56333         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56334         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56335
56336 2006-10-10  Bruno Haible  <bruno@clisp.org>
56337
56338         Make it possible to #define gcd to an alias.
56339         * lib/gcd.c: Include config.h.
56340
56341 2006-10-10  Bruno Haible  <bruno@clisp.org>
56342
56343         Make it possible to #define c_isascii to an alias.
56344         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56345         defined. Undefine the macros before defining them, to avoid gcc
56346         warnings.
56347         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56348         define NO_C_CTYPE_MACROS early.
56349
56350 2006-10-10  Bruno Haible  <bruno@clisp.org>
56351
56352         Make it possible to #define set_program_name to an alias.
56353         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56354         ENABLE_RELOCATABLE early.
56355
56356 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56357
56358         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56359         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56360         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56361         More generally, don't assume that 64-bit signed int is available
56362         if unsigned int is, and vice versa.
56363         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56364         unsigned symbols, not on their signed counterparts.
56365         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56366         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56367         (UINT64_C, UINTMAX_C):
56368         Likewise.
56369         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56370         unsigned counterparts.
56371         (Have_long_long, Unsigned): New macros.
56372         (Int): Renamed from INT.
56373         (strtoimax): Use the new macros.
56374         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56375         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56376         * modules/inttypes (inttypes.h): Substitute
56377         HAVE_UNSIGNED_LONG_LONG_INT.
56378         * modules/stdint (stdint.h): Likewise.
56379         (Files): Add m4/ulonglong.m4.
56380
56381 2006-10-10  Bruno Haible  <bruno@clisp.org>
56382
56383         Fix a gcc -Wshadow warning.
56384         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56385         to 'bucket'.
56386         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56387         gl_linked_indexof_from_to): Likewise.
56388         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56389         Likewise.
56390         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56391         Likewise.
56392         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56393         Reported by Eric Blake.
56394
56395 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56396
56397         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56398         for NetBSD.  Problem reported by Bruno Haible.
56399
56400 2006-10-09  Jim Meyering  <jim@meyering.net>
56401
56402         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56403         Patch from Bruno Haible.
56404
56405 2006-10-09  Jim Meyering  <jim@meyering.net>
56406
56407         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56408         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56409         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56410
56411 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56412
56413         Don't include <config.h> twice; this doesn't work in some cases,
56414         e.g., when config.h has "#define intmax_t long long int" and
56415         we include <config.h>, <inttypes.h>, <config.h> in that order.
56416         Problem reported by Matthew Woehlke in:
56417         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56418         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56419         * lib/fts-cycle.c: Don't include config.h.
56420         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56421         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56422         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56423         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56424         inttypes.h.
56425         * lib/xstrtoumax.c: Likewise.
56426         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56427         __strtol and the like, so that this module is more like its siblings.
56428         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56429         Remove; no longer needed now that we assume gnulib inttypes.h.
56430
56431 2006-10-08  Bruno Haible  <bruno@clisp.org>
56432
56433         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56434         option.
56435
56436 2006-10-07  Jim Meyering  <jim@meyering.net>
56437
56438         * modules/inttypes (inttypes.h): Revert what seems to have been
56439         an inadvertent part of today's change: use "|", not "/" in the
56440         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56441
56442 2006-10-07  Bruno Haible  <bruno@clisp.org>
56443
56444         * modules/sublist: New file.
56445
56446 2006-10-07  Bruno Haible  <bruno@clisp.org>
56447
56448         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56449         * modules/argz (argz.h): Likewise.
56450         * modules/arpa_inet (arpa/inet.h): Likewise.
56451         * modules/byteswap (byteswap.h): Likewise.
56452         * modules/configmake (configmake.h): Likewise.
56453         * modules/fcntl (fcntl.h): Likewise.
56454         * modules/fnmatch (fnmatch.h): Likewise.
56455         * modules/getopt (getopt.h): Likewise.
56456         * modules/glob (glob.h): Likewise.
56457         * modules/inttypes (inttypes.h): Likewise.
56458         * modules/netinet_in (netinet/in.h): Likewise.
56459         * modules/poll (poll.h): Likewise.
56460         * modules/stdbool (stdbool.h): Likewise.
56461         * modules/stdint (stdint.h): Likewise.
56462         * modules/sys_select (sys/select.h): Likewise.
56463         * modules/sys_socket (sys/socket.h): Likewise.
56464         * modules/sys_stat (sys/stat.h): Likewise.
56465         * modules/sysexits (sysexits.h): Likewise.
56466         * modules/unistd (unistd.h): Likewise.
56467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56468         Add a "DO NOT EDIT" comment to the generated file.
56469         (func_import): Likewise for gnulib-comp.m4.
56470
56471 2006-10-07  Bruno Haible  <bruno@clisp.org>
56472
56473         * lib/gl_sublist.h: New file.
56474         * lib/gl_sublist.c: New file.
56475
56476 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56479         name (relative to the original working directory) and the file
56480         name component (relative to the temporary working directory).  All
56481         callers changed.
56482         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56483         * lib/mkdir-p.c (make_dir_parents): Likewise.
56484         * lib/mkdir-p.h (make_dir_parents): Likewise.
56485
56486 2006-10-06  Eric Blake  <ebb9@byu.net>
56487
56488         Define several macros for use by the clean-temp module.
56489         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56490         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56491         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56492
56493         * lib/clean-temp.h (close_stream_temp): New declaration.
56494         * lib/clean-temp.c (includes): Pull in headers according to what
56495         other modules are in use.
56496         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56497
56498 2006-10-06  Bruno Haible  <bruno@clisp.org>
56499
56500         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56501         instead of fopen, fwriteerror.
56502
56503 2006-10-06  Bruno Haible  <bruno@clisp.org>
56504
56505         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56506         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56507         int.
56508         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56509         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56510         Return an error indicator.
56511         Suggested by Eric Blake.
56512
56513 2006-10-06  Bruno Haible  <bruno@clisp.org>
56514
56515         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56516         Reported by Eric Blake.
56517
56518 2006-10-06  Bruno Haible  <bruno@clisp.org>
56519
56520         * modules/closeout (Description): Mention stderr too.
56521
56522 2006-10-06  Bruno Haible  <bruno@clisp.org>
56523         and Paul Eggert  <eggert@cs.ucla.edu>
56524
56525         * lib/closeout.c (close_stdout): Also close stderr.
56526         * lib/closeout.h: Update comment.
56527
56528 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56529
56530         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56531         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56532         * lib/dirchownmod.c: Include lchown.h.
56533         * lib/lchown.c: Don't include files that lchown.h now includes.
56534         Don't declare chown, since lchown.h now does that.
56535         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56536         (lchown): Define to rpl_chown if lchown is declared but
56537         does not exist.  Declare using a prototype if lchown is not
56538         declared.  Add a copyright notice.
56539         * lib/mkstemp.h: Include <unistd.h>.
56540         * lib/openat.c: Include lchown.h.
56541
56542         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56543         we now test for that separately.
56544         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56545         rather than O_NOFOLLOW, when testing whether it's possible to
56546         avoid a race condition reliably.
56547         * lib/savewd.c (savewd_chdir): Likewise.
56548
56549         Remove macros that are no longer needed now that stdint.h is
56550         reliable.
56551         * lib/fsusage.c (UINTMAX_MAX): Remove.
56552         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56553         * lib/utimecmp.c (SIZE_MAX): Remove.
56554
56555         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56556
56557         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56558         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56559         O_NOATIME works.
56560
56561 2006-10-05  Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/gl_list.h (gl_sortedlist_search_from_to,
56564         gl_sortedlist_indexof_from_to): New declarations.
56565         (gl_list_implementation): New fields sortedlist_search_from_to,
56566         sortedlist_indexof_from_to.
56567         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56568         inline functions.
56569         * lib/gl_list.c (gl_sortedlist_search_from_to,
56570         gl_sortedlist_indexof_from_to): New functions.
56571         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56572         function.
56573         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56574         (gl_array_sortedlist_search_from_to): New function.
56575         (gl_array_list_implementation): Update.
56576         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56577         function.
56578         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56579         (gl_carray_sortedlist_search_from_to): New function.
56580         (gl_carray_list_implementation): Update.
56581         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56582         gl_linked_sortedlist_indexof_from_to): New functions.
56583         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56584         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56585         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56586         gl_tree_sortedlist_indexof_from_to): New functions.
56587         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56588         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56589         Update.
56590         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56591         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56592         Update.
56593
56594 2006-10-05  Bruno Haible  <bruno@clisp.org>
56595
56596         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56597         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56598         (struct gl_list_implementation): Add fields search_from_to,
56599         indexof_from_to. Remove fields search, indexof.
56600         (gl_list_search): Use the search_from_to method.
56601         (gl_list_search_from, gl_list_search_from_to): New functions.
56602         (gl_list_indexof): Use the indexof_from_to method.
56603         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56604         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56605         (gl_list_search_from, gl_list_search_from_to): New functions.
56606         (gl_list_indexof): Use the indexof_from_to method.
56607         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56608         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56609         gl_array_indexof. Add start_index, end_index arguments.
56610         (gl_array_search_from_to): Renamed from gl_array_search. Add
56611         start_index, end_index arguments.
56612         (gl_array_remove, gl_array_list_implementation): Update.
56613         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56614         gl_carray_indexof. Add start_index, end_index arguments.
56615         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56616         start_index, end_index arguments.
56617         (gl_carray_remove, gl_carray_list_implementation): Update.
56618         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56619         gl_linked_search. Add start_index, end_index arguments.
56620         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56621         start_index, end_index arguments.
56622         (gl_linked_remove): Update.
56623         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56624         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56625         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56626         field to 'size_t'.
56627         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56628         gl_tree_search. Add start_index, end_index arguments.
56629         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56630         start_index, end_index arguments.
56631         (gl_tree_remove): Update.
56632         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56633         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56634         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56635         function.
56636         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56637         gl_tree_search. Add start_index, end_index arguments.
56638         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56639         start_index, end_index arguments.
56640         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56641         Update.
56642         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56643
56644 2006-10-05  Bruno Haible  <bruno@clisp.org>
56645
56646         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56647
56648         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56649         fwriteerror_temp): New declarations.
56650         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56651         (descriptors): New variable.
56652         (cleanup): First, close the descriptors.
56653         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56654         fclose_temp, fwriteerror_temp): New functions.
56655
56656 2006-10-04  Jim Meyering  <jim@meyering.net>
56657
56658         * lib/fts.c (fts_open): Tiny comment change.
56659
56660 2006-10-04  Bruno Haible  <bruno@clisp.org>
56661
56662         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56663         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56664         gl_LOCK_BODY.
56665         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56666         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56667         gl_LOCK_EARLY_BODY.
56668         (gl_LOCK): Require gl_LOCK_BODY.
56669
56670 2006-10-04  Bruno Haible  <bruno@clisp.org>
56671
56672         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56673         (gl_oset_search_atleast): New declaration.
56674         (struct gl_oset_implementation): Add field 'search_atleast'.
56675         (gl_oset_search_atleast): New inline function.
56676         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56677         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56678         (gl_array_oset_implementation): Update.
56679         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56680         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56681         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56682
56683 2006-10-04  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56686
56687 2006-10-03  Bruno Haible  <bruno@clisp.org>
56688
56689         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56690         from gl_avltreehash_list_implementation.
56691
56692 2006-10-03  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/gl_oset.c (gl_oset_add): Fix return type.
56695
56696 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56697
56698         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56699
56700 2006-10-02  Eric Blake  <ebb9@byu.net>
56701
56702         * modules/strnlen (Depends-on): Add extensions.
56703
56704 2006-10-02  Eric Blake  <ebb9@byu.net>
56705
56706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56707         definition in 2.60+.
56708
56709 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56710
56711         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56712         checks.
56713
56714 2006-10-02  Bruno Haible  <bruno@clisp.org>
56715
56716         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56717         to the AUTOMAKE_OPTIONS.
56718         Reported by Jim Meyering.
56719
56720 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56721
56722         Work around bug in Solaris 10 /proc file system:
56723         /proc/self/fd/NNN/.. isn't the parent directory of
56724         the directory whose file descriptor is NNN.  This needs to
56725         be worked around at run time, not compile time, since a
56726         program might be built on Solaris 8, where things work, and
56727         run on Solaris 10.
56728         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56729         to use the following interface instead:
56730         (OPENAT_BUFFER_SIZE): New macro.
56731         (openat_proc_name): New function.
56732         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56733         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56734         Likewise.
56735         * lib/openat-proc.c: New file.
56736         * modules/openat (Files): Add lib/openat-proc.c.
56737         (Depends-on): Add same-inode, stdbool.
56738         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56739
56740 2006-09-29  Bruno Haible  <bruno@clisp.org>
56741
56742         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56743         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56744         argument. Set stdout_closed before testing for ferror, not after.
56745         (fwriteerror, fwriteerror_no_ebadf): New functions.
56746
56747 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56748
56749         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56750
56751 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56752
56753         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56754         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56755
56756 2006-09-28  Jim Meyering  <jim@meyering.net>
56757
56758         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56759         Include <unistd.h>.
56760
56761 2006-09-28  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56764         * modules/linkedhash-list (Depends-on): Likewise.
56765         * modules/rbtreehash-list (Depends-on): Likewise.
56766
56767 2006-09-28  Bruno Haible  <bruno@clisp.org>
56768
56769         * lib/strndup.h: Simplify the redefinition of strndup.
56770         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56771         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56772
56773 2006-09-28  Bruno Haible  <bruno@clisp.org>
56774
56775         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56776         * lib/gl_linkedhash_list.c: Likewise.
56777         * lib/gl_rbtreehash_list.c: Likewise.
56778
56779 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56780
56781         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56782         getaddrinfo.
56783
56784         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56785         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56786         it causes <stdio_ext.h> to cause a compile-time error.
56787         Problem reported by Nelson H. F. Beebe.
56788         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56789         of HAVE_DECL___PENDING.
56790
56791         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56792         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56793         declaration.
56794
56795 2006-09-27  Jim Meyering  <jim@meyering.net>
56796
56797         This file could end up with a definition for a function
56798         named __strndup, rather than rpl_strndup on a system with
56799         incomplete weak_alias support.
56800         * lib/strndup.c (strndup): Rename from __strndup.
56801         Remove #defines that used to map __strndup to strndup.
56802         Don't use K&R prototypes.
56803         Remove LIBC-related code, since this file is not sync'd with glibc.
56804         * lib/strndup.h: Revamp, accordingly.
56805         * m4/strndup.m4: Modernize.
56806
56807 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         * modules/savewd (Depends-on): Add 'raise'.
56810         * lib/savewd.c: Include <signal.h>, for 'raise'.
56811
56812 2006-09-26  Jim Meyering  <jim@meyering.net>
56813
56814         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56815         when we detect Darwin 8.7.0's acl_get_file bug.
56816         Rearrange to perform the new (below) run-test while $LIBS
56817         contains any acl-related library.  Set USE_ACL at the end.
56818         (gl_ACL_GET_FILE): New function.
56819
56820 2006-09-26  Eric Blake  <ebb9@byu.net>
56821
56822         * lib/verror.c: Include <config.h> unconditionally.
56823
56824 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56825
56826         * modules/clock-time (Maintainer): Add self.
56827         * modules/getlogin_r (Depends-on): Add extensions.
56828
56829 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56830
56831         * modules/clock-time: New module.
56832         * modules/nanosleep (Depends-on): Add clock-time.
56833         * modules/gethrxtime (Depends-on): Likewise.
56834         * modules/gettime (Depends-on): Likewise.
56835         * modules/settime (Depends-on): Likewise.
56836
56837         * modules/fts-lgpl: Depend on openat.
56838         * modules/mkancesdirs: Depend on savewd.
56839         * modules/mkdir-p: Likewise.
56840
56841 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56842
56843         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56844
56845         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56846         `gl_have_arbitrary_file_name_length_limit' to
56847         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56848         actually works between configure runs.
56849
56850 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56851             Bruno Haible  <bruno@clisp.org>
56852
56853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56854
56855 2006-09-25  Jim Meyering  <jim@meyering.net>
56856
56857         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56858         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56859
56860 2006-09-25  Eric Blake  <ebb9@byu.net>
56861
56862         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56863         exec's in 2006-09-18 patch when shuffling fds.
56864
56865 2006-09-25  Bruno Haible  <bruno@clisp.org>
56866
56867         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56868         Reported by Jim Meyering.
56869
56870 2006-09-24  Jim Meyering  <jim@meyering.net>
56871
56872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56873         compare a pointer against a literal "0".  That caused failures with
56874         at least HP-UX's hpcc.
56875
56876 2006-09-22  Simon Josefsson  <jas@extundo.com>
56877
56878         * modules/gc-sha1:
56879         * modules/gc-md4:
56880         * modules/gc-hmac-sha1:
56881         * modules/gc-hmac-md5:
56882         * modules/gc-des:
56883         * modules/gc-arcfour: Distribute more files.
56884
56885 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56886
56887         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56888         (gl_linked_iterator_from_to): Initialize struct completely.
56889         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56890         (gl_tree_iterator_from_to): Likewise
56891         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56892         * lib/gl_array_list.c [lint] (gl_array_iterator)
56893         (gl_array_iterator_from_to): Likewise.
56894         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56895         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56896         (gl_carray_iterator_from_to): Likewise.
56897
56898         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56899         * lib/md4.c (md4_process_block): Remove unused variable.
56900         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56901         parentheses for clarity.
56902
56903 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56904
56905         * modules/bison-i18n (Depends-on): Add gettext.
56906
56907 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56908
56909         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56910         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56911         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56912         also add missing comma that caused broken test.
56913         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56914         stdlib.h, for `abort'.
56915         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56916         variables.
56917         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56918         include unistd.h if present, for `rmdir'.
56919         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56920         variables.
56921         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56922         in the process include standard headers for prototypes.
56923         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56924         gets declared on GNU/Linux.
56925         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56926         unistd.h, for `rmdir'.
56927         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56928
56929         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56930         always true.
56931         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56932
56933         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56934
56935 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56936
56937         * gnulib-tool (func_version): Create output all at once.  This
56938         may help avoid triggering unnecessary SIGPIPEs, and at any
56939         rate it doesn't hurt.
56940
56941 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56942             Bruno Haible  <bruno@clisp.org>
56943
56944         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56945         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56946         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56947
56948         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56949         (gl_FUNC_VASPRINTF): Invoke it.
56950
56951 2006-09-22  Bruno Haible  <bruno@clisp.org>
56952
56953         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56954         getloadavg.c as first argument.
56955
56956 2006-09-22  Bruno Haible  <bruno@clisp.org>
56957
56958         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56959         at the beginning of the gl_INIT macro.
56960         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56961         gl_GETLOADAVG.
56962
56963 2006-09-22  Bruno Haible  <bruno@clisp.org>
56964
56965         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56966         module.
56967         Suggested by Ralf Wildenhues.
56968
56969 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56970
56971         Import this patch from libc:
56972
56973         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56974
56975         * lib/regex_internal.c (re_string_reconstruct): Handle
56976         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56977         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56978         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56979         re_string_context_at.
56980
56981         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56982         now requires it.
56983         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56984         gl_REGEX now does it for us.
56985         (gl_REGEX): Add test taken from
56986         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56987
56988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56989         Check that large offsets work.  Modernize Autoconf usages.
56990         Prefer "yes" to mean a good thing rather than a bad.
56991         Don't put "#define mkstemp" in config.h, as this might interfere
56992         with standard system headers that "#define mkstemp mkstemp64".
56993
56994         * modules/mkstemp (Depends-on): Add extensions, so that
56995         mkstemp is visible on some platforms.
56996         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56997         (Include): Change to "mkstemp.h" from <stdlib.h>.
56998         (Files): Add mkstemp.h.
56999
57000         * lib/mkstemp.h: New file, since some standard headers
57001         #define mkstemp.
57002         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57003         Include "mkstemp.h".
57004         Make the _LIBC code resemble glibc original more,
57005         e.g., use K&R style.
57006         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57007         (mkstemp): Remove, since mkstemp.h does this for us.
57008         * lib/stdlib--.h: Include mkstemp.h.
57009
57010         Import this patch from libc:
57011
57012         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57013
57014         * lib/tempname.c (__gen_tempname): Change attempts_min
57015         into a macro.  Use preprocessor to decide how to initialize
57016         attempts [Coverity CID 67].
57017
57018 2006-09-20  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/mkdtemp.c: Import from libc.
57021         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57022                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57023                 attempts_min into a macro.  Use preprocessor to decide how to
57024                 initialize attempts [Coverity CID 67].
57025         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57026                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57027                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57028
57029 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57030
57031         * gnulib-tool (func_exit): New function, to allow to pass the
57032         exit status portably through the trap.  Use everywhere.
57033         (--help, --version): Signal a write error.
57034         (trap): catch SIGPIPE, for write errors.
57035         Exit at the end of the trap, with the correct exit status.
57036
57037 2006-09-19  Karl Berry  <karl@gnu.org>
57038
57039         * doc/gnulib.texi: note about the license texinfo files.
57040
57041 2006-09-19  Eric Blake  <ebb9@byu.net>
57042
57043         * gnulib-tool: Avoid space-tab.
57044
57045 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57046
57047         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57048         that prevented coreutils 6.1 from building.  Problem reported
57049         by Petter Reinholdtsen.
57050
57051 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * gnulib-tool (avoidlist): Fix typo that broke options like
57054         --avoid=lock that are used by coreutils bootstrap.
57055
57056 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57057
57058         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57059         more systematically.
57060
57061 2006-09-18  Jim Meyering  <jim@meyering.net>
57062
57063         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57064
57065 2006-09-18  Bruno Haible  <bruno@clisp.org>
57066
57067         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57068
57069 2006-09-18  Bruno Haible  <bruno@clisp.org>
57070
57071         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57072         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57073         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57074         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57075         * m4/gettext.m4: Require autoconf >= 2.52.
57076         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57077         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57078         of gl_cv_header_inttypes_h.
57079
57080 2006-09-18  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/javaversion.c: Include configmake.h.
57083
57084 2006-09-18  Bruno Haible  <bruno@clisp.org>
57085
57086         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57087         avoid that the while loops be executed in a subshell.
57088
57089 2006-09-18  Bruno Haible  <bruno@clisp.org>
57090
57091         * MODULES.html.sh (func_module): Break long lines.
57092         Suggested by Bruce Korb <bkorb@gnu.org>.
57093
57094 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57095
57096         Speed up by a factor of 1.12.
57097         * gnulib-tool (nl): New variable.
57098         (func_import): Rewrite include directive extraction to only read each
57099         directive once.
57100
57101 2006-09-17  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/javaversion (Makefile.am): Remove DEFS setting.
57104         (Depends-on): Add configmake, for PKGDATADIR definition.
57105
57106 2006-09-17  Bruno Haible  <bruno@clisp.org>
57107
57108         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57109
57110 2006-09-17  Bruno Haible  <bruno@clisp.org>
57111
57112         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57113         (func_modules_transitive_closure, func_modules_add_dummy,
57114         func_modules_to_filelist, func_import, func_create_testdir,
57115         func_create_megatestdir, ...): Use it wherever possible.
57116         Suggested by Ralf Wildenhues.
57117
57118 2006-09-16  Karl Berry  <karl@gnu.org>
57119
57120         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57121         to avoid sectioning errors.
57122         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57123         [ifinfo]: blank line after @center-ed titles.
57124         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57125         Spell FSF address consistently with others.
57126         (These changes approved by rms.)
57127
57128 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57129
57130         Speed up by a factor of 1.61.
57131         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57132         already checked module names again.
57133
57134 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57135
57136         Speed up by a factor of 1.13.
57137         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57138         for new_files, and the input to func_add_or_update.
57139
57140 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57141
57142         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57143         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57144
57145 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57146
57147         * modules/mkancesdirs (Depends-on): Add fcntl.
57148         * modules/savewd: New file.
57149         * MODULES.html.sh (File system functions): Add savewd.
57150
57151         * modules/configmake (Makefile.am): Add support for the
57152         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57153
57154 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57155
57156         * m4/savewd.m4: New file.
57157
57158 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57159
57160         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57161         (dirchownmod): New arg FD.  All callers changed.
57162         Use FD rather than opening the directory ourself, as opening is
57163         now the caller's responsibility.
57164         * lib/dirchownmod.h: Likewise.
57165         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57166         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57167         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57168         (test_dir): Remove.
57169         (mkancesdirs): Return length of prefix of FILE that has already
57170         been made, or -2 if there is a child doing the work.  Redo
57171         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57172         ".", and treat ".." specially since it might stray back into
57173         already-created areas.  Use a subprocess if necessary.  New arg
57174         WD; all users changed.  MAKE_DIR function should now return 1
57175         if it creates a directory that is not readable.  Return -2 if
57176         a child process is spun off.
57177         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57178         Adjust signature to match code.
57179         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57180         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57181         all users changed.
57182         * lib/savewd.c, lib/savewd.h: New files.
57183
57184 2006-09-15  Jim Meyering  <jim@meyering.net>
57185
57186         * modules/rename-dest-slash: New module.
57187         * MODULES.html.sh (posix_compat): Add it here.
57188
57189         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57190
57191 2006-09-15  Jim Meyering  <jim@meyering.net>
57192
57193         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57194         file.
57195
57196         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57197
57198 2006-09-15  Jim Meyering  <jim@meyering.net>
57199
57200         * lib/rename-dest-slash.c (has_trailing_slash): Use
57201         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57202         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57203         test before testing whether SRC is a directory.
57204         Suggestions from Bruno Haible.
57205
57206         Avoid a warning about an unused variable.
57207         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57208         into the #ifdef block where it's used.
57209
57210         * lib/rename-dest-slash.c: New file.
57211
57212 2006-09-14  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/allocsa.c: Include <config.h> unconditionally.
57215         * lib/asnprintf.c: Likewise.
57216         * lib/asprintf.c: Likewise.
57217         * lib/c-strcasecmp.c: Likewise.
57218         * lib/c-strcasestr.c: Likewise.
57219         * lib/c-strncasecmp.c: Likewise.
57220         * lib/c-strstr.c: Likewise.
57221         * lib/classpath.c: Likewise.
57222         * lib/clean-temp.c: Likewise.
57223         * lib/concatpath.c: Likewise.
57224         * lib/copy-file.c: Likewise.
57225         * lib/csharpcomp.c: Likewise.
57226         * lib/csharpexec.c: Likewise.
57227         * lib/execute.c: Likewise.
57228         * lib/fatal-signal.c: Likewise.
57229         * lib/findprog.c: Likewise.
57230         * lib/fwriteerror.c: Likewise.
57231         * lib/gl_array_list.c: Likewise.
57232         * lib/gl_array_oset.c: Likewise.
57233         * lib/gl_avltree_list.c: Likewise.
57234         * lib/gl_avltree_oset.c: Likewise.
57235         * lib/gl_avltreehash_list.c: Likewise.
57236         * lib/gl_carray_list.c: Likewise.
57237         * lib/gl_linked_list.c: Likewise.
57238         * lib/gl_linkedhash_list.c: Likewise.
57239         * lib/gl_list.c: Likewise.
57240         * lib/gl_oset.c: Likewise.
57241         * lib/gl_rbtree_list.c: Likewise.
57242         * lib/gl_rbtree_oset.c: Likewise.
57243         * lib/gl_rbtreehash_list.c: Likewise.
57244         * lib/imaxabs.c: Likewise.
57245         * lib/imaxdiv.c: Likewise.
57246         * lib/javacomp.c: Likewise.
57247         * lib/javaexec.c: Likewise.
57248         * lib/javaversion.c: Likewise.
57249         * lib/linebreak.c: Likewise.
57250         * lib/localcharset.c: Likewise.
57251         * lib/lock.c: Likewise.
57252         * lib/mbchar.c: Likewise.
57253         * lib/mbswidth.c: Likewise.
57254         * lib/mkdtemp.c: Likewise.
57255         * lib/pipe.c: Likewise.
57256         * lib/printf-args.c: Likewise.
57257         * lib/printf-parse.c: Likewise.
57258         * lib/progname.c: Likewise.
57259         * lib/progreloc.c: Likewise.
57260         * lib/readlink.c: Likewise.
57261         * lib/sh-quote.c: Likewise.
57262         * lib/stpcpy.c: Likewise.
57263         * lib/stpncpy.c: Likewise.
57264         * lib/strcasecmp.c: Likewise.
57265         * lib/strcasestr.c: Likewise.
57266         * lib/strcspn.c: Likewise.
57267         * lib/striconv.c: Likewise.
57268         * lib/strncasecmp.c: Likewise.
57269         * lib/strnlen1.c: Likewise.
57270         * lib/strstr.c: Likewise.
57271         * lib/strtok_r.c: Likewise.
57272         * lib/tls.c: Likewise.
57273         * lib/tmpdir.c: Likewise.
57274         * lib/unicodeio.c: Likewise.
57275         * lib/unsetenv.c: Likewise.
57276         * lib/vasnprintf.c: Likewise.
57277         * lib/vasprintf.c: Likewise.
57278         * lib/wait-process.c: Likewise.
57279         * lib/xallocsa.c: Likewise.
57280         * lib/xsetenv.c: Likewise.
57281         * lib/xstriconv.c: Likewise.
57282
57283 2006-09-13  Simon Josefsson  <jas@extundo.com>
57284
57285         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57286         that internally, suggested by Ralf Wildenhues
57287         <Ralf.Wildenhues@gmx.de>.
57288
57289 2006-09-13  Simon Josefsson  <jas@extundo.com>
57290
57291         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57292         @LIBOBJS@.
57293         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57294
57295 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57296
57297         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57298         longer worry about uses that don't define HAVE_CONFIG_H.
57299         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57300         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57301         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57302         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57303         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57304         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57305         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57306         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57307         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57308         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57309         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57310         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57311         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57312         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57313         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57314         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57315         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57316         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57317         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57318         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57319         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57320         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57321         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57322         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57323         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57324         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57325         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57326         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57327         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57328         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57329         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57330         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57331         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57332         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57333         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57334         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57335         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57336         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57337         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57338         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57339         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57340         Likewise.
57341
57342 2006-09-13  Eric Blake  <ebb9@byu.net>
57343
57344         * lib/getopt.c: Fix typo in last commit.
57345
57346 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57347
57348         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57349         dgettext.
57350
57351 2006-09-12  Jim Meyering  <jim@meyering.net>
57352
57353         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57354         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57355         Reported by Nelson H. F. Beebe.
57356
57357 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57358
57359         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57360         program_invocation_name and program_invocation_short_name are
57361         initialized.
57362         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57363         and program_invocation_short_name to argp.h, so they are visible
57364         to user programs.
57365         * lib/argp.h: Likewise
57366
57367 2006-09-10  Bruno Haible  <bruno@clisp.org>
57368
57369         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57370         m4/inttypes_h.m4, m4/uintmax_t.m4.
57371
57372 2006-09-10  Bruno Haible  <bruno@clisp.org>
57373
57374         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57375         gl_AC_TYPE_UINTMAX_T.
57376
57377 2006-09-10  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57380
57381 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57382
57383         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57384         convention.  Text proposed by Bruno Haible.
57385         (struct argp_option): Document the use of N_() wrappers.
57386
57387         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57388         '\v', and translate the two parts separately, instead of feeding
57389         the whole string to gettext.  This allows to exclude
57390         '\v' from the strings visible to the translator by writing doc
57391         strings as N_("..") "\v" N_("..").
57392
57393 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         * config/srclist.txt: Undo latest change; the bug was fixed.
57396
57397 2006-09-09  Bruno Haible  <bruno@clisp.org>
57398
57399         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57400         assignments if building a library without libtool.
57401         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57402         in func_emit_lib_Makefile_am.
57403         (func_import): When building a static library libfoo.a, arrange to
57404         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57405         (func_create_testdir): Likewise.
57406         * modules/gc (configure.ac, Makefile.am): If building statically,
57407         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57408         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57409         * modules/striconv (configure.ac, Makefile.am): Likewise.
57410         Based on a suggestion by Ralf Wildenhues.
57411
57412 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57413
57414         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57415         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57416         Also:
57417
57418         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57419         Add year_2050_test to catch glibc bug 2821
57420         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57421
57422         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57423         Prefer #ifdef to #if.
57424
57425         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57426         Return from 'main' instead of calling 'exit'.
57427
57428 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57431         returned the maximum time_t value rather than (time_t) -1.
57432         Problem originally reported by William Bardwell
57433         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57434
57435         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57436         Moved to here ...
57437         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57438         ... from here.
57439
57440 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57441
57442         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57443         2821 is fixed.
57444
57445 2006-09-08  Jim Meyering  <jim@meyering.net>
57446
57447         Don't make generated files read-only.  That would bother too many
57448         people.  However, do retain the ability to work when targets are
57449         read-only: remove the destination and temporary files before writing
57450         them (when generated via sed or echo), or by using the -f option for
57451         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57452         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57453         * modules/byteswap, modules/configmake, modules/fcntl:
57454         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57455         * modules/localcharset, modules/netinet_in, modules/poll:
57456         * modules/stdbool, modules/stdint, modules/sys_select:
57457         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57458
57459 2006-09-08  Jim Meyering  <jim@meyering.net>
57460
57461         Avoid new build failure on FreeBSD 6.0.
57462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57463         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57464         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57465
57466 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57467
57468         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57469
57470 2006-09-07  Jim Meyering  <jim@meyering.net>
57471
57472         Fix global typo in last change: use chmod u-w, not chmod u-x.
57473         Spotted by Paul Eggert and Bruce Korb.
57474         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57475         * modules/byteswap, modules/configmake, modules/fcntl:
57476         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57477         * modules/localcharset, modules/netinet_in, modules/poll:
57478         * modules/stdbool, modules/stdint, modules/sys_select:
57479         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57480
57481 2006-09-06  Jim Meyering  <jim@meyering.net>
57482
57483         Make generated files be read-only.
57484         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57485         Ensure that each generated file is now read-only.
57486         * modules/argz: Likewise.
57487         * modules/arpa_inet: Likewise.
57488         * modules/byteswap: Likewise.
57489         * modules/configmake: Likewise.
57490         * modules/fcntl: Likewise.
57491         * modules/fnmatch: Likewise.
57492         * modules/getopt: Likewise.
57493         * modules/glob: Likewise.
57494         * modules/inttypes: Likewise.
57495         * modules/netinet_in: Likewise.
57496         * modules/poll: Likewise.
57497         * modules/stdbool: Likewise.
57498         * modules/stdint: Likewise.
57499         * modules/sys_select: Likewise.
57500         * modules/sys_socket: Likewise.
57501         * modules/sys_stat: Likewise.
57502         * modules/sysexits: Likewise.
57503         * modules/localcharset: Same as above, but continue using temporary
57504         file named "t-$@" (why different?) rather than the "$@-t" used
57505         everywhere else.
57506
57507         * modules/sysexits (Makefile.am): Replace literal occurrences
57508         of "sysexit.h" more readable, and more consistent, "$@".
57509
57510 2006-09-06  Bruno Haible  <bruno@clisp.org>
57511
57512         * modules/striconv: New file.
57513         * modules/xstriconv: New file.
57514         * MODULES.html.sh (Internationalization functions): Add striconv,
57515         xstriconv.
57516
57517 2006-09-06  Bruno Haible  <bruno@clisp.org>
57518
57519         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57520         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57521         not using libtool correctly.
57522
57523 2006-09-06  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/striconv.h: New file.
57526         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57527         iconvstring.c.
57528         * lib/xstriconv.h: New file.
57529         * lib/xstriconv.c: New file.
57530
57531 2006-09-06  Bruno Haible  <bruno@clisp.org>
57532
57533         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57534         lib_..._LDFLAGS.
57535
57536 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57537
57538         * lib/argz_.h: Sync from Libtool.
57539
57540         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57541                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57542
57543         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57544
57545 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57546
57547         * modules/trim: New file.
57548
57549 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57550
57551         * lib/trim.h: New file.
57552         * lib/trim.c: New file.
57553
57554 2006-09-05  Bruno Haible  <bruno@clisp.org>
57555
57556         * MODULES.html.sh (String handling): Add trim.
57557
57558 2006-09-04  Karl Berry  <karl@gnu.org>
57559
57560         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57561         until next release.
57562
57563 2006-09-03  Bruno Haible  <bruno@clisp.org>
57564
57565         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57566         correctly.
57567
57568 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57571         not gl_GETLOADAVG.  Omit unneeded semicolons.
57572         Problems reported by Ralf Wildenhues in
57573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57574         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57575         at the end, which is the usual gnulib style.
57576
57577         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57578         of doing all the work ourselves.
57579         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57580         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57581
57582 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57583
57584         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57585         Problem reported by Ralf Wildenhues in
57586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57587
57588         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57589         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57590
57591 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57592
57593         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57594         yesterday's patch by changing test -n to test -z.
57595
57596 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57597
57598         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57599         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57600         the former is now obsolescent.
57601
57602         * modules/chdir-long (Depends-on): Add fcntl.
57603
57604 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57605
57606         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57607         obsolescent, and programs should use gnulib instead.
57608         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57609         but with prefixes changed.
57610
57611 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57614         or stdbool.h, because they might not exist while configuring.
57615
57616         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57617         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57618         does that for us.
57619         (O_DIRECTORY): Remove.
57620
57621 2006-08-31  Eric Blake  <ebb9@byu.net>
57622
57623         * gnulib-tool: Don't let emacs change spaces to TAB.
57624
57625 2006-08-31  Bruno Haible  <bruno@clisp.org>
57626
57627         * gnulib-tool: When calling func_import more than once, do it in a
57628         subshell.
57629         Reported by Eric Blake <ebb9@byu.net>.
57630
57631 2006-08-31  Bruno Haible  <bruno@clisp.org>
57632
57633         * gnulib-tool (nl): Remove variable.
57634         (sed_transform_lib_file): Use more robust test for config-h module.
57635         (func_import): Fix typo in 2006-08-25 patch.
57636
57637 2006-08-31  Bruno Haible  <bruno@clisp.org>
57638
57639         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57640         specified, augment Makefile.am variables instead of assigning them.
57641
57642 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         Work around a bug in both the Linux and SunOS 64-bit kernels:
57645         nanosleep mishandles sleeps for longer than 2**31 seconds.
57646         Problem reported by Frank v Waveren in
57647         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57649         Check for nanosleep bug.
57650         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57651
57652 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57653
57654         Work around a bug in both the Linux and SunOS 64-bit kernels:
57655         nanosleep mishandles sleeps for longer than 2**31 seconds.
57656         Problem reported by Frank v Waveren in
57657         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57658         * lib/nanosleep.c (BILLION): New constant.
57659         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57660         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57661         implementation.
57662
57663 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57664
57665         * modules/nanosleep (Depends-on): Add gettime.
57666
57667 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57668         and Simon Josefsson  <jas@extundo.com>
57669         and Oskar Liljeblad  <oskar@osk.mine.nu>
57670
57671         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57672         * gnulib-tool (func_import): New license type 'unmodifiable license
57673         text'.
57674         * modules/fdl: Use it.  Longer description.
57675         * module/gpl, module/lgpl: New files.
57676
57677 2006-08-30  Jim Meyering  <jim@meyering.net>
57678
57679         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57680         shadowing the parameter.
57681
57682 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57683
57684         Sync from Libtool:
57685
57686         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57687
57688         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57689         sharing with gnulib.  Report by Eric Blake.
57690
57691 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57692
57693         * modules/isapipe: New file.
57694         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57695
57696 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57697
57698         * modules/configmake (Makefile.am): Add a comment, and omit
57699         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57700         by Bruno Haible.
57701
57702 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57703
57704         * m4/isapipe.m4: New file.
57705
57706 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57707
57708         * lib/isapipe.c, lib/isapipe.h: New files.
57709
57710 2006-08-29  Jim Meyering  <jim@meyering.net>
57711
57712         * modules/configmake (Makefile.am): Make configmake.h depend on
57713         Makefile.  Otherwise, a stale configmake.h could hang around.
57714
57715 2006-08-29  Eric Blake  <ebb9@byu.net>
57716
57717         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57718         resolution of upstream bug 3044.
57719
57720 2006-08-29  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/localcharset (Depends-on): Add configmake.
57723         (Makefile.am): Remove setting of LIBDIR through DEFS.
57724
57725 2006-08-29  Bruno Haible  <bruno@clisp.org>
57726
57727         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57728         defined.
57729
57730 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57731
57732         * modules/fcntl: New file.
57733         * modules/chdir-safer (Depends-on): Add fcntl.
57734         * modules/fts: Likewise.
57735         * modules/mkdir-p: Likewise.
57736
57737         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57738         This undoes the most recent change, since we're now addressing the
57739         problem in a different way.
57740
57741         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57742         into output, since the output might be called Makefile.am even
57743         if $makefile_name is something different.
57744         (func_import): Use $makefile_am rather than
57745         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57746         empty.
57747
57748         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57749
57750 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57753         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57754         recent change to stdint.m4, since we're now addressing the problem in a
57755         different way.
57756
57757 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57758
57759         * m4/fcntl_h.m4: New file.
57760
57761 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57762
57763         * lib/fcntl_.h: New file.
57764         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57765         the fcntl module.
57766         * lib/dirchownmod.c: Likewise.
57767         * lib/fts.c: Likewise.
57768
57769         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57770         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57771         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57772         just before including <inttypes.h>, to avoid circular inclusion.
57773
57774 2006-08-28  Jim Meyering  <jim@meyering.net>
57775
57776         * doc/visibility.texi: Actually read and correct the grammar of the
57777         sentence affected by yesterday's change.
57778
57779 2006-08-28  Eric Blake  <ebb9@byu.net>
57780
57781         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57782         needs wrapper.
57783
57784 2006-08-28  Eric Blake  <ebb9@byu.net>
57785
57786         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57787
57788 2006-08-28  Eric Blake  <ebb9@byu.net>
57789
57790         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57791
57792 2006-08-28  Bruno Haible  <bruno@clisp.org>
57793
57794         * modules/c-strstr: New file, from GNU gettext.
57795         * MODULES.html.sh (String handling): Add c-strstr.
57796
57797 2006-08-28  Bruno Haible  <bruno@clisp.org>
57798
57799         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57800         macros.
57801         Reported by Eric Blake.
57802
57803 2006-08-28  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57806         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57807         * lib/vasprintf.c: Include errno.h, limits.h.
57808         (EOVERFLOW): New fallback definition.
57809         (vasprintf): Test here whether the string length is > INT_MAX.
57810         * lib/vsnprintf.c: Include errno.h, limits.h.
57811         (EOVERFLOW): New fallback definition.
57812         (vsnprintf): Fix bug when generated string was too long for the buffer.
57813         Test here whether the string length is > INT_MAX.
57814
57815 2006-08-28  Bruno Haible  <bruno@clisp.org>
57816
57817         * lib/inttypes_.h (SCNX*): Remove definitions.
57818         Reported by Eric Blake.
57819
57820 2006-08-28  Bruno Haible  <bruno@clisp.org>
57821
57822         * lib/c-strstr.h: New file, from GNU gettext.
57823         * lib/c-strstr.c: New file, from GNU gettext.
57824
57825 2006-08-28  Bruno Haible  <bruno@clisp.org>
57826
57827         * gnulib-tool: Reorder some statements.
57828
57829 2006-08-28  Bruno Haible  <bruno@clisp.org>
57830
57831         * gnulib-tool: New option --makefile-name.
57832         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57833         $makefile_name.
57834         (func_import): Write $makefile_name to the cache file, and read it from
57835         there unless explicitly specified. Use $makefile_name as file name
57836         instead of Makefile.am. Adjust the recommendations accordingly.
57837
57838 2006-08-28  Bruno Haible  <bruno@clisp.org>
57839
57840         * gnulib-tool (func_verify_module): Check against misapplying patch.
57841
57842 2006-08-28  Bruno Haible  <bruno@clisp.org>
57843
57844         * gnulib-tool (func_relativize, func_relconcat): New functions.
57845         Give an error if --local-dir is given with --update.
57846         Remove trailing slashes from $local_gnulib_dir.
57847         (func_import): Store the relativized $local_gnulib_dir in
57848         gnulib-cache.m4, and read it from there if not specified explicitly.
57849
57850 2006-08-28  Bruno Haible  <bruno@clisp.org>
57851
57852         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57853         is the current directory. Respect also $local_gnulib_dir.
57854
57855 2006-08-28  Bruno Haible  <bruno@clisp.org>
57856             Simon Josefsson  <jas@extundo.com>
57857
57858         BeOS portability.
57859         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57860
57861 2006-08-27  Jim Meyering  <jim@meyering.net>
57862
57863         * doc/visibility.texi: Remove duplicate word: "pointer".
57864
57865 2006-08-26  Bruno Haible  <bruno@clisp.org>
57866
57867         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57868         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57869         (Makefile.am): Create inttypes.h from inttypes_.h.
57870         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57871
57872         * modules/imaxabs: New file.
57873
57874         * modules/imaxdiv: New file.
57875
57876 2006-08-26  Bruno Haible  <bruno@clisp.org>
57877
57878         * m4/inttypes.m4: New file.
57879         * m4/_inttypes_h.m4: Remove file.
57880         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57881         PRI_MACROS_BROKEN.
57882         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57883
57884         * m4/imaxabs.m4: New file.
57885
57886         * m4/imaxdiv.m4: New file.
57887
57888 2006-08-26  Bruno Haible  <bruno@clisp.org>
57889
57890         * lib/inttypes_.h: New file.
57891         * lib/inttypes.h: Remove file.
57892         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57893
57894         * lib/imaxabs.c: New file.
57895
57896         * lib/imaxdiv.c: New file.
57897
57898 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         New config-h module, so that "make" output needn't be cluttered
57901         by -DHAVE_CONFIG_H.
57902         * MODULES.html.sh (Support for building libraries and executables):
57903         Add config-h.
57904         * modules/config-h: New file.
57905         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57906         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57907         the config-h module is used.
57908
57909         New configmake module, so that "make" output needn't be cluttered
57910         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57911         * MODULES.html.sh (Support for building libraries and executables):
57912         Add configmake.
57913         * modules/configmake: New file.
57914
57915 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * m4/config-h.m4: New file.
57918
57919 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57920
57921         * config/srclist.txt: Add elisp-comp.
57922
57923 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * MODULES.html.sh (Support for building libraries and executables):
57926         Add elisp-comp.
57927         * build-aux/elisp-comp: New file.
57928         * modules/elisp-comp: New file.
57929
57930 2006-08-24  Bruno Haible  <bruno@clisp.org>
57931
57932         * gnulib-tool (func_create_testdir): Use non-default values of
57933         sourcebase and m4base.
57934
57935 2006-08-24  Bruno Haible  <bruno@clisp.org>
57936
57937         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57938         HTML structure.
57939
57940 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57941
57942         * modules/openat (Depends-on): Add lchown.
57943
57944 2006-08-23  Bruno Haible  <bruno@clisp.org>
57945
57946         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57947         of gl_LOCK_EARLY instead of gl_LOCK.
57948
57949 2006-08-23  Bruno Haible  <bruno@clisp.org>
57950
57951         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57952         on OSF/1 to no.
57953         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57954
57955 2006-08-23  Bruno Haible  <bruno@clisp.org>
57956
57957         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57958         as unusable.
57959
57960         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57961         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57962         (gl_LOCK): New macro.
57963
57964 2006-08-22  Simon Josefsson  <jas@extundo.com>
57965
57966         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57967         to md5 module.
57968
57969 2006-08-22  Simon Josefsson  <jas@extundo.com>
57970
57971         * MODULES.html.sh: Add "Support for maintaining and release
57972         projects".
57973
57974         * build-aux/gnupload: New file, from coreutils.
57975
57976 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57977
57978         Avoid the need for AC_LIBSOURCES in m4 macros.
57979         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57980         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57981         * modules/check-version (EXTRA_DIST): Add check-version.h.
57982         * modules/crc (EXTRA_DIST): Add crc.h.
57983         * modules/des (EXTRA_DIST): Add des.h.
57984         * modules/gc (EXTRA_DIST): Add gc.h.
57985         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57986         * modules/getline (EXTRA_DIST): Add getline.h.
57987         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57988         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57989         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57990         * modules/md2 (EXTRA_DIST): Add md2.h.
57991         * modules/md4 (EXTRA_DIST): Add md4.h.
57992         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57993         * modules/read-file (EXTRA_DIST): Add read-file.h.
57994         * modules/readline (EXTRA_DIST): Add readline.h.
57995         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57996         rijndael-api-fst.h.
57997
57998 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57999
58000         * m4/rijndael.m4 (gl_ARCFOUR):
58001         * m4/arctwo.m4 (gl_ARCTWO):
58002         * m4/check-version.m4 (gl_CHECK_VERSION):
58003         * m4/crc.m4 (gl_CRC):
58004         * m4/des.m4 (gl_DES):
58005         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58006         * m4/gc.m4 (gl_GC):
58007         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58008         * m4/getline.m4 (gl_FUNC_GETLINE):
58009         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58010         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58011         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58012         * m4/md2.m4 (gl_MD2):
58013         * m4/md4.m4 (gl_MD4):
58014         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58015         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58016         * m4/readline.m4 (gl_FUNC_READLINE):
58017         * m4/rijndael.m4 (gl_RIJNDAEL):
58018         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58019         to get the necessary .h files and whatnot.
58020
58021 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58024         gnulib rather than the other way around.
58025         * config/srclistvars.sh (COREUTILS): Remove.
58026
58027 2006-08-22  Jim Meyering  <jim@meyering.net>
58028
58029         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58030
58031         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58032
58033 2006-08-22  Eric Blake  <ebb9@byu.net>
58034
58035         * modules/regexprops-generic: New file.
58036         * MODULES.html.sh (Support for building documentation): List it.
58037
58038 2006-08-22  Eric Blake  <ebb9@byu.net>
58039
58040         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58041         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58042         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58043         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58044
58045 2006-08-22  Bruno Haible  <bruno@clisp.org>
58046
58047         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58048         and lib_LTLIBRARIES like the other lib_* variables.
58049
58050 2006-08-22  Bruno Haible  <bruno@clisp.org>
58051
58052         * build-aux/x-to-1.in: New file, from GNU gettext.
58053
58054 2006-08-22  Bruno Haible  <bruno@clisp.org>
58055
58056         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58057         <utmpx.h> exists.
58058
58059 2006-08-22  Bruno Haible  <bruno@clisp.org>
58060
58061         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58062         <utmpx.h> exists.
58063
58064 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         BeOS portability.
58067         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58068         exist.
58069         Problem reported by Bruno Haible.
58070
58071 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58072
58073         Avoid the need for AC_LIBSOURCES in m4 macros.
58074         * modules/acl (EXTRA_DIST): Add acl.h.
58075         * modules/argmatch (Files): Add m4/argmatch.m4.
58076         (configure.ac): Add gl_ARGMATCH.
58077         (EXTRA_DIST): Renamed from lib_SOURCES, for
58078         consistency with the other modules.  Remove argmatch.c.
58079         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58080         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58081         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58082         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58083         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58084         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58085         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58086         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58087         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58088         * modules/closeout (EXTRA_DIST): Add closeout.h.
58089         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58090         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58091         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58092         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58093         dirname.h; remove basename.c and stripslash.c.
58094         * modules/exclude (EXTRA_DIST): Add exclude.h.
58095         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58096         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58097         * modules/file-type (EXTRA_DIST): Add file-type.h.
58098         * modules/filemode (EXTRA_DIST): Add filemode.h.
58099         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58100         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58101         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58102         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58103         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58104         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58105         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58106         * modules/getdate (EXTRA_DIST): Add getdate.c.
58107         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58108         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58109         * modules/getpass (EXTRA_DIST): Add getpass.h.
58110         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58111         * modules/group-member (EXTRA_DIST): Add group-member.h.
58112         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58113         * modules/hash (EXTRA_DIST): Add hash.h.
58114         * modules/human (EXTRA_DIST): Add human.h.
58115         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58116         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58117         * modules/lchown (EXTRA_DIST): Add lchown.h.
58118         * modules/long-options (EXTRA_DIST): Add long-options.h.
58119         * modules/lstat (EXTRA_DIST): Add lstat.h.
58120         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58121         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58122         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58123         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58124         * modules/memxor (EXTRA_DIST): Add memxor.h.
58125         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58126         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58127         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58128         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58129         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58130         * modules/physmem (EXTRA_DIST): Add physmem.h.
58131         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58132         * modules/posixver (EXTRA_DIST): Add posixver.h.
58133         * modules/quote (EXTRA_DIST): Add quote.h.
58134         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58135         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58136         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58137         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58138         regex_internal.h regexec.c.
58139         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58140         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58141         * modules/same (EXTRA_DIST): Add same.h.
58142         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58143         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58144         * modules/savedir (EXTRA_DIST): Add savedir.h.
58145         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58146         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58147         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58148         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58149         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58150         * modules/strdup (EXTRA_DIST): Add strdup.h.
58151         * modules/strftime (EXTRA_DIST): Add strftime.h.
58152         * modules/strndup (EXTRA_DIST): Add strndup.h.
58153         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58154         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58155         * modules/time_r (EXTRA_DIST): Add time_r.h.
58156         * modules/timespec (EXTRA_DIST): Add timespec.h.
58157         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58158         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58159         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58160         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58161         * modules/userspec (EXTRA_DIST): Add userspec.h.
58162         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58163         * modules/utimens (EXTRA_DIST): Add utimens.h.
58164         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58165         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58166         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58167         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58168         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58169         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58170         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58171         * modules/yesno (EXTRA_DIST): Add yesno.h.
58172
58173 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58174
58175         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58176
58177         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58178         * m4/dev-ino.m4, same-inode.m4: Remove.
58179
58180         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58181         * m4/acl.m4 (AC_FUNC_ACL):
58182         * m4/backupfile.m4 (gl_BACKUPFILE):
58183         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58184         * m4/canon-host.m4 (gl_CANON_HOST):
58185         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58186         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58187         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58188         * m4/cloexec.m4 (gl_CLOEXEC):
58189         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58190         * m4/closeout.m4 (gl_CLOSEOUT):
58191         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58192         * m4/dirname.m4 (gl_DIRNAME):
58193         * m4/exclude.m4 (gl_EXCLUDE):
58194         * m4/exitfail.m4 (gl_EXITFAIL):
58195         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58196         * m4/file-type.m4 (gl_FILE_TYPE):
58197         * m4/filemode.m4 (gl_FILEMODE):
58198         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58199         * m4/fpending.m4 (gl_FUNC_FPENDING):
58200         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58201         * m4/fts.m4 (gl_FUNC_FTS):
58202         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58203         * m4/getdate.m4 (gl_GETDATE):
58204         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58205         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58206         * m4/getpass.m4 (gl_FUNC_GETPASS):
58207         * m4/gettime.m4 (gl_GETTIME):
58208         * m4/getugroups.m4 (gl_GETUGROUPS):
58209         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58210         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58211         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58212         * m4/hash.m4 (gl_HASH):
58213         * m4/idcache.m4 (gl_IDCACHE):
58214         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58215         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58216         * m4/long-options.m4 (gl_LONG_OPTIONS):
58217         * m4/lstat.m4 (gl_FUNC_LSTAT):
58218         * m4/md5.m4 (gl_MD5):
58219         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58220         * m4/memcoll.m4 (gl_MEMCOLL):
58221         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58222         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58223         * m4/memxor.m4 (gl_MEMXOR):
58224         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58225         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58226         * m4/modechange.m4 (gl_MODECHANGE):
58227         * m4/mountlist.m4 (gl_MOUNTLIST):
58228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58229         * m4/openat.m4 (gl_FUNC_OPENAT):
58230         * m4/pathmax.m4 (gl_PATHMAX):
58231         * m4/physmem.m4 (gl_PHYSMEM):
58232         * m4/posixtm.m4 (gl_POSIXTM):
58233         * m4/posixver.m4 (gl_POSIXVER):
58234         * m4/quote.m4 (gl_QUOTE):
58235         * m4/quotearg.m4 (gl_QUOTEARG):
58236         * m4/readtokens.m4 (gl_READTOKENS):
58237         * m4/readutmp.m4 (gl_READUTMP):
58238         * m4/regex.m4 (gl_REGEX):
58239         * m4/safe-read.m4 (gl_SAFE_READ):
58240         * m4/safe-write.m4 (gl_SAFE_WRITE):
58241         * m4/same.m4 (gl_SAME):
58242         * m4/save-cwd.m4 (gl_SAVE_CWD):
58243         * m4/savedir.m4 (gl_SAVEDIR):
58244         * m4/settime.m4 (gl_SETTIME):
58245         * m4/sha1.m4 (gl_SHA1):
58246         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58247         * m4/stat-macros.m4 (gl_STAT_MACROS):
58248         * m4/stat-time.m4 (gl_STAT_TIME):
58249         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58250         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58251         * m4/strdup.m4 (gl_FUNC_STRDUP):
58252         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58253         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58254         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58255         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58256         * m4/time_r.m4 (gl_TIME_R):
58257         * m4/timespec.m4 (gl_TIMESPEC):
58258         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58259         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58260         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58261         * m4/userspec.m4 (gl_USERSPEC):
58262         * m4/utimecmp.m4 (gl_UTIMECMP):
58263         * m4/utimens.m4 (gl_UTIMENS):
58264         * m4/xalloc.m4 (gl_XALLOC):
58265         * m4/xgetcwd.m4 (gl_XGETCWD):
58266         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58267         * m4/xreadlink.m4 (gl_XREADLINK):
58268         * m4/xstrtod.m4 (gl_XSTRTOD):
58269         * m4/yesno.m4 (gl_YESNO):
58270         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58271         to get the necessary .h files and whatnot.
58272
58273 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58274             Bruno Haible  <bruno@clisp.org>
58275
58276         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58277         /bin/sh understanding of '!' conditional negation.
58278
58279 2006-08-21  Jim Meyering  <jim@meyering.net>
58280
58281         * modules/openat (Depends-on): Really alphabetize.
58282
58283         * modules/acl (Depends-on): Add error and quote.
58284
58285         * check-module (find_included_lib_files): Add at-func.c to the
58286         ok-to-include-more-than-once white list.
58287
58288         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58289
58290 2006-08-21  Bruno Haible  <bruno@clisp.org>
58291
58292         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58293         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58294         Reported by Martin Lambers <marlam@marlam.de>.
58295
58296 2006-08-21  Bruno Haible  <bruno@clisp.org>
58297
58298         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58299         specify an installation location, don't emit a noinst_LIBRARIES or
58300         noinst_LTLIBRARIES assignment.
58301
58302 2006-08-21  Bruno Haible  <bruno@clisp.org>
58303
58304         BeOS portability.
58305         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58306         BeOS has mbrtowc() but no <wctype.h>.
58307
58308 2006-08-21  Bruno Haible  <bruno@clisp.org>
58309
58310         BeOS portability.
58311         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58312         exist.
58313
58314 2006-08-21  Bruno Haible  <bruno@clisp.org>
58315
58316         BeOS portability.
58317         * lib/mbchar.h: Include <wctype.h> only if it exists.
58318
58319 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58320
58321         Remove files that are no longer needed by their respective modules.
58322         * m4/obstack.m4: Remove.
58323         * m4/strerror_r.m4: Remove.
58324         * m4/uint32_t.m4: Remove.
58325         * m4/uintptr_t.m4: Remove.
58326         * m4/ullong_max.m4: Remove.
58327         * m4/xstrtoimax.m4: Remove.
58328         * m4/xstrtoumax.m4: Remove.
58329
58330         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58331         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58332         dependencies now capture this.
58333
58334         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58335         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58336         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58337         * m4/human.m4 (gl_HUMAN): Likewise.
58338         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58339         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58340
58341         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58342
58343         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58344         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58345         stdint.
58346         * m4/human.m4 (gl_HUMAN): Likewise.
58347         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58348         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58349         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58350         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58351         * m4/xstrtol (gl_XSTRTOL): Likewise.
58352
58353         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58354         AC_TYPE_LONG_LONG_INT.
58355         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58356         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58357         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58358         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58359
58360         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58361         on stdbool.
58362
58363         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58364         (gl_PREREQ_XSTRTOUL): Remove.
58365
58366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58367
58368         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58369         mode.
58370
58371 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         Add and change modules to make it easier for coreutils to use
58374         gnulib-tool.
58375         * modules/backupfile (Files): Remove m4/d-ino.m4.
58376         (Depends-on): Add d-ino.
58377         * modules/cycle-check (Depends-on): Add stdint.
58378         (lib_SOURCES): Add cycle-check.h.
58379         * modules/d-ino: New module.
58380         * modules/d-type: New module.
58381         * modules/error (Files): Remove m4/strerror_r.m4.
58382         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58383         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58384         m4/inttypes_h.m4, m4/uintmax_t.m4.
58385         (Depends-on): Add stdint.
58386         (lib_SOURCES): Add fsusage.h.
58387         * modules/getcwd (Files): Remove d-ino.m4.
58388         (Depends-on): Add d-ino.
58389         * modules/getndelim2 (Depends-on): Add stdint.
58390         * modules/glob (Files): Remove m4/d-type.m4.
58391         (Depends-on): Add d-type.
58392         * modules/host-os: New module.
58393         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58394         m4/inttypes_h.m4, m4/uintmax_t.m4.
58395         * Depends-on: Add stdint.
58396         (lib_SOURCES): Add human.h.
58397         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58398         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58399         m4/uintmax_t.m4, m4/ulonglong.m4.
58400         (Depends-on): Add stdint.
58401         (EXTRA_DIST): Add inttostr.h.
58402         * modules/lchmod: New module.
58403         * modules/link-follow: New module.
58404         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58405         (Depends-on): Add lchmod.
58406         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58407         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58408         (Depends-on): Add stdint.
58409         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58410         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58411         (Depends-on): Add stdint.
58412         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58413         * modules/perl: New module.
58414         * modules/regex (Depends-on): Add stdint.
58415         * modules/rmdir-errno: New module.
58416         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58417         m4/intmax_t.m4.
58418         (Depends-on): Add stdint.
58419         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58420         m4/uintmax_t.m4.
58421         (Depends-on): Add stdint.
58422         * modules/unlink-busy: New module.
58423         * modules/utimecmp (Depends-on): Add stdint.
58424         * modules/uptime: New module.
58425         * modules/winsz-ioctl: New module.
58426         * modules/winsz-termios: New module.
58427         * modules/xnanosleep (Depends-on): Add nanosleep.
58428         * modules/ullong_max: Remove.
58429         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58430         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58431         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58432         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58433         (Depends-on): Add inttypes.
58434         (lib_SOURCES): Add xstrtol.h.
58435         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58436         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58437         * MODULES.html.sh: Move 'assert' into the assert section.
58438         Move 'dummy' into the linking section.
58439         Remove ullong_max.
58440         Add section for compatibility checks for POSIX:2001 functions,
58441         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58442         winsz-ioctl, and winsz-termios into it.
58443         Add lchmod.
58444         Add top-level Misc section and put host-os, perl, and uptime
58445         into it.
58446
58447 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58450         now assume the stdint module.  Do not include inttypes.h.
58451         * lib/fsusage.h: Likewise.
58452         * lib/getndelim2.c: Likewise.
58453         * lib/human.h: Likewise.
58454         * lib/inttostr.h: Likewise.
58455         * lib/obstack.c: Likewise.
58456         * lib/regex_internal.h: Likewise.
58457         * lib/tempname.c: Likewise.
58458         * lib/utimecmp.c: Likewise.
58459         * lib/xstrtol.h: Likewise.
58460
58461         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58462
58463         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58464         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58465         * lib/xtime.h: Likewise.
58466
58467 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         * modules/openat (Files): Add lib/fchmodat.c.
58470         Fixes problem reported by Jay Youngman.
58471
58472 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58473
58474         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58475         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58476
58477 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58478             Bruno Haible  <bruno@clisp.org>
58479
58480         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58481         and is a script that invokes bison. Tighten the code. Add comments.
58482
58483 2006-08-18  Jim Meyering  <jim@meyering.net>
58484
58485         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58486         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58487         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58488         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58489
58490 2006-08-18  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/bison-i18n: New file.
58493         * MODULES.html.sh (Internationalization functions): Add it.
58494
58495 2006-08-18  Bruno Haible  <bruno@clisp.org>
58496
58497         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58498         sys/statvfs.h. When getmntinfo was found, check its declaration and
58499         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58500
58501 2006-08-18  Bruno Haible  <bruno@clisp.org>
58502
58503         * m4/bison-i18n.m4: New file, from bison.
58504
58505 2006-08-18  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58508         (ME_DUMMY): Treat "kernfs" as a dummy.
58509         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58510
58511 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         Update from coreutils.
58514
58515         2006-08-15  Jim Meyering  <jim@meyering.net>
58516
58517         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58518
58519         2006-01-17  Jim Meyering  <jim@meyering.net>
58520
58521         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58522
58523         2006-01-11  Jim Meyering  <jim@meyering.net>
58524
58525         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58526         Check for the lchmod function.
58527
58528 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58529
58530         Update from coreutils.
58531
58532         * lib/__fpending.h: Add copyright notice.
58533         * lib/fprintftime.h: Likewise.
58534         * lib/savedir.c: Use (C) in copyright notice.
58535         * lib/savedir.h: Likewise.
58536
58537         2006-08-15  Jim Meyering  <jim@meyering.net>
58538
58539         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58540         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58541         in support of the EXPECTED_ERRNO macro.
58542         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58543         definitions.  Instead, define the appropriate symbols and include
58544         "at-func.c".
58545         * lib/mkdirat.c (mkdirat): Likewise.
58546         * lib/fchmodat.c (fchmodat): Likewise.
58547         (ENOSYS): Remove definition.
58548         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58549         it.  Don't include "unistd--.h" -- it wasn't ever used.
58550
58551         2006-01-17  Jim Meyering  <jim@meyering.net>
58552
58553         Rewrite fts.c not to change the current working directory,
58554         by using openat, fstatat, fdopendir, etc..
58555
58556         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58557         (HAVE_OPENAT_SUPPORT): Define.
58558         [_LIBC] (fchdir): Don't undef or define; no longer used.
58559         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58560         Now, this `function' always succeeds, and consumes its file descriptor
58561         parameter -- so callers must not close such FDs.  Update callers.
58562         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58563         (diropen): Add parameter, SP.  Adjust all callers.
58564         Implement using diropen_fd, rather than open.
58565         (fts_open): Initialize new member, fts_cwd_fd.
58566         Remove fts_rft-setting code.
58567         (fts_close): Close fts_cwd_fd, if necessary.
58568         (__opendir2): Define in terms of opendir or opendirat,
58569         depending on whether the FST_NOCHDIR flag is set.
58570         (fts_build): Since fts_safe_changedir consumes its FD, and since
58571         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58572         and close the dup'd file descriptor upon failure.
58573         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58574         (fts_safe_changedir): Tweak semantics to reflect that this function
58575         now calls cwd_advance_fd and hence consumes its FD argument.
58576         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58577         [struct FTS] (fts_rft): Remove now-unused member.
58578         [struct FTS] (fts_cycle.state): Improve comment.
58579
58580         * lib/openat.c (openat_needs_fchdir): New function.
58581         * lib/openat.h (openat_needs_fchdir): Declare it.
58582
58583 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58584
58585         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58586         Problem and fix reported by Pádraig Brady in
58587         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58588
58589 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58592
58593 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58594
58595         * lib/memcoll.c (memcoll): Optimize for the common case where the
58596         arguments are bytewise equal.
58597
58598 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58599
58600         * doc/regexprops-generic.texi: Add a copyright notice.
58601
58602 2006-08-15  Bruno Haible  <bruno@clisp.org>
58603
58604         * modules/tmpdir (License): Change to LGPL.
58605
58606 2006-08-15  Bruno Haible  <bruno@clisp.org>
58607
58608         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58609         module.
58610
58611 2006-08-14  Simon Josefsson  <jas@extundo.com>
58612
58613         * config/srclist.txt: Add gnupload.
58614
58615 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58616
58617         Change copyright notice from LGPL 2 to GPL 2, since that's the
58618         standard form used in the gnulib repository.
58619         * tests/test-lock.c: Likewise.
58620         * tests/test-stdint.c: Likewise.
58621         * tests/test-tls.c: Likewise.
58622
58623         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58624         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58625         Add copyright notice.
58626
58627         * check-module: Add copyright notice.  Output a copyright
58628         notice if "--version" is specified.
58629         * modules/COPYING: New file.
58630         * tests/test-getaddrinfo.c: Add copyright notice.
58631         * tests/test-verify.c: Likewise.
58632
58633 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58634
58635         Change copyright notice from LGPL 2 to GPL 2, since that's the
58636         standard form used in the gnulib repository.
58637         * lib/lock.c: LGPL -> GPL.
58638         * lib/lock.h: Likewise.
58639         * lib/strnlen1.c: Likewise.
58640         * lib/strnlen1.h: Likewise.
58641         * lib/tls.c: Likewise.
58642         * lib/tls.h: Likewise.
58643         * lib/tmpdir.c: Likewise.
58644
58645         * lib/TODO: Remove; this belongs only in coreutils.
58646
58647 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         Add copyright notices to long-enough files that lack them, since
58650         otherwise the files aren't clearly free.  Use the same notice that
58651         getdate.texi already uses.
58652         * doc/alloca-opt.texi: Add copyright notice.
58653         * doc/alloca.texi: Likewise.
58654         * doc/ctime.texi: Likewise.
58655         * doc/functions.texi: Likewise.
58656         * doc/gcd.texi: Likewise.
58657         * doc/gnulib-tool.texi: Likewise.
58658         * doc/inet_ntoa.texi: Likewise.
58659         * doc/visibility.texi: Likewise.
58660
58661         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58662         * doc/quote.texi: Add copyright notice.
58663
58664         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58665         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58666         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58667         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58668         is now obsolete, and give a pointer to the Sun list.
58669         Add copyright notice.
58670
58671 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * config/srclistvars.sh: Add copyright notice.
58674
58675 2006-08-14  Eric Blake  <ebb9@byu.net>
58676
58677         Import the following change from libc:
58678
58679         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58680
58681         Upstream bug 2997.
58682         * lib/misc/error.c: Add space between program name and message if file
58683         name is missing.
58684
58685 2006-08-12  Karl Berry  <karl@gnu.org>
58686
58687         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58688         remove, these originate in gnulib now.
58689
58690 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58691
58692         * doc/Makefile (standards.info standards.html standards.dvi):
58693         Also depend on make-stds.texi.
58694
58695 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58698         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58699
58700         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58701         in wchar_t.  Problem reported by Eric Blake.
58702
58703         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58704         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58705         Also, help the compiler to keep LEN in a register.
58706
58707 2006-08-11  Eric Blake  <ebb9@byu.net>
58708
58709         * users.txt: Sort.  Add tar.
58710
58711 2006-08-11  Bruno Haible  <bruno@clisp.org>
58712
58713         * users.txt: New file.
58714
58715 2006-08-11  Bruno Haible  <bruno@clisp.org>
58716
58717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58718         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58719
58720 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58721
58722         * modules/snprintf (Depends-on): Remove minmax.
58723         (Maintainer): Add self and Bruno.
58724
58725 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58728         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58729         (EOVERFLOW): Define if the system does not.
58730         Do not include "minmax.h"; it wasn't used.
58731         (snprintf): Don't assume size_t promotes to an unsigned type.
58732         Fix bug when generated string was too long for the buffer: the
58733         buffer's contents are supposed to be the initial prefix of the
58734         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58735         exceeds INT_MAX; do the check ourselves.
58736
58737         Import the following changes from libc:
58738
58739         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58740
58741         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58742         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58743         set wc to the byte which couldn't be converted.
58744         (re_string_reconstruct): Don't clear valid_raw_len before calling
58745         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58746         tip_context using re_string_context_at.
58747
58748         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58749
58750         * lib/posix/regex.h: g++ still cannot handled [restrict].
58751
58752         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58753
58754         * lib/posix/regex.h: Remove special handling for VMS.
58755
58756 2006-08-10  Jim Meyering  <jim@meyering.net>
58757
58758         * modules/same-inode: New module.
58759         * modules/dev-ino: New module.
58760         * modules/cycle-check: Depend on these modules, rather than simply
58761         including their .h files.
58762         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58763         required via m4/cycle-check.m4.
58764         * modules/same: Depend on new same-inode module, rather than
58765         including same-inode.h.
58766         * modules/chdir-safer: New file.
58767
58768         * modules/chown (Depends-on): Add stat-macros.
58769
58770 2006-08-10  Jim Meyering  <jim@meyering.net>
58771
58772         * m4/cycle-check.m4: New file.
58773         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58774         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58775
58776 2006-08-10  Eric Blake  <ebb9@byu.net>
58777
58778         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58779         in from original proposal.
58780
58781 2006-08-10  Eric Blake  <ebb9@byu.net>
58782         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58783
58784         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58785         namespace.
58786
58787 2006-08-10  Bruno Haible  <bruno@clisp.org>
58788
58789         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58790         as well.
58791
58792 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58793
58794         Sync from coreutils.
58795
58796         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58797
58798         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58799         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58800
58801 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * modules/restrict: Remove; no longer needed now that we assume
58804         Autoconf 2.59 or later.
58805         * MODULES.html.sh: Remove 'restrict'.
58806         * modules/argp (Depends-on): Remove 'restrict'.
58807         * modules/base64 (Depends-on): Likewise.
58808         * modules/gc (Depends-on): Likewise.
58809         * modules/getaddrinfo (Depends-on): Likewise.
58810         * modules/glob (Depends-on): Likewise.
58811         * modules/inet_ntop (Depends-on): Likewise.
58812         * modules/inet_pton (Depends-on): Likewise.
58813         * modules/memxor (Depends-on): Likewise.
58814         * modules/regex (Depends-on): Likewise.
58815         * modules/strtok_r (Depends-on): Likewise.
58816         * modules/time_r (Depends-on): Likewise.
58817
58818 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58819
58820         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58821         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58822         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58823         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58824         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58825         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58826         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58827         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58828
58829         Merge from coreutils.
58830         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58831         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58832         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58833         * m4/time_r.m4 (gl_TIME_R): Likewise.
58834
58835 2006-08-09  Karl Berry  <karl@gnu.org>
58836
58837         * config/srclist.txt: no more gettext-tools, per Bruno.
58838
58839 2006-08-08  Eric Blake  <ebb9@byu.net>
58840
58841         * modules/verror: New module.
58842         * MODULES.html.sh: Document it.
58843
58844 2006-08-08  Eric Blake  <ebb9@byu.net>
58845
58846         * lib/verror.h, lib/verror.c: New files.
58847
58848 2006-08-08  Eric Blake  <ebb9@byu.net>
58849
58850         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58851         verror_at_line output complies with GNU Coding Standards even when
58852         file is NULL.
58853
58854 2006-08-07  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58857         versions of AIX.
58858         Reported by Ralf Wildenhues.
58859
58860 2006-08-07  Bruno Haible  <bruno@clisp.org>
58861
58862         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58863         in an AC_DEFUN. Needed so that the autoconf snippets can use
58864         AC_REQUIRE.
58865
58866 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58867
58868         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58869         Initialize pkgdata_DATA.
58870         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58871         overriding it.
58872
58873 2006-08-06  Eric Blake  <ebb9@byu.net>
58874
58875         * lib/error.h: Fold in some upstream changes from glibc.
58876         * lib/error.c: Likewise.
58877
58878 2006-08-04  Bruno Haible  <bruno@clisp.org>
58879
58880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58881         Make the mostlyclean-local rule depend on mostlyclean-generic.
58882         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58883
58884 2006-07-31  Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58887         <stdlib.h>, <string.h>.
58888
58889 2006-07-30  Bruno Haible  <bruno@clisp.org>
58890
58891         * modules/readlink (License): Change to LGPL.
58892
58893 2006-07-30  Bruno Haible  <bruno@clisp.org>
58894
58895         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58896         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58897         set PKGDATADIR to point to it.
58898
58899 2006-07-30  Bruno Haible  <bruno@clisp.org>
58900
58901         * modules/csharpexec (configure.ac): Comment out macro invocation.
58902         * modules/javaexec (configure.ac): Likewise.
58903         * modules/javacomp-script (configure.ac): Likewise.
58904
58905         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58906
58907 2006-07-30  Bruno Haible  <bruno@clisp.org>
58908
58909         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58910         linked-list.
58911
58912 2006-07-30  Bruno Haible  <bruno@clisp.org>
58913
58914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58915
58916 2006-07-30  Bruno Haible  <bruno@clisp.org>
58917
58918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58919         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58920         get removed.
58921
58922 2006-07-29  Bruno Haible  <bruno@clisp.org>
58923
58924         Make it possible for gnulib-tool to work with locally modified or
58925         augmented gnulib repositories.
58926         * gnulib-tool (func_usage): Document --local-dir option.
58927         (local_gnulib_dir): New variable.
58928         Handle --local-dir option.
58929         (func_lookup_file): New function.
58930         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58931         (func_get_description, func_get_filelist, func_get_description,
58932         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58933         func_get_automake_snippet, func_get_include_directive,
58934         func_get_license, func_get_maintainer): Use func_lookup_file.
58935         (func_import, func_create_testdir): Use func_lookup_file.
58936
58937 2006-07-29  Bruno Haible  <bruno@clisp.org>
58938
58939         * modules/setenv (Depends-on): Add unistd.
58940
58941 2006-07-29  Bruno Haible  <bruno@clisp.org>
58942
58943         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58944
58945 2006-07-29  Bruno Haible  <bruno@clisp.org>
58946
58947         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58948
58949 2006-07-29  Bruno Haible  <bruno@clisp.org>
58950
58951         * gnulib-tool (import, update): If there is no Makefile.am, look at
58952         aclocal.m4, instead of bailing out.
58953
58954 2006-07-29  Bruno Haible  <bruno@clisp.org>
58955
58956         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58957         Categorize the options by when they are useful.
58958
58959 2006-07-29  Bruno Haible  <bruno@clisp.org>
58960
58961         * gnulib-tool (func_usage): Document option --no-libtool.
58962         Handle option --no-libtool.
58963         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58964         for changed semantics of $libtool variable.
58965         (func_import): Likewise. If libtool is not used, show this through
58966         an option --no-libtool.
58967         (func_create_testdir): Update.
58968
58969 2006-07-29  Bruno Haible  <bruno@clisp.org>
58970
58971         * gnulib-tool (func_import): Extend error message about missing
58972         --doc-base.
58973
58974 2006-07-29  Bruno Haible  <bruno@clisp.org>
58975
58976         * gnulib-tool (func_import): Don't create the $docbase directory if
58977         there is no file to store there.
58978
58979 2006-07-29  Bruno Haible  <bruno@clisp.org>
58980
58981         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58982         relevant, look for configure.ac there, not in the current directory.
58983         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58984
58985 2006-07-29  Bruno Haible  <bruno@clisp.org>
58986
58987         * gnulib-tool (SORT): New variable.
58988         (func_usage): Undocument --assume-autoconf option.
58989         Remove --assume-autoconf option handling.
58990         (autoconf_minversion): Determine from the contents of configure.ac.
58991         (func_import): Remove autoconf_minversion handling.
58992         Suggested by Eric Blake.
58993
58994 2006-07-29  Bruno Haible  <bruno@clisp.org>
58995
58996         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58997
58998 2006-07-29  Bruno Haible  <bruno@clisp.org>
58999
59000         * config/srclist.txt (*setenv.[ch]): Remove rules.
59001
59002 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59003
59004         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59005
59006 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59007
59008         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59009         arpa/inet.h.
59010
59011 2006-07-28  Simon Josefsson  <jas@extundo.com>
59012
59013         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59014         * modules/inet_pton (Depends-on): Likewise.
59015
59016 2006-07-28  Simon Josefsson  <jas@extundo.com>
59017
59018         * m4/netinet_in_h.m4: New file.
59019
59020 2006-07-28  Simon Josefsson  <jas@extundo.com>
59021
59022         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59023         #include's.
59024
59025 2006-07-28  Simon Josefsson  <jas@extundo.com>
59026
59027         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59028         #include's.
59029
59030 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59031
59032         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59033         setgid on directories only if they set these bits.
59034         * lib/modechange.h: Remove obsolete comment about masks.
59035
59036 2006-07-28  Eric Blake  <ebb9@byu.net>
59037
59038         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59039         macro expansion.
59040
59041 2006-07-28  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59044
59045 2006-07-28  Bruno Haible  <bruno@clisp.org>
59046
59047         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59048
59049 2006-07-28  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59052         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59053         Define fallbacks.
59054         Avoids link error on FreeBSD 4.x.
59055         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59056
59057         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59058         encoding.
59059         * lib/mbswidth.c (iswcntrl): Likewise.
59060
59061 2006-07-27  Bruno Haible  <bruno@clisp.org>
59062
59063         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59064         test.
59065
59066 2006-07-27  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59069         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59070         defined.
59071
59072 2006-07-26  Eric Blake  <ebb9@byu.net>
59073
59074         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59075
59076 2006-07-26  Eric Blake  <ebb9@byu.net>
59077
59078         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59079         like mingw that lack mkstemp.
59080         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59081         avoid compilation warning on mingw.
59082
59083 2006-07-26  Bruno Haible  <bruno@clisp.org>
59084
59085         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59086         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59087         INT_FAST*_MIN, INTPTR_MIN.
59088
59089 2006-07-25  Bruno Haible  <bruno@clisp.org>
59090
59091         * modules/version-etc (Depends-on): Add stdarg.
59092
59093 2006-07-25  Bruno Haible  <bruno@clisp.org>
59094
59095         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59096         complex commands.
59097
59098 2006-07-25  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59101         defined in <stdarg.h> or config.h.
59102
59103 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59104
59105         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59106         (gl_STDIO_SAFER): Remove.
59107
59108 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59109
59110         * MODULES.html.sh (File stream based Input/Output):
59111         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59112         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59113         * modules/fopen-safer, modules/tmpfile-safer: New files.
59114         * modules/stdio-safer: Remove.
59115
59116 2006-07-24  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/tmpdir: New file.
59119         * MODULES.html.sh (File system functions): Add it.
59120
59121 2006-07-24  Bruno Haible  <bruno@clisp.org>
59122
59123         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59124         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59125
59126 2006-07-24  Bruno Haible  <bruno@clisp.org>
59127
59128         * modules/clean-temp: New file.
59129
59130 2006-07-24  Bruno Haible  <bruno@clisp.org>
59131
59132         * m4/tmpdir.m4: New file, from GNU gettext.
59133
59134 2006-07-24  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/tmpdir.h: New file, from GNU gettext.
59137         * lib/tmpdir.c: New file, from GNU gettext.
59138
59139 2006-07-24  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/clean-temp.h: New file, from GNU gettext.
59142         * lib/clean-temp.c: New file, from GNU gettext.
59143
59144 2006-07-23  Eric Blake  <ebb9@byu.net>
59145
59146         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59147         (Depends-on): Add binary-io.
59148
59149 2006-07-23  Eric Blake  <ebb9@byu.net>
59150
59151         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59152
59153 2006-07-23  Eric Blake  <ebb9@byu.net>
59154
59155         * lib/tmpfile-safer.c: New file.
59156         * lib/stdio-safer.h (fopen_safer): Add prototype.
59157         * lib/stdio--.h (tmpfile): Make safer.
59158
59159 2006-07-23  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59162         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59163         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59164         gl_linked_remove_at): Use it.
59165
59166 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59167         and Simon Josefsson <jas@extundo.com>
59168
59169         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59170
59171         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59172
59173 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         * modules/close-stream: New file.
59176         * modules/closeout (Description): Make it clear that it exits
59177         with a diagnostic on error.
59178         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59179         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59180
59181 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * m4/close-stream.m4: New file.
59184
59185 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59186
59187         * lib/close-stream.c, lib/close-stream.h: New files.
59188
59189 2006-07-22  Bruno Haible  <bruno@clisp.org>
59190
59191         Merge from GNU gettext 0.15.
59192
59193         2006-05-01  Bruno Haible  <bruno@clisp.org>
59194
59195                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59196
59197         2006-07-22  Bruno Haible  <bruno@clisp.org>
59198
59199                 * modules/javaversion: New file.
59200                 * MODULES.html.sh (Java): Add javaversion.
59201
59202         2006-03-12  Bruno Haible  <bruno@clisp.org>
59203
59204                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59205
59206         2005-12-04  Bruno Haible  <bruno@clisp.org>
59207
59208                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59209                 (untested).
59210
59211         2006-06-21  Bruno Haible  <bruno@clisp.org>
59212
59213                 Avoid warnings from recent versions of mcs.
59214                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59215                 -o, -L, -r any more. Use options documented since mcs-1.0
59216                 instead. Similarly for -g.
59217
59218         2005-12-04  Bruno Haible  <bruno@clisp.org>
59219
59220                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59221                 .resources, not .resource.
59222
59223         2005-07-09  Bruno Haible  <bruno@clisp.org>
59224
59225                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59226                 add a .dll suffix.
59227                 Reported by Mark Junker <mjscod@gmx.de>.
59228
59229         2006-07-22  Bruno Haible  <bruno@clisp.org>
59230
59231                 * modules/gettext: Upgrade to gettext-0.15.
59232                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59233                 m4/visibility.m4.
59234                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59235
59236 2006-07-22  Bruno Haible  <bruno@clisp.org>
59237
59238         Merge from GNU gettext 0.15.
59239
59240         2006-03-25  Bruno Haible  <bruno@clisp.org>
59241
59242                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59243
59244         2006-07-21  Bruno Haible  <bruno@clisp.org>
59245
59246                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59247                 "1.1".
59248
59249         2006-05-09  Bruno Haible  <bruno@clisp.org>
59250
59251                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59252                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59253                 for the conftestver execution.
59254
59255         2006-05-01  Bruno Haible  <bruno@clisp.org>
59256
59257                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59258                 optional target-version argument. Verify that the compiler
59259                 groks source of the specified source-version, or add -source
59260                 option as necessary. Verify that the compiler produces
59261                 bytecode in the specified target-version, or add -target and
59262                 -source options as necessary. Make the result of the test
59263                 available as variable CONF_JAVAC. Also log error output in
59264                 config.log.
59265
59266         2006-03-11  Bruno Haible  <bruno@clisp.org>
59267
59268                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59269
59270         2006-05-09  Bruno Haible  <bruno@clisp.org>
59271
59272                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59273                 CLASSPATH_SEPARATOR to a semicolon.
59274
59275         2006-03-12  Bruno Haible  <bruno@clisp.org>
59276
59277                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59278                 available as variable CONF_JAVA, for subsequent autoconf
59279                 tests. Also log error output in config.log.
59280
59281         2006-07-19  Bruno Haible  <bruno@clisp.org>
59282
59283                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59284                 that getline works on glibc2 systems. Needed to avoid trouble
59285                 in relocatable.c.
59286                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59287
59288         2005-12-04  Bruno Haible  <bruno@clisp.org>
59289
59290                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59291                 launcher (untested).
59292
59293         2005-12-04  Bruno Haible  <bruno@clisp.org>
59294
59295                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59296
59297         2006-07-22  Bruno Haible  <bruno@clisp.org>
59298
59299                 * gettext.m4: Update from GNU gettext-0.15.
59300                 * nls.m4: Likewise.
59301                 * po.m4: Likewise.
59302                 * inttypes-pri.m4: Likewise.
59303                 * inttypes-h.m4: Renamed from inttypes.m4.
59304                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59305
59306 2006-07-22  Bruno Haible  <bruno@clisp.org>
59307
59308         Merge from GNU gettext 0.15.
59309
59310         2005-07-05  Bruno Haible  <bruno@clisp.org>
59311
59312                 * printf-args.c (printf_fetchargs): Work around broken
59313                 definition of wint_t on mingw.
59314
59315         2005-02-12  Bruno Haible  <bruno@clisp.org>
59316
59317                 * xallocsa.h: Add extern "C" for C++.
59318
59319         2006-05-17  Bruno Haible  <bruno@clisp.org>
59320
59321                 Cygwin portability.
59322                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59323
59324         2006-04-30  Bruno Haible  <bruno@clisp.org>
59325
59326                 * progreloc.c: Include <mach-o/dyld.h> if available.
59327                 (find_executable): Use _NSGetExecutablePath when possible.
59328
59329         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59330
59331                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59332                 function.
59333
59334         2005-12-29  Bruno Haible  <bruno@clisp.org>
59335
59336                 * progreloc.c (set_program_name_and_installdir): Fix
59337                 compilation error.
59338
59339         2005-12-04  Bruno Haible  <bruno@clisp.org>
59340
59341                 Cygwin portability.
59342                 * progreloc.c: Include <windows.h> also on Cygwin.
59343                 (find_executable): Add support for Cygwin.
59344                 (set_program_name_and_installdir): Handle also platforms with
59345                 nonempty EXEEXT.
59346
59347         2006-07-11  Bruno Haible  <bruno@clisp.org>
59348
59349                 * javacomp.c: Fix a comment.
59350                 Reported by Jim Meyering.
59351
59352         2006-04-30  Bruno Haible  <bruno@clisp.org>
59353
59354                 * javacomp.h (compile_java_class): Add source_version,
59355                 target_version arguments.
59356                 * javacomp.c: Rewritten to choose only a compiler that
59357                 respects the specified source_version and target_version.
59358
59359         2006-06-27  Bruno Haible  <bruno@clisp.org>
59360
59361                 Assume correct S_ISDIR macro.
59362                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59363
59364         2006-07-22  Bruno Haible  <bruno@clisp.org>
59365
59366                 * javaversion.h: New file, from GNU gettext.
59367                 * javaversion.c: New file, from GNU gettext.
59368                 * javaversion.java: New file, from GNU gettext.
59369                 * javaversion.class: New file, from GNU gettext.
59370
59371         2006-05-17  Bruno Haible  <bruno@clisp.org>
59372
59373                 Cygwin portability.
59374                 * javaexec.c (execute_java_class): Test for jview program
59375                 also on Cygwin.
59376
59377         2006-04-09  Bruno Haible  <bruno@clisp.org>
59378
59379                 * fatal-signal.c: Don't include string.h.
59380                 (at_fatal_signal): Use a copying loop instead of memcpy.
59381
59382         2005-12-04  Bruno Haible  <bruno@clisp.org>
59383
59384                 * csharpexec.c: Add support for 'clix' launcher (untested).
59385                 (execute_csharp_using_sscli): New function.
59386                 (execute_csharp_program): Call it.
59387
59388         2006-06-21  Bruno Haible  <bruno@clisp.org>
59389
59390                 Avoid warnings from recent versions of mcs.
59391                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59392                 -o, -L, -r any more. Use options documented since mcs-1.0
59393                 instead. Similarly for -g.
59394
59395         2005-07-09  Bruno Haible  <bruno@clisp.org>
59396
59397                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59398                 add a .dll suffix.
59399                 Reported by Mark Junker <mjscod@gmx.de>.
59400
59401         2006-06-17  Bruno Haible  <bruno@clisp.org>
59402
59403                 * config.charset: Update for NetBSD 3.0.
59404
59405         2006-05-17  Bruno Haible  <bruno@clisp.org>
59406
59407                 Cygwin portability.
59408                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59409
59410         2006-05-16  Bruno Haible  <bruno@clisp.org>
59411
59412                 * localcharset.c [CYGWIN]: Include <windows.h>.
59413                 (get_charset_aliases): For Cygwin, return the same CPxxx
59414                 aliases list as under WIN32.
59415                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59416                 the environment variables. Fall back to GetACP().
59417
59418         2006-04-05  Bruno Haible  <bruno@clisp.org>
59419
59420                 * config.charset: Update Juan Manuel Guerrero's address.
59421
59422         2005-02-12  Bruno Haible  <bruno@clisp.org>
59423
59424                 * allocsa.h: Add extern "C" for C++.
59425
59426         2005-02-10  Bruno Haible  <bruno@clisp.org>
59427
59428                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59429                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59430
59431         2006-07-22  Bruno Haible  <bruno@clisp.org>
59432
59433                 * gettext.h: Update to GNU gettext-0.15.
59434
59435 2006-07-22  Bruno Haible  <bruno@clisp.org>
59436
59437         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59438         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59439         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59440
59441 2006-07-21  Eric Blake  <ebb9@byu.net>
59442
59443         * modules/stdlib-safer: New file.
59444         * MODULES.html.sh (File stream based Input/Output): Add
59445         stdlib-safer.
59446
59447 2006-07-21  Eric Blake  <ebb9@byu.net>
59448
59449         * lib/stdlib-safer.h: New file from coreutils, required by
59450         stdlib--.h.
59451
59452 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59455
59456 2006-07-20  Bruno Haible  <bruno@clisp.org>
59457
59458         * gnulib-tool: Recognize new option --assume-autoconf.
59459         (autoconf_minversion): New variable.
59460         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59461
59462 2006-07-20  Bruno Haible  <bruno@clisp.org>
59463
59464         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59465
59466 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59467
59468         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59469         Reindent and repaginate.
59470
59471 2006-07-19  Derek Price  <derek@ximbiot.com>
59472
59473         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59474         Correct grammar.
59475
59476 2006-07-17  Bruno Haible  <bruno@clisp.org>
59477
59478         * modules/list: New file.
59479         * modules/array-list: New file.
59480         * modules/carray-list, modules/carray-list-tests: New files.
59481         * modules/linked-list, modules/linked-list-tests: New files.
59482         * modules/avltree-list, modules/avltree-list-tests: New files.
59483         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59484         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59485         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59486         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59487         * modules/oset: New file.
59488         * modules/array-oset: New file.
59489         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59490         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59491         * tests/test-carray_list.c: New file.
59492         * tests/test-linked_list.c: New file.
59493         * tests/test-avltree_list.c: New file.
59494         * tests/test-rbtree_list.c: New file.
59495         * tests/test-linkedhash_list.c: New file.
59496         * tests/test-avltreehash_list.c: New file.
59497         * tests/test-rbtreehash_list.c: New file.
59498         * tests/test-avltree_oset.c: New file.
59499         * tests/test-rbtree_oset.c: New file.
59500         * MODULES.html.sh (Container data structures): New section.
59501
59502 2006-07-17  Bruno Haible  <bruno@clisp.org>
59503
59504         * m4/gl_list.m4: New file.
59505
59506 2006-07-17  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/gl_list.h: New file.
59509         * lib/gl_list.c: New file.
59510         * lib/gl_array_list.h: New file.
59511         * lib/gl_array_list.c: New file.
59512         * lib/gl_carray_list.h: New file.
59513         * lib/gl_carray_list.c: New file.
59514         * lib/gl_linked_list.h: New file.
59515         * lib/gl_linked_list.c: New file.
59516         * lib/gl_anylinked_list1.h: New file.
59517         * lib/gl_anylinked_list2.h: New file.
59518         * lib/gl_avltree_list.h: New file.
59519         * lib/gl_avltree_list.c: New file.
59520         * lib/gl_anyavltree_list1.h: New file.
59521         * lib/gl_anyavltree_list2.h: New file.
59522         * lib/gl_rbtree_list.h: New file.
59523         * lib/gl_rbtree_list.c: New file.
59524         * lib/gl_anyrbtree_list1.h: New file.
59525         * lib/gl_anyrbtree_list2.h: New file.
59526         * lib/gl_anytree_list1.h: New file.
59527         * lib/gl_anytree_list2.h: New file.
59528         * lib/gl_linkedhash_list.h: New file.
59529         * lib/gl_linkedhash_list.c: New file.
59530         * lib/gl_anyhash_list1.h: New file.
59531         * lib/gl_anyhash_list2.h: New file.
59532         * lib/gl_avltreehash_list.h: New file.
59533         * lib/gl_avltreehash_list.c: New file.
59534         * lib/gl_rbtreehash_list.h: New file.
59535         * lib/gl_rbtreehash_list.c: New file.
59536         * lib/gl_anytreehash_list1.h: New file.
59537         * lib/gl_anytreehash_list2.h: New file.
59538
59539         * lib/gl_oset.h: New file.
59540         * lib/gl_oset.c: New file.
59541         * lib/gl_array_oset.h: New file.
59542         * lib/gl_array_oset.c: New file.
59543         * lib/gl_avltree_oset.h: New file.
59544         * lib/gl_avltree_oset.c: New file.
59545         * lib/gl_rbtree_oset.h: New file.
59546         * lib/gl_rbtree_oset.c: New file.
59547         * lib/gl_anytree_oset.h: New file.
59548
59549 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59550
59551         * m4/mkancesdirs.m4: New file.
59552         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59553         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59554         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59555         it.
59556
59557 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59560         * lib/mkancesdirs.h: New files.
59561         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59562         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59563         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59564         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59565         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59566         callers changed.  Revamp internals significantly, by not
59567         attempting to create directories that are temporarily more
59568         permissive than the final results.  Do not attempt to use
59569         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59570         This removes some race conditions, fixes some bugs, and simplifies
59571         things.  Use new dirchownmod function to do owner and mode changes.
59572         * lib/mkdir-p.h: Likewise.
59573         * lib/modechange.c (octal_to_mode): New function.
59574         (struct mode_change): New member mentioned.
59575         (make_node_op_equals): New arg mentioned.  All callers changed.
59576         (mode_compile): Keep track of which mode bits the user has explicitly
59577         mentioned.
59578         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59579         New arg PMODE_BITS, to keep track of which mode bits the user
59580         mentioned; it treats S_ISUID and S_ISGID speciall.
59581         All callers changed.
59582         * lib/modechange.h: Likewise.
59583
59584 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59585
59586         * MODULES.html.sh: Add mkancestors.
59587         * modules/mkancesdirs: New module.
59588         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59589         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59590         The chdir-safer and afs files are now orphans; I'll remove them
59591         unless someone speaks up.
59592         Add lib/dirchownmod.c, lib/dirchownmod.h.
59593         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59594         Add lchown, mkancesdirs.
59595         (Maintainer): Add self.
59596
59597 2006-07-15  Karl Berry  <karl@gnu.org>
59598
59599         * gnulib-tool: help message wording/arrangement.
59600
59601 2006-07-14  Simon Josefsson  <jas@extundo.com>
59602
59603         * doc/gnulib.texi (Libtool and Windows): New section.
59604
59605 2006-07-12  Simon Josefsson  <jas@extundo.com>
59606
59607         * modules/gendocs (License): Fix license, approved by Karl.
59608
59609 2006-07-12  Eric Blake  <ebb9@byu.net>
59610
59611         * MODULES.html.sh: Add gendocs.
59612
59613 2006-07-11  Eric Blake  <ebb9@byu.net>
59614
59615         * modules/fdl: New module, to install doc/fdl.texi.
59616         * MODULES.html.sh: Add new section for documentation modules.
59617         * gnulib-tool: Avoid space-tab.
59618         (--doc-base): New option, to manage files from doc.
59619
59620 2006-07-11  Eric Blake  <ebb9@byu.net>
59621
59622         * m4/absolute-header.m4: Fix comments to match recent change.
59623
59624 2006-07-11  Eric Blake  <ebb9@byu.net>
59625
59626         * gnulib-tool: List --doc-base before --tests-base.
59627
59628 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59629
59630         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59631
59632 2006-07-11  Bruno Haible  <bruno@clisp.org>
59633
59634         * README: Mention where to put documentation.
59635
59636 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59637
59638         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59639
59640 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59641
59642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59643         to stdint.m4.
59644
59645 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59646
59647         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59648         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59649         "no/such/file/stdint.h" when there is no such file, so that
59650         the resulting C code can be parsed by dodgy compilers.
59651         Problems reported by Bob Proulx.
59652
59653 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59654
59655         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59656         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59657         macros into the GNU _D_EXACT_NAMLEN.
59658         * lib/savedir.c:  Likewise.
59659         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59660
59661 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59662         and Paul Eggert  <eggert@cs.ucla.edu>
59663
59664         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59665         * m4/savedir.m4:
59666         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59667         macros into the GNU _D_EXACT_NAMLEN.
59668
59669 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59670
59671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59672         around the absolute name, to work around a problem with the HP-UX
59673         11.23 native C compiler, reported by Bob Proulx.
59674
59675 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59676
59677         * doc/maintain.texi, make-stds.texi: Sync from
59678         <http://savannah.gnu.org/projects/gnustandards>.
59679
59680 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59683
59684 2006-07-09  Jim Meyering  <jim@meyering.net>
59685
59686         * m4/glob.m4: Remove a doubled word in a comment.
59687
59688 2006-07-09  Jim Meyering  <jim@meyering.net>
59689
59690         * lib/argp-pv.c: Remove a doubled word in a comment.
59691         * lib/check-version.c (check_version): Likewise.
59692         * lib/javacomp.c (compile_java_class): Likewise.
59693
59694 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59695
59696         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59697         for the benefit of people using Autoconf 2.60.  If you want to
59698         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59699         (or m4/onceonly.m4, if pre-2.57) manually.
59700
59701 2006-07-08  Jim Meyering  <jim@meyering.net>
59702
59703         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59704         comment.
59705         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59706         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59707         comment.
59708
59709 2006-07-08  Jim Meyering  <jim@meyering.net>
59710
59711         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59712
59713 2006-07-07  Simon Josefsson  <jas@extundo.com>
59714
59715         * tests/test-crc.c: Change expected crc value, the test vector
59716         were probably computed using the old broken crc.c?
59717
59718 2006-07-06  Simon Josefsson  <jas@extundo.com>
59719
59720         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59721         now the canonical place for the M4 file).
59722
59723         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59724         from the sys_socket dependency now.
59725
59726         * modules/inet_pton (Files): Ditto.
59727
59728         * modules/inet_ntop (Files): Ditto.
59729
59730 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59731
59732         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59733         not gl_PREREQ_GETUSERSHELL.
59734
59735 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59736
59737         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59738         with only one argument, for Autoconf 2.60.
59739         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59740         expand to nothing, so add a shell command to avoid syntax error.
59741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59742
59743 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59744
59745         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59746
59747 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59750         no longer needed.  Check for isblank decl.
59751         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59752         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59753         of existence.
59754
59755 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         * lib/getloadavg.c: Use __VMS, not VMS.
59758         * lib/getopt.c: Likewise.
59759         * lib/getpagesize.h: Likewise.
59760         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59761         and probably does not work.
59762
59763 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59764
59765         * lib/.cppi-disable: Add wcwidth.
59766         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59767         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59768         (ISGRAPH): Remove.  All uses changed to isgraph.
59769         (FOLD) [!defined _LIBC]: Remove special case.
59770         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59771         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59772         HAVE_ISBLANK.
59773         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59774         case.
59775
59776 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59777
59778         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59779         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59780         brackets.  Other minor changes to suppress some compiler
59781         warnings.
59782
59783 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59784         and Paul Eggert  <eggert@cs.ucla.edu>
59785
59786         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59787         of invoking obsolescent AC_HEADER_DIRENT macro.
59788         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59789         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59790         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59791         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59792         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59793         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59794         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59795         * m4/readdir.m4: Remove; no longer needed.
59796
59797 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59798         and Paul Eggert  <eggert@cs.ucla.edu>
59799
59800         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59801         Don't worry about this obsolete case any more.
59802         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59803         directories.
59804         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59805         worry about this obsolete case any more.
59806         * lib/fts.c: Likewise.
59807         * lib/getcwd.c: Likewise.
59808         * lib/glob.h: Likewise.
59809         * lib/savedir.c: Likewise.
59810
59811 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59812
59813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59814         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59815         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59816         needed.
59817         All uses removed.
59818         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59819         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59820         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59821         needed.
59822         * m4/getdate.m4 (gl_GETDATE): Likewise.
59823         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59824         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59825         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59826         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59827         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59828         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59829         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59830         needed.
59831
59832 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59833
59834         * lib/memcasecmp.c: Include <limits.h>.
59835         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59836         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59837         Don't assume isdigit succeeds only on '0' through '9'.
59838
59839 2006-07-05  Eric Blake  <ebb9@byu.net>
59840
59841         * modules/getaddrinfo (Depends-on): Add snprintf.
59842
59843 2006-07-05  Eric Blake  <ebb9@byu.net>
59844
59845         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59846         to avoid 'header present but could not be compiled' on cygwin.
59847
59848 2006-07-05  Eric Blake  <ebb9@byu.net>
59849
59850         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59851         missing from netdb.h.
59852         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59853
59854 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59855
59856         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59857         no longer needed.
59858         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59859         * m4/getdate.m4 (gl_GETDATE): Likewise.
59860         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59861         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59862         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59863         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59864         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59865
59866 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59867
59868         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59869         All uses of is_space replaced by isspace.
59870         * lib/exit.h: Don't talk about STDC_HEADERS.
59871         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59872         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59873         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59874         replaced by isprint etc.
59875         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59876         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59877         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59878         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59879         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59880         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59881
59882 2006-07-05  Bruno Haible  <bruno@clisp.org>
59883
59884         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59885         the function exists, before testing against AIX.
59886         Reported by Martin Lambers <marlam@marlam.de>.
59887
59888 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59891         From Mark D. Baushke.
59892
59893 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59896         to the absolute name, not just one, to bypass Sun C 5.8's
59897         "warning: #include of /usr/include/... may be non-portable".
59898
59899 2006-07-04  Eric Blake  <ebb9@byu.net>
59900
59901         * modules/dirname-tests: New test module.
59902         * tests/test-dirname.c: New file, replacing dirname.c
59903         TEST_DIRNAME section that was recently deleted.
59904
59905 2006-07-04  Bruno Haible  <bruno@clisp.org>
59906
59907         Assume ANSI C header files and <ctype.h> functions.
59908         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59909         (mbsnwidth): Use isprint, iscntrl instead.
59910
59911 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         Merge from coreutils.
59914         * MODULES.html.sh: Add xstrtold.
59915         * modules/xstrtold: New file.
59916         * modules/cycle-check (Files): Add lib/same-inode.h.
59917         * modules/dirname (Files): Add m4/double-slash-root.m4.
59918         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59919         * modules/mkdir-p (Files): Add lib/same-inode.h.
59920         * modules/same (Files): Add lib/same-inode.h.
59921
59922 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59925         This is to keep the terminology clean; POSIX talks about
59926         "absolute pathnames", not "full pathnames", but the GNU
59927         Coding Standards say to use "path" for something else;
59928         so use "absolute" to keep both sides happy.
59929         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59930         Set gl_absolute_header, not gl_full_header_path.
59931         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59932         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59933         All uses changed.
59934
59935         Merge from coreutils.
59936
59937         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59940         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59941         want to require the building of c-strtod.o.
59942         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59943         needs -lm directly.
59944         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59945
59946         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59949         --as-needed option if available.  Problem reported by Albert Chin in
59950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59951         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59952         cc merely issues a bunch of annoying warnings for --as-needed
59953         (this problem was reported by Bob Proulx).  Also, try linking with
59954         -lm to detect a bug in binutils 2.16 (this problem was reported
59955         by Ralf Wildenhues).
59956
59957         2006-06-18  Jim Meyering  <jim@meyering.net>
59958
59959         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59960         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59961         macro.
59962         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59963         also check for glibc-2.4's abort-inducing bug.
59964
59965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59966         Low-probability clean-up should be to use rmdir to get rid of
59967         the just-created directory, not unlink.
59968
59969         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59970         configure fail, and request a bug report to inform us about it.
59971         Add a comment that, barring reports to the contrary, in 2007 we'll
59972         assume ftruncate is universally available.
59973
59974         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59975
59976         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59977
59978         2006-03-12  Jim Meyering  <jim@meyering.net>
59979
59980         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59981         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59982         * m4/same.m4 (gl_SAME): Likewise.
59983         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59984
59985         2006-03-11  Eric Blake  <ebb9@byu.net>
59986
59987         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59988         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59989         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59990         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59991
59992 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59993
59994         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59995         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59996         reported by Mark D. Baushke, one in
59997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59998
59999         Merge from coreutils.
60000
60001         * lib/.cppi-disable: Add stdint_.h.
60002         * lib/.cvsignore: Add stdint.h.
60003
60004         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60005
60006         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60007         both double and long double versions.
60008         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60009         * lib/xstrtold.c: New file.
60010         * lib/xstrtod.h (xstrtold): New decl.
60011
60012         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60013
60014         * lib/filemode.c (setst): Remove.
60015         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60016         (arguably) clearer, and the generated code is a bit smaller on my
60017         Debian GNU/Linux stable x86 host.
60018
60019         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60022         Assume that filemode.h includes sys/types.h and sys/stat.h.
60023         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60024         (ftypelet): Reorder to put common cases first, for efficiency.
60025         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60026         to do 'M'.
60027         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60028         of 10, for compatibility with FreeBSD.  All callers changed.
60029         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60030         types that can't be deduced solely from st_mode.  First arg is now a
60031         const pointer.
60032         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60033         (strmode): Renamed from mode_string.
60034         (filemodestring): New decl.
60035         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60036         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60037         needed.
60038         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60039
60040         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60043         fsusage.h now does that.  Include fsusage.h first, to test interface.
60044         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60045         at most one method (the old code could have generated decls that
60046         didn't conform to C89, not that this was ever exercised).
60047         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60048
60049         2006-03-19  Jim Meyering  <jim@meyering.net>
60050
60051         Work even in a chroot where d_ino values for entries in "/"
60052         don't match the stat.st_ino values for the same names.
60053         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60054         number, iterate through all entries again, using lstat instead.
60055         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60056         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60057
60058         * lib/getcwd.c (__getcwd): Clarify a comment.
60059         Use memcpy in place of a call to strcpy.
60060
60061         2006-03-12  Jim Meyering  <jim@meyering.net>
60062
60063         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60064         matches that of the current directory (which we're about to chdir ".."
60065         out of), then save the dev-ino of the parent, instead.
60066
60067         * lib/same-inode.h (SAME_INODE): New file/macro.
60068         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60069         Include "same-inode.h", instead.
60070         * lib/same.c: Likewise.
60071         * lib/cycle-check.h: Include "same-inode.h".
60072         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60073         * lib/cycle-check.c (SAME_INODE): Remove definition.
60074         * lib/root-dev-ino.h: Include "same-inode.h".
60075
60076         2006-03-11  Eric Blake  <ebb9@byu.net>
60077
60078         * lib/same.c (same_name): s/base_name/last_component/
60079         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60080         * lib/filenamecat.c (file_name_concat): Likewise.
60081
60082         2006-03-11  Eric Blake  <ebb9@byu.net>,
60083                     Paul Eggert  <eggert@cs.ucla.edu>
60084
60085         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60086         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60087         drive prefix.
60088         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60089         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60090         (last_component): New method.
60091         * lib/dirname.c (dir_len): Determine when drive letters need a
60092         subsequent slash.  Preserve // when it is special.
60093         (dir_name): Don't append dot when drive letter is absolute.
60094         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60095         * lib/basename.c (base_name): New semantics - malloc the result.
60096         Preserve // when it is special.  Preserve relative files that look
60097         like drive letters.
60098         (base_len): Preserve // when it is special.
60099         (last_component): New method, similar to old base_name semantics.
60100         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60101         base_name.  Strip redundant slashes from ///.
60102
60103 2006-07-03  Jim Meyering  <jim@meyering.net>
60104
60105         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60106         macro is used before the first cycle_check call.
60107
60108 2006-07-03  Eric Blake  <ebb9@byu.net>
60109
60110         * modules/dirname (Depends-on): Add xstrndup.
60111
60112 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60113
60114         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60115         test cases, so that config.log is a bit easier to follow.
60116
60117 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60120         both are 64 bits, since this seems to be the tradition, and this
60121         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60122         we ever run into a host that prefers long long to long in this
60123         case, we'll need another configure-time test.  Problem reported by
60124         Jim Meyering.
60125
60126 2006-07-02  Eric Blake  <ebb9@byu.net>
60127
60128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60129
60130 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60131
60132         * modules/inttypes (Depends-on): No longer depends on stdint.
60133         * modules/stdint (Description): Say more about assumptions.
60134         Say that the fast types might differ.  Say macros are used.
60135         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60136         (Makefile.am): Revise list of substituted symbols to match
60137         new stdint.m4.
60138         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60139         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60140         * tests/test-stdint.c (verify_same_types)
60141         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60142         the code conforms to C99/C89.
60143         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60144         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60145
60146 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60147
60148         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60149         but fix a bug, by requiring at least 64 bits.
60150         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60151         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60152         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60153         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60154
60155         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60156         changes.  Make 2.59 a prerequisite.  Check and substitute for
60157         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60158         inttypes.h.  Do not use special include files; just use the
60159         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60160         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60161         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60162         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60163         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60164         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60165         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60166         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60167         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60168         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60169         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60170         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60171         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60172         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60173         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60174         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60175         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60176         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60177         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60178         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60179         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60180         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60181         not check for things that C99 does not require, e.g., int8_t.  If
60182         a test isn't needed unless <stdint.h> isn't working, and is
60183         unlikely to be needed for any other reason, then don't do it
60184         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60185         size_t, since we assume C89 freestanding at least.  Do not check
60186         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60187         the right thing even if the types are not defined.  Instead use:
60188         (gl_STDINT_TYPE_PROPERTIES): New macro.
60189         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60190         testing whether <sys/types.h> clashes, as Autoconf does this for
60191         us now.  All uses removed.
60192         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60193         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60194         (gl_CHECK_TYPE_SAME):
60195         Remove; no longer needed.
60196         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60197         exists, since we'll return 0 anyway in that case.
60198         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60199
60200 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60201
60202         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60203         possible collision with system files.
60204         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60205         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60206         WCHAR_MIN and WCHAR_MAX in this case.
60207         (<stddef.h>): Do not include; no longer needed.
60208         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60209         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60210         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60211         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60212         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60213         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60214         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60215         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60216         !defined(__c99))]: Include in this case too, since it's harmless
60217         now.
60218         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60219         dangerous to do so.
60220         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60221         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60222         (_STDINT_MIN, _STDINT_MAX): New macros.
60223         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60224         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60225         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60226         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60227         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60228         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60229         macros, not typedefs; this simplifies things quite a bit.
60230         Use long int for all types narrower than int64_t.
60231         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60232         Define in terms of long long int or int64_t or long int,
60233         not int64_t or int32_t.  This saves some compile-time testing.
60234         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60235         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60236         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60237         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60238         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60239         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60240         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60241         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60242         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60243         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60244         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60245         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60246         undef any previous version and define our own version, for
60247         simplicity and consistency with the new macros for types.
60248         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60249         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60250         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60251         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60252         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60253         @WINT_T_SUFFIX@ to keep things simple here.
60254         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60255         Simplify by assuming typical 8/16/32/64 host, since we're
60256         already doing that elsewhere anyway.
60257         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60258         and assume long long int is 64 bits if available.  This
60259         speeds up 'configure'.
60260
60261 2006-07-01  Eric Blake  <ebb9@byu.net>
60262
60263         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60264         Reported by Andreas Buening.
60265
60266 2006-07-01  Eric Blake  <ebb9@byu.net>
60267
60268         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60269
60270 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60271
60272         * lib/getaddrinfo.c: fixed typo
60273
60274 2006-06-29  Jim Meyering  <jim@meyering.net>
60275
60276         * modules/strftime (Maintainer): Add my name, since with the
60277         FPRINTFTIME changes strftime.c has forked from glibc.
60278
60279 2006-06-29  Eric Blake  <ebb9@byu.net>
60280
60281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60282
60283 2006-06-29  Eric Blake  <ebb9@byu.net>
60284
60285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60286
60287 2006-06-29  Eric Blake  <ebb9@byu.net>
60288
60289         * lib/stat_.h: New file.
60290
60291 2006-06-29  Eric Blake  <ebb9@byu.net>
60292
60293         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60294         unused static function.
60295
60296 2006-06-29  Eric Blake  <ebb9@byu.net>
60297
60298         * doc/functions.texi (Function Portability): Document missing lstat
60299         on mingw.
60300
60301 2006-06-29  Eric Blake  <ebb9@byu.net>
60302
60303         * MODULES.html.sh: Add sys_stat.
60304         * modules/sys_stat: New module.
60305         * modules/mkstemp (Depends-on): Add sys_stat.
60306
60307 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60308
60309         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60310
60311 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60312
60313         * m4/c-bs-a.m4: Removed.
60314
60315 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60316
60317         * lib/strftime.c: Assume strftime() exists.
60318
60319 2006-06-29  Derek Price  <derek@ximbiot.com>
60320
60321         * modules/c-bs-a: Removed - \a is C89.
60322         * MODULES.html.sh: Remove c-bs-a.
60323
60324 2006-06-29  Bruno Haible  <bruno@clisp.org>
60325
60326         * modules/wcwidth (License): Change to LGPL.
60327
60328 2006-06-28  Simon Josefsson  <jas@extundo.com>
60329
60330         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60331         on _WIN32.
60332
60333         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60334         getnameinfo.
60335
60336 2006-06-28  Simon Josefsson  <jas@extundo.com>
60337
60338         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60339
60340 2006-06-28  Simon Josefsson  <jas@extundo.com>
60341
60342         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60343         functions there.  It will succeed on Windows XP, but on Windows
60344         2000 and (presumably) earlier, it will fail, and use the internal
60345         re-implementation.
60346         (use_win32_p): New function.
60347         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60348         Support AI_NUMERICSERV to disable getservbyname.
60349         (getnameinfo): New function, only supports
60350         NI_NUMERICHOST|NI_NUMERICSERV for now.
60351
60352         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60353         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60354         getnameinfo.
60355
60356 2006-06-28  Eric Blake  <ebb9@byu.net>
60357
60358         * modules/wcwidth: New file.
60359         * modules/mbchar (Depends-on): Add wcwidth.
60360         * modules/mbswidth (Depends-on): Add wcwidth.
60361         * MODULES.html.sh: Add wcwidth.
60362
60363 2006-06-28  Eric Blake  <ebb9@byu.net>
60364
60365         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60367
60368 2006-06-28  Eric Blake  <ebb9@byu.net>
60369
60370         * lib/xvasprintf.h: Fix comments.
60371
60372 2006-06-28  Eric Blake  <ebb9@byu.net>
60373
60374         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60375         * lib/mbswidth.c (wcwidth): Move from here...
60376         * lib/wcwidth.h: ...to this new file.
60377
60378 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60379
60380         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60381
60382         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60383         it's obsolete.
60384         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60385
60386 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60387
60388         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60389         Autoconf 2.60 says this stuff was obsolete.
60390
60391 2006-06-28  Bruno Haible  <bruno@clisp.org>
60392
60393         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60394
60395 2006-06-28  Bruno Haible  <bruno@clisp.org>
60396
60397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60398         gt_TYPE_WCHAR_T.
60399
60400 2006-06-28  Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60403         declaration for wcwidth.
60404         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60405
60406 2006-06-28  Bruno Haible  <bruno@clisp.org>
60407
60408         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60409         (mkdir): Define using _mkdir.
60410
60411 2006-06-28  Bruno Haible  <bruno@clisp.org>
60412
60413         * lib/getaddrinfo.h: Fix POSIX URL.
60414         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60415         _WIN32.
60416         (use_win32_p): Make static.
60417         (getaddrinfo): Reject service name if it is empty or does not consist
60418         solely of decimal digits, or if its value is > 65535.
60419         (getnameinfo): Remove useless casts.
60420
60421 2006-06-27  Simon Josefsson  <jas@extundo.com>
60422
60423         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60424         Eggert and Martin Lambers.
60425
60426 2006-06-27  Simon Josefsson  <jas@extundo.com>
60427
60428         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60429         Eggert and Martin Lambers.
60430
60431 2006-06-27  Bruno Haible  <bruno@clisp.org>
60432
60433         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60434         result to 0, not to empty.
60435         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60436
60437 2006-06-27  Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60440
60441 2006-06-26  Simon Josefsson  <jas@extundo.com>
60442
60443         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60444         present.
60445
60446 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60447
60448         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60449         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60451
60452 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60453
60454         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60455
60456 2006-06-26  Bruno Haible  <bruno@clisp.org>
60457
60458         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60459
60460 2006-06-26  Bruno Haible  <bruno@clisp.org>
60461
60462         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60463
60464 2006-06-26  Bruno Haible  <bruno@clisp.org>
60465
60466         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60467         SGI C compiler in pre-C99 mode.
60468         Suggested by Mark D. Baushke and Larry Jones.
60469
60470 2006-06-26  Bruno Haible  <bruno@clisp.org>
60471
60472         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60473         WCHAR_MAX.
60474         Reported by Mark D. Baushke and Larry Jones.
60475
60476 2006-06-26  Bruno Haible  <bruno@clisp.org>
60477
60478         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60479         in pre-C99 mode.
60480         Suggested by Mark D. Baushke and Larry Jones.
60481
60482 2006-06-23  Simon Josefsson  <jas@extundo.com>
60483             Bruno Haible  <bruno@clisp.org>
60484
60485         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60486         Emit mostlyclean-local rule.
60487         (func_emit_tests_Makefile_am): Likewise.
60488         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60489
60490 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60491
60492         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60493
60494 2006-06-23  Bruno Haible  <bruno@clisp.org>
60495
60496         * tests/test-stdint.c: Update to match ISO C 99 Technical
60497         Corrigendum 1.
60498
60499 2006-06-23  Bruno Haible  <bruno@clisp.org>
60500
60501         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60502
60503 2006-06-23  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/stdint_.h: Treat IRIX like OpenBSD.
60506
60507 2006-06-23  Bruno Haible  <bruno@clisp.org>
60508
60509         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60510         ISO C 99 Technical Corrigendum 1.
60511
60512 2006-06-22  Simon Josefsson  <jas@extundo.com>
60513
60514         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60515         MinGW.
60516
60517 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60518
60519         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60520         needed.  Some compiler complained about some of them.  Problem reported
60521         by Larry Jones in
60522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60523
60524 2006-06-21  Simon Josefsson  <jas@extundo.com>
60525
60526         * tests/test-getaddrinfo.c: New file.
60527
60528         * modules/getaddrinfo-tests: New file.
60529
60530         * MODULES.html.sh: Add inet_pton.
60531
60532         * modules/inet_pton: New file.
60533
60534 2006-06-21  Simon Josefsson  <jas@extundo.com>
60535
60536         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60537         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60538         of using the (limited) gnulib implementation on Windows XP.
60539
60540         * m4/inet_pton.m4: New file.
60541
60542 2006-06-21  Simon Josefsson  <jas@extundo.com>
60543
60544         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60545         variable.
60546
60547         * lib/socket_.h: Don't define WINVER.
60548
60549         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60550         slightly modified to work in gnulib.
60551
60552 2006-06-21  Simon Josefsson  <jas@extundo.com>
60553
60554         * doc/gnulib.texi (Windows sockets): Add.
60555
60556 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60557
60558         * lib/read-file.c (fread_file): Start with buffer allocation of
60559         0 bytes rather than 1 byte; this simplifies the code.
60560         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60561         code to free buffer and save/restore errno.
60562         (internal_read_file): Remove unused local.
60563
60564 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60565
60566         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60567         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60568         Problem reported by Denis Excoffier in
60569         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60570
60571 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60572
60573         * modules/sys_socket, modules/socklen: Include sys/types since
60574         FreeBSD 4.x's sys/socket.h needs it.
60575
60576 2006-06-19  Simon Josefsson  <jas@extundo.com>
60577
60578         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60579
60580 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60583
60584 2006-06-19  Bruno Haible  <bruno@clisp.org>
60585
60586         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60587         and FULL_PATH_INTTYPES_H in angle brackets.
60588         Reported by Mark D. Baushke <mdb@gnu.org>.
60589
60590 2006-06-17  Eric Blake  <ebb9@byu.net>
60591
60592         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60593         errno.
60594
60595 2006-06-17  Bruno Haible  <bruno@clisp.org>
60596
60597         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60598         <sys/inttypes.h>.
60599
60600 2006-06-17  Bruno Haible  <bruno@clisp.org>
60601
60602         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60603         whether errno is declared. Assume <errno.h> declares errno.
60604
60605 2006-06-17  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60608
60609 2006-06-17  Bruno Haible  <bruno@clisp.org>
60610
60611         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60612         problem on Solaris 2.5.1.
60613
60614 2006-06-16  Eric Blake  <ebb9@byu.net>
60615
60616         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60617         * lib/unicodeio.c [!defined errno]: Likewise.
60618         * lib/strtol.c [!defined errno]: Likewise.
60619         * lib/strtod.c [!defined errno]: Likewise.
60620
60621 2006-06-15  Eric Blake  <ebb9@byu.net>
60622
60623         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60624
60625 2006-06-15  Eric Blake  <ebb9@byu.net>
60626
60627         * config/srclist.txt (ssize_t.m4): Lose sync.
60628
60629 2006-06-15  Bruno Haible  <bruno@clisp.org>
60630
60631         * modules/stdint (Files): Include m4/full-header-path.m4,
60632         m4/size_max.m4, m4/wchar_t.m4.
60633         (Makefile.am): Many more substitutions.
60634         * modules/stdint-tests: New file.
60635         * tests/test-stdint.c: New file.
60636
60637 2006-06-15  Bruno Haible  <bruno@clisp.org>
60638
60639         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60640         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60641         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60642         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60643         gl_CHECK_TYPE_SAME): New macros.
60644
60645 2006-06-15  Bruno Haible  <bruno@clisp.org>
60646
60647         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60648
60649 2006-06-15  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/stdint_.h: Rewritten to be fully auto-configured.
60652         Fixes bug on HP-UX/IA64.
60653
60654 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         * lib/getdate.y (__attribute__): Don't define if already defined.
60657         Problem reported by Larry Jones.
60658         * lib/utimens.c (__attribute__): Likewise.
60659
60660 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60663         reported by Andreas Schwab.
60664
60665 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60666             Bruno Haible  <bruno@clisp.org>
60667
60668         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60669         check for the declaration of strnlen and a run test that exposes the
60670         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60671         rpl_strndup.
60672
60673 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60674             Bruno Haible  <bruno@clisp.org>
60675
60676         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60677
60678 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60679
60680         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60681         compile test, for Tru64 4.0D.
60682
60683 2006-05-28  Karl Berry  <karl@gnu.org>
60684
60685         * config/srclist.txt (printf-args.c): lose sync.
60686
60687 2006-05-26  Martin Lambers  <marlam@marlam.de>
60688
60689         * lib/getpass.c: Updates the test for the native W32 API, and adds
60690         missing includes, thus fixing compilation warnings.
60691
60692 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60693
60694         * lib/exclude.c (exclude_fnmatch): New function.
60695         (excluded_file_name): Call exclude_fnmatch.
60696         * lib/exclude.h (excluded_file_name): New prototype
60697
60698 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60699
60700         * lib/tempname.c (small_open, large_open): New macros.
60701         (__open, __open64) [!_LIBC]: Remove.
60702         (__gen_tempname): Use small_open and large_open instead of __open
60703         and __open64.  This fixes a portability bug on HP-UX 11.11i
60704         reported by Simon Wing-Tang in
60705         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60706
60707 2006-05-24  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60710         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60711         Reported by Thorsten Maerz <torte@netztorte.de> via
60712         Aaron Stone <aaron@serendipity.cx>.
60713
60714 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60717         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60718         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60719         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60720         not really conditional on the cache.
60721         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60722
60723 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60726         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60727         (my_usleep): Don't mishandle maximum value.
60728
60729 2006-05-19  Jim Meyering  <jim@meyering.net>
60730
60731         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60732
60733 2006-05-17  Bruno Haible  <bruno@clisp.org>
60734
60735         Cygwin portability.
60736         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60737
60738 2006-05-17  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/stdint_.h: Fix recognition of Cygwin.
60741
60742 2006-05-15  Bruno Haible  <bruno@clisp.org>
60743
60744         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60745         on libtool patch by Ralf Wildenhues.
60746
60747 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60748
60749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60750         test for C99 conformance; (bool) 0.5 is an integer constant
60751         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60752         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60753
60754 2006-05-11  Simon Josefsson  <jas@extundo.com>
60755
60756         * m4/xvasprintf.m4: Fix obvious typo.
60757
60758 2006-05-11  Jim Meyering  <jim@meyering.net>
60759
60760         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60761         James Lemley.
60762
60763 2006-05-10  Simon Josefsson  <jas@extundo.com>
60764
60765         * lib/md4.c: Typo fix, update copyright years.
60766         (K1, K2): Don't use L because it turn computations into 64-bit on
60767         64-bit platforms.
60768
60769 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60770
60771         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60772         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60773         unwanted sign propagation, e.g., on hosts with 64-bit int.
60774         There still are some problems with reeelly weird theoretical hosts
60775         (e.g., 33-bit int) but it's not worth worrying about now.
60776         * lib/sha1.c (rol): Likewise.
60777         (K1, K2, K3, K4): Remove unnecessary L suffix.
60778
60779 2006-05-10  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/des.c: Cast to avoid warnings.
60782
60783 2006-05-09  Bruno Haible  <bruno@clisp.org>
60784
60785         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60786         (Depends-on): Depend also on xsize, stdarg.
60787         (configure.ac): Add gl_XVASPRINTF.
60788
60789 2006-05-09  Bruno Haible  <bruno@clisp.org>
60790
60791         * m4/xvasprintf.m4: New file.
60792
60793 2006-05-09  Bruno Haible  <bruno@clisp.org>
60794
60795         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60796         (EOVERFLOW): Define fallback value.
60797         (xstrcat): New function.
60798         (xvasprintf): Recognize the special case of a string concatenation.
60799
60800 2006-05-08  Eric Blake  <ebb9@byu.net>
60801
60802         * gnulib-tool (func_version): Base copyright year on CVS date.
60803         (func_emit_copyright_notice): New function.
60804         (func_emit_lib_Makefile_am): Use it.
60805         (func_emit_tests_Makefile_am): Likewise.
60806         (func_import): Likewise.
60807
60808 2006-05-08  Bruno Haible  <bruno@clisp.org>
60809
60810         * modules/stdarg: New file.
60811         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60812
60813 2006-05-08  Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/stdarg.m4: New file, from GNU gettext.
60816
60817 2006-05-08  Bruno Haible  <bruno@clisp.org>
60818
60819         * config/srclist.txt (build-aux/config.rpath): different from latest
60820         release.
60821
60822 2006-05-08  Bruno Haible  <bruno@clisp.org>
60823
60824         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60825
60826 2006-05-05  Jim Meyering  <jim@meyering.net>
60827
60828         * m4/warning.m4: New file, derived from bison's file by the same name.
60829
60830 2006-05-03  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/stdint_.h: Shorter URL.
60833         * lib/inttypes.h: Likewise.
60834
60835 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60836
60837         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60838
60839 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60840
60841         * lib/verify.h: Document the internals better.  Most of this change
60842         was written by Bruno Haible.
60843
60844 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60845
60846         * doc/verify.texi: New file, partly based on a proposal by
60847         Bruno Haible.
60848
60849 2006-05-02  Bruno Haible  <bruno@clisp.org>
60850
60851         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60852         test from here...
60853         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60854
60855 2006-04-29  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60858         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60859
60860 2006-04-29  Bruno Haible  <bruno@clisp.org>
60861
60862         * gnulib-tool: Make --update option actually work.
60863
60864 2006-04-29  Bruno Haible  <bruno@clisp.org>
60865
60866         * doc/gcd.texi: New file.
60867         * doc/gnulib.texi: Include it.
60868
60869 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60870
60871         * lib/getdate.y (get_date): When adding relative date, start with the
60872         initial time, not with the result of the first mktime call.
60873
60874 2006-04-25  Bruno Haible  <bruno@clisp.org>
60875
60876         * gnulib-tool (func_import): Output the include directives in three
60877         blocks, sorted separately.
60878         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60879
60880 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60881
60882         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60883         to define main with arguments, for C++.  Reported by Eric Blake.
60884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60885         Prefer 'int main ()' to 'int main (void)', for C++.
60886         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60887         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60888         for 'main', for C99 and C++.
60889
60890 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60891
60892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60893         Don't assume that exit status -1 is valid.
60894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60895         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60896         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60897         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60898         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60899         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60900         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60901         functions can be used without declaring them, or that you can
60902         exit with status -1.
60903         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60904
60905 2006-04-24  Karl Berry  <karl@gnu.org>
60906
60907         * config/srclist.txt (longdouble.m4): sync lost.
60908
60909 2006-04-24  Eric Blake  <ebb9@byu.net>
60910
60911         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60912
60913 2006-04-24  Bruno Haible  <bruno@clisp.org>
60914
60915         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60916         poll() implementation in AIX.
60917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60918
60919 2006-04-24  Bruno Haible  <bruno@clisp.org>
60920
60921         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60922         assigned exactly once.
60923
60924 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60925             Bruno Haible  <bruno@clisp.org>
60926
60927         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60928         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60929         for AM_CPPFLAGS.
60930
60931 2006-04-23  Bruno Haible  <bruno@clisp.org>
60932
60933         * modules/copy-file: Depend on unistd.
60934         * modules/execute: Likewise.
60935         * modules/fatal-signal: Likewise.
60936         * modules/findprog: Likewise.
60937         * modules/mkdtemp : Likewise.
60938         * modules/pipe: Likewise.
60939         * modules/wait-process: Likewise.
60940
60941 2006-04-23  Bruno Haible  <bruno@clisp.org>
60942
60943         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60944         condition was already detected.
60945         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60946
60947 2006-04-23  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/copy-file.c: Include <unistd.h> unconditionally.
60950         * lib/execute.c: Likewise.
60951         * lib/fatal-signal.c: Likewise.
60952         * lib/findprog.c: Likewise.
60953         * lib/mkdtemp.c: Likewise.
60954         * lib/pipe.h: Likewise.
60955         * lib/pipe.c: Likewise.
60956         * lib/wait-process.h: Likewise.
60957
60958 2006-04-23  Bruno Haible  <bruno@clisp.org>
60959
60960         * gnulib-tool (func_usage): Fix --import description. Document
60961         --update.
60962         (func_import): Create temporary file in a temporary directory, if
60963         --dry-run is specified. Silence errors from 'grep' when there are no
60964         m4 files in $m4dir.
60965         (func_create_testdir): Silence errors from 'grep' when there are no
60966         m4 files in $m4dir.
60967         Reported by Karl Berry <karl@freefriends.org>.
60968
60969 2006-04-20  Bruno Haible  <bruno@clisp.org>
60970
60971         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60972         one argument, so that the code will be portable to Autoconf 2.60.
60973         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60974         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60975         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60976
60977 2006-04-19  Derek Price  <derek@ximbiot.com>
60978             Eric Blake  <ebb9@byu.net>
60979
60980         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60981         rather than "/full/path.h".  Update comment to match.  Shorten &
60982         generalize m4_translit call via AS_TR_CPP.
60983
60984 2006-04-19  Derek Price  <derek@ximbiot.com>
60985             Eric Blake  <ebb9@byu.net>
60986
60987         * lib/inttypes.h: Correct grammar in comment.
60988
60989 2006-04-18  Derek Price  <derek@ximbiot.com>
60990             Paul Eggert  <eggert@cs.ucla.edu>
60991
60992         * modules/inttypes: New file.
60993         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60994
60995 2006-04-18  Derek Price  <derek@ximbiot.com>
60996             Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60999         New files.
61000
61001 2006-04-18  Derek Price  <derek@ximbiot.com>
61002             Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * lib/inttypes.h: New file.
61005         * lib/strtoimax.c: Assume <inttypes.h>.
61006
61007 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61008
61009         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61010         isn't mounted.  Problem reported by Kir Kolyshkin.
61011
61012 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61013
61014         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61015         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61016         Derek R. Price.
61017         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61018         implementation.
61019
61020 2006-04-12  Eric Blake  <ebb9@byu.net>
61021
61022         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61023         is now done automatically by the corresponding Autoconf macro.
61024
61025 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61028         time_r.h.
61029
61030 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         Merge regex changes from libc, removing some of our
61033         POSIX-conformance changes that were rejected and redoing them in a
61034         less-intrusive way.
61035
61036         * lib/regcomp.c (re_compile_internal, init_dfa):
61037         Length arg is now size_t, not Idx.  All uses changed.
61038         (peek_token): Forward decl now says internal_function.
61039         (__re_error_msgid, __re_error_msgid_idx):
61040         Now static rather than extern with attribute_hidden.
61041         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61042         For some reason libc prefers K&R style defns for external functions.
61043         (regerror) [!defined _LIBC]: Likewise.
61044         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61045         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61046         (build_range_exp, build_collating_symbol):
61047         Use K&R-style defn.
61048         (re_compile_fastmap): Use '\0' to memset, not 0.
61049         (utf8_sb_map): Make the calculations more obvious.
61050         (init_dfa, parse_bracket_exp, build_charclass_op):
61051         Call calloc and cast result, as glibc does.
61052         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61053         (build_range_exp, build_collating_symbol):
61054         Now internal functions.
61055
61056         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61057
61058         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61059         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61060         Don't depend on VMS; depend on __VMS instead, for POSIX
61061         namespace cleanness.
61062         (regoff_t): Define to ssize_t, not long int.
61063
61064         Remove the REG_ macros named below.  Instead, make the old names
61065         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61066         __USE_GNU_REGEX.
61067         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61068         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61069         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61070         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61071         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61072         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61073         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61074         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61075         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61076         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61077         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61078         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61079         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61080         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61081         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61082         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61083         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61084         (REG_NREGS):
61085         Remove.  All uses replaced by the old RE_* names.
61086         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61087         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61088         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61089         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61090         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61091         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61092         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61093         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61094         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61095         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61096         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61097         Don't bother having these macros be independent of each others'
61098         values, since they no longer exist in the POSIX name space.
61099
61100         Rename the following member names back to their old names,
61101         unless !__USE_GNU_REGEX.  All uses changed back.
61102         (buffer): Renamed from re_buffer.
61103         (allocated): Renamed from re_allocated.
61104         (used): Renamed from re_used.
61105         (syntax): Renamed from re_syntax.
61106         (fastmap): Renamed from re_fastmap.
61107         (translate): Renamed from re_translate.
61108         (can_be_null): Renamed from re_can_be_null.
61109         (regs_allocated): Renamed from re_regs_allocated.
61110         (fastmap_accurate): Renamed from re_fastmap_accurate.
61111         (no_sub): Renamed from re_no_sub.
61112         (not_bol): Renamed from re_not_bol.
61113         (not_eol): Renamed from re_not_eol.
61114         (newline_anchor): Renamed from re_newline_anchor.
61115         (num_regs): Renamed from rm_num_regs.
61116         (start): Renamed from rm_start.
61117         (end): Renamed from rm_end.
61118
61119         (free_state): Move up a bit.
61120
61121         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61122         #define to be empty.
61123         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61124         when that is what is intended.
61125         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61126         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61127         (MAX): New macro.
61128         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61129         All uses changed back to re_malloc, etc.  It's now the caller's
61130         responsibility to check for overflow; all callers changed.
61131         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61132         (re_x2nrealloc): Remove.
61133         (free_state): Remove decl.
61134
61135         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61136         (re_set_registers, re_exec):
61137         Use K&R-style defn.
61138
61139         2006-01-31  Roland McGrath  <roland@redhat.com>
61140
61141         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61142         Reported by Mike Frysinger <vapier@gentoo.org>.
61143
61144         2006-01-15  Andreas Jaeger  <aj@suse.de>
61145
61146         [BZ #1950]
61147         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61148         build_wcs_upper_buffer change.
61149         (build_wcs_upper_buffer): Change return type.
61150
61151         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61152
61153         * lib/regex_internal.h: Include <stdint.h> if available.
61154
61155         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61156
61157         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61158
61159         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61160
61161         * lib/regcomp.c: Adjust for changed secondary hash function.
61162
61163         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61164
61165         * lib/regex.h: Pretty printing.
61166         Clean up namespace a bit.
61167
61168         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61169
61170         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61171         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61172
61173         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61174                     Ulrich Drepper  <drepper@redhat.com>
61175
61176         [BZ #1302]
61177         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61178         changed.
61179         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61180
61181         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61182
61183         [BZ #281]
61184         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61185         * lib/regcomp.c: Remove unnecessary uses of
61186         unsigned RE_TRANSLATE_TYPE.
61187         * lib/regex_internal.h: Likewise.
61188         * lib/regex_internal.c: Likewise.
61189         * lib/regexec.c: Likewise.
61190         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61191
61192         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61193
61194         * lib/regexec.c (find_recover_state): Remove unnecessary
61195         initialization.
61196         (transit_state_bkref): Make DFA a const pointer.
61197         (get_subexp): Likewise.
61198         (check_arrival): Likewise.
61199         (update_cur_sifted_state): Likewise.
61200         (re_search_internal): Likewise.
61201         (prune_impossible_nodes): Likewise.
61202         (acquire_init_state_context): Likewise.
61203         (proceed_next_node): Likewise.
61204         (set_regs): Likewise.
61205         (free_fail_stack_return): Likewise.
61206         (check_arrival_expand_ecl): Mark DFA parameter as const.
61207         (check_arrival_expand_ecl_sub): Likewise.
61208         (check_subexp_limits): Likewise.
61209         (sub_epsilon_src_nodes):  Likewise.
61210         (add_epsilon_src_nodes):  Likewise.
61211         (merge_state_array): Likewise.
61212         (update_regs): Likewise.
61213         (build_trtable): Likewise.
61214         (sift_states_backward): Mark MCTX parameter as const.
61215         (build_sifted_states): Likewise.
61216         (update_cur_sifted_state): Likewise.
61217         (sift_states_mkref): Likewise.
61218         (check_arrival_expand_ecl): Mark eclosure as const.
61219         (check_dst_limits_calc_pos_1): Likewise.
61220         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61221         pointer.
61222
61223         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61224
61225         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61226         (transit_state_sb): Likewise.
61227         (transit_state_mb): Likewise.
61228         (sift_states_iter_mb): Likewise.
61229         (check_arrival_add_next_nodes): Likewise.
61230         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61231         [_LIBC] (re_search_2_stub): Use mempcpy.
61232
61233         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61234         mbrtowc for very simple UTF-8 case.
61235
61236         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61237         a pointer-to-const.
61238         (re_acquire_state_context): Likewise.
61239         * lib/regex_internal.h: Adjust prototypes.
61240
61241         * lib/regex.c: Prevent using C++ compilers.
61242
61243         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61244         (re_acquire_state_context): Likewise.
61245
61246 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         * modules/regex (Depends-on): Add ssize_t.
61249
61250 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61253         translation table.
61254
61255 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61258
61259 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61260             Bruno Haible  <bruno@clisp.org>
61261
61262         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61263         <sys/types.h> and <inttypes.h>.
61264
61265 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61266
61267         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61268         `__error_t_defined', so argp.h will not typedef the former.
61269
61270 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61273         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61274         glibc names.  Even if glibc is changed to conform to POSIX, the
61275         traditional names will be available anyway, since regex depends on
61276         the extensions module.  Also, fix a longstanding typo in the
61277         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61278         reported by Emanuele Giaquinta.  Also, change sense of cached
61279         variable, so that the message makes sense.
61280
61281 2006-03-24  Simon Josefsson  <jas@extundo.com>
61282
61283         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61284         including some doc fixes.
61285         (base64_encode_alloc): Fix +1 bug on allocation failures.
61286
61287 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61288
61289         * lib/base64.c (base64_encode): Do not read past end of array with
61290         unsanitized input on systems with CHAR_BIT > 8.
61291
61292 2006-03-24  Eric Blake  <ebb9@byu.net>
61293
61294         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61295
61296 2006-03-22  Karl Berry  <karl@gnu.org>
61297
61298         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61299         * config/srclistvars.sh (COREUTILS): new var.
61300
61301 2006-03-17  Jim Meyering  <jim@meyering.net>
61302
61303         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61304         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61305
61306 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61307
61308         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61309         no longer needs it.  Instead, check that regoff_t is as least
61310         as wide as ptrdiff_t.
61311
61312         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61313         so that our regex.h stays compatible with the installed regex.
61314         This is helpful for installers who configure --without-included-regex.
61315         Problem reported by Emanuele Giaquinta.
61316
61317 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61320         Typedef to long int, not to off_, as POSIX will likely change
61321         in that direction.
61322
61323 2006-03-15  Eric Blake  <ebb9@byu.net>
61324
61325         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61326
61327 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61328
61329         * lib/argp-help.c (validate_uparams): Fix typo
61330         * lib/argp-parse.c (argp_default_options): Consistently begin help
61331         messages with a lowercase letter.
61332
61333 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61336         overrun buffers and shouldn't be used (much as gets shouldn't be
61337         used).
61338         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61339
61340 2006-03-08  Simon Josefsson  <jas@extundo.com>
61341
61342         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61343         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61344
61345 2006-03-08  Simon Josefsson  <jas@extundo.com>
61346
61347         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61348         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61349
61350 2006-03-08  Simon Josefsson  <jas@extundo.com>
61351
61352         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61353         signal that configure disabled the device.
61354
61355 2006-03-08  Simon Josefsson  <jas@extundo.com>
61356
61357         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61358         languages.
61359
61360 2006-03-07  Simon Josefsson  <jas@extundo.com>
61361
61362         * modules/getopt (Depends-on): Add unistd.
61363
61364         * modules/unistd: New file.
61365
61366 2006-03-07  Simon Josefsson  <jas@extundo.com>
61367
61368         * modules/gc-random: New file.
61369
61370 2006-03-07  Simon Josefsson  <jas@extundo.com>
61371
61372         * m4/unistd_h.m4: New file.
61373
61374 2006-03-07  Simon Josefsson  <jas@extundo.com>
61375
61376         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61377         test to be side-effect free by storing the result in the cache
61378         variable gl_cv_lib_readline, and moving the assignment of
61379         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61380         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61381
61382 2006-03-07  Simon Josefsson  <jas@extundo.com>
61383
61384         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61385         error on missing devices (the functions will return an error).
61386
61387         * m4/gc.m4: Move random stuff to gc-random.m4
61388
61389 2006-03-07  Simon Josefsson  <jas@extundo.com>
61390
61391         * lib/unistd_.h: New file.
61392
61393 2006-03-07  Simon Josefsson  <jas@extundo.com>
61394
61395         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61396
61397 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61400         Problem reported by Juan Manuel Guerrero.
61401
61402 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61403
61404         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61405         the unistd module.
61406         * lib/getlogin_r.c: Likewise.
61407         * lib/getlogin_r.h: Likewise.
61408         * lib/glob.c: Likewise.
61409         * lib/pagealign_alloc.c: Likewise.
61410         * lib/unistd_.h: Remove; no longer needed.
61411
61412 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61415         Add unistd.
61416         * modules/c-stack (Depends-on): Add unistd.
61417         * modules/getlogin_r: Likewise.
61418         * modules/glob: Likewise.
61419         * modules/pagealign_alloc: Likewise.
61420         * modules/unistd (Files): Remove lib/unistd_.h.
61421         (EXTRA_DIST): Remove.
61422         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61423         need unistd_.h.
61424         (MOSTLYCLEANFILES): Remove unistd.h-t.
61425
61426 2006-03-03  Simon Josefsson  <jas@extundo.com>
61427
61428         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61429
61430 2006-03-03  Simon Josefsson  <jas@extundo.com>
61431
61432         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61433         libidn and bison.
61434
61435 2006-03-03  Simon Josefsson  <jas@extundo.com>
61436
61437         * build-aux/maint.mk: Add indent target.
61438
61439 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61440
61441         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61442         our replacement poll.h in any case, to avoid a differing
61443         declaration from a system header.  Seen on AIX.
61444
61445 2006-03-01  Simon Josefsson  <jas@extundo.com>
61446
61447         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61448         <kasal@ucw.cz>.
61449
61450 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61451
61452         * modules/gettime (Depends-on): Add extensions module.
61453         * modules/nanosleep (Depends-on): Likewise.
61454         * modules/settime (Depends-on): Likewise.
61455
61456 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61459         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61460         pedantically.
61461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61462         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61463
61464         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61465         not "==".  Reported by Ralf Wildenhues.
61466
61467 2006-03-01  Karl Berry  <karl@gnu.org>
61468
61469         * doc/Copyright/request-*: new files, synced from gnuorg.
61470
61471 2006-03-01  Karl Berry  <karl@gnu.org>
61472
61473         * config/srclist.txt (Copyright/*): new entries.
61474
61475 2006-02-28  Simon Josefsson  <jas@extundo.com>
61476
61477         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61478
61479 2006-02-27  Simon Josefsson  <jas@extundo.com>
61480
61481         * lib/base64.h: Indent #define's.  From Jim Meyering
61482         <jim@meyering.net>.
61483
61484 2006-02-27  Jim Meyering  <jim@meyering.net>
61485
61486         Revert the change of 2006-02-24, so these files can continue
61487         to be sync'd from gettext.
61488         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61489         of `config.h'.
61490
61491 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61492
61493         * modules/intprops: New file.
61494         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61495         Add intprops.
61496         * modules/getloadavg (Files): Remove lib/intprops.h.
61497         (Depends-on): Add intprops.
61498         * modules/human: Likewise.
61499         * modules/inttostr: Likewise.
61500         * modules/openat: Likewise.
61501         * modules/sig2str: Likewise.
61502         * modules/userspec: Likewise.
61503         * modules/utimecmp: Likewise.
61504         * modules/xnanosleep: Likewise.
61505         * modules/xstrtol: Likewise.
61506
61507 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61508
61509         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61510         * modules/lock-tests (TESTS): Use $(EXEEXT).
61511         * modules/tls-tests: Likewise.
61512         * modules/argp-tests: Likewise.
61513         (check_PROGRAMS): New var, replacing...
61514         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61515
61516 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61517
61518         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61519         `config.h'.
61520
61521 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61522
61523         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61524
61525 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61526
61527         Sync from coreutils.
61528         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61529         gl_CHDIR_SAFER.
61530
61531 2006-02-22  Jim Meyering  <jim@meyering.net>
61532
61533         Sync from coreutils.
61534         * m4/chdir-safer.m4: New file.
61535
61536 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61539         AT_FDCWD exceeds INT_MAX.
61540         * lib/openat.h (AT_FDCWD): Likewise.
61541
61542 2006-02-17  Eric Blake  <address@hidden>
61543
61544         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61545
61546 2006-02-16  Simon Josefsson  <jas@extundo.com>
61547
61548         * modules/getaddrinfo (Depends-on): Add sys_socket.
61549
61550 2006-02-15  Simon Josefsson  <jas@extundo.com>
61551
61552         * build-aux/maint.mk: Add dsyntax-check rule.
61553
61554 2006-02-15  Eric Blake  <ebb9@byu.net>
61555
61556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61557         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61558         'present but cannot compile' warnings on cygwin.
61559         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61560         use ws2tcpip.h if sys/socket.h works.
61561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61562         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61563
61564 2006-02-14  Simon Josefsson  <jas@extundo.com>
61565
61566         * modules/maintainer-makefile (Files): Rename.
61567
61568         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61569         and (the local) Makefile.cfg to maint-cfg.mk.
61570
61571         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61572         to the latter.
61573
61574         * modules/maintainer-makefile: New module.
61575
61576         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61577         severaly stripped to make it possible to build it up from scratch
61578         with reliable tests.
61579
61580         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61581         fixes to permit overriding the default actions when configure and
61582         makefile are not available.
61583
61584 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         Sync from coreutils.
61587         * modules/lstat (Depends-on): Don't depend on xalloc.
61588         (License): Change from GPL to LGPL, since this is now simply a
61589         replacement for a libc function.
61590
61591 2006-02-14  Jim Meyering  <jim@meyering.net>
61592
61593         Sync from coreutils.
61594
61595         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61596         failure on deficient systems, and simplify gnulib lgpl dependencies.
61597         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61598         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61599
61600         * lib/xalloc-die.c: Remove unused definition of N_.
61601
61602 2006-02-14  Jim Meyering  <jim@meyering.net>
61603
61604         Sync from coreutils.
61605         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61606         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61607         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61608         double-quote uses of that variable, to accommodate the rare case in
61609         which getmntent is available in none of the libraries checked.  This
61610         happens at least on FreeBSD 5.0.
61611
61612 2006-02-13  Simon Josefsson  <jas@extundo.com>
61613
61614         * gnulib-tool (Usage): Fix --import, from
61615         karl@freefriends.org (Karl Berry).
61616
61617 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61618
61619         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61620
61621 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61622
61623         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61624         "autoupdate" on 2005-12-12.
61625
61626 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61627
61628         * modules/closeout (Depends-on): Remove atexit.
61629
61630 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61633         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61634
61635 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61636
61637         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61638         __EXTENSIONS__ if this causes compilation to fail.  Problem
61639         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61640         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61641
61642 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61645         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61647         All uses changed.
61648
61649 2006-01-26  Simon Josefsson  <jas@extundo.com>
61650
61651         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61652         prototype is visible on mingw32.
61653
61654         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61655         for mingw32.
61656
61657         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61658         mingw32).
61659
61660 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61663         attempt to open for write; this always fails, at least on POSIX
61664         hosts.  This reinstates the 2006-01-09 change, which was
61665         inadvertently removed.
61666
61667 2006-01-26  Bruno Haible  <bruno@clisp.org>
61668
61669         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61670         Reported by Paul Eggert.
61671
61672 2006-01-26  Bruno Haible  <bruno@clisp.org>
61673             Paul Eggert  <eggert@cs.ucla.edu>
61674
61675         * lib/stdbool_.h (_Bool)
61676         [(! (defined __cplusplus || defined __BEOS__)
61677           && !defined __GNUC__
61678           && !(defined __HP_cc || defined __xlc__
61679                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61680                || defined __sgi))]:
61681         #define to signed char in these cases too; this simplifies
61682         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61683         etc., separately) and makes it more conservative.
61684
61685 2006-01-25  Simon Josefsson  <jas@extundo.com>
61686
61687         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61688         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61689         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61690
61691 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61692
61693         * lib/argp-namefrob.h: Bugfix. Remove stray #
61694
61695 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61698         so that we test the test.
61699         Check for yet another HP-UX cc bug involving *bool |= bool.
61700
61701 2006-01-25  Karl Berry  <karl@gnu.org>
61702
61703         * config/srclist.txt (vasnprintf.c): sync lost.
61704
61705 2006-01-25  Jim Meyering  <jim@meyering.net>
61706
61707         Sync from the stable (b5) branch of coreutils:
61708
61709         * lib/fts.c (fts_children): Don't let close() clobber errno from
61710         failed fchdir().
61711
61712         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61713         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61714         a dangling symlink.  That can also happen at least for ELOOP.
61715         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61716         FYI, this bug predates the inclusion of fts.c in coreutils.
61717
61718         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61719         in their own block, so pre-c99 compilers don't object.
61720
61721         Avoid the double-free (first in fts_read, second in fts_close) that
61722         would occur when an `active' directory is made inaccessible (e.g.,
61723         via chmod a-x) during a traversal.
61724         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61725         before returning.  Reproduce this failure by
61726         mkdir -p a/b; cd a; chmod a-x . b
61727         Reported by Stavros Passas.
61728
61729 2006-01-25  Jim Meyering  <jim@meyering.net>
61730
61731         * lib/fileblocks.c: Remove more useless parentheses.
61732         * lib/readutmp.h: Likewise.
61733
61734 2006-01-25  Bruno Haible  <bruno@clisp.org>
61735
61736         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61737         warnings.
61738         Reported by Paul Eggert.
61739
61740 2006-01-25  Bruno Haible  <bruno@clisp.org>
61741
61742         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61743         rid of a trap command. For Solaris sh.
61744         Reported by Mark D. Baushke <mdb@gnu.org>.
61745
61746 2006-01-24  Simon Josefsson  <jas@extundo.com>
61747
61748         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61749         Bruno.
61750
61751 2006-01-24  Karl Berry  <karl@gnu.org>
61752
61753         * config/srclist.txt (argp-namefrob.h): sync lost.
61754
61755 2006-01-24  Jim Meyering  <jim@meyering.net>
61756
61757         * modules/openat (Files): Add lib/intprops.h.
61758         From Mark D. Baushke.
61759
61760 2006-01-24  Jim Meyering  <jim@meyering.net>
61761
61762         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61763         Reported by Mark D. Baushke.
61764
61765 2006-01-24  Jim Meyering  <jim@meyering.net>
61766
61767         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61768
61769 2006-01-24  Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/strnlen (Maintainer): Change from glibc to all.
61772
61773 2006-01-24  Bruno Haible  <bruno@clisp.org>
61774
61775         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61776         Patch by Paul Eggert.
61777
61778 2006-01-24  Bruno Haible  <bruno@clisp.org>
61779
61780         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61781         already has it.
61782         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61783         2005-11-26.
61784
61785         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61786         'signed char' to avoid problems with the built-in _Bool type.
61787         Reported by Paul Eggert on 2005-11-26.
61788
61789 2006-01-24  Bruno Haible  <bruno@clisp.org>
61790
61791         * gnulib-tool (func_import): Avoid constructing complicated sed
61792         expressions inside backquote.
61793         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61794
61795 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61796
61797         These changes imported from libc.
61798         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61799         test and two separate function calls.
61800         * lib/strndup.c (__strndup): Add libc_hidden_def.
61801
61802 2006-01-23  Simon Josefsson  <jas@extundo.com>
61803
61804         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61805         Remove the test_*_SOURCES variable: automake infers it by default.
61806         * modules/tls-tests: Likewise.
61807
61808 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         Work around porting bugs reported by Dieter in
61811         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61812         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61813         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61814         Include "getopt.h" first, to check interface.
61815         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61816         !HAVE_DECL_GETENV.
61817         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61818         (__strndup): Revert to K&R-style function dfns, the glibc style.
61819         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61820         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61821         Include strnlen.h first, to get prototype properly.
61822         (strnlen): Renamed from __strnlen.
61823         Remove weak alias.
61824
61825 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61826
61827         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61828
61829 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * config/srclist.txt: Adjust to reflect glibc reorganization.
61832         This affects only comments.
61833
61834 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61835
61836          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61837          Reported by Bruce Korb <bkorb@gnu.org>.
61838
61839 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61840
61841         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61842         to pacify gcc -Wswitch-default.
61843
61844 2006-01-22  Bruno Haible  <bruno@clisp.org>
61845
61846         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61847         temporary buffer for sprintf, take into account the precision also
61848         for 'd', 'i', 'u', 'o', 'x', 'X'.
61849
61850 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61851
61852         * modules/argp-tests: New module
61853         * tests/test-argp.c: New file
61854         * tests/test-argp-2.sh: New file
61855
61856 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61857
61858         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61859         (__argp_base_name): Removed
61860         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61861         typo.
61862         (__argp_base_name): Provide macro definition or extern declaration
61863         depending on the configuration
61864
61865 2006-01-20  Simon Josefsson  <jas@extundo.com>
61866
61867         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61868
61869 2006-01-20  Simon Josefsson  <jas@extundo.com>
61870
61871         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61872
61873 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61874
61875         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61876         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61877         Suggested by Bruno Haible.
61878
61879 2006-01-20  Karl Berry  <karl@gnu.org>
61880
61881         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61882         until changes propagate, I guess.
61883
61884 2006-01-19  Simon Josefsson  <jas@extundo.com>
61885
61886         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61887
61888 2006-01-19  Simon Josefsson  <jas@extundo.com>
61889
61890         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61891
61892 2006-01-19  Simon Josefsson  <jas@extundo.com>
61893
61894         * gnulib-tool: Set check_PROGRAMS.
61895
61896         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61897         modules/des-tests, modules/gc-arcfour-tests,
61898         modules/gc-arctwo-tests, modules/gc-des-tests,
61899         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61900         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61901         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61902         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61903         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61904         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61905         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61906         test_*_SOURCES.
61907
61908 2006-01-18  Simon Josefsson  <jas@extundo.com>
61909
61910         * modules/socklen (Depends-on): Depend on sys_socket.
61911
61912 2006-01-18  Simon Josefsson  <jas@extundo.com>
61913
61914         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61915         modules/des-tests, modules/gc-arcfour-tests,
61916         modules/gc-arctwo-tests, modules/gc-des-tests,
61917         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61918         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61919         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61920         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61921         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61922         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61923         $(EXEEXT) to automake TESTS variable, for mingw32.
61924
61925 2006-01-17  Simon Josefsson  <jas@extundo.com>
61926
61927         * modules/socklen (Include): Need sys/socket.h.
61928
61929 2006-01-17  Bruno Haible  <bruno@clisp.org>
61930
61931         * modules/ssize_t (Include): Add <sys/types.h>.
61932
61933 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61934
61935         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61936         it's not portable and it doesn't work with cross-compiles.
61937         Problem reported by Bruno Haible.  Fix missing-$ typo in
61938         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61939         -zignore from being used with Sun's C compiler.
61940
61941 2006-01-12  Simon Josefsson  <jas@extundo.com>
61942
61943         * lib/base64.c: Fix warning, reported by Bruno Haible
61944         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61945
61946 2006-01-12  Bruno Haible  <bruno@clisp.org>
61947
61948         * modules/ldd: New file.
61949         * build-aux/ldd.sh.in: New file.
61950         * MODULES.html.sh (Support for building libraries and executables): Add
61951         ldd.
61952
61953 2006-01-12  Bruno Haible  <bruno@clisp.org>
61954
61955         * m4/ldd.m4: New file.
61956
61957 2006-01-12  Bruno Haible  <bruno@clisp.org>
61958
61959         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61960         endless loop while replacing $auxdir with build-aux.
61961
61962 2006-01-11  Simon Josefsson  <jas@extundo.com>
61963
61964         * lib/stdint_.h (SIZE_MAX): Add missing (.
61965
61966 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         Sync from coreutils.
61969         * lib/md5.c: Fix commentary typos.
61970         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61971         * lib/md5.h (__attribute__): Remove; unused.
61972         * lib/sha1.c: Fix commentary to match md5 better.
61973         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61974         so that we don't need to worry about alignment.  All uses changed.
61975         This merges the 2005-10-28 md5 change into sha1.
61976
61977 2006-01-11  Jim Meyering  <jim@meyering.net>
61978
61979         Sync from coreutils.
61980         * lib/md5.c (OP): Fix spacing.
61981
61982 2006-01-11  Bruno Haible  <bruno@clisp.org>
61983
61984         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61985         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61986         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61987
61988 2006-01-11  Bruno Haible  <bruno@clisp.org>
61989
61990         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61991         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61992         the "early" section as well.
61993
61994 2006-01-11  Bruno Haible  <bruno@clisp.org>
61995
61996         Avoid "ar: no archive members specified" error on MacOS X.
61997         * gnulib-tool (func_modules_add_dummy): New function.
61998         (func_import, func_create_testdir): Invoke it.
61999
62000 2006-01-11  Bruno Haible  <bruno@clisp.org>
62001
62002         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62003         with $auxdir in AC_CONFIG_FILES statements.
62004
62005 2006-01-11  Bruno Haible  <bruno@clisp.org>
62006
62007         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62008         Initialize also noinst_HEADERS to empty.
62009
62010 2006-01-11  Bruno Haible  <bruno@clisp.org>
62011
62012         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62013         variables.
62014         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62015         autoreconf.
62016
62017 2006-01-11  Bruno Haible  <bruno@clisp.org>
62018
62019         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62020         overridable by the user.
62021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62022
62023 2006-01-10  Simon Josefsson  <jas@extundo.com>
62024
62025         * modules/sys_socket: New file.
62026
62027 2006-01-10  Simon Josefsson  <jas@extundo.com>
62028
62029         * m4/sys_socket_h.m4: New file.
62030
62031 2006-01-10  Simon Josefsson  <jas@extundo.com>
62032
62033         * lib/socket_.h: New file.
62034
62035 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62036
62037         * modules/readutmp (Maintainer): Add myself.
62038
62039 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62042         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62043         People who are still concerned with buggy memcmp implementations
62044         can invoke gl_FUNC_MEMCMP themselves.
62045
62046 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62047
62048         * lib/regex_internal.h (BITSET_WORD_BITS):
62049         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62050         preprocessor mishandles large unsigned values as if they were signed.
62051         Problem reported by Claudio Fontana in
62052         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62053
62054 2006-01-10  Jim Meyering  <jim@meyering.net>
62055
62056         Avoid the double-free (first in fts_read, second in fts_close) that
62057         would occur when an `active' directory is made inaccessible (e.g.,
62058         via chmod a-x) during a traversal.
62059         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62060         before returning.  Reproduce this failure by
62061         mkdir -p a/b; cd a; chmod a-x . b
62062         Reported by Stavros Passas.
62063
62064         Sync from coreutils.
62065         * lib/sha1.c: Tweak grammar in a comment.
62066
62067 2006-01-10  Jim Meyering  <jim@meyering.net>
62068
62069         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62070         Patch by Joerg Sonnenberger.
62071
62072 2006-01-10  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/readutmp: Depend on module free.
62075         * modules/strtok_r: Depend on module restrict.
62076
62077 2006-01-10  Bruno Haible  <bruno@clisp.org>
62078
62079         * modules/gettext (configure.ac): Add an invocation of
62080         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62081
62082 2006-01-10  Bruno Haible  <bruno@clisp.org>
62083
62084         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62085         Reported by Werner Lemberg <wl@gnu.org>.
62086
62087 2006-01-10  Bruno Haible  <bruno@clisp.org>
62088
62089         * lib/localcharset.c: Update from GNU gettext.
62090
62091 2006-01-10  Bruno Haible  <bruno@clisp.org>
62092
62093         * lib/argp.h (__const): Remove macro. Use const instead.
62094         * lib/argp-fmtstream.h (__const): Likewise.
62095         * lib/glob_.h (__const): Remove macro.
62096         * lib/glob-libc.h: Use const instead of __const.
62097
62098 2006-01-10  Bruno Haible  <bruno@clisp.org>
62099
62100         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62101         variable.
62102         Needed to avoid an automake error regarding the 'gettext' module.
62103
62104 2006-01-09  Simon Josefsson  <jas@extundo.com>
62105
62106         * modules/inet_ntop (Depends-on): Add restrict.
62107
62108 2006-01-09  Simon Josefsson  <jas@extundo.com>
62109
62110         * modules/gc-rijndael-tests (License): Put under LGPL.
62111
62112         * modules/gc-des-tests (License): Likewise.
62113
62114         * modules/gc-arcfour-tests (License): Likewise.
62115
62116         * modules/gc-arctwo-tests (License): Likewise.
62117
62118         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62119
62120         * modules/gc-hmac-sha1-tests (Files): Likewise.
62121
62122         * modules/gc-hmac-md5-tests (License): Likewise.
62123
62124         * modules/gc-sha1-tests (License): Likewise.
62125
62126         * modules/gc-md5-tests (License): Likewise.
62127
62128         * modules/gc-md4-tests (License): Likewise.
62129
62130         * modules/gc-md2-tests (License): Likewise.
62131
62132         * modules/gc-tests (License): Likewise.
62133
62134         * modules/des-tests (License): Likewise.
62135
62136         * modules/md4-tests (License): Likewise.
62137
62138         * modules/md2-tests (License): Likewise.
62139
62140 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         Sync from coreutils:
62143
62144         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62145         * modules/lib-ignore: New file.
62146         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62147         chdir-safer.m4, lchmod.m4.
62148         * modules/openat: Add mkdirat.c, openat-priv.h.
62149
62150 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62151
62152         Sync from coreutils.
62153         * m4/lib-ignore.m4: New file.
62154         * m4/lchmod.m4: New file.
62155
62156 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62157
62158         Sync from coreutils.
62159         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62160         for write access: POSIX says that must fail.
62161         * lib/fts.c (diropen): Likewise.
62162         * lib/save-cwd.c (save_cwd): Likewise.
62163         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62164         well, for minor improvements on hosts that lack O_DIRECTORY.
62165         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62166         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62167         Fall back on chown if open failed with EACCES.
62168
62169         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62170         Report an error at compile-time if only a 1-second nominal clock
62171         resolution is found.
62172
62173         * lib/lchmod.h: New file.
62174         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62175         (make_dir_parents): Use lchown rather than chown, and
62176         lchmod rather than chmod.
62177
62178         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62179         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62180         "proc" reported by n0dalus.
62181
62182         * lib/mountlist.c: Include <limits.h>.
62183         (dev_from_mount_options)
62184         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62185         New function.  It no longer assumes "dev=" has the System V meaning
62186         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62187         (read_file_system_list)
62188         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62189         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62190         dev= in that case.
62191
62192         * lib/posixtm.h (PDS_PRE_2000): New macro.
62193         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62194         allow_century.  All usages changed.  Reject dates outside the range
62195         1969-1999 if PDS_PRE_2000 is used.
62196
62197 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62198
62199         Sync from coreutils.
62200         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62201         (Time of day items): Mention the possibility of leap seconds.
62202         Problem reported by Dr. David Alan Gilbert.
62203
62204 2006-01-09  Jim Meyering  <jim@meyering.net>
62205
62206         Sync from coreutils.
62207
62208         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62209
62210         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62211
62212         * lib/modechange.c (mode_compile): Reject an invalid mode string
62213         that starts with an octal digit.  From Andreas Gruenbacher.
62214
62215         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62216         and dup to open_safer and dup_safer, respectively.
62217         (openat_permissive): Fix typo in comment.
62218
62219         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62220         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62221         (_): Remove; no longer needed.
62222         (openat): Renamed from rpl_openat; no need for rpl_openat
62223         since openat.h renames openat for us.
62224         Replace most of the body with a call to openat_permissive,
62225         to avoid duplicate code.
62226         Port to (probably hypothetical) environments were mode_t is
62227         wider than int.
62228         (openat_permissive): Require mode arg, so that we can check
62229         types better.  Put it just after flags.  Change cwd failure
62230         indicator from pointer-to-bool to pointer-to-errno-value.
62231         All callers changed.
62232         Invoke openat_save_fail and/or openat_restore_fail if
62233         cwd_errno is null, so that openat can call us.
62234         (openat_permissive, fdopendir, fstatat, unlinkat):
62235         Simplify errno handling to avoid some duplicate code,
62236         as it's OK to set errno on success.
62237         * lib/openat.h: Revamp code so that function macros depend on
62238         __OPENAT_PREFIX only, not also on AT_FDCWD.
62239         (openat_ro): Remove.  Caller changed to use openat_permissive.
62240         (openat_permissive): Now a macro, if not a function.
62241         (openat_restore_fail, openat_save_fail): Now always functions,
62242         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62243
62244         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62245         and openat.c.
62246         * lib/mkdirat.c: Include openat-priv.h.
62247         Remove definitions of macros defined therein.
62248         * lib/openat.c: Likewise.
62249
62250         * lib/mkdirat.c (mkdirat): New file and function.
62251         * lib/openat.h (mkdirat): Declare.
62252
62253         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62254
62255         * lib/openat.h (openat_permissive): Declare.
62256         (openat_ro): Define.
62257
62258         * lib/openat.c (EXPECTED_ERRNO): New macro.
62259         (openat_permissive): New function -- used in remove.c rewrite.
62260         (all functions): Set errno just before returning, only if there
62261         was an actual failure.
62262         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62263
62264         Emulate openat-family functions using Linux's procfs, if possible.
62265         Idea and some code based on Ulrich Drepper's glibc changes.
62266
62267         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62268         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62269         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62270         before falling back on save_cwd and restore_cwd.
62271         (fdopendir, fstatat, unlinkat): Likewise.
62272
62273         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62274         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62275
62276         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62277         as second argument to va_arg.  Otherwise, some versions of gcc
62278         warn that `if this code is reached, the program will abort'.
62279
62280 2006-01-09  Jim Meyering  <jim@meyering.net>
62281
62282         Sync from coreutils.
62283         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62284         Require openat-priv.h.
62285
62286 2006-01-09  Bruno Haible  <bruno@clisp.org>
62287
62288         * modules/strnlen (Include): Use strnlen.h.
62289
62290 2006-01-09  Bruno Haible  <bruno@clisp.org>
62291
62292         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62293
62294 2006-01-09  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/sysexit_.h (EX_OK): New macro.
62297         Suggested by Martin Lambers <marlam@marlam.de>.
62298
62299 2006-01-09  Bruno Haible  <bruno@clisp.org>
62300
62301         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62302         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62303
62304 2006-01-09  Bruno Haible  <bruno@clisp.org>
62305
62306         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62307         numbers.
62308
62309 2006-01-09  Bruno Haible  <bruno@clisp.org>
62310
62311         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62312         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62313         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62314         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62315
62316 2006-01-09  Bruno Haible  <bruno@clisp.org>
62317
62318         * build-aux/javacomp.sh.in: New file, moved from lib/.
62319         * modules/javacomp-script (Files): Update.
62320         (configure.ac): Add AC_CONFIG_FILES invocation.
62321         (EXTRA_DIST): Remove variable.
62322
62323         * build-aux/javaexec.sh.in: New file, moved from lib/.
62324         * modules/javaexec (Files): Update.
62325         (configure.ac): Add AC_CONFIG_FILES invocation.
62326         (EXTRA_DIST): Remove javaexec.sh.in.
62327
62328         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62329         * modules/csharpcomp-script (Files): Update.
62330         (configure.ac): Add AC_CONFIG_FILES invocation.
62331         (EXTRA_DIST): Remove variable.
62332
62333         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62334         * modules/csharpexec (Files): Update.
62335         (configure.ac): Add AC_CONFIG_FILES invocation.
62336         (EXTRA_DIST): Remove csharpexec.sh.in.
62337
62338 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62339
62340         Sync from coreutils.
62341
62342         Add POSIX ACL support
62343         * lib/acl.h (copy_acl, set_acl): Add declarations.
62344         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62345         systems other than Linux.
62346         (chmod_or_fchmod): New function: use fchmod when possible,
62347         and chmod otherwise.
62348         (file_has_acl): Add a POSIX ACL implementation, with a
62349         Linux-specific subcase.
62350         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62351         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62352         acls are unsupported.
62353         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62354         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62355         are unsupported.
62356
62357 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62358
62359         Sync from coreutils.
62360         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62361
62362 2006-01-07  Bruno Haible  <bruno@clisp.org>
62363
62364         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62365         gl_EARLY.
62366
62367 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62368
62369         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62370         Problem reported for Mingw by Mark Junker.
62371
62372 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62373
62374         * README: Gnulib normally doesn't generate a tarball.
62375
62376 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62377
62378         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62379         long int, not int, for nanosecond counts, so that people who are
62380         used to POSIX struct timespec won't be surprised.  Reported by Jim
62381         Meyering.
62382
62383 2005-12-28  Bruno Haible  <bruno@clisp.org>
62384
62385         * build-aux/config.rpath: Update from GNU gettext.
62386
62387 2005-12-16  Jim Meyering  <jim@meyering.net>
62388
62389         * modules/fprintftime: New module.
62390         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62391
62392 2005-12-16  Jim Meyering  <jim@meyering.net>
62393
62394         * m4/fprintftime.m4: New file.
62395
62396 2005-12-16  Jim Meyering  <jim@meyering.net>
62397
62398         * lib/fprintftime.c, lib/fprintftime.h: New files.
62399
62400 2005-12-15  Simon Josefsson  <jas@extundo.com>
62401
62402         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62403         new m4/socklen.m4.
62404
62405 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62406
62407         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62408         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62409
62410 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62411
62412         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62413         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62414         struct uparams is valid. Fall back to the default values if it is
62415         not.
62416
62417 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62418
62419         * modules/argp (Files): Add argp-pin.c
62420         (Depends-on): dirname
62421         (lib_SOURCES): Add argp-pin.c
62422
62423 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62424
62425         * m4/argp.m4:  Check if program_invocation_name and
62426         program_invocation_short_name are declared and define appropriate
62427         macros if they are not.
62428
62429 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62430
62431         * lib/argp-help.c (__argp_base_name): New function
62432         (__argp_short_program_name): Rewrite using __argp_base_name
62433         * lib/argp-namefrob.h: Define program_invocation_name and
62434         program_invocation_short_name if requested
62435         (__argp_base_name): Add prototype
62436         * lib/argp-parse.c (argp_def): Use gettext wrappers
62437         (argp_default_parser): Use __argp_base_name
62438         * lib/argp-pin.c: New file. Defines program_invocation_name and
62439         program_invocation_short_name on systems that lack them.
62440
62441 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62444         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62445         porting problem reported by Georg Schwarz in
62446         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62447
62448 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62451         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62452         porting problem reported by Georg Schwarz in
62453         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62454
62455 2005-12-05  Bruno Haible  <bruno@clisp.org>
62456
62457         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62458         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62459         Reported by Mark Junker <mjscod@gmx.de>.
62460
62461 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62462
62463         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62464         Use implementation from Albert Chin, with some
62465         comments/corrections by Stepan Kasal and myself.
62466
62467 2005-12-02  Bruno Haible  <bruno@clisp.org>
62468
62469         * gnulib-tool (func_import): Accept GPLed build tool modules when
62470         --lgpl is given.
62471         * modules/csharpcomp-script: New file.
62472         * modules/csharpcomp: Depend on it.
62473         * modules/javacomp-script: New file.
62474         * modules/javacomp: Depend on it.
62475         Suggested by Simon Josefsson.
62476
62477 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62480         statement, to work around an HP-UX 10.20 compiler bug reported by
62481         Peter O'Gorman.
62482
62483 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62484
62485         * modules/savedir (Depends-on): Add openat.
62486
62487 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62488
62489         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62490         (uintmax_t) [defined uintmax_t]: Do not declare.
62491         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62492         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62493         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62494         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62495         sake of portability to weird hosts that C allows (though we don't
62496         know of any practical examples).
62497
62498         * lib/savedir.h (fdsavedir): New decl.
62499         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62500         contains most of the former guts of savedir.
62501         (savedir): Use savedirstream.
62502         Include "openat.h".
62503
62504 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         * modules/obstack (Files): Add m4/ulonglong.m4.
62507         Problem reported by Davide Angelocola.
62508
62509 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62510
62511         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62512         coreutils no longer futzes with rounding modes.
62513
62514 2005-11-14  Jim Meyering  <jim@meyering.net>
62515
62516         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62517         replacement of mkstemp.
62518
62519 2005-11-10  Simon Josefsson  <jas@extundo.com>
62520
62521         * lib/readline.c: Remove EOL.
62522
62523 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62524
62525         * modules/gethrxtime (Depends-on): Add gettime.
62526
62527 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62530         or gettimeofday; no longer needed.
62531
62532 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62535         time business.
62536         (gethrxtime) [! (HAVE_NANOUPTIME
62537         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62538         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62539         our own approximation.
62540
62541 2005-11-08  Eric Blake  <ebb9@byu.net>
62542
62543         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62544
62545 2005-11-08  Eric Blake  <ebb9@byu.net>
62546
62547         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62548
62549 2005-11-04  Bruno Haible  <bruno@clisp.org>
62550
62551         * gnulib-tool: Implement --update mode.
62552
62553 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62554
62555         Fix porting problem reported by Theodoros V. Kalamatianos.
62556         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62557         Don't assume that futimes failing means we must fail.
62558
62559 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62560
62561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62562         variables to suggest the intended function of the PATH_MAX check.
62563
62564 2005-10-30  Kean Johnston  <jkj@sco.com>
62565
62566         Trivial changes to support SCO systems.
62567         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62568         as PATH_MAX.
62569         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62570         where __ptr is null when no I/O is pending.
62571
62572 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62573
62574         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62575         leave errno alone.  Problem reported by Dmitry V. Levin.
62576
62577 2005-10-28  Simon Josefsson  <jas@extundo.com>
62578
62579         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62580         Test more.
62581
62582         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62583
62584         * modules/md2, modules/md2-tests: New files.
62585
62586 2005-10-28  Simon Josefsson  <jas@extundo.com>
62587
62588         * m4/inet_ntop.m4: More tests.
62589
62590         * m4/gc-md2.m4, md2.m4: New file.
62591
62592 2005-10-28  Simon Josefsson  <jas@extundo.com>
62593
62594         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62595         "restrict" keywords, as per POSIX.  Protect the function
62596         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62597         Don't use K&R prototypes.  Check the sprintf return values.
62598         Re-define EAFNOSUPPORT if not present.  Indent.
62599
62600         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62601         suggested by Bruno Haible <bruno@clisp.org>.
62602
62603         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62604
62605         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62606
62607         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62608         libgcrypt).
62609
62610         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62611
62612         * lib/md2.h, lib/md2.c: New files.
62613
62614 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62617         errno alone.  Problem reported by Frederic Jolliton.
62618
62619 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62620
62621         * modules/verify (License): Change from GPL to LGPL.  This is a
62622         tiny module and there are apparently near-equivalents that are
62623         under the BSD license.
62624
62625 2005-10-24  Simon Josefsson  <jas@extundo.com>
62626
62627         * modules/sha1: Relicense to LGPL.
62628
62629 2005-10-24  Simon Josefsson  <jas@extundo.com>
62630
62631         * lib/md4.h: Shrink buffer size, now that we changed the type.
62632
62633 2005-10-23  Simon Josefsson  <jas@extundo.com>
62634
62635         * gnulib-tool (func_import): Fix --tests-base.
62636
62637 2005-10-22  Simon Josefsson  <jas@extundo.com>
62638
62639         * modules/arcfour (Depends-on): Need stdint.
62640
62641 2005-10-22  Simon Josefsson  <jas@extundo.com>
62642
62643         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62644         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62645
62646 2005-10-22  Simon Josefsson  <jas@extundo.com>
62647
62648         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62649         suggested by Bruno Haible <bruno@clisp.org>.
62650
62651 2005-10-22  Simon Josefsson  <jas@extundo.com>
62652
62653         * lib/crc.h: Include stddef.h, for size_t.
62654
62655 2005-10-22  Simon Josefsson  <jas@extundo.com>
62656
62657         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62658         arcfour_context struct (simplify test vector testing in GNU
62659         Shishi).
62660
62661 2005-10-21  Simon Josefsson  <jas@extundo.com>
62662
62663         * modules/des, modules/des-tests: New files.
62664
62665         * modules/gc-des, modules/gc-des-tests: New files.
62666
62667         * tests/test-des.c, tests/test-gc-des.c: New file.
62668
62669 2005-10-21  Simon Josefsson  <jas@extundo.com>
62670
62671         * modules/arctwo, modules/arctwo-tests: New files.
62672
62673         * tests/test-arctwo.c: New file.
62674
62675         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62676
62677         * tests/test-gc-arctwo.c: New file.
62678
62679 2005-10-21  Simon Josefsson  <jas@extundo.com>
62680
62681         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62682         Bruno Haible <bruno@clisp.org>.
62683
62684         * m4/gc-des.m4: New file.
62685
62686 2005-10-21  Simon Josefsson  <jas@extundo.com>
62687
62688         * m4/arctwo.m4: New file.
62689
62690         * m4/gc-arctwo.m4: New file.
62691
62692 2005-10-21  Simon Josefsson  <jas@extundo.com>
62693
62694         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62695         block.
62696
62697 2005-10-21  Simon Josefsson  <jas@extundo.com>
62698
62699         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62700         <bruno@clisp.org>.
62701
62702         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62703
62704         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62705         Bruno Haible <bruno@clisp.org>.
62706
62707         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62708         <bruno@clisp.org>.
62709
62710 2005-10-21  Simon Josefsson  <jas@extundo.com>
62711
62712         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62713
62714 2005-10-21  Simon Josefsson  <jas@extundo.com>
62715
62716         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62717
62718 2005-10-21  Simon Josefsson  <jas@extundo.com>
62719
62720         * lib/des.h, lib/des.c: New files.
62721
62722         * lib/gc-gnulib.c: Support DES.c
62723
62724 2005-10-21  Simon Josefsson  <jas@extundo.com>
62725
62726         * lib/arctwo.h, lib/arctwo.c: New files.
62727
62728         * lib/gc-gnulib.c: Support ARCTWO.
62729
62730 2005-10-21  Simon Josefsson  <jas@extundo.com>
62731
62732         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62733         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62734
62735 2005-10-21  Simon Josefsson  <jas@extundo.com>
62736
62737         * gnulib-tool (func_import, func_create_testdir): Define automake
62738         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62739         Makefile.am snippet),
62740         suggested by Bruno Haible <bruno@clisp.org>.
62741
62742         * modules/gc (Makefile.am): Use it.
62743
62744 2005-10-21  Bruno Haible  <bruno@clisp.org>
62745
62746         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62747         patch.
62748
62749 2005-10-19  Simon Josefsson  <jas@extundo.com>
62750
62751         * tests/test-gc-rijndael.c: New file.
62752
62753         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62754
62755 2005-10-19  Simon Josefsson  <jas@extundo.com>
62756
62757         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62758         interface too.
62759
62760 2005-10-19  Simon Josefsson  <jas@extundo.com>
62761
62762         * tests/test-gc-arcfour.c: New file.
62763
62764         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62765
62766 2005-10-19  Simon Josefsson  <jas@extundo.com>
62767
62768         * modules/gc-md4, modules/gc-md4-tests: New file.
62769
62770         * tests/test-gc-md4.c: New file.
62771
62772 2005-10-19  Simon Josefsson  <jas@extundo.com>
62773
62774         * m4/gc-md4.m4: New file.
62775
62776 2005-10-19  Simon Josefsson  <jas@extundo.com>
62777
62778         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62779         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62780         <kasal@ucw.cz>.
62781
62782 2005-10-19  Simon Josefsson  <jas@extundo.com>
62783
62784         * m4/gc-arcfour.m4: New file.
62785
62786         * m4/gc-rijndael.m4: New file.
62787
62788 2005-10-19  Simon Josefsson  <jas@extundo.com>
62789
62790         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62791
62792 2005-10-19  Simon Josefsson  <jas@extundo.com>
62793
62794         * lib/gc-gnulib.c: Support ARCFOUR.
62795
62796 2005-10-19  Simon Josefsson  <jas@extundo.com>
62797
62798         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62799         support.
62800
62801         * lib/gc.h: Add ECB enum type.
62802
62803         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62804
62805 2005-10-18  Simon Josefsson  <jas@extundo.com>
62806
62807         * tests/test-md5.c: New file.
62808
62809         * modules/md5-tests: New file.
62810
62811 2005-10-18  Simon Josefsson  <jas@extundo.com>
62812
62813         * tests/test-md4.c: New file.
62814
62815         * modules/md4, modules/md4-tests: New files.
62816
62817 2005-10-18  Simon Josefsson  <jas@extundo.com>
62818
62819         * m4/md4.m4: New file.
62820
62821 2005-10-18  Simon Josefsson  <jas@extundo.com>
62822
62823         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62824
62825 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62826
62827         * gnulib-tool (func_create_testdir): Omit the second check whether
62828         BUILT_SOURCES in nonempty.
62829
62830 2005-10-17  Simon Josefsson  <jas@extundo.com>
62831
62832         * tests/test-rijndael.c: New file.
62833
62834 2005-10-17  Simon Josefsson  <jas@extundo.com>
62835
62836         * modules/sha1: Depend on stdint instead of md5.
62837
62838         * modules/md5: Depend on stdint, remove uint32_t.
62839
62840 2005-10-17  Simon Josefsson  <jas@extundo.com>
62841
62842         * modules/gc-sha1-tests: New file.
62843
62844         * tests/test-gc-sha1.c: New file.
62845
62846 2005-10-17  Simon Josefsson  <jas@extundo.com>
62847
62848         * m4/md5.m4: Remove call to uint32_t.m4.
62849
62850 2005-10-17  Simon Josefsson  <jas@extundo.com>
62851
62852         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62853
62854         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62855         md5.h.
62856
62857         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62858
62859         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62860
62861 2005-10-17  Simon Josefsson  <jas@extundo.com>
62862
62863         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62864
62865 2005-10-17  Simon Josefsson  <jas@extundo.com>
62866
62867         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62868
62869 2005-10-17  Simon Josefsson  <jas@extundo.com>
62870
62871         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62872
62873         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62874
62875 2005-10-17  Bruno Haible  <bruno@clisp.org>
62876
62877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62878         that it can also be used in a test.
62879
62880 2005-10-16  Bruno Haible  <bruno@clisp.org>
62881
62882         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62883         TESTS_ENVIRONMENT, so that individual tests can augment it.
62884
62885         * gnulib-tool (func_create_testdir): Use an intermediate target for
62886         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62887         macros, like $(ALLOCA_H), which cannot be passed through the command
62888         line.
62889
62890 2005-10-15  Simon Josefsson  <jas@extundo.com>
62891
62892         * modules/rijndael-tests: New file.
62893
62894         * modules/rijndael: New file.
62895
62896 2005-10-15  Simon Josefsson  <jas@extundo.com>
62897
62898         * m4/rijndael.m4: New file.
62899
62900 2005-10-15  Simon Josefsson  <jas@extundo.com>
62901
62902         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62903
62904         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62905
62906 2005-10-14  Simon Josefsson  <jas@extundo.com>
62907
62908         * tests/test-arcfour.c: New file.
62909
62910         * modules/arcfour, modules/arcfour-tests: New files.
62911
62912 2005-10-14  Simon Josefsson  <jas@extundo.com>
62913
62914         * m4/arcfour.m4: New file.
62915
62916 2005-10-14  Simon Josefsson  <jas@extundo.com>
62917
62918         * lib/arcfour.h, lib/arcfour.c: New files.
62919
62920 2005-10-14  Roland McGrath  <roland@redhat.com>
62921
62922         Import from libc.  [BZ #1331]
62923         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62924         macro argument.
62925         Reported by Matej Vela <vela@debian.org>.
62926
62927 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62930         include <wchar.h>; no longer needed.
62931
62932 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62935
62936 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62937         and  Ulrich Drepper  <drepper@redhat.com>
62938
62939         Import from libc.
62940         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62941         instead of inline stream orientation test and two separate
62942         function calls.  Pay no attention to USE_IN_LIBIO.
62943
62944 2005-10-13  Simon Josefsson  <jas@extundo.com>
62945
62946         * modules/gc-hmac-md5-tests: New file.
62947
62948         * tests/test-gc-hmac-sha1.c: New file.
62949
62950         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62951
62952         * modules/gc-hmac-md5-tests: New file.
62953
62954         * tests/test-gc-md5.c: New file.
62955
62956         * modules/gc-md5-tests: New file.
62957
62958 2005-10-13  Simon Josefsson  <jas@extundo.com>
62959
62960         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62961         Move memory allocation outside of loop.
62962
62963 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62964
62965         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62966         intermediate directory is in a read-only file system.  Problem
62967         reported by Eric Blake.
62968
62969 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62970
62971         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62972
62973 2005-10-12  Simon Josefsson  <jas@extundo.com>
62974
62975         * tests/test-hmac-sha1.c: New file.
62976
62977         * modules/hmac-sha1-tests: New file.
62978
62979         * modules/hmac-sha1: New file.
62980
62981 2005-10-12  Simon Josefsson  <jas@extundo.com>
62982
62983         * modules/gc-sha1: New file.
62984
62985 2005-10-12  Simon Josefsson  <jas@extundo.com>
62986
62987         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62988
62989         * tests/test-gc-pbkdf2-sha1.c: New file.
62990
62991 2005-10-12  Simon Josefsson  <jas@extundo.com>
62992
62993         * modules/gc-md5, modules/gc-hmac-md5: New files.
62994
62995         * modules/gc (Files): Remove md5, memxor and hmac files.
62996
62997 2005-10-12  Simon Josefsson  <jas@extundo.com>
62998
62999         * m4/gc-pbkdf2-sha1.m4: New file.
63000
63001         * m4/gc-hmac-sha1.m4: New file.
63002
63003         * m4/gc-sha1: New file.
63004
63005         * m4/hmac-sha1.m4: New file.
63006
63007 2005-10-12  Simon Josefsson  <jas@extundo.com>
63008
63009         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63010
63011         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63012
63013 2005-10-12  Simon Josefsson  <jas@extundo.com>
63014
63015         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63016         suggested by Bruno Haible <bruno@clisp.org>.
63017
63018 2005-10-12  Simon Josefsson  <jas@extundo.com>
63019
63020         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63021
63022 2005-10-12  Simon Josefsson  <jas@extundo.com>
63023
63024         * lib/gc-pbkdf2-sha1.c: New file.
63025
63026         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63027
63028 2005-10-12  Simon Josefsson  <jas@extundo.com>
63029
63030         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63031
63032         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63033
63034 2005-10-12  Simon Josefsson  <jas@extundo.com>
63035
63036         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63037         GC_USE_HMAC_MD5, respectively.
63038
63039         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63040         (gc_md5): Fix typo.
63041
63042         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63043
63044         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63045
63046         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63047
63048 2005-10-12  Bruno Haible  <bruno@clisp.org>
63049
63050         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63051         Reported by Stepan Kasal <kasal@ucw.cz>.
63052
63053 2005-10-11  Simon Josefsson  <jas@extundo.com>
63054
63055         * tests/test-crc.c: New file.
63056
63057         * modules/crc, modules/crc-tests: New files.
63058
63059 2005-10-11  Simon Josefsson  <jas@extundo.com>
63060
63061         * m4/crc.m4: New file.
63062
63063 2005-10-11  Simon Josefsson  <jas@extundo.com>
63064
63065         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63066
63067         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63068
63069         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63070
63071 2005-10-11  Simon Josefsson  <jas@extundo.com>
63072
63073         * lib/crc.h, lib/crc.c: New files.
63074
63075         * lib/gc.h (gc_hash_buffer): Add doc.
63076
63077 2005-10-11  Bruno Haible  <bruno@clisp.org>
63078
63079         * modules/c-strcasestr: New file.
63080         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63081
63082 2005-10-11  Bruno Haible  <bruno@clisp.org>
63083
63084         * modules/c-strcase: New file.
63085         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63086
63087 2005-10-11  Bruno Haible  <bruno@clisp.org>
63088
63089         * lib/strcasecmp.c: Include limits.h.
63090         (strcasecmp): Avoid integer overflow on exotic platforms.
63091         * lib/strncasecmp.c: Include limits.h.
63092         (strncasecmp): Avoid integer overflow on exotic platforms.
63093         Reported by Paul Eggert.
63094
63095 2005-10-11  Bruno Haible  <bruno@clisp.org>
63096
63097         * lib/c-strcasestr.h: New file, from GNU gettext.
63098         * lib/c-strcasestr.c: New file, from GNU gettext.
63099
63100 2005-10-11  Bruno Haible  <bruno@clisp.org>
63101
63102         * lib/c-strcase.h: New file, from GNU gettext.
63103         * lib/c-strcasecmp.c: New file, from GNU gettext.
63104         * lib/c-strncasecmp.c: New file, from GNU gettext.
63105
63106 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * modules/mempcpy (License): GPL -> LGPL.
63109         * modules/strchrnul (License): Likewise.
63110         * modules/sysexits (License): Likewise.
63111
63112 2005-10-08  Simon Josefsson  <jas@extundo.com>
63113
63114         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63115
63116 2005-10-07  Simon Josefsson  <jas@extundo.com>
63117
63118         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63119
63120 2005-10-06  Simon Josefsson  <jas@extundo.com>
63121
63122         * tests/test-hmac-md5.c: New file.
63123
63124         * modules/hmac-md5-tests: New file.
63125
63126         * modules/hmac-md5: New file.
63127
63128 2005-10-06  Simon Josefsson  <jas@extundo.com>
63129
63130         * m4/hmac-md5.m4: New file.
63131
63132         * m4/memxor.m4: Require gl_C_RESTRICT.
63133
63134 2005-10-06  Simon Josefsson  <jas@extundo.com>
63135
63136         * lib/memxor.c (memxor): Avoid casts and warnings.
63137
63138 2005-10-06  Simon Josefsson  <jas@extundo.com>
63139
63140         * lib/hmac-md5.c: New file.
63141
63142         * lib/hmac.h: New file.
63143
63144 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63147         promotes to int, not unsigned int, to catch the AIX 5.3
63148         compiler bug.
63149
63150 2005-10-05  Simon Josefsson  <jas@extundo.com>
63151
63152         * modules/memxor: New file.
63153
63154         * modules/iconv (Files): Move config.rpath to havelib, it is used
63155         there.
63156
63157         * modules/havelib (Files): Add config.rpath.
63158
63159 2005-10-05  Simon Josefsson  <jas@extundo.com>
63160
63161         * m4/memxor.m4: New file.
63162
63163 2005-10-05  Simon Josefsson  <jas@extundo.com>
63164
63165         * lib/memxor.c (memxor): Fix compiler error.
63166
63167         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63168         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63169
63170         * lib/memxor.h, lib/memxor.c: New files.
63171
63172         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63173         we assume all systems have it, suggested by Jim Meyering
63174         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63175         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63176         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63177         same reasons.
63178
63179 2005-10-05  Simon Josefsson  <jas@extundo.com>
63180
63181         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63182
63183 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63184
63185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63186         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63187         needed, since the source code now assumes these .h files.
63188
63189 2005-10-05  Derek Price  <derek@ximbiot.com>
63190
63191         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63192
63193 2005-10-05  Bruno Haible  <bruno@clisp.org>
63194
63195         * modules/stdint (License): Change to LGPL.
63196
63197 2005-10-04  Simon Josefsson  <jas@extundo.com>
63198
63199         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63200         D. Baushke" <mdb@gnu.org>.
63201
63202 2005-10-04  Bruno Haible  <bruno@clisp.org>
63203
63204         * lib/verify.h (verify_true): Provide alternative definition for C++.
63205
63206 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63207
63208         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63209         (SSIZE_MAX): New macro, if not already defined.
63210         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63211         than 2 GiB.
63212
63213 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         Sync from coreutils.
63216         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63217         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63218         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63219         ULLONG_MAX doesn't work with 2.7.2.1.
63220
63221 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63224         From Ben Pfaff.
63225
63226         * modules/exclude (Depends-on): Depend on verify.
63227         * modules/strtoimax (Depends-on): Likewise.
63228         * modules/utimecmp (Depends-on): Likewise.
63229
63230 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63231
63232         * lib/exclude.c: Include verify.h.
63233         (verify): Remove.  All callers changed to use verify.h's version.
63234         * lib/strtoimax.c: Likewise.
63235         * lib/utimecmp.c: Likewis.e
63236
63237         Sync from coreutils.
63238         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63239         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63240         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63241         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63242         bother returning ENOSYS if settimeofday or stime fails; just let
63243         them return whatever errno they want to return.
63244         * lib/utimens.c: Include unistd.h, for dup2.
63245         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63246         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63247
63248 2005-10-02  Jim Meyering  <jim@meyering.net>
63249
63250         Sync from coreutils.
63251         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63252         from glibc-2.2.5 that fails for read-only files.
63253
63254 2005-10-02  Jim Meyering  <jim@meyering.net>
63255
63256         Sync from coreutils.
63257         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63258         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63259         `#if HAVE_CONFIG_H'.
63260         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63261         Remove AT_FDCWD test.
63262         Do not consume the fd unless successful.
63263         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63264         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63265         block, so that we don't even try to compile it if settimeofday is
63266         available.  This works around a compilation failure on OSF1 V5.1,
63267         due to stime requiring a `long int*' while tv_sec is `int'.
63268
63269 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63270
63271         Sync from coreutils.
63272         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63273         against `yes', rather than just testing for nonempty.
63274
63275 2005-10-01  Simon Josefsson  <jas@extundo.com>
63276
63277         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63278         and Darwin.
63279
63280         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63281         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63282         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63283         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63284         Check if struct addrinfo is declared.
63285
63286 2005-10-01  Simon Josefsson  <jas@extundo.com>
63287
63288         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63289         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63290         AI_* and EAI_* definitions.  Protect function declarations.
63291
63292 2005-10-01  Jim Meyering  <jim@meyering.net>
63293
63294         Sync from coreutils.
63295
63296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63297         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63298         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63300         in the inet and nsl libraries.  Required on Solaris 5.7.
63301
63302 2005-10-01  Jim Meyering  <jim@meyering.net>
63303
63304         Sync from coreutils.
63305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63306         in the inet and nsl libraries.  Required on Solaris 5.7.
63307
63308 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63309
63310         * lib/getdelim.c (getdelim): Remove unused variables.
63311
63312 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63315         so that the code works even with ancient cpp.  Portability problem
63316         with GCC 2.7.2.1 reported by Thomas M.Ott.
63317
63318 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63319
63320         * modules/regex (Depends-on): Add strcase.
63321
63322         * modules/gethostname (Licence): Change from GPL to LGPL, since
63323         gethostname.c is a trivial implementation of a standard library
63324         function.
63325         * modules/poll (License): Change from GPL to LGPL, since it's
63326         derived from LGPL code.
63327
63328 2005-09-27  Jim Meyering  <jim@meyering.net>
63329
63330         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63331         HAVE_CONFIG_H.
63332
63333         * lib/intprops.h (signed_type_or_expr__): Define.
63334         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63335         for unsigned types.
63336
63337 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         * lib/verify.h (verify_expr): Remove, replacing with:
63340         (verify_true): New macro that returns true instead of void.
63341         (verify_type__): Remove.
63342         (verify): Use verify_true rather than verify_type__.
63343
63344 2005-09-26  Bruno Haible  <bruno@clisp.org>
63345
63346         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63347         is necessary.
63348         (lib_SOURCES): Remove mbchar.c.
63349         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63350         (Files): Add m4/mbrtowc.m4.
63351         * modules/mbiter: Likewise.
63352         * modules/mbuiter: Likewise.
63353
63354 2005-09-26  Bruno Haible  <bruno@clisp.org>
63355
63356         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63357         compile mbchar.c if they are not both present.
63358         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63359         * m4/mbiter.m4 (gl_MBITER): Likewise.
63360         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63361         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63362         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63363
63364 2005-09-25  Jim Meyering  <jim@meyering.net>
63365
63366         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63367         also uses socklen_t.
63368
63369 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         * lib/utimens.c (ENOSYS): Define if not already defined.
63372         (futimens): Support having a null PATH if the file descriptor
63373         is nonnegative.
63374
63375         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63376         Remove.
63377         (__attribute): Define to empty unless GCC 3.1 or later.
63378         This works around a core dump on OpenBSD 3.4, which has GCC
63379         2.95.3, which dumps core when given __attribute__(()).  It also
63380         simplifies other tests, since we really don't want to bother with
63381         worrying about which ancient version of GCC supported what.
63382         Original problem reported by Yoann Vandoorselaere, with part of
63383         the fix suggested by Derek Price.
63384
63385 2005-09-24  Jim Meyering  <jim@meyering.net>
63386
63387         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63388         so we can once again use a positive bitfield width of 1 -- now we
63389         don't have to explain why we were using a bitfield width of 2.
63390
63391 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63394         and similarly for the other external symbols.  Problem reported
63395         by James Gallager.
63396
63397         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63398         bug reported by Jim Meyering.
63399
63400         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63402         not needed, since socklen is a prerequisite module.
63403
63404 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63405
63406         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63407         Problem reported by Eric Blake.
63408         (getaddrinfo): Initialize se so that it's not garbage.
63409         Redo internal storage allocation so that it doesn't make unportable
63410         assumptions about alignment.
63411         Fix a memory leak.
63412
63413         * lib/utimens.c (futimens): Use futimesat if available.
63414         Prefer it to futimes since it doesn't have the futimes bug.
63415
63416         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63417         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63418         Instead, declare a function that returns a pointer to an array,
63419         and use verify_type__ to declare the size of the array.
63420         Problem and germ of a solution reported by Bruno Haible.
63421         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63422         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63423
63424 2005-09-23  Jim Meyering  <jim@meyering.net>
63425
63426         Sync from coreutils.
63427         Correct build failure (socklen_t not defined) on at least
63428         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63429         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63430
63431 2005-09-23  Jim Meyering  <jim@meyering.net>
63432
63433         * modules/getaddrinfo (Depends-on): Add socklen.
63434
63435 2005-09-23  Bruno Haible  <bruno@clisp.org>
63436
63437         * tests/test-verify.c: New file.
63438
63439 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63440
63441         Sync from coreutils.
63442
63443         * modules/argmatch (Depends-on): Add verify.
63444         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63445         unistd-safer.
63446         * modules/save-cwd (Depends-on): Likewise.
63447
63448         * modules/openat (Files): Add lib/openat-die.c.
63449         (Depends-on): Remove error, exitfail.
63450         Add dirname.
63451
63452         * modules/verify: New file.
63453         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63454         with "verify" module.
63455
63456 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63457
63458         Sync from coreutils.
63459
63460         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63461         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63462         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63463         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63464         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63465         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63466         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63467         Don't bother checking for string.h, stdlib.h, unistd.h.
63468         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63469         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63470         module's job.
63471         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63472         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63473
63474         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63475         (gl_GETDATE): Use it.
63476
63477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63478
63479 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63480
63481         Sync from coreutils.
63482
63483         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63484         stat-time.h.
63485         * lib/argmatch.h: Include verify.h
63486         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63487         (ARGMATCH_ASSERT): Remove; unused.
63488         * lib/canonicalize.c: Assume STDC_HEADERS.
63489         * lib/exclude.c: Include "strcase.h".
63490         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63491         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63492         and stdio-safer.h.
63493         (getusershell): Call fopen, not fopen_safer.
63494         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63495         Do not include unistd-safer.h.
63496         (save_cwd): Don't call fd_safer; no longer needed
63497         now that we include fcntl--.h.
63498
63499         * lib/getdate.y (relative_time): New type.
63500         (RELATIVE_TIME_0): New constant.
63501         (parser_control): Use relative_time instead of doing it ourselves.
63502         (%union): Add new relative_time rel member.
63503         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63504         Now typeless.
63505         (relunit, relunit_snumber): Now of type rel.
63506         (zone, rel, relunit, get_date): Adjust to above changes.
63507
63508         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63509         Do not include unistd-safer.h.
63510         (getloadavg): Don't call fd_safer; no longer needed
63511         now that we include fcntl--.h.
63512
63513         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63514         (make_dir_parents): Treat ENOSYS like EEXIST.
63515
63516         Improve quality of diagnostics on restore_cwd failure.
63517         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63518         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63519         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63520         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63521         each time through the loop.  Do not diagnose restore_cwd failure;
63522         that is the caller's job (and perhaps the caller does not care).
63523
63524         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63525         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63526         If the file already exists but is not a directory, don't bother
63527         to try to make its parents.
63528         Close potential file descriptor leak if we can't chdir("/") (!).
63529         Don't always return true if chdir($PWD) fails; return true only
63530         if the requested action was done successfully (except for the
63531         chdir($PWD)).
63532         Don't log final directory unless we actually made it.
63533         Refactor to avoid duplicate code to fix up permissions.
63534         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63535
63536         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63537         to make it a bit faster and (I hope) clearer.
63538         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63539         Fix bug in formats like %2N.
63540
63541         * lib/verify.h: New file.
63542
63543 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63544
63545         Sync from coreutils.
63546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63547
63548 2005-09-22  Jim Meyering  <jim@meyering.net>
63549
63550         Sync from coreutils.
63551
63552         * m4/lstat.m4 (gl_FUNC_LSTAT):
63553         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63554         Remove obsolete comment.
63555         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63556         * m4/xstrtod.m4: Likewise.
63557
63558         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63559
63560 2005-09-22  Jim Meyering  <jim@meyering.net>
63561
63562         Sync from coreutils.
63563
63564         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63565
63566         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63567         the .tm_year member, since otherwise gcc-4.0 would now warn about
63568         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63569
63570         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63571         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63572
63573         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63574         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63575         when run in a time zone for which daylight savings time is in effect
63576         for the starting date.
63577
63578         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63579         stop us from restricting permissions of just-created absolute-named
63580         directories.
63581         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63582         to restore initial working directory.
63583         * lib/mkdir-p.c (make_dir_parents): New parameter:
63584         different_working_dir, to tell caller if/when we change the working
63585         directory and are unable to return to the initial one.
63586         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63587         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63588         `return false'.  This fixes a bug introduced on 2004-07-30.
63589
63590         * lib/openat.c (fdopendir): Be sure to close the supplied
63591         file descriptor before returning.  This makes our replacement
63592         implementation a little closer to Solaris's, where fdopendir
63593         ties the file descriptor to the returned DIR* pointer.
63594         * lib/openat.c (unlinkat): New function.
63595         * lib/openat.h (unlinkat): Add prototype.
63596         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63597         (openat_restore_fail): Rename from openat_restore_die.
63598         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63599
63600         Provide an alternative to exiting immediately upon save_cwd or
63601         restore_cwd failure.  Now, an application can arrange e.g.,
63602         to perform a longjump in that case.
63603         * lib/openat.c: Include dirname.h.
63604         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63605         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63606         and openat_restore_die rather than calling error directly.
63607         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63608
63609         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63610         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63611         define.
63612
63613         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63614         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63615                             int utc, int nanoseconds);
63616         Background:
63617         date should not have to allocate a megabyte of virtual memory to
63618         handle a format argument like +%1048575T.  When implemented with
63619         strftime, it must allocate such a buffer, use strftime to fill it
63620         in, print it, then free it.
63621         With fprintftime, it simply prints everything and exits.
63622         With no need for memory allocation, that's one fewer way to fail.
63623         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63624         optional field width, not before, so we accept %9:z, not %:9z.
63625         (my_strftime): Be sure to use L_('x') for literals.
63626
63627         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63628         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63629         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63630         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63631         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63632         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63633         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63634         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63635         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63636         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63637         * lib/xgethostname.c, lib/xreadlink.c:
63638         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63639
63640         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63641         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63642         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63643         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63644         and don't include <sys/file.h>).
63645
63646 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63647
63648         Sync from coreutils.
63649
63650         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63651         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63652         [!LDAV_DONE]: Avoid unused variable warning.
63653
63654 2005-09-21  Bruno Haible  <bruno@clisp.org>
63655
63656         * lib/unicodeio.h (unicode_to_mb): New declaration.
63657
63658 2005-09-20  Derek Price  <derek@ximbiot.com>
63659
63660         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63661         getaddrinfo.h.
63662
63663 2005-09-20  Bruno Haible  <bruno@clisp.org>
63664
63665         * gnulib-tool: Remove trailing slashes from the values specified for
63666         --source-base, --m4-base, --tests-base, --aux-dir.
63667         Suggested by Simon Josefsson <jas@extundo.com>.
63668
63669 2005-09-20  Bruno Haible  <bruno@clisp.org>
63670
63671         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63672         func_modules_to_filelist, func_import, func_create_testdir): Make all
63673         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63674         change when gnulib-tool is invoked in a different locale.
63675
63676 2005-09-19  Simon Josefsson  <jas@extundo.com>
63677
63678         * m4/socklen.m4: Fix typo.
63679
63680 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63681
63682         Use a consistent style for including <config.h>.
63683         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63684         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63685         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63686         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63687         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63688         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63689         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63690         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63691         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63692         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63693         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63694         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63695         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63696         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63697         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63698         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63699         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63700         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63701         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63702         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63703         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63704         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63705         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63706         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63707         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63708         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63709         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63710         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63711         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63712         lib/xstrtoumax.c, lib/yesno.c:
63713         Standardize inclusion of config.h.
63714         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63715         lib/inttostr.h:  Removed inclusion of config.h from header files.
63716         * lib/inttostr.c:  Adjusted in-tree users.
63717         * lib/timespec.h: Remove superfluous warning to include config.h.
63718         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63719         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63720         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63721         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63722         config.h with HAVE_CONFIG_H.
63723
63724 2005-09-19  Jim Meyering  <jim@meyering.net>
63725
63726         * modules/pathmax (License): Change to LGPL.
63727
63728 2005-09-19  Derek Price  <derek@ximbiot.com>
63729
63730         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63731
63732 2005-09-19  Bruno Haible  <bruno@clisp.org>
63733
63734         * gnulib-tool (import): Provide default for --tests-base.
63735
63736 2005-09-19  Bruno Haible  <bruno@clisp.org>
63737
63738         * doc/quote.texi: New file, extracted from gnulib.texi.
63739         * doc/ctime.texi: New file, extracted from gnulib.texi.
63740         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63741         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63742         * doc/gnulib.texi: Include them.
63743
63744 2005-09-18  Bruno Haible  <bruno@clisp.org>
63745
63746         Portability fix.
63747         * gnulib-tool (func_readlink): New function.
63748         (func_ln_if_changed): Use it.
63749
63750 2005-09-18  Bruno Haible  <bruno@clisp.org>
63751
63752         * gnulib-tool: Support --with-tests also with --import.
63753         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63754         (func_import): Use variables $testsbase and $inctests. Emit a
63755         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63756         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63757         SUBDIRS += $testsdir.
63758         (func_create_testdir): Update.
63759
63760 2005-09-18  Bruno Haible  <bruno@clisp.org>
63761
63762         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63763         instead of $dry_run.
63764         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63765         (func_ln_if_changed): Don't handle dry-run here.
63766         (func_import): In dry-run mode, detect more precisely which actions
63767         would be performed, and don't use "...ing" verbs.
63768
63769 2005-09-18  Bruno Haible  <bruno@clisp.org>
63770
63771         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63772         (func_import): Use join on two temporary files instead of three nested
63773         loops, in order to determine which files are new or old.
63774
63775 2005-09-18  Bruno Haible  <bruno@clisp.org>
63776
63777         * gnulib-tool (func_import): Comment out code that spits out the
63778         new files with --dry-run.
63779
63780 2005-09-18  Bruno Haible  <bruno@clisp.org>
63781
63782         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63783
63784 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * lib/stat-time.h: New file.
63787         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63788         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63789         in a different way.
63790         (timespec_cmp): New function.
63791         * lib/utimecmp.c: Include stat-time.h.
63792         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63793         members exist, not on the obsolescent ST_MTIM_NSEC.
63794         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63795
63796 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63797
63798         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63799
63800 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         * MODULES.html.sh (File system functions): Add stat-time.
63803         * modules/stat-time: New file.
63804         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63805         is now done in a different way, by the stat-time module.
63806         * modules/utimecmp (Depends-on): Add stat-time.
63807
63808 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * m4/st_mtim.m4: Remove.  Superseded by...
63811         * m4/stat-time.m4: New file.
63812         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63813         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63814
63815 2005-09-15  Derek Price  <derek@ximbiot.com>
63816
63817         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63818
63819 2005-09-15  Derek Price  <derek@ximbiot.com>
63820
63821         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63822         * lib/regex_internal.c: Ditto, using this...
63823         (__GNUC_PREREQ): ...new macro.
63824         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63825         using...
63826         (__GNUC_PREREQ): ...this new macro.
63827
63828         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63829
63830 2005-09-15  Derek Price  <derek@ximbiot.com>
63831             Paul Eggert  <eggert@cs.ucla.edu>
63832
63833         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63834         changes, consolidating in...
63835         * lib/regex_internal.h: ...this file.
63836
63837 2005-09-13  Jim Meyering  <jim@meyering.net>
63838
63839         * lib/canon-host.c: Filter through gnu indent and reword comments
63840         slightly.
63841         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63842
63843 2005-09-13  Derek Price  <derek@ximbiot.com>
63844
63845         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63846         failure.
63847         Reported by Jim Meyering  <jim@meyering.net>.
63848
63849 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63850
63851         * lib/base64.c: Typo.
63852         (base64_encode): Put b64str in initialized data section.
63853
63854 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63855
63856         Merge glibc and coreutils changes into gnulib, plus a few
63857         extra fixes.
63858         * lib/md5.c: Use #error rather than a string.
63859         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63860         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63861         (__attribute__): Define to empty for non recent-GCC.
63862         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63863         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63864         Renamed from their non-__ counterparts, with new macros replacing
63865         them if not _LIBC.  Add __THROW attribute.
63866         (rol): Remove.
63867         (struct md5_ctx): Align buffer if using GCC.
63868         * lib/sha1.h (struct sha1_ctx): Likewise.
63869         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63870         The old name was backwards.
63871         (NOTSWAP): Remove; not used.
63872         (rol): New macro, moved here from md5.h.
63873         (sha1_process_block): Remove a FIXME that doesn't make sense.
63874
63875 2005-09-12  Derek Price  <derek@ximbiot.com>
63876
63877         Return usable errors from canon-host.
63878         * lib/canon-host.h: New file.
63879         * lib/canon-host.c (canon_host): Wrap...
63880         (canon_host_r): ...this new function, which now relies exclusively on
63881         getaddrinfo.
63882         (ch_strerror): New function.
63883         (last_cherror): New global.
63884         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63885         interface.
63886         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63887         void *.
63888         (freeaddrinfo): Free ai->ai_canonname when set.
63889
63890 2005-09-12  Derek Price  <derek@ximbiot.com>
63891
63892         Make canon-host require getaddrinfo.
63893         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63894         AC_LIBSOURCE canon-host.h.  Call...
63895         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63896         gl_GETADDRINFO.
63897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63898
63899 2005-09-12  Derek Price  <derek@ximbiot.com>
63900
63901         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63902         LGPL.
63903         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63904
63905 2005-09-12  Derek Price  <derek@ximbiot.com>
63906
63907         * lib/gai_strerror.c: Include config.h when available.  Include
63908         getaddrinfo.h before other headers to test interface.
63909         Reported by Larry Jones <lawrence.jones@ugs.com>.
63910
63911 2005-09-12  Derek Price  <derek@ximbiot.com>
63912             Paul Eggert  <eggert@cs.ucla.edu>
63913
63914         * modules/glob (Files): Add glob-libc.h.
63915
63916 2005-09-12  Derek Price  <derek@ximbiot.com>
63917             Paul Eggert  <eggert@cs.ucla.edu>
63918
63919         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63920         glob_.h, glob-libc.h.
63921         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63922
63923 2005-09-12  Derek Price  <derek@ximbiot.com>
63924             Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63927         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63928         protecting things that should be done only in gnulib contexts.
63929         * lib/glob_.h: New file, containing only the glob things needed for
63930         gnulib.
63931         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63932         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63933         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63934         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63935         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63936         and to respect the namespace rules better.
63937
63938 2005-09-08  Simon Josefsson  <jas@extundo.com>
63939
63940         * modules/socklen: New file.
63941
63942 2005-09-08  Simon Josefsson  <jas@extundo.com>
63943
63944         * m4/socklen.m4: New file.
63945
63946 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63947
63948         * modules/utimens (Files): Add m4/utimbuf.m4, since
63949         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63950         Reported by Sergey Poznyakoff.
63951
63952 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63953
63954         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63955         definitions, since that's the preferred style in glibc.
63956         Fix a minor spacing issue, and update copyright notice to match
63957         glibc's.
63958
63959 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63962
63963 2005-09-06  Simon Josefsson  <jas@extundo.com>
63964
63965         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63966         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63967
63968 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63971         warning.
63972
63973 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63974
63975         * config/srclist.txt: Add glibc bug 1302.
63976
63977 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         Change bitset word type from unsigned int to unsigned long int,
63980         as this has better performance on typical 64-bit hosts.
63981         Port bitset code to hosts with unusual word sizes.
63982         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63983         (build_collating_symbol):
63984         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63985         argument is a bitset.  This is merely a style issue, but it makes
63986         it clearer that an entire array is expected.
63987         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63988         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63989         Port to the case where bitset_word is not the same as unsigned int.
63990         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63991         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63992         Likewise.
63993         * lib/regexec.c (check_dst_limits_calc_pos_1,
63994         check_subexp_matching_top):
63995         (build_trtable, group_nodes_into_DFAstates):
63996         Likewise.
63997         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63998         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63999         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64000         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64001         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64002         * lib/regcomp.c (optimize_subexps, lower_subexp):
64003         Work even if bitset_word has holes in its bitwise representation.
64004         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64005         * lib/regexec.c (check_dst_limits_calc_pos_1,
64006         check_subexp_matching_top):
64007         Likewise.
64008         * lib/regex_internal.c (re_string_reconstruct):
64009         Don't assume UCHAR_MAX == 255.
64010         * lib/regex_internal.h (bitset_set_all): Likewise.
64011         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64012         All uses changed.
64013         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64014         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64015         All uses changed.
64016         (BITSET_WORD_MAX): New macro.
64017         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64018         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64019         (bitset_empty, bitset_copy):
64020         Prefer sizeof (bitset) to multiplying it out ourselves.
64021         (bitset_not_merge): Remove; unused.
64022         (bitset_contain): Return bool, not unsigned int with one bit on.
64023         All callers changed.
64024         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64025         alignment than re_node_set; do this by defining a new internal
64026         type struct dests_alloc and using it to allocate memory.
64027
64028 2005-09-05  Bruno Haible  <bruno@clisp.org>
64029
64030         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64031         links.
64032
64033 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64034
64035         * modules/size_max (Makefile.am): Add size_max.h
64036
64037 2005-09-04  Derek Price  <derek@ximbiot.com>
64038
64039         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64040
64041 2005-09-03  Simon Josefsson  <jas@extundo.com>
64042
64043         * gnulib-tool: Fix typo.
64044
64045 2005-09-03  Simon Josefsson  <jas@extundo.com>
64046
64047         * config/srclist.txt: Add glibc bug 1293.
64048
64049 2005-09-03  Derek Price  <derek@ximbiot.com>
64050
64051         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64052         From Larry Jones <lawrence.jones@ugs.com>.
64053
64054 2005-09-02  Simon Josefsson  <jas@extundo.com>
64055
64056         * modules/socklen: New file.
64057
64058 2005-09-02  Simon Josefsson  <jas@extundo.com>
64059
64060         * modules/havelib: New module.
64061
64062         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64063         Use havelib.
64064
64065 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         Check for arithmetic overflow when calculating sizes, to prevent
64068         some buffer-overflow issues.  These patches are conservative, in the
64069         sense that when I couldn't determine whether an overflow was possible,
64070         I inserted a run-time check.
64071         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64072         macros.
64073         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64074         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64075         (re_xnrealloc, re_x2nrealloc): New inline functions.
64076         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64077         parse_bracket_exp):
64078         (build_equiv_class, build_charclass): Check for arithmetic overflow
64079         in size expression calculations.
64080         * lib/regex_internal.c (re_string_realloc_buffers):
64081         (build_wcs_upper_buffer, re_node_set_add_intersect):
64082         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64083         (re_dfa_add_node, register_state): Likewise.
64084         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64085         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64086         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64087         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64088
64089 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64090
64091         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64092         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64093
64094 2005-09-02  Bruno Haible  <bruno@clisp.org>
64095
64096         Support for lib vs. lib64 distinction on biarch platforms.
64097         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64098         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64099         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64100
64101 2005-09-02  Bruno Haible  <bruno@clisp.org>
64102
64103         * gnulib-tool (import): In the other first-use case, provide defaults
64104         as well.
64105
64106 2005-09-02  Bruno Haible  <bruno@clisp.org>
64107
64108         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64109         patches not yet found in the latest gettext release.
64110
64111 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64114         to avoid a collision with bits/local_lim.h in glibc.
64115         All uses changed.  Problem reported by Dmitry V. Levin in
64116         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64117
64118         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64119         bugs in int versus size_t comparisons.
64120         (re_string_context_at): Fix bug where the code assumed that
64121         Idx is signed.
64122
64123         Use bool where appropriate.
64124         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64125         All callers changed.
64126         (calc_eclosure_iter): Likewise, for ROOT arg.
64127         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64128         (build_charclass_op): Likewise, for NON_MATCH arg.
64129         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64130         (re_string_construct_common): Likewise, for ICASE arg.
64131         * lib/regexec.c (re_search_2_stub, re_search_stub):
64132         Likewise, for RET_LEN arg.
64133         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64134         (set_regs): Likewise, for FL_BACKTRACK arg.
64135         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64136         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64137         (calc_eclosure_iter, parse_bracket_exp):
64138         Use bool for internal variables that are booleans.
64139         * lib/regexec.c (re_search_internal, check_matching,
64140         proceed_next_node):
64141         (set_regs, build_sifted_states, sift_states_bkref):
64142         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64143         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64144         (find_collation_sequence_value):
64145         Likewise.
64146         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64147         (re_node_set_compare):
64148         Return bool, not int. All callers changed.
64149         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64150         (build_trtable, check_node_accept): Likewise.
64151         * lib/regex_internal.h: Include stdbool.h.
64152
64153         Fix bugs uncovered when converting to bool.
64154         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64155         failure instead of charging ahead blindly.
64156         * lib/regex_internal.c (register_state): Likewise.
64157         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64158         for freeing internal storage.
64159         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64160         bitset pieces used as boolean, to avoid undefined behavior
64161         on hosts that do int overflow checking.
64162
64163 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * config/srclist.txt: Add glibc bugs 1285-1287.
64166
64167 2005-09-01  Jim Meyering  <jim@meyering.net>
64168
64169         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64170         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64171         Require gl_STAT_MACROS, too.
64172
64173 2005-09-01  Bruno Haible  <bruno@clisp.org>
64174
64175         * gnulib-tool (import): In the first-use case, provide defaults.
64176
64177 2005-09-01  Bruno Haible  <bruno@clisp.org>
64178
64179         * gnulib-tool (func_import): Remove the .tmp files.
64180
64181 2005-09-01  Bruno Haible  <bruno@clisp.org>
64182
64183         * gnulib-tool (func_import): Fix handling of symbolic links.
64184
64185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64186
64187         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64188         old glibc regex code mishandles strings longer than 2**31 bytes.
64189         This patch fixes this when the regex code is used in gnulib
64190         (i.e., outside glibc).
64191
64192         This patch should not affect the use of the regex code inside
64193         glibc.  No doubt this problem also needs to be handled for glibc
64194         as well, but the result will be an incompatible change to the
64195         glibc ABI, and the old ABI will have to be supported too.  That
64196         can be the the subject for another patch.
64197
64198         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64199         governing whether the rest of this patch is active.  By default,
64200         the macro is disabled and the patch has no effect.
64201         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64202         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64203         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64204         (re_match_2, re_set_registers): Use the new types.
64205         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64206         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64207         New macros.
64208         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64209         (re_string_context_at, bin_tree_t, re_dfastate_t):
64210         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64211         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64212         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64213         (re_string_char_size_at, re_string_wchar_at):
64214         (re_string_elem_size_at):
64215         Use the new types and macros to port to 64-bit hosts.
64216         Use unsigned types for internal values, so that the code
64217         mostly works even for arrays larger than SSIZE_MAX.
64218         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64219         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64220         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64221         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64222         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64223         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64224         (calc_inveclosure, parse_dup_op, build_range_exp):
64225         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64226         (fetch_number, create_token_tree, mark_opt_subexp):
64227         Likewise.
64228         * lib/regex_internal.c (re_string_construct_common,
64229         create_ci_newstate):
64230         (create_cd_newstate, re_string_allocate, re_string_construct):
64231         (re_string_realloc_buffers, build_wcs_upper_buffer):
64232         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64233         (re_string_reconstruct, re_string_peek_byte_case):
64234         (re_string_fetch_byte_case, re_string_context_at):
64235         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64236         (re_node_set_init_copy, re_node_set_add_intersect):
64237         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64238         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64239         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64240         (re_acquire_state, re_acquire_state_context, register_state):
64241         Likewise.
64242         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64243         search_cur_bkref_entry):
64244         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64245         (re_search_internal, re_search_2_stub, re_search_stub)
64246         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64247         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64248         (update_cur_sifted_state, check_dst_limits):
64249         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64250         (check_subexp_limits, sift_states_bkref, merge_state_array):
64251         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64252         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64253         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64254         (expand_bkref_cache, check_node_accept_bytes):
64255         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64256         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64257         (acquire_init_state_context, check_halt_node_context):
64258         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64259         (sift_states_backward, clean_state_log_if_needed):
64260         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64261         (find_recover_state, transit_state_sb, transit_state_mb):
64262         (transit_state_bkref, build_trtable, match_ctx_clean):
64263         Likewise.
64264         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64265         to work around an assumption that REG_MISSING is negative.
64266
64267         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64268         (seek_collating_symbol_entry) [defined _LIBC]:
64269         (lookup_collation_sequence_value) [defined _LIBC]:
64270         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64271         Use prototypes rather than old-style function definitions.
64272         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64273         (transit_state_sb) [0]:
64274         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64275
64276         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64277         rm_eo.
64278
64279         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64280         (optimize_subexps, lower_subexp):
64281         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64282         since the signed shift might overflow.  Use 1u<<31 instead.
64283         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64284         Likewise.
64285         * lib/regexec.c (check_dst_limits_calc_pos_1,
64286         check_subexp_matching_top): Likewise.
64287
64288         * lib/regcomp.c (optimize_subexps, lower_subexp):
64289         Use CHAR_BIT rather than 8, for clarity.
64290         * lib/regexec.c (check_dst_limits_calc_pos_1):
64291         (check_subexp_matching_top): Likewise.
64292         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64293         have to worry about portability issues when shifting it left.
64294         Remove no-longer-needed test for table_size > 0.
64295         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64296         in a word, as the resulting behavior is undefined.
64297         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64298         in one case, a <= should have been an <, and in another case the
64299         whole test was missing.
64300         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64301         the standard name CHAR_BIT.
64302         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64303         this is not true on one's complement and signed-magnitude hosts.
64304
64305         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64306         next_last_offset.
64307         (struct re_dfa_t): Remove unused member states_alloc.
64308         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64309
64310 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64313         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64314         and large-file glibc and in 32-bit large-file Solaris.
64315
64316 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64319         lengths fit in regoff_t; this isn't true if regoff_t is the same
64320         width as size_t.
64321         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64322         (= START + RANGE) instead of RANGE.  This avoids overflow
64323         problems when regoff_t is the same width as size_t.
64324         All callers changed.
64325         (re_search_2_stub): Check for overflow when adding the
64326         sizes of the two strings.
64327         (re_search_stub): Check for overflow when adding START
64328         to RANGE; if it occurs, substitute the extreme value.
64329
64330 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64333
64334 2005-08-31  Jim Meyering  <jim@meyering.net>
64335
64336         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64337         a pointer-to-const.
64338         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64339         (register_state): Likewise.
64340         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64341         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64342         (group_nodes_into_DFAstates): Likewise.
64343
64344 2005-08-31  Jim Meyering  <jim@meyering.net>
64345
64346         * check-module: Add a FIXME comment.
64347
64348 2005-08-31  Eric Blake  <ebb9@byu.net>
64349
64350         * modules/unistd-safer (Files): Add unistd--.h.
64351         * modules/stdio-safer (Files): Add stdio--.h.
64352
64353 2005-08-31  Derek Price  <derek@ximbiot.com>
64354
64355         * lib/getdelim.c (getdelim): Return EOF on EOF.
64356         Reported by Larry Jones <lawrence.jones@ugs.com>.
64357
64358 2005-08-31  Bruno Haible  <bruno@clisp.org>
64359
64360         Avoid unnecessary diffs in the generated lib/Makefile.am.
64361         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64362         the generated files.
64363         (func_import): Don't set cmd.
64364
64365 2005-08-31  Bruno Haible  <bruno@clisp.org>
64366
64367         * lib/strstr.c: Include <stddef.h>, for NULL.
64368         * lib/strcasestr.c: Likewise.
64369         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64370
64371 2005-08-31  Bruno Haible  <bruno@clisp.org>
64372
64373         * gnulib-tool: New option --macro-prefix.
64374         (func_import): Use macro_prefix.
64375         (import): Handle option --macro-prefix.
64376
64377 2005-08-31  Bruno Haible  <bruno@clisp.org>
64378
64379         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64380         Also use new variables cached_lgpl, cached_libtool.
64381
64382 2005-08-31  Bruno Haible  <bruno@clisp.org>
64383
64384         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64385         always instantiating them.
64386
64387 2005-08-31  Bruno Haible  <bruno@clisp.org>
64388
64389         * gnulib-tool (func_import): Read the previous cached settings
64390         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64391         earlier added by gnulib but are now dropped. Warn when a gnulib file
64392         overwrites a non-gnulib file.
64393
64394 2005-08-31  Bruno Haible  <bruno@clisp.org>
64395
64396         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64397         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64398         projects that don't keep autogenerated files in CVS. Put into
64399         actioncmd only the specified modules, not the transitive closure.
64400
64401 2005-08-31  Bruno Haible  <bruno@clisp.org>
64402
64403         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64404         Create directories that shall be filled.
64405         (import): Don't look for gl_* macros in configure.ac. Recurse across
64406         all directories containing a gnulib-cache.m4 files, if meaningful.
64407
64408 2005-08-31  Bruno Haible  <bruno@clisp.org>
64409
64410         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64411         (import): Set seen_libtool when we see gl_LIBTOOL.
64412
64413 2005-08-31  Bruno Haible  <bruno@clisp.org>
64414
64415         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64416         declaration macro definitions from generated gnulib.m4.
64417
64418 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64419
64420         * lib/iconvme.h: Add prototype for iconv_alloc.
64421
64422 2005-08-29  Simon Josefsson  <jas@extundo.com>
64423
64424         * lib/iconvme.c: Fix errno.
64425
64426 2005-08-29  Bruno Haible  <bruno@clisp.org>
64427
64428         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64429         that it works when the directory contains spaces.
64430
64431 2005-08-29  Bruno Haible  <bruno@clisp.org>
64432
64433         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64434
64435 2005-08-29  Bruno Haible  <bruno@clisp.org>
64436
64437         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64438         Emit more advice.
64439
64440 2005-08-29  Bruno Haible  <bruno@clisp.org>
64441         and Stepan Kasal  <kasal@ucw.cz>
64442
64443         * check-module: If more parameters are given, check each of them
64444         separately; add more exceptions, as noted by Jim Meyering.
64445         (check_module): New procedure.
64446         (%exempt_header): Now contains all exceptions.
64447
64448 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64449
64450         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64451
64452 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64453
64454         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64455
64456 2005-08-28  Bruno Haible  <bruno@clisp.org>
64457
64458         * m4/gnulib-tool.m4: New file.
64459
64460 2005-08-27  Jim Meyering  <jim@meyering.net>
64461
64462         * modules/unistd-safer (Files): Add pipe-safer.c.
64463         * modules/fcntl-safer (Files): Add creat-safer.c.
64464
64465 2005-08-27  Jim Meyering  <jim@meyering.net>
64466
64467         * m4/stdlib-safer.m4: New file.  From coreutils.
64468         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64469         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64470         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64471         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64472         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64473
64474 2005-08-27  Jim Meyering  <jim@meyering.net>
64475
64476         * lib/fopen-safer.c: Merge minor changes from coreutils.
64477         * lib/dup-safer.c: Likewise.
64478         * lib/fd-safer.c: Likewise.
64479
64480         Merge from coreutils.
64481         * lib/stdio--.h: New file.
64482         * lib/stdlib--.h: New file.
64483         * lib/mkstemp-safer.c: New file.
64484
64485         GNU tar needs these.
64486         * lib/pipe-safer.c: New file.
64487         * lib/creat-safer.c: New file.
64488         * lib/fcntl--.h (creat): Define to creat_safer.
64489         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64490         * lib/unistd--.h (pipe): Define to pipe_safer.
64491         * lib/unistd-safer.h: Declare pipe_safer.
64492
64493 2005-08-26  Simon Josefsson  <jas@extundo.com>
64494
64495         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64496         Haible <bruno@clisp.org>.
64497
64498 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64499
64500         * lib/regex_internal.h: Remove all references to
64501         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64502         or better.
64503         (bitset_not, bitset_merge, bitset_not_merge):
64504         (bitset_mask, re_string_allocate, re_string_construct):
64505         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64506         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64507         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64508         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64509         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64510         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64511         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64512         (re_acquire_state_context):
64513         Remove unnecessary forward decls.
64514         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64515         Put __attribute at function definition,
64516         now that the function decl has been removed.
64517         * lib/regex_internal.c (re_string_peek_byte_case):
64518         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64519         Likewise.
64520
64521 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64522
64523         * m4/regex.m4: Add AC_PREREQ(2.50).
64524         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64525
64526 2005-08-25  Simon Josefsson  <jas@extundo.com>
64527
64528         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64529         __fsetlocking.
64530
64531 2005-08-25  Simon Josefsson  <jas@extundo.com>
64532
64533         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64534         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64535         GLIBC specific code.
64536
64537 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         Make regex safe for g++.  This fixes one real bug (an "err"
64540         that should have been "*err").  g++ problem reported by
64541         Sam Steingold.
64542         * lib/regex_internal.h (re_calloc): New macro, consistent with
64543         re_malloc etc.  All callers of calloc changed to use re_calloc.
64544         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64545         not int.  All callers changed.
64546         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64547         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64548         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64549         (find_recover_state): Change "err" to "*err"; this fixes what
64550         appears to be a real bug.
64551         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64552         versus int.
64553
64554 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * modules/regex (Depends-on): Add malloc, since the code
64557         assumes that !malloc(0) means failure.
64558
64559 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64562
64563         alloca modernization/simplification for regex.
64564         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64565         needs to be at the start of the file, and can be moved into
64566         regex_internal.h and simplified.
64567         * lib/regex_internal.h: Include <alloca.h>.
64568         (__libc_use_alloca) [!defined _LIBC]: New macro.
64569         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64570         now works outside glibc.
64571
64572 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         * config/srclist.txt: Add glibc bugs 1241, 1245.
64575
64576 2005-08-25  Jim Meyering  <jim@meyering.net>
64577
64578         * lib/open-safer.c: Include <config.h>.
64579         Otherwise, we'd lose LARGEFILE support in any file using
64580         e.g. "fcntl--.h"
64581
64582 2005-08-25  Bruno Haible  <bruno@clisp.org>
64583
64584         * m4/minmax.m4: Require autoconf 2.52.
64585         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64586         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64587         alternatives of translit over the alphabet.
64588         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64589
64590 2005-08-24  Simon Josefsson  <jas@extundo.com>
64591
64592         * tests/test-getpass.c: New file.
64593
64594 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64595
64596         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64597         for GNU regex features.
64598
64599 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64602         * lib/regex.h (regerror): Likewise.
64603
64604         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64605         requires this.  (The code never needed it.)
64606
64607         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64608         All uses of recently-renamed identifiers changed to use the new,
64609         POSIX-compliant names.  The code will build and run just fine
64610         without these changes, but it's better to eat our own dog food
64611         and use the standard-conforming names.
64612
64613         * lib/regex.h: Fix a multitude of POSIX name space violations.
64614         These changes have an effect only for programs that define
64615         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64616         do not change anything for programs compiled in the normal way.
64617         Also, there is no effect on the ABI.
64618
64619         (_REGEX_SOURCE): New macro.
64620         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64621         defined and _GNU_SOURCE is not; this fixes a name space violation.
64622
64623         Rename the following macros to obey POSIX requirements.
64624         The old names are still visible as macros if _REGEX_SOURCE is defined.
64625         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64626         RE_BACKSLASH_ESCAPE_IN_LISTS.
64627         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64628         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64629         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64630         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64631         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64632         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64633         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64634         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64635         (REG_INTERVALS): renamed from RE_INTERVALS.
64636         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64637         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64638         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64639         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64640         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64641         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64642         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64643         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64644         RE_UNMATCHED_RIGHT_PAREN_ORD.
64645         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64646         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64647         (REG_DEBUG): renamed from RE_DEBUG.
64648         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64649         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64650         unusual, since we can't clash with the POSIX REG_ICASE.
64651         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64652         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64653         (REG_NO_SUB): renamed from RE_NO_SUB.
64654         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64655         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64656         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64657         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64658         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64659         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64660         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64661         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64662         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64663         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64664         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64665         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64666         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64667         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64668         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64669         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64670         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64671         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64672         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64673         (REG_FIXED): Renamed from REGS_FIXED.
64674         (REG_NREGS): Renamed from RE_NREGS.
64675
64676         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64677         of other REG_* macros, since POSIX says the user is allowed to
64678         #undef these macros selectively.
64679
64680         (reg_errcode_t): Update comment stating what other tables need
64681         to be consistent.
64682
64683         Rename the following enum values to obey POSIX requirements.
64684         The old names are still visible as macros.
64685         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64686         is not defined, since GNU is supposed to be a superset of POSIX as
64687         much as possible, and since we want reg_errcode_t to be a signed
64688         type for implementation consistency.
64689         (_REG_NOERROR): Renamed from REG_NOERROR.
64690         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64691         (_REG_BADPAT): Renamed from REG_BADPAT.
64692         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64693         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64694         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64695         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64696         (_REG_EBRACK): Renamed from REG_EBRACK.
64697         (_REG_EPAREN): Renamed from REG_EPAREN.
64698         (_REG_EBRACE): Renamed from REG_EBRACE.
64699         (_REG_BADBR): Renamed from REG_BADBR.
64700         (_REG_ERANGE): Renamed from REG_ERANGE.
64701         (_REG_ESPACE): Renamed from REG_ESPACE.
64702         (_REG_BADRPT): Renamed from REG_BADRPT.
64703         (_REG_EEND): Renamed from REG_EEND.
64704         (_REG_ESIZE): Renamed from REG_ESIZE.
64705         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64706         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64707         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64708         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64709         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64710
64711         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64712         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64713         changed.  But support the old name if the new one is not defined
64714         and if _REGEX_SOURCE.
64715
64716         Change the following member names in struct re_pattern_buffer.
64717         The old names are still supported if !_REGEX_SOURCE.
64718         The new names are always supported, regardless of _REGEX_SOURCE.
64719         (re_buffer): Renamed from buffer.
64720         (re_allocated): Renamed from allocated.
64721         (re_used): Renamed from used.
64722         (re_syntax): Renamed from syntax.
64723         (re_fastmap): Renamed from fastmap.
64724         (re_translate): Renamed from translate.
64725         (re_can_be_null): Renamed from can_be_null.
64726         (re_regs_allocated): Renamed from regs_allocated.
64727         (re_fastmap_accurate): Renamed from fastmap_accurate.
64728         (re_no_sub): Renamed from no_sub.
64729         (re_not_bol): Renamed from not_bol.
64730         (re_not_eol): Renamed from not_eol.
64731         (re_newline_anchor): Renamed from newline_anchor.
64732
64733         Change the following member names in struct re_registers.
64734         The old names are still supported if !_REGEX_SOURCE.
64735         The new names are always supported, regardless of _REGEX_SOURCE.
64736         (rm_num_regs): Renamed from num_regs.
64737         (rm_start): Renamed from start.
64738         (rm_end): Renamed from end.
64739
64740         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64741         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64742         Prepend __ to parameter names.
64743
64744         Undo yesterday's changes.
64745
64746 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64749         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64750         lib/regex.c.
64751
64752 2005-08-24  Jim Meyering  <jim@meyering.net>
64753
64754         Sync from coreutils.
64755         * m4/fcntl-safer.m4: New file.
64756
64757         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64758         and object files for this module.
64759
64760 2005-08-24  Jim Meyering  <jim@meyering.net>
64761
64762         Sync from coreutils.
64763         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64764
64765 2005-08-24  Jim Meyering  <jim@meyering.net>
64766
64767         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64768         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64769
64770 2005-08-24  Jim Meyering  <jim@meyering.net>
64771
64772         * modules/fcntl-safer: New module.
64773         * modules/fts (Depends-on): Add fcntl-safer.
64774         * MODULES.html.sh (File descriptor based Input/Output):
64775         Add fcntl-safer.
64776
64777 2005-08-24  Bruno Haible  <bruno@clisp.org>
64778
64779         Support for unit test modules.
64780         * modules/README: Mention tests modules.
64781         * modules/TEMPLATE-TESTS: New file.
64782         * gnulib-tool: New options --extract-tests-module, --with-tests and
64783         --tests-base (unused for the moment).
64784         (testsbase, inctests): New variables.
64785         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64786         (func_verify_module): Exclude TEMPLATE-TESTS.
64787         (func_verify_nontests_module, func_verify_tests_module): New functions.
64788         (func_get_dependencies): Add implicit dependency for tests modules.
64789         (func_get_tests_module): New function.
64790         (func_modules_transitive_closure): When --with-tests was specified,
64791         include the unit tests as well, unless explicitly avoided.
64792         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64793         (func_emit_tests_Makefile_am): New function.
64794         (func_create_testdir): When --with-tests was specified, emit a
64795         tests/ directory.
64796         * MODULES.html.sh (Future developments): Update.
64797
64798 2005-08-24  Bruno Haible  <bruno@clisp.org>
64799
64800         * modules/tls-tests: New file.
64801         * tests/test-tls.c: New file, from GNU gettext.
64802
64803 2005-08-24  Bruno Haible  <bruno@clisp.org>
64804
64805         * modules/lock-tests: New file.
64806         * tests/test-lock.c: New file, from GNU gettext.
64807
64808 2005-08-24  Bruno Haible  <bruno@clisp.org>
64809
64810         * lib/lock.h: Add multiple inclusion guard.
64811         * lib/tls.h: Add multiple inclusion guard.
64812
64813 2005-08-24  Bruno Haible  <bruno@clisp.org>
64814
64815         * gnulib-tool: Add support for the --aux-dir option to
64816         --create-testdir, --create-megatestdir, --test, --megatest.
64817         (func_create_testdir, func_create_megatestdir): Optionally emit a
64818         AC_CONFIG_AUX_DIR directive.
64819         (create-testdir, create-megatestdir, test, megatest): Provide a
64820         default value for $auxdir.
64821
64822 2005-08-24  Bruno Haible  <bruno@clisp.org>
64823
64824         * gnulib-tool (import): Use compound statement instead of subshell
64825         where possible.
64826
64827 2005-08-24  Bruno Haible  <bruno@clisp.org>
64828
64829         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64830
64831 2005-08-24  Bruno Haible  <bruno@clisp.org>
64832
64833         * gnulib-tool (func_version): Update.
64834
64835 2005-08-24  Bruno Haible  <bruno@clisp.org>
64836
64837         * gnulib-tool (func_import, func_create_testdir,
64838         func_create_megatestdir): Quote all autoconf macro arguments.
64839
64840 2005-08-24  Bruno Haible  <bruno@clisp.org>
64841
64842         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64843         option --force, because --force causes the aclocal.m4 of each
64844         subdirectory to be newer than the corresponding config.h.in.
64845
64846 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64849         All contents moved to gl_REGEX.
64850         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64851         assume that it does.
64852
64853 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * lib/regex.h (REG_NOSYS)
64856         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64857         Define, since POSIX requires it as of 2001.
64858         (_REG_ENOSYS)
64859         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64860         New private symbol, used to keep the enum signed in all cases.
64861         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64862         Youngman in
64863         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64864
64865         * lib/regex_internal.c (re_string_skip_chars, register_state):
64866         (calc_state_hash):
64867         Remove forward decls; no longer needed now that we use prototypes.
64868         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64869         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64870         (clean_state_log_if_needed): Likewise.
64871
64872 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         * config/srclist.txt: Add glibc bugs 1231-1233.
64875
64876 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         Fix problems reported by Sam Steingold in
64879         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64880         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64881         assumed that reg_errcode_t is a signed type, which is not
64882         necessarily true if _XOPEN_SOURCE is not defined.
64883         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64884         since some compilers warn about it otherwise.
64885
64886 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64889         (init_word_char, create_initial_state, duplicate_node_closure):
64890         (fetch_token, peek_token_bracket, build_range_exp):
64891         (build_collating_symbol): Remove forward decls; no longer needed
64892         now that we use prototypes.
64893
64894         * lib/regcomp.c:
64895         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64896         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64897         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64898         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64899         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64900         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64901         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64902         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64903         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64904         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64905         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64906         (build_charclass, build_charclass_op, fetch_number, create_tree):
64907         (create_token_tree, mark_opt_subexp, duplicate_tree):
64908         Use prototypes rather than old-style definitions.
64909
64910         * lib/regex_internal.c:
64911         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64912         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64913         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64914         (re_string_reconstruct, re_string_peek_byte_case):
64915         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64916         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64917         (re_node_set_init_copy, re_node_set_add_intersect):
64918         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64919         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64920         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64921         (re_acquire_state, re_acquire_state_context, register_state):
64922         (create_ci_newstate, create_cd_newstate, free_state):
64923         Likewise.
64924         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64925         re_search_2):
64926         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64927         (re_search_internal, prune_impossible_nodes):
64928         (acquire_init_state_context, check_matching, static):
64929         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64930         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64931         (update_regs, sift_states_backward, build_sifted_states):
64932         (clean_state_log_if_needed, merge_state_array):
64933         (update_cur_sifted_state, add_epsilon_src_nodes):
64934         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64935         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64936         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64937         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64938         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64939         (check_arrival, check_arrival_add_next_nodes):
64940         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64941         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64942         (check_node_accept_bytes, check_node_accept, extend_buffers):
64943         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64944         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64945         (sift_ctx_init):
64946         Likewise.
64947
64948         * lib/regex_internal.h:
64949         (re_string_allocate, re_string_construct, re_string_reconstruct):
64950         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64951         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64952         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64953         (re_string_context_at, re_string_peek_byte_case):
64954         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64955         is defined, since we now use prototypes always.
64956
64957         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64958         C89 or better.  All uses removed.
64959
64960 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64961
64962         * config/srclist.txt: Add glibc bugs 1220-1227.
64963
64964 2005-08-20  Jim Meyering  <jim@meyering.net>
64965
64966         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64967         of unused local, dfa.
64968
64969 2005-08-20  Bruno Haible  <bruno@clisp.org>
64970
64971         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64972
64973 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64976         (re_node_set_insert_last, re_dfa_add_node):
64977         Rename local variables to avoid GCC shadowing warnings.
64978
64979 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64982         [defined lint]: Suppress bogus uninitialized-variable warnings.
64983
64984         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64985         and let the caller return REG_ESPACE if out of space.  This
64986         removes an uninitialied-variable warning with GCC 4.0.1, and also
64987         avoids taking the address of a local variable.  All callers
64988         changed.
64989
64990 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64991
64992         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64993         $LIBCSRC/posix/regexec.c.
64994         Add glibc bug 1217 for regcomp.c.
64995
64996 2005-08-19  Jim Meyering  <jim@meyering.net>
64997
64998         * lib/regexec.c (proceed_next_node): Redo local variables to
64999         avoid GCC shadowing warnings.
65000
65001 2005-08-18  Bruno Haible  <bruno@clisp.org>
65002
65003         * lib/strstr.c (strstr): Fix return value in multibyte case.
65004         * lib/strcasestr.c (strcasestr): Likewise.
65005
65006 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65007
65008         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65009
65010 2005-08-17  Jim Meyering  <jim@meyering.net>
65011
65012         Make the %s format (seconds since the epoch) work for a negative
65013         number and when used with a zero-padded field width, e.g. %015s.
65014
65015         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65016         label so that it precedes the code to set `digits'.  Otherwise,
65017         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65018         print `00-22'.  Now, it prints `-0022', as it should.
65019
65020 2005-08-17  Bruno Haible  <bruno@clisp.org>
65021
65022         * modules/strstr (Files): Add m4/mbrtowc.m4.
65023         (Depends-on): Add mbuiter.
65024
65025 2005-08-17  Bruno Haible  <bruno@clisp.org>
65026
65027         * modules/strcasestr: New file.
65028         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65029         strcasestr.
65030
65031 2005-08-17  Bruno Haible  <bruno@clisp.org>
65032
65033         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65034
65035 2005-08-17  Bruno Haible  <bruno@clisp.org>
65036
65037         * modules/mbuiter: New file.
65038         * MODULES.html.sh (Extended multibyte and wide character utilities):
65039         Add mbuiter.
65040
65041 2005-08-17  Bruno Haible  <bruno@clisp.org>
65042
65043         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65044         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65045
65046 2005-08-17  Bruno Haible  <bruno@clisp.org>
65047
65048         * m4/strcasestr.m4: New file.
65049
65050 2005-08-17  Bruno Haible  <bruno@clisp.org>
65051
65052         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65053         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65054
65055 2005-08-17  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/strcasestr.h: New file.
65058         * lib/strcasestr.c: New file.
65059
65060 2005-08-17  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/strcasecmp.c: Use mbuiter.h.
65063
65064 2005-08-17  Bruno Haible  <bruno@clisp.org>
65065
65066         * lib/mbuiter.h: New file.
65067
65068 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65071         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65072         and gl_GETOPT are both invoked via different paths (as happens
65073         with GNU tar CVS because it uses both argp and getopt), the former
65074         wins.
65075
65076 2005-08-16  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/tls: New file.
65079         * MODULES.html.sh (Multithreading): Add tls.
65080
65081 2005-08-16  Bruno Haible  <bruno@clisp.org>
65082
65083         * modules/strnlen1: New file.
65084         * MODULES.html.sh (String handling): Add strnlen1.
65085
65086 2005-08-16  Bruno Haible  <bruno@clisp.org>
65087
65088         * modules/strcase (Files): Add m4/mbrtowc.m4.
65089         (Depends-on): Add strnlen1, mbchar.
65090
65091 2005-08-16  Bruno Haible  <bruno@clisp.org>
65092
65093         * modules/mbiter: New file.
65094         * MODULES.html.sh (Extended multibyte and wide character utilities):
65095         Add mbiter.
65096
65097 2005-08-16  Bruno Haible  <bruno@clisp.org>
65098
65099         * modules/mbfile: New file.
65100         * MODULES.html.sh (Extended multibyte and wide character utilities):
65101         Add mbfile.
65102
65103 2005-08-16  Bruno Haible  <bruno@clisp.org>
65104
65105         * modules/mbchar: New file.
65106         * MODULES.html.sh (Extended multibyte and wide character utilities):
65107         New section.
65108
65109 2005-08-16  Bruno Haible  <bruno@clisp.org>
65110
65111         * m4/tls.m4: New file, from GNU gettext.
65112
65113 2005-08-16  Bruno Haible  <bruno@clisp.org>
65114
65115         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65116         always.
65117         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65118
65119 2005-08-16  Bruno Haible  <bruno@clisp.org>
65120
65121         * m4/mbiter.m4: New file.
65122
65123 2005-08-16  Bruno Haible  <bruno@clisp.org>
65124
65125         * m4/mbfile.m4: New file.
65126
65127 2005-08-16  Bruno Haible  <bruno@clisp.org>
65128
65129         * m4/mbchar.m4: New file.
65130
65131 2005-08-16  Bruno Haible  <bruno@clisp.org>
65132
65133         * lib/tls.h: New file, from GNU gettext.
65134         * lib/tls.c: New file, from GNU gettext.
65135
65136 2005-08-16  Bruno Haible  <bruno@clisp.org>
65137
65138         * lib/strnlen1.h: New file.
65139         * lib/strnlen1.c: New file.
65140
65141 2005-08-16  Bruno Haible  <bruno@clisp.org>
65142
65143         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65144         (mbi_init): Update.
65145         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65146         NUL byte, not after it.
65147
65148 2005-08-16  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/strcase.h (strcasecmp): Add note in comments.
65151         * lib/strncasecmp.c: Use code from strcasecmp.c.
65152         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65153         (strcasecmp): Work correctly in multibyte locales.
65154
65155 2005-08-16  Bruno Haible  <bruno@clisp.org>
65156
65157         * lib/mbiter.h: New file.
65158
65159 2005-08-16  Bruno Haible  <bruno@clisp.org>
65160
65161         * lib/mbfile.h: New file.
65162
65163 2005-08-16  Bruno Haible  <bruno@clisp.org>
65164
65165         * lib/mbchar.h: New file.
65166         * lib/mbchar.c: New file.
65167
65168 2005-08-16  Bruno Haible  <bruno@clisp.org>
65169
65170         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65171         the valid ones. Makes the comparison operations transitive:
65172         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65173         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65174
65175 2005-08-15  Simon Josefsson  <jas@extundo.com>
65176
65177         * modules/ssize_t (License): Change to 'unlimited'.
65178
65179         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65180
65181 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65182
65183         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65184         Add comments for each pending glibc patch.
65185
65186 2005-08-15  Bruno Haible  <bruno@clisp.org>
65187
65188         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65189         __cplusplus is defined.
65190
65191 2005-08-14  Jim Meyering  <jim@meyering.net>
65192
65193         Sync from coreutils.
65194
65195         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65196         Use the hash-table-based cycle-detection code not just when
65197         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65198         Reported by James Youngman in
65199         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65200         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65201         FTS_TIGHT_CYCLE_CHECK.
65202         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65203         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65204         once again.
65205         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65206         * lib/fts.c (fd_safer): Remove decl.
65207         Include fcntl--.h rather than unistd-safer.h
65208         (fts_safe_changedir): Don't call fd_safer; no longer needed
65209         now that we include fcntl--.h.
65210
65211 2005-08-12  Simon Josefsson  <jas@extundo.com>
65212
65213         * modules/getndelim2: Use ssize_t module.
65214         * modules/getnline: Likewise.
65215         * modules/safe-read: Likewise.
65216         * modules/xreadlink: Likewise.
65217
65218         * modules/ssize_t: New file.
65219
65220 2005-08-12  Simon Josefsson  <jas@extundo.com>
65221
65222         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65223
65224 2005-08-12  Simon Josefsson  <jas@extundo.com>
65225
65226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65227         ssize_t.
65228
65229 2005-08-12  Simon Josefsson  <jas@extundo.com>
65230
65231         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65232         readline, getdelim and check_version.
65233         (Support for systems lacking ISO C 99: Sizes of integer types):
65234         Add size_max.
65235
65236 2005-08-12  Bruno Haible  <bruno@clisp.org>
65237
65238         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65239
65240 2005-08-11  Simon Josefsson  <jas@extundo.com>
65241
65242         * modules/readline: New file.
65243
65244         * modules/strnlen (Files): Add strnlen.h.
65245
65246 2005-08-11  Simon Josefsson  <jas@extundo.com>
65247
65248         * m4/readline.m4: New file.
65249
65250 2005-08-11  Simon Josefsson  <jas@extundo.com>
65251
65252         * lib/readline.h, readline.c: New file.
65253
65254 2005-08-11  Simon Josefsson  <jas@extundo.com>
65255
65256         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65257         gl_AVOID.
65258
65259 2005-08-11  Bruno Haible  <bruno@clisp.org>
65260
65261         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65262
65263 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65264
65265         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65266
65267 2005-08-10  Simon Josefsson  <jas@extundo.com>
65268
65269         * tests/test-iconvme.c: New file.
65270
65271 2005-08-10  Simon Josefsson  <jas@extundo.com>
65272
65273         * m4/strnlen.m4: New file.
65274
65275         * m4/strndup.m4: Don't check for strnlen declaration, done in
65276         strnlen.m4.
65277
65278 2005-08-10  Simon Josefsson  <jas@extundo.com>
65279
65280         * lib/strndup.c: Use strnlen.h.
65281
65282         * lib/strnlen.h: New file.
65283
65284 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65285
65286         * README: Typos.
65287
65288 2005-08-02  Simon Josefsson  <jas@extundo.com>
65289
65290         * modules/readline: New file.
65291
65292 2005-08-02  Simon Josefsson  <jas@extundo.com>
65293
65294         * modules/getdelim: New file.
65295
65296         * modules/getline: Rewrite, don't use getndelim2.
65297
65298 2005-08-02  Simon Josefsson  <jas@extundo.com>
65299
65300         * m4/getline.m4: Separate out getdelim stuff into separate module.
65301
65302         * m4/getdelim.m4: New file.
65303
65304 2005-08-02  Simon Josefsson  <jas@extundo.com>
65305
65306         * lib/getline.h, getline.c: Rewrite.
65307
65308         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65309
65310 2005-07-31  Bruno Haible  <bruno@clisp.org>
65311
65312         * lib/lock.h (gl_lock_initializer): New macro.
65313         (gl_lock_define_initialized): Use it.
65314         (gl_rwlock_initializer): New macro.
65315         (gl_rwlock_define_initialized): Use it.
65316         (gl_recursive_lock_initializer): New macro.
65317         (gl_recursive_lock_define_initialized): Use it.
65318
65319 2005-07-30  Karl Berry  <karl@gnu.org>
65320
65321         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65322         Report from Ben Pfaff, regarding getopt.
65323
65324 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65327         normal way.
65328         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65329         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65330         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65331         (gl_GETOPT): Use the new macros.  Most of the implementation
65332         is moved to the new macros.  This is for programs like Emacs
65333         that don't want all the functionality of gl_GETOPT.
65334
65335 2005-07-26  Bruno Haible  <bruno@clisp.org>
65336
65337         * m4/lock.m4: Update from GNU gettext.
65338
65339 2005-07-26  Bruno Haible  <bruno@clisp.org>
65340
65341         * lib/lock.h: Update from GNU gettext.
65342         * lib/lock.c: Update from GNU gettext.
65343
65344 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65345
65346         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65347         obsolescent AC_TRY_RUN.  Include the default includes files, for
65348         'exit'.
65349
65350 2005-07-24  Bruno Haible  <bruno@clisp.org>
65351
65352         * modules/visibility: New file.
65353         * MODULES.html.sh (Misc): Add visibility.
65354
65355 2005-07-24  Bruno Haible  <bruno@clisp.org>
65356
65357         * m4/visibility.m4: New file.
65358
65359 2005-07-24  Bruno Haible  <bruno@clisp.org>
65360
65361         * doc/visibility.texi: New file.
65362
65363 2005-07-22  Bruno Haible  <bruno@clisp.org>
65364
65365         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65366         $(ALLOCA_H), redundant through BUILT_SOURCES.
65367         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65368         redundant through BUILT_SOURCES.
65369         * modules/byteswap (Makefile.am): Remove explicit dependency on
65370         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65371         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65372         $(FNMATCH_H), redundant through BUILT_SOURCES.
65373         * modules/getopt (Makefile.am): Remove explicit dependency on
65374         $(GETOPT_H), redundant through BUILT_SOURCES.
65375         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65376         redundant through BUILT_SOURCES.
65377         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65378         redundant through BUILT_SOURCES.
65379         * modules/stdbool (Makefile.am): Remove explicit dependency on
65380         $(STDBOOL_H), redundant through BUILT_SOURCES.
65381         * modules/stdint (Makefile.am): Remove explicit dependency on
65382         $(STDINT_H), redundant through BUILT_SOURCES.
65383         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65384         Remove explicit dependency on $(SYSEXITS_H).
65385         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65386
65387 2005-07-18  Simon Josefsson  <jas@extundo.com>
65388
65389         * lib/check-version.c (check_version): Accept identical versions too.
65390
65391 2005-07-18  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/lock: New file.
65394         * MODULES.html.sh (Multithreading): New section.
65395
65396 2005-07-18  Bruno Haible  <bruno@clisp.org>
65397
65398         * m4/lock.m4: New file, from GNU gettext.
65399
65400 2005-07-18  Bruno Haible  <bruno@clisp.org>
65401
65402         * lib/lock.h: New file, from GNU gettext.
65403         * lib/lock.c: New file, from GNU gettext.
65404
65405 2005-07-18  Bruno Haible  <bruno@clisp.org>
65406
65407         * lib/lock.h (gl_once_t): New type.
65408         (gl_once_define, gl_once): New macros.
65409         * lib/lock.c (fresh_once): New variable.
65410         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65411         functions.
65412
65413 2005-07-16  Simon Josefsson  <jas@extundo.com>
65414
65415         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65416         workaround, suggested by Bruno.
65417
65418 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65419
65420         * modules/xalloc (Depends-on): Add xalloc-die.
65421         * modules/xvasprintf (Depends-on): Add xalloc-die.
65422
65423 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65424
65425         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65426         with a minor change.
65427
65428 2005-07-15  Bruno Haible  <bruno@clisp.org>
65429
65430         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65431         When using lib/poll.c, define poll as rpl_poll.
65432
65433 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65434
65435         * modules/argp (Depends-on): Remove unlocked-io.
65436
65437 2005-07-14  Derek Price  <derek@ximbiot.com>
65438
65439         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65440         for glob symlink bug.
65441
65442 2005-07-14  Bruno Haible  <bruno@clisp.org>
65443
65444         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65445         Instead, test for *_unlocked function declarations directly.
65446
65447 2005-07-11  Simon Josefsson  <jas@extundo.com>
65448
65449         * modules/size_max: New file.
65450
65451         * modules/xsize: Depend on size_max module for size_max.m4.
65452
65453 2005-07-11  Simon Josefsson  <jas@extundo.com>
65454
65455         * lib/size_max.h: New file.
65456
65457 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65458
65459         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65460         copyright symbol and the year.
65461         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65462         (version_etc_va): Use parameterized copyright notice.
65463         Reword to conform to the current GNU coding standards.
65464
65465 2005-07-11  Karl Berry  <karl@gnu.org>
65466
65467         * doc/gnulib.texi (Quoting): new node.
65468         (Initial import): more info, from Patrice.
65469
65470 2005-07-11  Bruno Haible  <bruno@clisp.org>
65471
65472         * gnulib-tool (func_usage): Document option --avoid.
65473         (Command line options): Handle --avoid.
65474         (func_acceptable): New function.
65475         (func_modules_transitive_closure): Use it.
65476
65477 2005-07-11  Bruno Haible  <bruno@clisp.org>
65478
65479         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65480         Reported by Jim Meyering.
65481
65482 2005-07-10  Bruno Haible  <bruno@clisp.org>
65483
65484         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65485         Needed when size_t is smaller than 'unsigned int'.
65486         Reported by Paul Eggert.
65487
65488 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65489
65490         * modules/argp (Depends-on): Add unlocked-io
65491
65492 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65493
65494         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65495         block of defines.
65496
65497 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65498
65499         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65500         fix now.
65501
65502 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65503         and Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65506         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65507
65508 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * modules/regex (Files): Add lib/regex_internal.c,
65511         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65512         (Depends-on): Add extensions.
65513         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65514
65515 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65516
65517         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65518         pathconf.
65519         * m4/same.m4 (gl_SAME): Likewise.
65520         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65521
65522         * m4/regex.m4: Adjust to new libc regex implementation.
65523         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65524         all the .c and .h parts of (the new) regex.
65525         Quote the m4 stuff better.
65526         Check for RE_ICASE bug of old gnulib.
65527         Check for REG_STARTEND of recent libc.
65528         Rename local variables from jm_* to gl_*.
65529         Quote operand of "test -f".
65530         Say "recent enough" version of libc, not "version 2".
65531         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65532         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65533         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65534         Remove check for btowc, isascii.
65535         Require AM_LANGINFO_CODESET.
65536
65537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * lib/regex.c, regex.h: Sync from libc.
65540         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65541         * lib/regexec.c:
65542         New files, synced from libc, except that regex_internal.h
65543         currently has a small porting fix.
65544
65545 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65548         regex_internal.c, regexec.c.
65549         Add regex_internal.h too, but as a comment, since the libc version
65550         is currently broken in gnulib mode.
65551
65552 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         Support programs like Emacs that use gnulib but not gettext.
65555         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65556         * modules/gettext-h: New file.
65557         * modules/gettext (Files): Remove lib/gettext.h.
65558         (Depends-on): Add gettext-h.
65559         (Makefile.am): Remove lib_SOURCES.
65560         * modules/argmatch, modules/c-stack, modules/closeout:
65561         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65562         * modules/execute, modules/file-type, modules/getaddrinfo:
65563         * modules/getopt, modules/human, modules/javacomp:
65564         * modules/javaexec, modules/mkdir-p, modules/obstack:
65565         * modules/openat, modules/pagealign_alloc, modules/pipe:
65566         * modules/quotearg, modules/regex, modules/rpmatch:
65567         * modules/unicodeio, modules/userspec, modules/version-etc:
65568         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65569         * modules/xsetenv:
65570         Depend on gettext-h, not gettext.
65571
65572 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * gnulib-tool (func_import): Add support for 'public domain' license.
65575         * modules/alloca, modules/atexit, modules/memmove:
65576         Now public domain, not GPL.
65577         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65578         * modules/realloc, modules/strerror, modules/strtod:
65579         Now LGPL, not GPL.
65580
65581 2005-07-05  Bruno Haible  <bruno@clisp.org>
65582
65583         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65584         autoconf CVS. Needed for mingw.
65585
65586 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         Remove the dependency of the strftime module on the tzset module.
65589         * modules/strftime (Depends-on): Remove dependency on tzset.
65590
65591 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         Remove the dependency of the strftime module on the tzset module.
65594         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65595         gl_FUNC_TZSET_CLOBBER.
65596
65597 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         Remove the dependency of the strftime module on the tzset module.
65600         * lib/strftime.c (my_strftime)
65601         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65602         Copy the input structure, to work around some of the bug with
65603         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65604         Solaris releases, you should also use the tzset module, but we won't
65605         require it as a dependency any more since we don't want LGPLed code
65606         to depend on GPLed code.
65607
65608 2005-07-02  Jim Meyering  <jim@meyering.net>
65609
65610         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65611         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65612         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65613         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65614
65615 2005-07-02  Jim Meyering  <jim@meyering.net>
65616
65617         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65618
65619 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65622         declares only 'struct timespec;' (!).
65623
65624 2005-07-01  Jim Meyering  <jim@meyering.net>
65625
65626         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65627         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65628         * lib/save-cwd.c, tempname.c:
65629         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65630         and don't include <sys/file.h>).
65631
65632 2005-06-29  Jim Meyering  <jim@meyering.net>
65633
65634         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65635         type name.  Use the variable name instead.
65636         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65637         Likewise.
65638
65639 2005-06-28  Simon Josefsson  <jas@extundo.com>
65640
65641         * modules/check-version (Files): Add check-version.m4.
65642
65643 2005-06-28  Simon Josefsson  <jas@extundo.com>
65644
65645         * m4/check-version.m4: New file, suggested by Jim Meyering
65646         <jim@meyering.net>.
65647
65648 2005-06-28  Simon Josefsson  <jas@extundo.com>
65649
65650         * lib/check-version.h, lib/check-version.c: New files.
65651
65652 2005-06-28  Simon Josefsson  <jas@extundo.com>
65653
65654         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65655         collision with global variable.  Better indentation.  Don't
65656         increment buffer pointer beyond buffer end.  Based on comments
65657         from Paul Eggert <eggert@cs.ucla.edu>.
65658
65659         * lib/base64.h: Indent.
65660
65661 2005-06-28  Simon Josefsson  <jas@extundo.com>
65662
65663         * doc/gnulib.texi (Library version handling): New section.
65664
65665 2005-06-28  Jim Meyering  <jim@meyering.net>
65666
65667         * check-module (find_included_lib_files): Hard-code another
65668         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65669         but modules/fts-lgpl (correctly) does not list those files.
65670
65671         * modules/canonicalize (Files): Add lib/pathmax.h.
65672
65673 2005-06-25  Simon Josefsson  <jas@extundo.com>
65674
65675         * modules/check-version: New file.
65676
65677 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65680         initializer of struct addrinfo, as an indication that we don't
65681         care how many members the structure has.
65682
65683 2005-06-24  Derek Price  <derek@ximbiot.com>
65684         and Bruno Haible  <bruno@clisp.org>
65685
65686         Remove stat module & update lstat.
65687         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65688         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65689         * m4/stat.m4: Remove this file.
65690
65691 2005-06-24  Derek Price  <derek@ximbiot.com>
65692         and Bruno Haible  <bruno@clisp.org>
65693
65694         Remove stat module & update lstat.
65695         * lib/stat.c: Remove this file...
65696         (slash_aware_lstat): ...moving this content and its support...
65697         * lib/lstat.c (rpl_lstat): ...into here.
65698         * lib/lstat.h: New file.
65699
65700 2005-06-24  Derek Price  <derek@ximbiot.com>
65701         and Bruno Haible  <bruno@clisp.org>
65702
65703         Remove stat module & update lstat.
65704         * config/srclist.txt (libc sources): Remove stat.
65705
65706 2005-06-24  Derek Price  <derek@ximbiot.com>
65707         and Bruno Haible  <bruno@clisp.org>
65708
65709         Remove stat module & update lstat.
65710         * MODULES.html.sh (stat): Remove.
65711         * MODULES.html: Regenerated.
65712         * modules/lstat (Description): Correct function name.
65713         (Files): Add "lstat.h".
65714         (Depends-on): Remove stat, add xalloc, stat-macros.
65715         * modules/stat: Remove this file.
65716         (Include): Add "lstat.h", remove <sys/stat.h>.
65717
65718 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65719
65720         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65721         (ranged_convert): Don't save conversion in a temporary struct.
65722         This causes a warning with GCC 4.0.0, and anyway in the typical
65723         case it's not worth the extra 100 bytes or so of code.
65724         (ranged_convert, __mktime_internal): When calling a function via a
65725         pointer P, use P () rather than (*P) (), as we now assume C89 or
65726         better.
65727
65728 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65731         "who -r" failed to give output.  Problem reported by Tim Waugh.
65732
65733         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65734         (xcalloc): Use it to avoid needless tests.
65735         Problem reported by Jim Meyering.
65736
65737 2005-06-20  Derek Price  <derek@ximbiot.com>
65738
65739         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65740         unnecessary for Autoconfs > 2.59c.
65741
65742 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65743
65744         * lib/argp.h (__option_is_short): Check upper limit of
65745         __key. Isprint() requires its argument to have the value
65746         of an unsigned char or EOF.
65747
65748 2005-06-16  Jim Meyering  <jim@meyering.net>
65749
65750         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65751         when either N or S is zero.
65752
65753 2005-06-16  Derek Price  <derek@ximbiot.com>
65754
65755         * m4/bison.m4: Declare YACC & YFLAGS precious.
65756
65757 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65758
65759         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65760         multibyte string or pattern, fall back on unibyte matching.
65761         Problem reported by James Youngman.
65762
65763 2005-06-08  Bruno Haible  <bruno@clisp.org>
65764
65765         * modules/csharpcomp: New file.
65766         * MODULES.html.sh (C#): Add csharpcomp.
65767
65768 2005-06-08  Bruno Haible  <bruno@clisp.org>
65769
65770         * m4/csharpcomp.m4: New file, from GNU gettext.
65771
65772 2005-06-08  Bruno Haible  <bruno@clisp.org>
65773
65774         * lib/csharpcomp.h: New file, from GNU gettext.
65775         * lib/csharpcomp.c: New file, from GNU gettext.
65776         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65777
65778 2005-06-08  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65781         warning on mingw.
65782
65783 2005-06-07  Derek Price  <derek@ximbiot.com>
65784
65785         Sync from CVS.
65786         * lib/glob_.h: Indent nested #ifdef.
65787
65788 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65789
65790         Sync from coreutils.
65791         Use "file name" when talking about file names, instead of "filename"
65792         or "path", as per the GNU coding standards.
65793         * lib/mkdir-p.c: Renamed from makepath.c.
65794         (make_dir_parents): Renamed from make_path.  All callers changed.
65795         * lib/mkdir-p.h: Likewise.  All includers changed.
65796         * lib/filenamecat.c: Renamed from path-concat.c.
65797         (file_name_concat): Renamed from path_concat.  All callers changed.
65798         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65799         * lib/filenamecat.h: Likewise.  All includers changed.
65800         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65801         in comments or local variable names.
65802         * lib/basename.c: Likewise.
65803         * lib/canonicalize.c, canonicalize.h: Likewise.
65804         * lib/dirname.c, dirname.h: Likewise.
65805         * lib/euidaccess.c: Likewise.
65806         * lib/exclude.c: Likewise
65807         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65808         * lib/fsusage.c, fsuage.h: Likewise.
65809         * lib/fts.c, fts_.h: Likewise.
65810         * lib/getcwd.c: Likewise.
65811         * lib/getloadavg.c: Likewise.
65812         * lib/mkstemp.c: Likewise.
65813         * lib/mountlist.c, mountlist.h: Likewise.
65814         * lib/openat.c, openat.h: Likewise.
65815         * lib/readlink-stub.c: Likewise.
65816         * lib/readutmp.c, readutmp.h: Likewise.
65817         * lib/rename.c: Likewise.
65818         * lib/rmdir.c: Likewise.
65819         * lib/same.c: Likewise.
65820         * lib/savedir.c: Likewise.
65821         * lib/stripslash.c: Likewise.
65822         * lib/tempname.c: Likewise.
65823         * lib/xreadlink.c: Likewise.
65824         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65825         All uses changed.
65826         * lib/exclude.h: Likewise.
65827
65828         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65829         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65830         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65831         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65832         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65833         files have been getting away with it for years (MORE/BSD 4.3
65834         is extinct now).
65835         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65836         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65837
65838         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65839         Define to 256, not 255, as per modern POSIX.
65840
65841 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         Sync from coreutils.
65844         Use "file name" when talking about file names, instead of "filename"
65845         or "path", as per the GNU coding standards.
65846         * MODULES.html.sh: mkdir-p renamed from makepath.
65847         filenamecat renamed from path-concat.
65848         * modules/filenamecat: Renamed from modules/path-concat.
65849         (Files): filenamecat.h and filenamecat.c renamed from
65850         path-concat.h and path-concat.c.
65851         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65852         (Include): filenamecat.h, not path-concat.h.
65853         * modules/mkdir-p: Renamed from modules/makepath.
65854         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65855         makepath.c.
65856         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65857         (Include): mkdir-p.h, not makepath.h.
65858
65859 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         Sync from coreutils.
65862         * m4/mkdir-p.m4: Renamed from makepath.m4.
65863         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65864         Rename files from makepath.c to mkdir-p.c, and from
65865         makepath.h to mkdir-p.h.
65866         * m4/filenamecat.m4: Renamed from path-concat.m4.
65867         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65868         Rename files from path-concat.c to filenamecat.c,
65869         and from path-concat.h to filenamecat.h.
65870         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65871         "file name" in local variables or comments.
65872         * m4/rename.m4: Likewise.
65873
65874 2005-06-01  Bruno Haible  <bruno@clisp.org>
65875
65876         * modules/csharpexec: New file.
65877         * MODULES.html.sh (C#): New section.
65878
65879 2005-06-01  Bruno Haible  <bruno@clisp.org>
65880
65881         * m4/csharp.m4: New file, from GNU gettext.
65882         * m4/csharpexec.m4: New file, from GNU gettext.
65883
65884 2005-06-01  Bruno Haible  <bruno@clisp.org>
65885
65886         * lib/csharpexec.h: New file, from GNU gettext.
65887         * lib/csharpexec.c: New file, from GNU gettext.
65888         * lib/csharpexec.sh.in: New file, from GNU gettext.
65889
65890 2005-05-31  Derek Price  <derek@ximbiot.com>
65891             Paul Eggert  <eggert@cs.ucla.edu>
65892
65893         Sync from cvs.
65894         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65895
65896 2005-05-31  Derek Price  <derek@ximbiot.com>
65897             Paul Eggert  <eggert@cs.ucla.edu>
65898
65899         Sync from cvs.
65900         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65901
65902 2005-05-29  Derek Price  <derek@ximbiot.com>
65903
65904         * config/srclist.txt (glob_.h, glob.c): Add these files.
65905
65906 2005-05-29  Derek Price  <derek@ximbiot.com>
65907
65908         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65909         * modules/glob: New file.
65910         * modules/getlogin_r: Add link to POSIX spec in description.
65911
65912 2005-05-29  Derek Price  <derek@ximbiot.com>
65913             Paul Eggert  <eggert@cs.ucla.edu>
65914
65915         * m4/glob.m4: New file.
65916
65917 2005-05-29  Derek Price  <derek@ximbiot.com>
65918             Paul Eggert  <eggert@cs.ucla.edu>
65919
65920         * lib/glob_.h, lib/glob.c: New files.
65921
65922 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65923
65924         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65925         * modules/fts-lgpl (Depends-on): Remove gettext.
65926
65927 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65928
65929         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65930         and don't require gt_INTTYPES_PRI.
65931
65932 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65933
65934         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65935
65936         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65937         the configuration hassle isn't worth it.
65938         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65939         (LONGEST_MODIFIER, PRIuMAX): Remove.
65940
65941 2005-05-27  Bruno Haible  <bruno@clisp.org>
65942
65943         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65944
65945 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65946
65947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65948         _POSIX_PTHREAD_SEMANTICS for Solaris.
65949
65950 2005-05-25  Derek Price  <derek@ximbiot.com>
65951
65952         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65953
65954 2005-05-25  Derek Price  <derek@ximbiot.com>
65955             Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65958         * lib/getlogin_r.c, getlogin_r.h: New files.
65959
65960 2005-05-25  Bruno Haible  <bruno@clisp.org>
65961             Derek Price  <derek@ximbiot.com>
65962
65963         * lib/getlogin_r.h: Simplify API documentation.
65964
65965 2005-05-23  Derek Price  <derek@ximbiot.com>
65966
65967         * modules/minmax (Files): Add m4/minmax.m4.
65968         (configure.ac): Add gl_MINMAX.
65969
65970 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65973         so that unistd-safer.h (GPL'ed code) need not be included.
65974
65975 2005-05-22  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/minmax.m4: New file.
65978         Based on a patch by Derek Price <derek@ximbiot.com>.
65979
65980 2005-05-22  Bruno Haible  <bruno@clisp.org>
65981
65982         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65983         (INT64_MIN): Fix definition.
65984         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65985
65986         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65987         NEED_SIGNED_INT_TYPES.
65988
65989         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65990         HAVE_SYSTEM_INTTYPES.
65991
65992 2005-05-22  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65995         Also include <sys/param.h> if it defines MIN, MAX.
65996         Based on a patch by Derek Price <derek@ximbiot.com>.
65997
65998 2005-05-21  Jim Meyering  <jim@meyering.net>
65999
66000         * modules/fts (Files): Add m4/inttypes-pri.m4.
66001         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66002
66003 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66004
66005         New fts module.
66006         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66007         (setup_dir, free_dir): New functions.
66008         (enter_dir, leave_dir): Define trivial
66009         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66010         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66011         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66012         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66013         Move to fts-cycle.c.
66014         (fts_open): Use setup_dir.
66015         (fts_close): Use free_dir.
66016         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66017         This adds a label and some gotos, but the alternatives were messier.
66018         Check for memory allocation failure when entering a dir.
66019         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66020         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66021         (FTS): New member fts_cycle, that is a union that contains the
66022         old active_dir_ht and cycle_state.  All uses changed to mention
66023         fts_cycle.ht and fts_cycle.state.
66024         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66025         fts.c, with the following changes:
66026         (setup_dir, free_dir): New functions.
66027         (enter_dir): Now returns bool.  Return true if successful, false
66028         if memory exhausted.  All callers changed.
66029         Do not bother partly cleaning up on
66030         memory allocation failure; that is free_dir's job.
66031         However, free ad if hash_insert fails, to avoid memory leak.
66032         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66033         fts->fts_options to see which union member to use.
66034
66035 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66038         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66039
66040 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66043
66044 2005-05-20  Jim Meyering  <jim@meyering.net>
66045
66046         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66047         Now a macro, to pacify GCC.
66048
66049 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66050
66051         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66052         of -1.
66053
66054 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66055
66056         * lib/chown.c (rpl_chown): Return -1 on failure.
66057
66058 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66059
66060         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66061         Don't check for stddef.h.
66062         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66063         don't use its results.
66064         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66065         since we include them unconditionally.  Don't require
66066         AM_STDBOOL_H, since stdbool is a prerequisite.
66067         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66068         since we assume C89 or better.
66069         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66070         as we don't use their results.
66071         Don't check for fchdir, memmove, memset, strrchr, as we use
66072         them unconditionally.
66073         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66074         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66075
66076 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66079         Include <stddef.h> unconditionally, since we assume C89 now.
66080         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66081         * lib/fts.c: Include fts_.h first, to check interface.
66082         Do not include intprops.h; no longer needed.
66083         Include cycle-check.h and hash.h, since fts_.h no longer does.
66084         Remove unnecessary casts of closedir to void.
66085         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66086         decide whether to decrement nlinks.
66087         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66088         (FTS): Use struct hash_table * instead of Hash_table, so that
66089         we no longer need to include hash.h here.
66090
66091 2005-05-18  Jim Meyering  <jim@meyering.net>
66092
66093         * modules/dirfd (License): Change to LGPL.  Most of the code
66094         is already in the public domain.
66095
66096 2005-05-18  Jim Meyering  <jim@meyering.net>
66097
66098         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66099         Reported by Yoann Vandoorselaere.
66100
66101 2005-05-17  Jim Meyering  <jim@meyering.net>
66102
66103         * m4/fts.m4: New file, from coreutils.
66104
66105 2005-05-17  Jim Meyering  <jim@meyering.net>
66106
66107         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66108
66109 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66110
66111         Sync from coreutils.
66112         * m4/unlinkdir.m4: New file.
66113
66114 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         Sync from coreutils.
66117         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66118         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66119         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66120         White space changes only.
66121         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66122         special.
66123         * lib/yesno.c: Include getline.h, not ctype.h.
66124         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66125         Use getline to remove arbitrary restriction on response length.
66126
66127 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66128
66129         * config/srclist-update: Spell out "Street" in FSF postal
66130         mail address; this is the style the FSF seems to prefer.
66131
66132         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66133         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66134         this updates FSF postal mail address.
66135
66136         Sync from coreutils.
66137         * modules/unlinkdir: New file.
66138         * modules/yesno (Depends-on): Add getline.
66139         * MODULES.html.sh (File system functions): Add unlinkdir.
66140
66141 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66144         lib/strsep.h:
66145         Change the initial comment to refer to GPL, not LGPL.
66146         gnulib-tool will change it to LGPL as needed.
66147
66148         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66149         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66150         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66151         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66152         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66153         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66154         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66155         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66156         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66157         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66158         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66159         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66160         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66161         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66162         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66163         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66164         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66165         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66166         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66167         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66168         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66169         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66170         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66171         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66172         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66173         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66174         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66175         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66176         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66177         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66178         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66179         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66180         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66181         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66182         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66183         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66184         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66185         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66186         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66187         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66188         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66189         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66190         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66191         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66192         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66193         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66194         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66195         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66196         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66197         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66198         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66199         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66200         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66201         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66202         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66203         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66204         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66205         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66206         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66207         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66208         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66209         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66210         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66211         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66212         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66213         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66214         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66215         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66216         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66217         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66218         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66219         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66220         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66221         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66222         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66223         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66224         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66225         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66226         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66227         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66228         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66229         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66230         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66231         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66232         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66233         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66234         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66235         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66236         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66237         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66238         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66239         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66240         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66241         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66242         lib/yesno.c, lib/yesno.h:
66243         Update FSF postal mail address.
66244
66245 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66248         tests/test-memmem.c, tests/test-stpncpy.c:
66249         Update FSF postal mail address.
66250
66251 2005-05-13  Bruno Haible  <bruno@clisp.org>
66252
66253         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66254         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66255         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66256         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66257         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66258         Add support for 64-bit integers in the MSVC compiler.
66259
66260 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66261
66262         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66263
66264 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66265
66266         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66267
66268 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * doc/getdate.texi (General date syntax): Don't say that date
66271         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66272         Problem reported by Nic Ferrier.
66273
66274 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66275
66276         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66277         specified in ai_socktype. Fix invalid ai_protocol
66278         check. ai_protocol is usually set to 0 or depending on
66279         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66280         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66281         ai_socktype / ai_protocol in the returned addrinfo structure.
66282
66283 2005-05-10  Simon Josefsson  <jas@extundo.com>
66284
66285         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66286         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66287
66288 2005-05-10  Karl Berry  <karl@gnu.org>
66289
66290         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66291         (from http://www.gnu.org/licenses).
66292         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66293         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66294         fdl.texi suffices.
66295
66296 2005-05-10  Karl Berry  <karl@gnu.org>
66297
66298         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66299         (COPYING.DOC): remove.
66300
66301         * config/srclist-update: new FSF address.
66302
66303 2005-05-10  Derek Price  <derek@ximbiot.com>
66304
66305         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66306         possible.
66307
66308 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66309             Bruno Haible  <bruno@clisp.org>
66310
66311         * modules/inet_ntop: New file.
66312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66313         inet_ntop.
66314
66315 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66316             Bruno Haible  <bruno@clisp.org>
66317
66318         * m4/inet_ntop.m4: New file.
66319
66320 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66321             Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/inet_ntop.h: New file.
66324         * lib/inet_ntop.c: New file, from glibc with modifications.
66325
66326 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66327
66328         * modules/time_r (License): Change to LGPL.
66329         * modules/extensions (License): Change to LGPL.  Actually,
66330         the license is more permissive than that, but currently gnulib-tool
66331         doesn't know how to handle more-permissive licenses.
66332
66333         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66334         Problem reported by Dave Love.
66335
66336 2005-05-08  Jim Meyering  <jim@meyering.net>
66337
66338         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66339         blank.
66340
66341 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * modules/argmatch (Depends-on): Add stdbool.
66344         * modules/backupfile (Depends-on): Likewise.
66345         * modules/chdir-long (Depends-on): Likewise.
66346         * modules/closeout (Depends-on): Likewise.
66347         * modules/cycle-check (Depends-on): Likewise.
66348         * modules/dirname (Depends-on): Likewise.
66349         * modules/fnmatch (Depends-on): Likewise.
66350         * modules/fsusage (Depends-on): Likewise.
66351         * modules/fwriteerror (Depends-on): Likewise.
66352         * modules/getcwd (Depends-on): Likewise.
66353         * modules/getloadavg (Depends-on): Likewise.
66354         * modules/hard-locale (Depends-on): Likewise.
66355         * modules/makepath (Depends-on): Likewise.
66356         * modules/mountlist (Depends-on): Likewise.
66357         * modules/nanosleep (Depends-on): Likewise.
66358         * modules/posixtm (Depends-on): Likewise.
66359         * modules/quotearg (Depends-on): Likewise.
66360         * modules/readtokens (Depends-on): Likewise.
66361         * modules/readtokens0 (Depends-on): Likewise.
66362         * modules/readutmp (Depends-on): Likewise.
66363         * modules/save-cwd (Depends-on): Likewise.
66364         * modules/strftime (Depends-on): Likewise.
66365         * modules/userspec (Depends-on): Likewise.
66366         * modules/utimecmp (Depends-on): Likewise.
66367         * modules/xgetcwd (Depends-on): Likewise.
66368         * modules/xnanosleep (Depends-on): Likewise.
66369         * modules/xstrtod (Depends-on): Likewise.
66370         * modules/yesno (Depends-on): Likewise.
66371
66372 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66373
66374         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66375         needless checks.
66376
66377 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         Merge from coreutils.  Among other things,
66380         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66381         * lib/fd-safer.c: New file.
66382         * lib/fcntl-safer.h, open-safer.c: Remove.
66383         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66384         * lib/dup-safer.c: Include unistd-safer.h first.
66385         Don't include errno.h.
66386         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66387         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66388         * lib/file-type.c: Rely on file-type.h change.
66389         * lib/getloadavg.c: Include unistd-safer.h.
66390         (getloadavg): Use safer open.
66391         * lib/getusershell.c: Include "stdio-safer.h".
66392         (getusershell): Use safer fopen.
66393         * lib/long-options.c (long_options): Use NULL rather than 0.
66394         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66395         'free'.
66396         * lib/modechange.c: Likewise.
66397         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66398         (MODE_DONE): New constant.
66399         (struct mode_change): Remove 'next' member.
66400         (make_node_op_equals): New function; like the old one of the
66401         same name, except it allocates an array.
66402         (mode_compile, mode_create_from_ref): Use it.
66403         (mode_compile): Allocate result as an array, not a linked list.
66404         Parse octal string ourself, so that we catch mistakes like "+0".
66405         (mode_adjust): Arg is an array, not a linked list.
66406         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66407         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66408         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66409         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66410         Remove.  This is now stat-macros.h's job.
66411         (talloc): Remove.  All callers replaced by xalloc, so that
66412         our invokers don't have to worry about reporting memory failures.
66413         (make_node_op_equals): Remove.
66414         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66415         New constants.
66416         (struct mode_change): Moved here from modechange.h.
66417         (mode_append_entry): Remove.
66418         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66419         apps to have incorrect behavior.  Use simpler algorithm for head
66420         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66421         Detect more invalid usages rather than having somewhat-random behavior.
66422         Don't insert an "a=" action, as that leads to incorrect behavior.
66423         (mode_compile, mode_create_from_ref): Return NULL on error instead
66424         of an enum, since now there's only one way to have an error.  All
66425         callers changed.
66426         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66427         at the correct time.  Simplify calculation of "+u" and its ilk.
66428         Don't mishandle "+X".
66429         (mode_free): Remove "register" and localize decls.
66430         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66431         (struct mode_change): Move to modechange.c; callers don't
66432         need to see this stuff.
66433         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66434         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66435         (mode_change, mode_adjust): Reflect the new signatures noted above.
66436         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66437         that might redefine system include files.
66438         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66439         (my_usleep): Use NULL rather than (void *) 0.
66440         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66441         Use siginterrupt to specify that system calls should be interrupted.
66442         (rpl_nanosleep): Move initialization of suspended closer to call of
66443         my_usleep.
66444         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66445         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66446         (desirable_utmp_entry): New function.
66447         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66448         using x2nrealloc, to simplify logic.
66449         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66450         size calculation.  Do not assume utmp file is a regular file.
66451         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66452         (READ_UTMP_CHECK_PIDS): New constant.
66453         * lib/save-cwd.c: Include unistd-safer.h.
66454         (save_cwd): Use fd_safer.
66455         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66456         [!_LIBC] Include "stat-macros.h" instead.
66457         * lib/unistd-safer.h (fd_safer): New decl.
66458
66459 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         * modules/getloadavg (Depends-on): Add unistd-safer.
66462         * modules/getusershell (Depends-on): Add stdio-safer.
66463         * modules/lstat (Depends-on): Remove xalloc.
66464         * modules/mkstemp (Depends-on): Add stat-macros.
66465         * modules/modechange (Depends-on): Remove xstrtol.
66466         Add stat-macros, xalloc.
66467         * modules/save-cwd (Depends-on): Add unistd-safer.
66468         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66469         * modules/unistd-safer (Files): Add lib/fd-safer.c
66470         (Makefile.am): Remove lib_SOURCES.
66471
66472         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66473         Remove fcntl-safer; unistd-safer supersedes it.
66474
66475 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66476
66477         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66478         AC_HEADER_STAT.
66479         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66480         (gl_PREREQ_CHOWN): Remove.
66481         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66482         it.  Don't require AC_HEADER_STAT.
66483         (gl_PREREQ_LSTAT): Remove.
66484         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66485         Don't require AC_HEADER_STAT.
66486         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66487         (gl_PREREQ_RMDIR): Remove.
66488         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66489         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66490         the stat-macros module a prerequisite.
66491         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66492         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66493         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66494         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66495         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66496         variable names.
66497         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66498         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66499         variable prefixes.
66500         * m4/fcntl-safer.m4: Remove.
66501         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66502         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66503         Invoke gl_PREREQ_FD_SAFER.
66504         (gl_PREREQ_FD_SAFER): New macro.
66505         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66506         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66507         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66508         Remove duplicate call to AC_LIBOBJ(readutmp).
66509         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66510
66511         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66512         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66513
66514 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66515
66516         * MODULES.html.sh (Misc): Add byteswap.
66517
66518 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66519
66520         * modules/getcwd (Depends-on): Add extensions.
66521         * modules/openat (Depends-on): Likewise.
66522
66523 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66524
66525         * modules/byteswap: New file.
66526
66527 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66528
66529         * m4/byteswap.m4: New file.
66530
66531 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66532
66533         * lib/byteswap_.h: New file.
66534
66535 2005-04-25  Karl Berry  <karl@gnu.org>
66536
66537         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66538
66539 2005-04-25  Albert Chin  <china@thewrittenword.com>
66540
66541         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66542         Toolkit C bug.
66543
66544 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66545
66546         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66547         (func_ln_if_changed) Remove forcibly for no error message
66548         in case file does not exist.
66549
66550 2005-04-19  Simon Josefsson  <jas@extundo.com>
66551
66552         * gnulib-tool (Options): Make --symlink mean --symbolic.
66553
66554 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66555
66556         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66557
66558 2005-04-16  Simon Josefsson  <jas@extundo.com>
66559
66560         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66561
66562 2005-04-15  Simon Josefsson  <jas@extundo.com>
66563
66564         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66565
66566 2005-04-15  Simon Josefsson  <jas@extundo.com>
66567
66568         * gnulib-tool: Rename --symlink to --symbolic.
66569
66570 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66571
66572         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66573         symbolic links to files instead of copying/moving.  Add --aux-dir,
66574         specifying directory relative --dir where auxiliary build tools
66575         are placed.
66576
66577 2005-04-14  Bruno Haible  <bruno@clisp.org>
66578
66579         * modules/allocsa (License): Change to LGPL.
66580         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66581
66582 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66583
66584         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66585         that "UTC +1 second" continues to work.  Problem reported
66586         by Dmitry V. Levin.
66587         (relunit_snumber): New rule.
66588         (relunit): Use it.
66589
66590 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * lib/getdate.y (universal_time_zone_table): New constant.
66593         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66594         universal_time_zone_table.
66595         (lookup_zone): Prefer universal_time_zone_table to
66596         local_time_zone_table, so that "GMT" time stamps are allowed in
66597         London during the summer.  Problem reported by Ian Abbott.
66598
66599 2005-04-12  Jim Meyering  <jim@meyering.net>
66600
66601         * lib/human.c (humblock): Set *options even when returning due to
66602         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66603         warning from gcc-4.
66604
66605 2005-04-09  Jim Meyering  <jim@meyering.net>
66606
66607         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66608         -Wuninitialized: initialize tm0.tm_year.
66609
66610 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66611
66612         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66613         count, since there's no maximum.  All uses changed.
66614         Add member dsts_seen.
66615         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66616         not being INT_MAX.
66617         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66618         Use pc_rels_seen to decide whther a date is absolute.
66619
66620         * lib/getdate.y (number): Don't overwrite year.
66621         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66622         check.
66623
66624 2005-04-02  Simon Josefsson  <jas@extundo.com>
66625
66626         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66627         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66628
66629 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66630
66631         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66632         where no absolute path name can be longer than PATH_MAX.
66633
66634 2005-03-27  Jim Meyering  <jim@meyering.net>
66635
66636         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66637
66638 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66639
66640         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66641         "one's complement" -> "ones' complement" in comment, as per Knuth.
66642         "value of type" -> "type or expression" in comment.
66643         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66644
66645 2005-03-26  Jim Meyering  <jim@meyering.net>
66646
66647         Comment nits.
66648         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66649         Correct typos: s/or/of/.
66650
66651 2005-03-26  Jim Meyering  <jim@meyering.net>
66652
66653         * modules/check-include-files: Move to ../ and rename to...
66654         * check-module: ...this.
66655
66656 2005-03-25  Jim Meyering  <jim@meyering.net>
66657
66658         * modules/xvasprintf (Files): Add xalloc.h.
66659
66660 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66661
66662         * modules/gettext (Files): config/config.rpath ->
66663         build-aux/config.rpath
66664         * modules/iconv (Files): Likewise.
66665         Problem reported by Oskar Liljeblad.
66666
66667 2005-03-23  Jim Meyering  <jim@meyering.net>
66668
66669         * modules/check-include-files: New script to check for
66670         missing dependencies, multiple includes, etc.
66671
66672         * modules/c-strtold (Depends-on): Add xalloc.
66673         * modules/c-strtod (Depends-on): Add xalloc.
66674         * modules/hash (Depends-on): Add xalloc.
66675         (Files): Remove lib/xalloc.h.
66676
66677         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66678         * modules/userspec (Files): Add lib/inttostr.h.
66679
66680 2005-03-23  Jim Meyering  <jim@meyering.net>
66681
66682         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66683
66684 2005-03-22  Jim Meyering  <jim@meyering.net>
66685
66686         * modules/stat-macros: New module.
66687         * modules/canonicalize, modules/euidaccess, modules/file-type,
66688         * modules/filemode, modules/lchown, modules/makepath,
66689         * modules/rmdir, modules/stat: Depend on new stat-macros module
66690         rather than listing lib/stat-macros.h manually.
66691         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66692
66693 2005-03-22  Jim Meyering  <jim@meyering.net>
66694
66695         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66696
66697 2005-03-22  Bruno Haible  <bruno@clisp.org>
66698
66699         * config/srclist.txt: Replace target directory 'config' with
66700         'build-aux'.
66701         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66702         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66703         ../build-aux/.
66704
66705 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66706
66707         * modules/chdir-long (Depends-on): Add mempcpy.
66708
66709         * modules/acl, modules/backupfile, modules/c-strtod,
66710         modules/c-strtold, modules/canon-host, modules/canonicalize,
66711         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66712         modules/exclude, modules/exitfail, modules/file-type,
66713         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66714         modules/getdate, modules/getline, modules/getpagesize,
66715         modules/getpass, modules/getugroups, modules/group-member,
66716         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66717         modules/inttostr, modules/long-options, modules/makepath,
66718         modules/md5, modules/memcasecmp, modules/memcoll,
66719         modules/modechange, modules/mountlist, modules/path-concat,
66720         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66721         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66722         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66723         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66724         modules/strftime, modules/strndup, modules/strverscmp,
66725         modules/timespec, modules/unlocked-io, modules/userspec,
66726         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66727         modules/yesno:
66728         Remove lib_SOURCES line from Makefile.am section, as this is now
66729         done automatically by the corresponding Autoconf macro.
66730
66731 2005-03-21  Jim Meyering  <jim@meyering.net>
66732
66733         Changes imported from coreutils.
66734
66735         * lib/cycle-check.c: Don't include xalloc.h.
66736
66737         * lib/path-concat.c: Don't include assert.h.
66738         (path_concat): Remove assertion that would have triggered
66739         for ABASE starting with more than one slash.
66740         Reported by Andreas Schwab.
66741
66742         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66743         properly when ABASE is an absolute file name.
66744         Correct the description of this function.
66745         Include <assert.h>.
66746         Add an assertion and a test driver.
66747         This fixes a bug introduced on 2004-07-02.
66748         Andreas Schwab reported the resulting failure of cp --parents:
66749         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66750
66751 2005-03-21  Jim Meyering  <jim@meyering.net>
66752
66753         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66754         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66755
66756 2005-03-21  Jim Meyering  <jim@meyering.net>
66757         and  Paul Eggert  <eggert@cs.ucla.edu>
66758
66759         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66760         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66761         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66762         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66763         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66764         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66765         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66766         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66767         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66768         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66769         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66770         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66771         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66772         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66773         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66774         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66775         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66776         for these modules.
66777
66778 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66779
66780         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66781         (which shouldn't happen), generate nothing instead of returning 0
66782         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66783
66784 2005-03-16  Bruno Haible  <bruno@clisp.org>
66785
66786         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66787         HAVE_LONGLONG_64BIT.
66788
66789 2005-03-16  Bruno Haible  <bruno@clisp.org>
66790
66791         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66792         HAVE_LONGLONG_64BIT.
66793
66794 2005-03-16  Bruno Haible  <bruno@clisp.org>
66795
66796         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66797         HAVE_LONGLONG_64BIT.
66798
66799 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66800
66801         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66802         reliably distinguish strftime failure from empty output on POSIX
66803         hosts.
66804
66805 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66808         (iconv_string): Don't guess a size-zero buffer, as that might cause
66809         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66810         result would be 'too large', where 'too large' is (heuristically)
66811         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66812         overflow concerns.  This will prevent some unwanted malloc failures
66813         when the inputs are very large.
66814
66815 2005-03-15  Karl Berry  <karl@gnu.org>
66816
66817         * config/srclist.txt (config.rpath): from gettext.
66818         * config/config.rpath: update.
66819
66820 2005-03-15  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66823         to 'negate'.
66824
66825         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66826         variable.
66827
66828         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66829         results.
66830
66831 2005-03-14  Simon Josefsson  <jas@extundo.com>
66832
66833         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66834         <fx@gnu.org>.
66835
66836 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66837
66838         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66839         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66840         intprops.h.
66841         * lib/strtol.c: Likewise.
66842
66843 2005-03-14  Jim Meyering  <jim@meyering.net>
66844
66845         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66846         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66847         to be nonzero so that we (and caller) can detect the difference
66848         between a valid zero-length expansion and an error return, even
66849         when the underlying strftime fails before writing anything into
66850         that location.
66851
66852 2005-03-14  Bruno Haible  <bruno@clisp.org>
66853
66854         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66855         Update from GNU gettext 0.14.3.
66856
66857 2005-03-10  Jim Meyering  <jim@meyering.net>
66858
66859         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66860
66861 2005-03-10  Jim Meyering  <jim@meyering.net>
66862
66863         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66864         so that this module works on systems without fchdir.
66865
66866 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         Factor int-properties macros into a single file, except for
66869         glibc-related files.
66870         * lib/intprops.h: New file.
66871         * lib/getloadavg.c: Include it instead of limits.h.
66872         (INT_STRLEN_BOUND): Remove.
66873         * lib/human.c: Include intprops.h.
66874         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66875         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66876         302/1000.
66877         * lib/inttostr.h: Include intprops.h instead of limits.h.
66878         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66879         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66880         for consistency with intprops.h.
66881         (time_t_is_integer, twos_complement_arithmetic): Use them.
66882         * lib/sig2str.h: Include <signal.h>, intprops.h.
66883         (INT_STRLEN_BOUND): Remove.
66884         * lib/strftime.c (TYPE_SIGNED): Remove.
66885         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66886         * lib/strtol.c: Adjust comments to match intprops.h.
66887         * lib/userspec.c: Include intprops.h.
66888         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66889         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66890         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66891         instead of rolling our own expressions.
66892         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66893
66894         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66895         instead of int.
66896         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66897         the right thing even if adding 1900 would overflow.  Similarly
66898         for tm_mon + 1 and tm_yday + 1.
66899         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66900         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66901         (DO_SIGNED_NUMBER): New macro.
66902         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66903
66904 2005-03-07  Bruno Haible  <bruno@clisp.org>
66905
66906         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66907
66908 2005-03-07  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66911
66912 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66913
66914         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66915         (func_import): Only replace files via --import when they have actually
66916         changed.
66917
66918 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66919
66920         * m4/mmap-anon.m4: New file.
66921         * m4/pagealign_alloc.m4: New file.
66922
66923 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66924             Bruno Haible  <bruno@clisp.org>
66925
66926         * modules/pagealign_alloc: New file.
66927         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66928
66929 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66930             Bruno Haible  <bruno@clisp.org>
66931
66932         * lib/pagealign_alloc.h: New file.
66933         * lib/pagealign_alloc.c: New file.
66934
66935 2005-03-03  Bruno Haible  <bruno@clisp.org>
66936
66937         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66938         Use an all-permissive copyright notice, recommended by RMS.
66939
66940 2005-03-02  Bruno Haible  <bruno@clisp.org>
66941
66942         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66943         of AIX, the replacement has to be done only after <string.h> is
66944         included, therefore not in config.h. stpncpy.h does the replacement,
66945         and stpncpy.c uses it.
66946
66947 2005-03-02  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66950         stpncpy.c uses it.
66951
66952 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66955         The workaround isn't strictly needed for POSIX conformance, and
66956         it's too much of a pain to configure and maintain.  We'll ask
66957         people to fix their kernels instead.
66958         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66959         (NANOSLEEP_BUG_WORKAROUND): Remove.
66960         (xnanosleep): Remove the workaround.
66961
66962 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66963
66964         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66965         Reported by Derek Price.
66966         (Include): Add "timespec.h".
66967
66968         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66969
66970 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66973         to detect nanosleep bug.
66974
66975 2005-03-01  Bruno Haible  <bruno@clisp.org>
66976
66977         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66978
66979 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * modules/gethrxtime: New file.
66982         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66983         (Depends-on): Add gethrxtime.
66984         (configure.ac): Add gl_XNANOSLEEP.
66985         (Makefile.am): Remove lib_SOURCES line.
66986
66987 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66988
66989         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66990         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66991
66992 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66993
66994         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66995         * lib/timespec.h (gettime): Return void, since it always
66996         succeeds now.  All uses changed.
66997         * lib/gettime.c (gettime) Likewise.
66998         [HAVE_NANOTIME]: Prefer nanotime.
66999         Assume gettimeofday succeeds, as POSIX requires.
67000         Assime time () succeeds, since other code already does.
67001         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67002         (timespec_subtract): Remove.
67003         (NANOSLEEP_BUG_WORKAROUND): New constant.
67004         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67005         things considerably.  Use it only on GNU/Linux hosts, since the
67006         workaround shouldn't be needed elsewhere.
67007
67008 2005-02-24  Bruno Haible  <bruno@clisp.org>
67009
67010         * modules/gettext (Files): Add m4/glibc2.m4.
67011
67012 2005-02-24  Bruno Haible  <bruno@clisp.org>
67013
67014         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67015         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67016         * m4/progtest.m4:
67017         Update from GNU gettext 0.14.2.
67018         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67019
67020 2005-02-24  Bruno Haible  <bruno@clisp.org>
67021
67022         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67023         * lib/config.charset: Update from GNU gettext 0.14.2.
67024
67025 2005-02-24  Bruno Haible  <bruno@clisp.org>
67026
67027         * lib/gettext.h: Update from GNU gettext 0.14.2.
67028
67029 2005-02-23  Simon Josefsson  <jas@extundo.com>
67030
67031         * m4/iconvme.m4: New file.
67032
67033 2005-02-23  Jim Meyering  <jim@meyering.net>
67034
67035         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67036         change.
67037         Thanks to Bruno Haible for catching it.
67038
67039 2005-02-22  Simon Josefsson  <jas@extundo.com>
67040
67041         * modules/iconvme: New file.
67042
67043         * MODULES.html.sh: Add iconvme.
67044
67045 2005-02-22  Simon Josefsson  <jas@extundo.com>
67046
67047         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67048
67049 2005-02-22  Simon Josefsson  <jas@extundo.com>
67050
67051         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67052
67053 2005-02-22  Jim Meyering  <jim@meyering.net>
67054
67055         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67056         s/ifndef/ifdef/.
67057
67058 2005-02-20  Neil Conway  <neilc@samurai.com>
67059
67060         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67061         returned by OSX/Darwin if the specified buffer is not large
67062         enough for the hostname.
67063
67064 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67065
67066         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67067         pass it to _help, otherwise the latter coredumps trying to
67068         dereference state.root_argp.
67069
67070 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         * modules/chdir-long (Depends-on): Add memrchr.
67073         * modules/memrchr (Files): Add lib/memrchr.h.
67074         (Include): "memrchr.h".
67075
67076 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67079
67080 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * lib/memrchr.h: New file.
67083         * lib/chdir-long.c: Include it.
67084         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67085         Don't bother including stddef.h.
67086
67087 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67088
67089         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67090         inclusion.
67091         Include <sys/types.h>, for dev_t.
67092         (ME_DUMMY, ME_REMOTE): Move from here....
67093         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67094         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67095         Dmitry V. Levin.
67096         Include mountlist.h first, to test the interface.
67097
67098 2005-01-29  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/progname.c (program_name): Initialize.
67101         Needed when linking statically on MacOS X.
67102
67103 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         Sync from coreutils.
67106         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67107         (Depends-on): Add c-strtod.
67108         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67109
67110 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67111
67112         Sync from coreutils.
67113         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67114
67115         Remove files that are specific to coreutils.
67116         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67117
67118 2005-01-28  Bruno Haible  <bruno@clisp.org>
67119
67120         * modules/javacomp: New file.
67121         * MODULES.html.sh (Java): Add javacomp.
67122
67123 2005-01-28  Bruno Haible  <bruno@clisp.org>
67124
67125         * m4/javacomp.m4: New file, from GNU gettext.
67126
67127 2005-01-28  Bruno Haible  <bruno@clisp.org>
67128
67129         * lib/javacomp.sh.in: New file, from GNU gettext.
67130         * lib/javacomp.h: New file, from GNU gettext.
67131         * lib/javacomp.c: New file, from GNU gettext.
67132
67133 2005-01-26  Simon Josefsson  <jas@extundo.com>
67134
67135         * lib/gai_strerror.c: Use GPL in header.
67136
67137 2005-01-26  Bruno Haible  <bruno@clisp.org>
67138
67139         * modules/javaexec: New file.
67140         * MODULES.html.sh (Java): Add javaexec.
67141
67142 2005-01-26  Bruno Haible  <bruno@clisp.org>
67143
67144         * m4/javaexec.m4: New file, from GNU gettext.
67145
67146 2005-01-26  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/javaexec.sh.in: New file, from GNU gettext.
67149         * lib/javaexec.h: New file, from GNU gettext.
67150         * lib/javaexec.c: New file, from GNU gettext.
67151
67152 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67153
67154         * modules/lchown (Depends-on): Remove lchown.h
67155
67156 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67157
67158         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67159         must be defined if the header file was not found, in order
67160         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67161
67162 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67163
67164         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67165         initializers for struct pentry_state.
67166         (__argp_error): Check return value of __asprintf
67167         (__argp_failure): Translate error message
67168
67169         * lib/argp-parse.c: Removed braces around the expansion of N_()
67170
67171 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67172
67173         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67174         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67175         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67176         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67177         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67178         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67179         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67180         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67181         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67182         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67183         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67184         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67185         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67186         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67187         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67188         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67189         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67190         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67191         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67192         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67193         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67194         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67195         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67196         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67197         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67198         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67199         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67200         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67201         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67202         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67203         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67204         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67205         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67206         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67207         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67208         Use an all-permissive copyright notice, recommended by RMS.
67209
67210 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * modules/chdir-long (Depends-on): Remove mempcpy.
67213
67214 2005-01-21  Jim Meyering  <jim@meyering.net>
67215
67216         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67217         same value as for Solaris 9.
67218
67219         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67220         component length.  This included changing the parameter to be
67221         of type `char *' rather than `char const *'.
67222         * lib/chdir-long.h (chdir_long): Update prototype.
67223
67224         * lib/openat.c (fdopendir, fstatat): New functions.
67225         * lib/openat.h: Include headers required for use of DIR and struct
67226         stat.
67227         [AT_SYMLINK_NOFOLLOW]: Define.
67228         (fdopendir, fstatat): Add prototypes.
67229
67230 2005-01-21  Bruno Haible  <bruno@clisp.org>
67231
67232         * modules/classpath: New file.
67233         * MODULES.html.sh (Java): Add classpath.
67234
67235 2005-01-21  Bruno Haible  <bruno@clisp.org>
67236
67237         * lib/classpath.h: New file, from GNU gettext.
67238         * lib/classpath.c: New file, from GNU gettext.
67239
67240 2005-01-20  Simon Josefsson  <jas@extundo.com>
67241
67242         * modules/version-etc-fsf: New file.
67243
67244 2005-01-20  Simon Josefsson  <jas@extundo.com>
67245
67246         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67247         * lib/version-etc.c: Remove version_etc_copyright.
67248         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67249         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67250
67251 2005-01-20  Simon Josefsson  <jas@extundo.com>
67252
67253         * lib/base64.h (isbase64): Add.
67254
67255         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67256         using a unsigned prototype, don't inline.
67257         (base64_decode): Use it.
67258
67259 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67260
67261         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67262         it.
67263
67264 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         * lib/save-cwd.c (save_cwd): Remove code to support the case
67267         where fchdir is missing or flaky.
67268
67269 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67270
67271         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67272
67273 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67276         AC_LIBSOURCES now does this.
67277         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67278         with new ullong_max module.
67279
67280 2005-01-19  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/sh-quote: New file.
67283         * MODULES.html.sh (Executing programs): Add sh-quote.
67284
67285 2005-01-19  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/sh-quote.h: New file, from GNU gettext.
67288         * lib/sh-quote.c: New file, from GNU gettext.
67289
67290 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67291
67292         Merge from coreutils.
67293         * m4/ullong_max.m4: New file.
67294         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67295         (gl_MACROS): Assume localeconv exists.
67296
67297 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67298
67299         Merge changes from coreutils, as described below in several
67300         changelogs dated today.
67301
67302         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67303         (O_DIRECTORY): Remove; not needed here, since "." must be
67304         a directory.  All uses removed.
67305         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67306         universal on Suns, and we also need to test for IRIX.
67307         Revamp code to use 'if' rather than '#if'.
67308         Avoid unnecessary comparison of cwd->desc to 0.
67309
67310         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67311         for known valid error numbers rather than observed invalid ones.
67312
67313 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * modules/ullong_max: New file.
67316
67317         * modules/chdir-long, modules/openat: New files.
67318         * modules/save-cwd (Depends-on): Depend on chdir-long.
67319         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67320
67321 2005-01-18  Jim Meyering  <jim@meyering.net>
67322
67323         Merge from coreutils.
67324         * m4/chdir-long.m4, m4/openat.m4: New files.
67325         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67326         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67327         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67328         is sane and DOES follow symlinks.  Besides, testing 20 different
67329         systems found no broken chown implementations.
67330         Prompted by a change in rsync's copy of this macro.
67331         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67332
67333         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67334
67335         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67336         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67337         NULL-means-set-to-current-time semantics.
67338         Remove temporary file immediately, rather than waiting
67339         for configure's at-exit trap code to do it.
67340
67341 2005-01-18  Jim Meyering  <jim@meyering.net>
67342
67343         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67344
67345         * lib/utimens.c (futimens): Account for the fact that futimes
67346         can also fail with errno == ENOSYS or errno == ENOENT.
67347         Patch from Dmitry V. Levin.
67348
67349         Change the name of the robust chdir function from chdir to chdir_long.
67350         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67351         (restore_cwd): Use chdir_long, not chdir.
67352         * lib/chdir-long.c: Renamed from chdir.c.
67353         * lib/chdir-long.h: Renamed from chdir.h.
67354         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67355         Hurd.
67356
67357 2005-01-18  Bruno Haible  <bruno@clisp.org>
67358
67359         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67360         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67361         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67362         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67363         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67364         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67365         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67366         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67367         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67368         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67369         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67370         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67371         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67372         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67373         Use an all-permissive copyright notice, recommended by RMS.
67374
67375 2005-01-18  Bob Proulx  <bob@proulx.com>
67376
67377         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67378         simplify offsetof() macro construct to avoid compile failure with
67379         native HP-UX 11.0 ANSI C compiler.
67380
67381 2005-01-17  Bruno Haible  <bruno@clisp.org>
67382
67383         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67384         redundant because stpncpy.m4 takes care of it.
67385
67386 2005-01-17  Bruno Haible  <bruno@clisp.org>
67387
67388         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67389
67390 2005-01-17  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67393         used.
67394
67395 2005-01-17  Bruno Haible  <bruno@clisp.org>
67396
67397         * lib/fwriteerror.h (fwriteerror): Change specification to include
67398         fclose.
67399         * lib/fwriteerror.c: Include <stdbool.h>.
67400         (fwriteerror): At the end, close the file stream. Record whether
67401         stdout was already closed.
67402
67403 2005-01-17  Bruno Haible  <bruno@clisp.org>
67404
67405         * lib/execute.c (environ): Declare if needed.
67406         * lib/pipe.c (environ): Likewise.
67407         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67408
67409 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67410
67411         * modules/argp: Depend on vsnprintf
67412
67413 2005-01-10  Jim Meyering  <jim@meyering.net>
67414
67415         * modules/closeout (Depends-on): Add atexit.
67416
67417 2005-01-06  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67420
67421 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67424         definitions to be after all include files, to avoid collisions.
67425         Problem reported by Bob Proulx.
67426
67427 2005-01-04  Jim Meyering  <jim@meyering.net>
67428
67429         Changes imported from coreutils.
67430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67431         as the mkstemp template, use a temporary directory and an
67432         8.3-friendly template to avoid trouble on systems like DJGPP.
67433         Reported by Juan M. Guerrero via Stepan Kasal.
67434         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67435         close. Remove the temporary directory right away, rather than waiting
67436         for configure's at-exit trap code to do it.
67437         Suggestion from Stepan Kasal.
67438
67439 2005-01-01  Simon Josefsson  <jas@extundo.com>
67440
67441         * gnulib-tool: Print #include directives when --import'ing.
67442
67443 2004-12-28  Simon Josefsson  <jas@extundo.com>
67444
67445         * tests/test-base64.c: Include required header files.  Remove
67446         unused variables.
67447
67448 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         * modules/error (Depends-on): Remove gettext.
67451
67452 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67455         not needed.  This removes a dependency on the gettext module.
67456         [defined _LIBC]: Do not include <libintl.h>; not needed.
67457
67458 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67461         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67462
67463 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67466         HAVE_DECL_STRTOLD.
67467
67468 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67469
67470         * modules/getdate (Depends-on): Remove alloca-opt.
67471
67472 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67475
67476 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         * lib/argp-parse.c: Include <stddef.h>.
67479         (alignof, alignto): New macros.
67480         (parser_init): Don't assume that void * is aligned sufficiently
67481         for struct option.
67482
67483         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67484         need to extend the stack.
67485         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67486         large.
67487
67488 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67489
67490         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67491
67492 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67493
67494         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67495         (2004-10-24) change.  Apparently this was a false alarm.
67496
67497         * modules/getdate: Depend on alloca-opt, not alloca.
67498
67499 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67502         Remove now-obsolete comment about AIX.
67503         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67504         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67505         (YYMAXDEPTH): New macro.
67506
67507 2004-12-18  Simon Josefsson  <jas@extundo.com>
67508
67509         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67510
67511 2004-12-18  Bruno Haible  <bruno@clisp.org>
67512
67513         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67514
67515 2004-12-18  Bruno Haible  <bruno@clisp.org>
67516
67517         * lib/fatal-signal.c (fatal_signals): Make non-const.
67518         (init_fatal_signals): New function.
67519         (uninstall_handlers, install_handlers): Ignore signals that were set to
67520         SIG_IGN.
67521         (at_fatal_signal): Call init_fatal_signals.
67522         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67523         SIG_IGN.
67524         Reported by Paul Eggert.
67525
67526 2004-12-18  Bruno Haible  <bruno@clisp.org>
67527
67528         * doc/alloca.texi: New file.
67529         * doc/alloca-opt.texi: New file.
67530
67531 2004-12-17  Jim Meyering  <jim@meyering.net>
67532
67533         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67534         Otherwise, install-sh could exit with improper exit status when
67535         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67536
67537 2004-12-16  Simon Josefsson  <jas@extundo.com>
67538
67539         * tests/test-base64.c: Add license.
67540
67541 2004-12-15  Stepan Kasal  <address@hidden>
67542
67543         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67544
67545 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * modules/getcwd (Files): Add m4/d-ino.m4.
67548         Suggested by Mark D. Baushke.
67549
67550 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * lib/getdate.y (textint): New member "negative".
67553         (time_zone_hhmm): New function.
67554         Expect 14 shift-reduce conflicts, not 13.
67555         (o_colon_minutes): New rule.
67556         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67557         (yylex): Set the "negative" member of signed numbers.
67558
67559 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * doc/getdate.texi (Time of day items, Time zone items):
67562         Describe new formats +00:00, UTC+00:00.
67563
67564 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67567         spurious "-l"s.  Problem reported by Stepan Kasal.
67568
67569 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67572         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67573
67574 2004-12-04  Simon Josefsson  <jas@extundo.com>
67575
67576         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67577         Vandoorselaere <yoann@prelude-ids.org>.
67578
67579 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         Changes imported from coreutils.
67582         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67583         exist.
67584         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67585
67586 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         Changes imported from coreutils.
67589         * lib/hard-locale.c: Assume <locale.h> exists.
67590         Include "strdup.h".
67591         (GLIBC_VERSION): New macro.
67592         (hard_locale): Assume setlocale exists.
67593         Rewrite to avoid #ifdef.
67594         Use strdup rather than malloc + strcpy.
67595         * lib/human.c: Assume <locale.h> exists.
67596         (human_readable): Assume localeconv exists.
67597
67598 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         * modules/hard-locale (Depends-on): Add strdup.
67601
67602 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67603
67604         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67605         convert T2, not T.  (Imported from libc.)
67606
67607 2004-11-30  Simon Josefsson  <jas@extundo.com>
67608
67609         * modules/restrict (License): Change to LGPL.
67610
67611 2004-11-30  Simon Josefsson  <jas@extundo.com>
67612
67613         * m4/restrict.m4: Add copyright and copying conditions.
67614
67615 2004-11-30  Simon Josefsson  <jas@extundo.com>
67616
67617         * m4/base64.m4: New file.
67618
67619 2004-11-30  Simon Josefsson  <jas@extundo.com>
67620
67621         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67622         base64.
67623
67624         * tests/test-base64.c: New file.
67625
67626         * modules/base64: New file.
67627
67628 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67631         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67632
67633         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67634
67635 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67636
67637         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67638         (__getcwd.c): Don't restore errno; glibc doesn't.
67639         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67640         first, falling back to our code only if its results look suspicious.
67641         Ensure that the resulting buffer is only as large as necessary.
67642
67643         * lib/readutmp.c: Include readutmp.h first.
67644         Include <errno.h>, since readutmp.h no longer does that.
67645         * lib/readutmp.h: Don't include <errno.h>,
67646         <sys/param.h>, <time.h>; not needed to establish interface.
67647         (errno): Remove decl.
67648         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67649         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67650         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67651
67652 2004-11-28  Simon Josefsson  <jas@extundo.com>
67653
67654         * lib/base64.h, base64.c: New file.
67655
67656 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67659
67660 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67661
67662         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67663         (Depends-on): Remove pathmax, same.  Add mempcpy.
67664         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67665         (Makefile.am): Append getcwd.h to lib_SOURCES.
67666         (Include): Add getcwd.h.
67667         (Maintainer): Change from Jim Meyering to "all, glibc",
67668         since getdate now uses intended-for-glibc code.
67669         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67670         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67671
67672 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67675         HP's ANSI C compiler.
67676         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67677         Declaring int functions causes warnings on some modern systems and
67678         shouldn't be needed to compile on ancient ones.
67679         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67680         defined.
67681
67682         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67683         with the following changes.
67684         (__set_errno): Parenthesize properly.
67685         Include <stdbool.h>.
67686         (MIN, MAX, MATCHING_INO): New macros.
67687         (__getcwd): Define with prototype, not K&R form.
67688         Use heuristics to allocate default buffer on stack if possible.
67689         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67690         behavior, and to avoid the PATH_MAX limit when computing
67691         ../../../../...
67692         Use MATCHING_INO to compare inode number to file.
67693         Check for arithmetic overflow in size calculations.
67694         Fix bug in reallocation of dot array that caused getcwd to fail
67695         on directories nested deeper than 75.
67696         Be more careful about saving errno on error.
67697         Do not use realloc; use only free+malloc, as this is a bit
67698         more flexible and avoids a needless copy operation.
67699         Do not inspect st_dev and st_ino for symbolic links; POSIX
67700         doesn't specify the latter.
67701         Check for closedir errors.
67702         Avoid needless casts.
67703         Use "#ifdef weak_alias" around weak_alias, to be like other
67704         glibc code.
67705         The following changes to getcwd.c have effect only when used in
67706         gnulib; they have no effect inside glibc proper.
67707         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67708         as alloca isn't used.
67709         (alloca, __alloca): Likewise.
67710         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67711         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67712         unconditionally, as gnulib assumes C89 or better.
67713         Do not include <sys/param.h>.
67714         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67715         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67716         better.
67717         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67718         Include <dirent.h> in a way that is compatible with modern Autoconf.
67719         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67720         New macros, if not already defined.
67721         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67722         Use "_LIBC", not "defined _LIBC", for consistency.
67723         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67724         a mempcpy module.
67725         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67726         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67727         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67728         credit only to Jim Meyering and adjust the copyright dates.
67729         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67730         <stdlib.h>, <unistd.h>, "pathmax.h".
67731         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67732         (INITIAL_BUFFER_SIZE): Remove.
67733         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67734
67735 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67736
67737         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67738         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67739         Use the _ONCE methods, for efficiency.
67740         Check for fcntl.h.  In test program, include <errno.h>
67741         and <fcntl.h> if available.  Remove old K&R cruft from
67742         test program.  Check for common errors in GNU/Linux,
67743         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67744         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67745         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67746         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67747         name accordingly.
67748         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67749         accommodate new getcwd.c.
67750         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67751         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67752         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67753         that's all we need now.
67754
67755 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67756
67757         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67758         argp-parse.c depends on getopt internals, that means we should
67759         always use our getopt, to be on the safe side.
67760         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67761         order not to spoil the result of an eventual previous invocation
67762         of gl_GETOPT_SUBSTITUTE.
67763
67764 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67765
67766         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67767         redefinition warnings. To avoid them, include the defines
67768         in `#if !defined __need_getopt ... #endif'. The only place
67769         where __getopt_argv_const is used is in definitions
67770         of getopt_long and getopt_long_only below, which are as well
67771         protected by `#ifndef __need_getopt'.
67772         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67773         __need_getopt after including <stdio.h> and <unistd.h> These
67774         headers might have defined it.
67775
67776 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67779
67780 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67783         (futimens): New function, which uses futimes if available.
67784         (futimens, utimens): Support timespec==NULL, with same semantics
67785         as utime and utimens.
67786         * lib/utimens.h (futimens): New decl.
67787
67788 2004-11-23  Jim Meyering  <jim@meyering.net>
67789
67790         * lib/getopt_.h: Remove trailing blanks.
67791
67792 2004-11-23  Jim Meyering  <jim@meyering.net>
67793
67794         * lib/__fpending.c: Add comment.
67795
67796 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * modules/canonicalize (Depends-on): Add xreadlink.
67799         Problem reported by James Youngman.
67800
67801 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67804         New macros.
67805         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67806         optopt): Use them instead of invoking ## directly; otherwise, the
67807         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67808
67809 2004-11-19  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/strtok_r.c: Move comments from here...
67812         * lib/strtok_r.h: ... to here.
67813
67814 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67817         implementations that mishandle size_t overflow.
67818
67819 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67820
67821         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67822         might fail.  Problem reported by Yoann Vandoorselaere.
67823         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67824         implementations that mishandle size_t overflow.
67825
67826 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * modules/canon-host (Depends-on): Add strdup.
67829
67830 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67833
67834 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * lib/canon-host.c: Include "strdup.h".
67837         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67838         Use strdup instead of malloc/strcpy to duplicate strings.
67839
67840         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67841         (human_space_before_unit): New constant.
67842         * lib/human.c (human_readable): Support it.
67843
67844         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67845         (xgetcwd): Set errno correctly when failing.
67846         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67847         the failure is actually due to a PATH_MAX problem.
67848
67849         Further getopt changes to make it more likely that glibc will
67850         buy the changes back.
67851         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67852         (getopt): Use it, so to preserve glibc semantic
67853         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67854         when compiling for libc.
67855         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67856         (getopt_long, getopt_long_only): Use it.
67857
67858         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67859         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67860         (getopt): Argv is now char * const *, as per standard.
67861         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67862         not char *__getopt_argv_const *.
67863         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67864         _getopt_long_only_r): Likewise.
67865         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67866         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67867         _getopt_long_r, _getopt_long_only_r): Likewise.
67868         * lib/getopt_.h (__getopt_argv_const): Remove.
67869         (getopt): Argv is now char * const *, as per standard.
67870
67871         * lib/getdate.y (tORDINAL): New token.
67872         (day, relunit): Allow it for relative times.
67873         (relative_time_table): Use tORDINAL for ordinals.
67874
67875 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67878         Document that "second" isn't allowed as an ordinal number.
67879
67880 2004-11-16  Jim Meyering  <jim@meyering.net>
67881
67882         * modules/closeout (Depends-on): Add fpending.
67883
67884 2004-11-15  Jim Meyering  <jim@meyering.net>
67885
67886         * lib/closeout.c: Include "__fpending.h" once again.
67887         Include <stdbool.h>.
67888         (close_stdout): Don't fail just because stdout was closed initially,
67889         since some programs don't write to stdout in the normal course of
67890         operation (other than --version and --help), and we don't want this
67891         function to make e.g. `touch file >&-' fail.
67892         But do fail if it was closed and someone has tried to write to it.
67893         E.g., `printf foo >&-' must fail.
67894
67895 2004-11-13  Jim Meyering  <jim@meyering.net>
67896
67897         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67898
67899 2004-11-12  Simon Josefsson  <jas@extundo.com>
67900
67901         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67902         small doc fix is still pending.
67903
67904 2004-11-11  Simon Josefsson  <jas@extundo.com>
67905
67906         * modules/strtok_r: New file.
67907
67908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67909         strtok_r.
67910
67911 2004-11-11  Simon Josefsson  <jas@extundo.com>
67912
67913         * m4/strtok_r.m4: New file.
67914
67915         * m4/getopt.m4: Replace opterr.
67916
67917 2004-11-11  Simon Josefsson  <jas@extundo.com>
67918
67919         * lib/strtok_r.h, strtok_r.c: New file.
67920
67921 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67922
67923         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67924         of replacing opterr, getopt, etc.  This should handle the
67925         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67926
67927 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67928
67929         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67930         we can stop lying to compilers about the constness of argv when we
67931         are compiled outside glibc.
67932         (getopt, getopt_long, getopt_long_only): Use it.
67933         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67934         _getopt_internal, getopt): Likewise.
67935         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67936         _getopt_long_only_r): Likewise.
67937         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67938         _getopt_long_r, _getopt_long_only_r): Likewise.
67939
67940         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67941         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67942         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67943         the other external symbols.
67944         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67945         declaration, since the above renaming now works around collisions.
67946
67947 2004-11-11  Jim Meyering  <jim@meyering.net>
67948
67949         * lib/linebreak.c: Remove trailing blanks.
67950         * lib/alloca_.h: Likewise.
67951         * lib/acosl.c: Likewise.
67952         * lib/euidaccess.c: Likewise.
67953         * lib/allocsa.h: Likewise.
67954
67955 2004-11-10  Simon Josefsson  <jas@extundo.com>
67956
67957         * m4/getaddrinfo.m4: New file.
67958
67959 2004-11-10  Simon Josefsson  <jas@extundo.com>
67960
67961         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67962
67963 2004-11-10  Simon Josefsson  <jas@extundo.com>
67964
67965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67966         getaddrinfo.
67967
67968         * modules/getaddrinfo: New file.
67969
67970 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67973
67974 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67975
67976         * lib/mktime.c (SHR): New macro, which is a portable
67977         substitute for >> that should work even on Crays.
67978         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67979         Problem reported by Mark D. Baushke in
67980         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67981         * lib/getdate.y (SHR): Likewise.
67982         (tm_diff): Use it.
67983         * lib/strftime.c (SHR): Likewise.
67984         (tm_diff): Use it.
67985         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67986         quote_these_too, so that right shifts are well defined.  All uses
67987         changed.
67988
67989 2004-11-10  Jim Meyering  <jim@meyering.net>
67990
67991         Ensure that no close failure goes unreported.
67992         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67993         return early when it seems there's nothing to flush.
67994         Don't include __fpending.h.
67995
67996 2004-11-10  Jim Meyering  <jim@meyering.net>
67997
67998         * modules/closeout (Depends-on): Remove fpending.
67999
68000 2004-11-10  Jim Meyering  <jim@meyering.net>
68001
68002         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68003
68004 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68007         gl_FUNC_STRFTIME.
68008         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68009         and AC_REQUIRE when possible, to avoid duplicate checks.
68010         Check for <wchar.h>.
68011
68012 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68015
68016 2004-11-09  Bruno Haible  <bruno@clisp.org>
68017
68018         * m4/sockpfaf.m4: New file.
68019
68020 2004-11-05  Bruno Haible  <bruno@clisp.org>
68021
68022         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68023         Reported by Mark D. Baushke <mdb@cvshome.org>.
68024
68025 2004-11-04  Bruno Haible  <bruno@clisp.org>
68026
68027         2004-09-11  Bruno Haible  <bruno@clisp.org>
68028                 * allocsa.valgrind: New file.
68029         2004-02-06  Bruno Haible  <bruno@clisp.org>
68030                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68031                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68032                 Reported by Christopher Seip <chris.seip@hp.com>.
68033
68034 2004-11-04  Bruno Haible  <bruno@clisp.org>
68035
68036         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68037         (Makefile.am): Distribute it.
68038
68039 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68040
68041         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68042         with errno == ERANGE if the buffer is too small.
68043         Problem reported by Mark D. Baushke.
68044
68045 2004-11-03  Albert Chin  <china@thewrittenword.com>
68046             Paul Eggert  <eggert@cs.ucla.edu>
68047
68048         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68049         equivalent, substitute $ac_type for equivalent type rather than
68050         blindly using uint32_t *always* which won't work if uint32_t is not
68051         available.  Define _UINT32_T to work around typedef of uint32_t if
68052         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68053         2.5.1.
68054
68055 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         * m4/jm-macros.m4: Sync from coreutils.
68058         (gl_MACROS): Check for mbrlen, for pathchk.
68059         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68060
68061 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68062
68063         * lib/xreadlink.c (MAXSIZE): New macro.
68064         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68065         size does not exceed MAXSIZE.  Avoid cast.
68066         As suggested by Mark D. Baushke in
68067         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68068         if readlink fails with buffer size just under MAXSIZE, try again
68069         with MAXSIZE.
68070
68071 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68074
68075 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68076         and  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68079         (get_date): Overparenthesize to avoid GCC warning.
68080
68081 2004-11-02  Bruno Haible  <bruno@clisp.org>
68082
68083         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68084         returns void.
68085
68086 2004-11-02  Bruno Haible  <bruno@clisp.org>
68087
68088         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68089         function returns void.
68090
68091 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68092
68093         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68094         fflush_unlocked, flockfile, funlockfile, funlockfile,
68095         fputs_unlocked, putc_unlocked.
68096
68097 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68100         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68101         already declared.
68102
68103 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * modules/getdate (Files): Add doc/getdate.texi.
68106         (Depends-on): Add setenv, xalloc.
68107
68108 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         * lib/getdate.y: Add support for TZ="foo" within a date string.
68111         Fix some bugs near time_t boundaries.  Reject dates with
68112         out-of-range components, e.g., "Sept 31".
68113         Include <stdlib.h>, "setenv.h", "xalloc.h".
68114         (ISDIGIT_LOCALE): Remove; unused.
68115         Note that the TZ and time functions used here are not reentrant.
68116         (mktime_ok, get_tz): New functions.
68117         (TZBUFSIZE): New constant.
68118         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68119         This requires that we sometimes generate our own TZ="XXX..." setting.
68120
68121 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68122
68123         * doc/getdate.texi: New file, from coreutils with modifications for
68124         the new TZ parsing.
68125
68126 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68127
68128         * lib/mktime.c (not_equal_tm): Remove redundant check.
68129
68130 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * modules/regex (lib_SOURCES): Add regex.c.
68133         Reported by James Youngman in
68134         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68135
68136 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68137
68138         * lib/getdate.y: Use Bison 1.875 features, and some minor
68139         code cleanups.  This change does not affect semantics.
68140         Don't include <stdlib.h>; no longer needed.
68141         Don't include unlocked-io.h; only the "#if TEST" code uses
68142         stdio, and performance isn't crucial there.
68143         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68144         Bison 1.875 features as described below.
68145         All uses of "PC." replaced by "pc->".
68146         (YYSTYPE): Add a forward declaration.
68147         (yylex, yyerror): Use full prototypes in forward decls.
68148         Use "%pure-parser" rather than obsolescent "%pure_parser".
68149         Use %parse-param and %lex-param instead of obsolescent
68150         YYPARSE_PARAM and YYLEX_PARAM.
68151         (meridian_table, month_and_day_table, time_units_table,
68152         relative_time_table, time_zone_table, military_table,
68153         lookup_zone, lookup_word, get_date):
68154         Use NULL instead of 0 where appropriate.
68155         (to_hour): Avoid abort (), to avoid a dependency on
68156         stdlib.h.
68157         (yyerror, yylex): Now accepts parser_control * arg.
68158         (main) [TEST]: Use '\0' rather than 0 for char.
68159
68160 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68163
68164 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68167         It's now the caller's responsibility to handle the case where
68168         !HAVE_GETPAGESIZE && !defined getpagesize.
68169
68170         * lib/mktime.c (leapyear): Arg is long int, not int.
68171
68172 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68175
68176 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68179         missing.  Problem reported by James Youngman.
68180
68181 2004-10-16  Simon Josefsson  <jas@extundo.com>
68182
68183         * gnulib-tool: Fix comments.  Fix parse problem.
68184         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68185
68186 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68189         implementation of getopt_long.  Problem reported by Alexander Taler in:
68190         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68191
68192 2004-10-15  Bruno Haible  <bruno@clisp.org>
68193
68194         * gnulib-tool: Untabify. Initialize supplied_libname.
68195         (func_usage): More homogenous output.
68196         (func_modules_transitive_closure, func_modules_to_filelist,
68197         func_emit_lib_Makefile_am): New functions.
68198         (func_import): New function, extracted from big case statement. Use
68199         func_get_license, func_modules_transitive_closure,
68200         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68201         opt_lgpl. Don't use test -a, as it's not portable.
68202         (func_create_testdir): Use func_modules_transitive_closure,
68203         func_modules_to_filelist, func_emit_lib_Makefile_am.
68204
68205 2004-10-15  Bruno Haible  <bruno@clisp.org>
68206
68207         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68208
68209 2004-10-15  Bruno Haible  <bruno@clisp.org>
68210
68211         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68212         the portions belonging to each module.
68213         Suggested by Derek Robert Price <derek@ximbiot.com>.
68214
68215 2004-10-12  Simon Josefsson  <jas@extundo.com>
68216
68217         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68218         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68219         to real functions.
68220
68221 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68222
68223         * modules/vsnprintf: New file.
68224
68225 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68226
68227         * m4/vsnprintf.m4: New file.
68228
68229 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68230
68231         * lib/vsnprintf.h: New file.
68232         * lib/vsnprintf.c: New file.
68233
68234 2004-10-11  Bruno Haible  <bruno@clisp.org>
68235
68236         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68237         vsnprintf.
68238
68239 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68240
68241         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68242
68243 2004-10-07  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68246         fits into the provided buffer.
68247
68248 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * lib/diacrit.c, diacrit.h: Add GPL notice.
68251
68252         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68253         notice.
68254         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68255         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68256         This avoids a potential constant-folding bug.
68257
68258 2004-10-05  Bruno Haible  <bruno@clisp.org>
68259
68260         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68261         for the declaration of strsep.
68262
68263 2004-10-05  Bruno Haible  <bruno@clisp.org>
68264
68265         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68266
68267 2004-10-04  Simon Josefsson  <jas@extundo.com>
68268
68269         * modules/memmem: New file.
68270         * tests/test-memmem.c: New file.
68271         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68272
68273 2004-10-04  Simon Josefsson  <jas@extundo.com>
68274
68275         * m4/memmem.m4: New file.
68276
68277 2004-10-04  Simon Josefsson  <jas@extundo.com>
68278
68279         * lib/memmem.h: New file.
68280         * lib/memmem.c: New file, taken from glibc.
68281
68282 2004-10-04  Simon Josefsson  <jas@extundo.com>
68283
68284         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68285         '#ifdef USE_UNLOCKED_IO'.
68286
68287 2004-10-04  Simon Josefsson  <jas@extundo.com>
68288
68289         * config/srclist.txt: Add memmem from glibc.
68290
68291 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68292
68293         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68294
68295         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68296         modules/exclude, modules/getdate, modules/getline,
68297         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68298         modules/getusershell, modules/linebuffer, modules/md5,
68299         modules/mountlist, modules/posixtm, modules/readtokens,
68300         modules/readutmp, modules/regex, modules/sha1,
68301         modules/version-etc, modules/yesno:
68302         Remove dependency on unlocked-io.
68303
68304 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68307
68308         * m4/unlocked-io.m4: Add copyright notice.
68309         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68310
68311 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68314         * lib/xmalloc.c (xmemdup): Likewise.
68315         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68316         XFREE): Remove these long-obsolescent macros.
68317         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68318         * lib/xstrdup.c: Remove.
68319
68320         * lib/regex.c (re_comp): Cast gettext return value to char *,
68321         Problem reported by Martin Neitzel via Mark D. Baushke.
68322
68323 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68324
68325         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68326         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68327         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68328         regex.c, sha1.c, version-etc.c, yesno.c:
68329         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68330         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68331         the includer's responsibility.
68332
68333         Sync from coreutils.
68334
68335         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68336         points to the start of a string, as the C Standard says the
68337         resulting behavior is undefined.
68338
68339         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68340         simple -> simple_backups, numbered_existing ->
68341         numbered_existing_backups, numbered -> numbered_backups
68342         to avoid shadowing problems.  All uses changed.
68343         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68344         * lib/backupfile.c (check_extension, numbered_backup):
68345         Rename locals to avoid shadowing 'basename'.
68346         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68347         once.
68348
68349         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68350         * lib/.cvsignore: Add getopt.h.
68351
68352 2004-10-04  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/README: New file.
68355         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68356         not a module.
68357
68358 2004-10-02  Jim Meyering  <jim@meyering.net>
68359
68360         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68361
68362 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68363
68364         * modules/strsep: New file.
68365
68366 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68367
68368         * m4/strsep.m4: New file.
68369
68370 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68371
68372         * lib/strsep.h: New file.
68373         * lib/strsep.c: New file.
68374
68375 2004-10-01  Simon Josefsson  <jas@extundo.com>
68376
68377         * lib/snprintf.c (snprintf): Handle size==0.
68378
68379 2004-10-01  Simon Josefsson  <jas@extundo.com>
68380             Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68383         (snprintf): Declare 'args'.
68384
68385 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68386
68387         * lib/snprintf.c: Remove comments as to why each header is needed.
68388
68389 2004-10-01  Bruno Haible  <bruno@clisp.org>
68390
68391         * MODULES.html.sh: Add strsep.
68392
68393 2004-09-30  Simon Josefsson  <jas@extundo.com>
68394
68395         * modules/snprintf: New file.
68396
68397 2004-09-30  Simon Josefsson  <jas@extundo.com>
68398
68399         * m4/snprintf.m4: New file.
68400
68401 2004-09-30  Simon Josefsson  <jas@extundo.com>
68402
68403         * lib/snprintf.h, lib/snprintf.c: New files.
68404
68405 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68406
68407         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68408         (hol_entry_help): Never translate an empty string.
68409         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68410         * lib/argp.h (OPTION_NO_TRANS): New option.
68411
68412 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * modules/argp (Maintainer): Replace Simon Josefsson
68415         by Sergey Poznyakoff.
68416
68417 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68420         changes merged back into glibc.
68421
68422 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68423
68424         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68425
68426 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68427
68428         * lib/xvasprintf.c: Include xalloc.h.
68429         (xvasprintf): Use xalloc_die, not xmalloc_die.
68430
68431 2004-09-29  Bruno Haible  <bruno@clisp.org>
68432
68433         * modules/alloca-opt: New file, derived from modules/alloca.
68434         * modules/allocsa: Depend on alloca-opt instead of alloca.
68435         * modules/setenv: Likewise.
68436         * modules/vasnprintf: Likewise.
68437         * MODULES.html.sh: Add alloca-opt.
68438
68439 2004-09-28  Simon Josefsson  <jas@extundo.com>
68440
68441         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68442         LGPL, and to replace license template from GPL to LGPL.
68443
68444 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68445
68446         * modules/dummy: Change license to LGPL.
68447
68448 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68451
68452 2004-09-24  Simon Josefsson  <jas@extundo.com>
68453
68454         * modules/minmax (License): Change from GPL to LGPL.
68455
68456 2004-09-23  Simon Josefsson  <jas@extundo.com>
68457
68458         * gnulib-tool (--import): Typo.
68459
68460 2004-09-23  Simon Josefsson  <jas@extundo.com>
68461
68462         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68463
68464 2004-09-22  Bruno Haible  <bruno@clisp.org>
68465
68466         * modules/*: Add 'License' field.
68467         * gnulib-tool: Accept --extract-license option.
68468         (func_get_license): New function.
68469
68470 2004-09-21  Bruno Haible  <bruno@clisp.org>
68471
68472         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68473         Reported by Simon Josefsson.
68474
68475 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68478         gl_AC_TYPE_LONG_LONG.
68479
68480 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68481
68482         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68483
68484 2004-09-18  Simon Josefsson  <jas@extundo.com>
68485         and  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68488         calls with autoreconf.  Define GL_LIB.
68489
68490 2004-09-14  Karl Berry  <karl@gnu.org>
68491
68492         * config/srclist.txt: unsync setenv.c, sigh.
68493
68494 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68495
68496         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68497         Problem reported by Bruno Haible in:
68498         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68499
68500 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * config/srclist.txt: Comment out argp-pvh.c.
68503
68504 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68507         in case some system header has #define'd it.  Problem reported by
68508         Soeren D. Schulze in
68509         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68510
68511 2004-09-09  Karl Berry  <karl@gnu.org>
68512
68513         * regex.[ch]: delete from the root.  These were supposed to be
68514                 synced with emacs cvs, but this has not happened for about
68515                 a year, and anyway nothing else uses emacs regex.[ch].
68516                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68517                 lib/regex[.ch] is untouched.
68518
68519 2004-09-09  Bruno Haible  <bruno@clisp.org>
68520
68521         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68522
68523 2004-09-09  Bruno Haible  <bruno@clisp.org>
68524
68525         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68526         modifications.
68527         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68528
68529 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68530
68531         * modules/xvasprintf: New file.
68532         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68533
68534 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68535
68536         * lib/xvasprintf.h: New file.
68537         * lib/xvasprintf.c: New file.
68538         * lib/xasprintf.c: New file.
68539
68540 2004-09-08  Bruno Haible  <bruno@clisp.org>
68541
68542         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68543
68544 2004-09-08  Bruno Haible  <bruno@clisp.org>
68545
68546         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68547         length is > INT_MAX.
68548         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68549         more.
68550
68551 2004-09-08  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/stdint_.h: New file, taken from GNU clisp.
68554
68555 2004-09-08  Bruno Haible  <bruno@clisp.org>
68556             Oskar Liljeblad  <oskar@osk.mine.nu>
68557
68558         * modules/stdint: New file.
68559         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68560
68561 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68562
68563         Import from coreutils.
68564         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68565         strings on unbounded length.  alloca's performance benefits aren't
68566         that important here.
68567         (V_STRDUP): Remove.
68568         (parse_with_separator): New function, with most of the internals
68569         of the old parse_user_spec.  Allow user to omit both user and group,
68570         for compatibility with FreeBSD.
68571         Clone only the user name, not the entire spec.
68572         Do not set *uid, *gid unless entirely successful.
68573         Avoid memory leak in some failing cases.
68574         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68575         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68576         (parse_user_spec): Rewrite to use parse_with_separator.
68577
68578 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * modules/userspec: Don't depend on alloca.
68581
68582 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68585
68586 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68587
68588         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68589         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68590         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68591
68592 2004-08-16  Simon Josefsson  <jas@extundo.com>
68593
68594         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68595         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68596         Add --dry-run for --import.
68597         Let user provided command line parameters override configure.ac
68598         settings.
68599
68600 2004-08-12  Simon Josefsson  <jas@extundo.com>
68601
68602         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68603         as discussed with Paul Eggert in threads rooted at
68604         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68605         and
68606         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68607         Before, the test was empty, and relied on ELIDE_CODE in source
68608         code.)
68609         (gl_PREREQ_GETOPT): New macro.
68610         (gl_GETOPT): Use them.
68611
68612 2004-08-12  Simon Josefsson  <jas@extundo.com>
68613
68614         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68615         * lib/getopt_.h: Renamed from getopt.h.
68616
68617 2004-08-12  Simon Josefsson  <jas@extundo.com>
68618
68619         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68620         Change default library name from libfoo to libgnu.
68621         Now, if you have a configure.ac that says:
68622                 gl_SOURCE_BASE(gl)
68623                 gl_M4_BASE(gl/m4)
68624                 gl_MODULES(error getopt etcetera)
68625                 gl_INIT
68626         you can import all you need by running:
68627                 ../gnulib/gnulib-tool --import
68628
68629         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68630         (Makefile.am): Rewrite, use logic from argz.
68631         (Include): Use <getopt.h> instead of "getopt.h".
68632
68633 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68634
68635         * modules/argp (Files): Add m4/unlocked-io.m4.
68636         (Depends-on): Add extensions.
68637
68638 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68641         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68642         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68643         Check for program_invocation_name, program_invocation_short_name,
68644         flockfile, funlockfile, features.h, _getopt_long_only_r.
68645
68646 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68647
68648         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68649         its complicated substitute.
68650         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68651         and program_invocation_name.
68652         (__argp_basename) [!_LIBC]: Remove; the only use was
68653         replaced by its body.
68654         (__argp_short_program_name): Change condition from
68655         !defined __argp_short_program_name to
68656         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68657         to match argp-namefrob.h.
68658         (__argp_failure): Don't assume strerror_r returns char *.
68659         * lib/argp-parse.c (N_): Define unconditionally.
68660         (argp_default_options): Fill out initializers with 0 to avoid
68661         gcc warnings.
68662
68663 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68666         getopt1.c.
68667
68668 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         Merge from coreutils.
68671
68672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68673
68674         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68675         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68676
68677 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         Merge from coreutils.
68680
68681         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68682         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68683         for Reliant Unix 5.43.
68684
68685         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68686         (union fooround): Use uintmax_t, not long int.
68687         The rest is a merge from libc:
68688         [defined _LIBC]: Include <shlib-compat.h>.
68689         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68690
68691         * lib/settime.c (settime): Recode to avoid warning with
68692         Sun Forte C 6U2.
68693
68694         * lib/strverscmp.c: Convert to UTF-8.
68695
68696 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68699         m4/uintmax_t.m4.
68700
68701 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * modules/xalloc-die: New file.
68704         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68705
68706         * modules/md5 (Files): Add m4/uint32_t.m4.
68707         * modules/sha1: Renamed from modules/sha.
68708         (Files):
68709         Rename lib/sha.h to lib/sha1.h.
68710         Rename lib/sha.c to lib/sha1.c.
68711         Rename m4/sha.m4 to m4/sha1.m4.
68712         (lib_SOURCES): Likewise.
68713         (configure.ac): Rename gl_SHA to gl_SHA1.
68714         (Include): sha.h -> sha1.h.
68715
68716 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68719         * m4/sha1.m4: Renamed from sha.m4.
68720         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68721
68722 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         * lib/obstack.h (obstack_empty_p):
68725         Don't assume that chunk->contents is suitably aligned.
68726         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68727         Likewise. Problem reported by Benno in
68728         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68729
68730         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68731         readable.  This could be improved further but it'd take some work.
68732
68733 2004-08-08  Simon Josefsson  <jas@extundo.com>
68734
68735         * modules/xgethostname (Depends-on): Remove exit and error (not
68736         used).
68737
68738         * modules/getpass-gnu: Add getpass.h.
68739         (Depends-on): Add stdbool.
68740         * modules/getpass: Add getpass.h.
68741
68742 2004-08-08  Simon Josefsson  <jas@extundo.com>
68743
68744         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68745         Check getpass declaration.
68746
68747 2004-08-08  Simon Josefsson  <jas@extundo.com>
68748
68749         * lib/xgethostname.c: Don't include error.h (not used).
68750
68751         * lib/getpass.h: Add.
68752         * lib/getpass.c: Include getpass.h first.
68753
68754 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68755
68756         * lib/xalloc-die.c: New file.
68757         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68758         All uses removed.
68759         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68760         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68761         xalloc-die.c.
68762         (_, N_, xalloc_die): Move to xalloc-die.c.
68763         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68764         so that we needn't mess with xalloc_msg_memory_exhausted.
68765
68766         * lib/sha1.h: Renamed from sha.h.
68767         (SHA1_H): Renamed from _SHA_H.
68768         (sha1_ctx): Renamed from sha_ctx.
68769         (sha1_init_ctx): Renamed from sha_init_ctx.
68770         (sha1_process_block): Renamed from sha_process_block.
68771         (sha1_process_bytes): Renamed from sha_process_bytes.
68772         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68773         (sha1_read_ctx): Renamed from sha_read_ctx.
68774         (sha1_stream): Renamed from sha_stream.
68775         (sha1_buffer): Renamed from sha_buffer.
68776         * lib/sha1.c: Likewise; renamed from sha.c.
68777         Do not include <sys/types.h>.
68778         Include <stddef.h> rather than <stdlib.h>.
68779
68780 2004-08-08  Bruno Haible  <bruno@clisp.org>
68781
68782         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68783         FILESYSTEM_PREFIX_LEN.
68784         * lib/progreloc.c: Likewise.
68785         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68786
68787 2004-08-06  Simon Josefsson  <jas@extundo.com>
68788
68789         * modules/progname (Depends-on): Don't depend on stdbool.
68790
68791 2004-08-06  Simon Josefsson  <jas@extundo.com>
68792
68793         * modules/getsubopt: New file.
68794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68795         getsubopt.
68796
68797 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         More merge from coreutils.
68800
68801         * m4/utimens.m4, m4/utimecmp.m4: New files.
68802         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68803         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68804         prereq.m4, sha.m4: Import changes from coreutils.
68805
68806 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68807
68808         More merge from coreutils.
68809         * modules/raise, modules/readtokens0, modules/utimens:
68810         * modules/utimecmp, module/xnanosleep: New files.
68811         * modules/strftime: Add lib/strftime.h.
68812         Change include from <time.h> to "strftime.h".
68813         * modules/yesno: Add lib/yesno.h.
68814         * modules/backupfile: Remove lib/addext.c.
68815         * modules/euidaccess: Add stat-macros.h.
68816         * modules/canonicalize, modules/euidaccess,
68817         modules/filemode, modules/lchown, modules/makepath,
68818         modules/rmdir, modules/stat: Likewise.
68819
68820 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         Merge from tar.
68823         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68824         SIZE_MAX is a valid preprocessor constant.
68825         (__argp_basename): Change from "#ifndef _LIBC"
68826         to "#ifndef __argp_short_program_name", so that
68827         we don't compile these functions for tar.
68828
68829         More merges from coreutils.
68830         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68831         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68832         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68833         * lib/addext.c: Remove; no longer needed.
68834         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68835         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68836         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68837         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68838         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68839         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68840         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68841         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68842         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68843         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68844         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68845         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68846         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68847         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68848         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68849         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68850         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68851         Import changes from coreutils.
68852
68853 2004-08-05  Simon Josefsson  <jas@extundo.com>
68854
68855         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68856
68857 2004-08-05  Simon Josefsson  <jas@extundo.com>
68858
68859         * m4/getsubopt.m4: New file.
68860
68861 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         Merge from coreutils.
68864
68865         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68866         * m4/getcwd-path-max.m4: New files.
68867
68868         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68869         FILESYSTEM_PREFIX_LEN ->
68870         FILE_SYSTEM_PREFIX_LEN.
68871         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68872         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68873         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68874         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68875
68876         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68877         prerequisite modules now handle the DOS stuff.
68878         Don't check for unistd.h.
68879
68880 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         Merge from coreutils.
68883
68884         * lib/.gdb-history: Remove; this doesn't belong here.
68885
68886         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68887         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68888         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68889         * lib/getcwd.c: New files.
68890
68891         * lib/dirname.h: Include <stdbool.h>.
68892         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68893         for consistency with POSIX terminology.  All uses changed.
68894         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68895         (strip_trailing_slashes): Use bool for booleans.
68896         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68897
68898         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68899         sometimes returns a positive errno value even when it succeeds.
68900         (print_errno_message) [!LIBC]: Fall back on strerror if
68901         __strerror_r fails.
68902
68903         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68904         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68905         (longest_relative_suffix): New function.
68906         (path_concat): Use it.  Assume first argument is not NULL.
68907         Port to DOS.  Omit redundant separators.
68908         Report an error instead of returning NULL.
68909         Use mempcpy instead of memcpy.
68910         (xpath_concat): Remove: not declared or used.
68911
68912         * lib/same.h: Include <stdbool.h>
68913         (same_name): Return bool, not int.
68914         * lib/same.c (same_name): Likewise.
68915         (errno): Don't declare; we assume C89 or better now.
68916
68917         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68918         if not already defined.
68919
68920         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68921         * lib/dup-safer.c (errno): Likewise.
68922
68923 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         Merge from coreutils.
68926         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68927         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68928         * modules/path-concat: Don't depend on strdup.
68929
68930 2004-08-03  Simon Josefsson  <jas@extundo.com>
68931
68932         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68933         * lib/progname.h: Don't include stdbool.h.
68934
68935 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68938         * MODULES.html.sh (func_all_modules): Remove fatal.
68939
68940 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68943
68944 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68947         working.
68948
68949 2004-08-02  Simon Josefsson  <jas@extundo.com>
68950
68951         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68952         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68953         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68954
68955 2004-08-01  Simon Josefsson  <jas@extundo.com>
68956
68957         * lib/xgetdomainname.c: Include stdlib.h, for free().
68958
68959 2004-07-19  Bruno Haible  <bruno@clisp.org>
68960
68961         * MODULES.html.sh (func_all_modules): Add dummy.
68962
68963 2004-07-16  Simon Josefsson  <jas@extundo.com>
68964
68965         * modules/dummy: New file.
68966
68967 2004-07-16  Simon Josefsson  <jas@extundo.com>
68968
68969         * lib/dummy.c: New file.
68970
68971 2004-07-16  Bruno Haible  <bruno@clisp.org>
68972
68973         * lib/backupfile.h: Add extern "C" for C++.
68974         * lib/closeout.h: Likewise.
68975         * lib/copy-file.h: Likewise.
68976         * lib/findprog.h: Likewise.
68977         * lib/full-write.h: Likewise.
68978         * lib/pathname.h: Likewise.
68979         * lib/progname.h: Likewise.
68980         * lib/stpcpy.h: Likewise.
68981         * lib/stpncpy.h: Likewise.
68982         * lib/strcase.h: Likewise.
68983         * lib/strstr.h: Likewise.
68984         * lib/xalloc.h: Likewise.
68985
68986         * lib/mbswidth.h: Add extern "C" for C++.
68987         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68988
68989 2004-07-13  Robert Millan  <robertmh@gnu.org>
68990
68991         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68992
68993 2004-07-09  Simon Josefsson  <jas@extundo.com>
68994
68995         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68996         failed without this.)
68997
68998 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * modules/chown (Files): Add lib/fchown-stub.c, since
69001         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69002
69003 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * lib/fchown-stub.c: New file.
69006
69007 2004-06-24  Jim Meyering  <jim@meyering.net>
69008
69009         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69010
69011 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69012
69013         * modules/argz: Omit "#include".
69014
69015         * MODULES.html.sh (func_all_modules): Add calloc, to match
69016         2004-06-01 addition of calloc module.
69017
69018 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * m4/argz.m4: New file, which is autoupdated from libtool.
69021
69022 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69025         libtool.
69026
69027 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * config/srclist-update: Don't insist on "USA." before the
69030         close-comment, as libtool omits the period and puts the */ on a
69031         separate line.
69032         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69033         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69034
69035 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69036
69037         * modules/argz: New file.
69038         * MODULES.html.sh (func_all_modules): Add argz.
69039
69040 2004-06-12  Jim Meyering  <jim@meyering.net>
69041         and  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * modules/hash (Files): Add lib/xalloc.h.
69044         * modules/pipe (Depends-on): Add wait-process.
69045         * modules/stat (Depends-on): Add xalloc.
69046         * modules/userspec (Files): Add lib/userspec.h.
69047         * modules/xstrto
69048
69049         Upgrade from gettext-0.13.
69050         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69051         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69052         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69053
69054 2004-06-10  Jim Meyering  <jim@meyering.net>
69055
69056         * lib/calloc.c: New file.
69057
69058 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * lib/getdate.y (yylex): Allow space between sign and number.
69061         Problem reported by Dan Jacobson.
69062
69063 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         Merge from coreutils CVS.
69066
69067         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69068         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69069         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69070         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69071         xstrtol.m4: Fix copyright date and/or serial number.
69072
69073         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69074         See if we need an fchown replacement.
69075         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69076         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69077         and use the replacement function if we detect either defect.
69078
69079         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69080         gl_UTIMECMP.
69081
69082 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69083         and  Jim Meyering  <jim@meyering.net>
69084
69085         Merge from coreutils CVS.
69086
69087         * lib/stat-macros.h: New file, with contents from file-type.h
69088         and coreutils' system.h.
69089         * lib/file-type.c: Include "stat-macros.h".
69090         * lib/file-type.h (file_type): Move all macro definitions to new file,
69091         stat-macros.h.
69092
69093         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69094         Wrap old code with this conditional.
69095         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69096         function that does not dereference symlinks.
69097         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69098
69099         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69100         dependency problems.
69101         (xreadlink): Accept new arg SIZE, for efficiency.
69102         All decls and uses changed.
69103         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69104
69105         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69106         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69107
69108         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69109         sysexits.h.
69110
69111 2004-06-01  Jim Meyering  <jim@meyering.net>
69112
69113         * m4/calloc.m4: New file.
69114
69115 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69118         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69119         Also, fix a typo in a diagnostic.
69120
69121 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69124         or AC_FUNC_REALLOC.
69125
69126 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69129         macros to be defined.
69130         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69131         the allocator returns NULL because the requested size is zero.
69132
69133 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69136         var.  Add comment explaining why libc still defines it.  This
69137         merges the following patch from glibc:
69138         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69139
69140 2004-05-20  Andreas Schwab  <schwab@suse.de>
69141
69142         * m4/free.m4: Replace free if it not known to work, not the other
69143         way round.
69144
69145 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69148         present in glibc since revision 1.1 of this file.
69149         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69150         obstack_alignment_mask, obstack_alloc, obstack_base,
69151         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69152         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69153         obstack_grow0, obstack_init, obstack_int_grow,
69154         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69155         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69156         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69157         nonexistent functions.
69158
69159 2004-05-18  Karl Berry  <karl@gnu.org>
69160
69161         * config/srclist.txt: break link for vasnprintf.c.
69162
69163 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         Port obstack to the AS/400, where pointers are 16 bytes wide and
69166         you cannot cast an integer to a valid pointer.  This patch is
69167         currently waiting to be integrated into glibc; see
69168         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69169
69170         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69171         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69172         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69173         (struct obstack): temp member is now a union of a pointer and
69174         an integer, instead of an integer.  All integer uses changed.
69175         This does not affect the physical layout of struct obstack,
69176         except on hosts (like the AS/400) where the size or alignment of
69177         void * is greater than that of ptrdiff_t.
69178         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69179         __STDC__)]: Store temporary in pointer member of union, not
69180         integer member.
69181         * lib/obstack.c: Include <stddef.h>, for offsetof.
69182         (struct fooalign): Remove; it doesn't need a name.
69183         (union fooround): Change double to long double, and add void *.
69184         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69185         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69186         not a macro.  Hence the values are always int; so remove all
69187         casts-to-int in uses.
69188
69189 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69190
69191         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69192         we can get this patch merged into glibc.
69193
69194 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69195             Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * m4/argp: Depend on alloca.
69198
69199 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69200             Paul Eggert  <eggert@cs.ucla.edu>
69201
69202         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69203         freecoding.
69204
69205 2004-05-17  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69208         precision that consists of a '.' followed by an empty digit string.
69209         Patch by Tor Lillqvist <tml@iki.fi>.
69210
69211 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69214         for backward compatibility with older code.  We need our own
69215         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69216         it under some other name, and our alloca.h will define it.
69217
69218 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69219             Derek Price  <derek@ximbiot.com>
69220
69221         * lib/alloca.c: Include <alloca.h>, to get our interface.
69222         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69223         include <alloca.h> first.  Use C89 prototype for alloca; this
69224         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69225         Use #elif for simplicity, since we can assume C89 now.
69226         Don't try to source the system alloca.h since it will not be found
69227         and to prevent recursively including its replacement.
69228         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69229         * lib/regex.c: Likewise.
69230
69231 2004-05-16  Derek Price  <derek@ximbiot.com>
69232             Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         getline cleanup.  This changes the getndelim2 API: both order of
69235         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69236         no delimiter).
69237
69238         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69239         interface does that.
69240         (getline): Always use getdelim, so that we don't have two
69241         copies of this code.
69242         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69243         if available.
69244         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69245         (GETNDELIM2_MAXIMUM): New macro.
69246         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69247         instead of the old practice of delim2==0.  All callers changed.
69248         Return -1 on overflow, instead of returning junk.
69249         Do not set *linesize unless allocation succeeds.
69250         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69251         that we include sys/types.h.
69252         * lib/getnline.h: Likewise.
69253         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69254         (getndelim2): Reorder arguments.
69255         * lib/getnline.c (getnline, getndelim):
69256         Don't discard the NMAX argument.
69257         (getnline): Invoke getndelim, to avoid code duplication.
69258         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69259         of (size_t) -1 by callers of the getnline family.
69260
69261 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69264         Check for gettimeofday.
69265         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69266         Check for settimeofday, stime.
69267
69268 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69269
69270         * lib/nanosleep.c (suspended): Change its type from int to
69271         sig_atomic_t volatile.
69272         (first_call): Make it private to rpl_nanosleep, and have it
69273         be zero initially as that's a bit faster.
69274         (my_usleep): Round up fractional times instead of truncating them,
69275         as this is the usual meaning for 'sleep'.
69276
69277         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69278         doesn't work.
69279         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69280         (ENOSYS): Define if not defined.
69281         (settime): Fall back on stime if it exists and settimeofday fails.
69282         But don't bother with fallbacks if a method fails with errno == EPERM.
69283
69284 2004-05-11  Jim Meyering  <jim@meyering.net>
69285
69286         Prior to this change, the save_cwd caller required read access to the
69287         current directory on most systems (ones with the fchdir function).
69288
69289         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69290         fails, try write-only, and finally, resort to using xgetcwd.
69291
69292 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69293
69294         * lib/obstack.c, obstack.h: Import changes from libc.
69295
69296 2004-04-28  Bruno Haible  <bruno@clisp.org>
69297
69298         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69299         also implicitly appends .exe to executables.
69300         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69301         accepts Windows pathnames.
69302         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69303         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69304         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69305         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69306         Reported by Derek Robert Price <derek@ximbiot.com>.
69307
69308 2004-04-21  Karl Berry  <karl@gnu.org>
69309
69310         * config/srclist.txt (localcharset.c): break sync.
69311
69312 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69313
69314         * m4/host-os.m4: Add a copyright notice.
69315
69316 2004-04-20  Jim Meyering  <jim@meyering.net>
69317
69318         Change UTILS_ to gl_ in AC_DEFINE'd names.
69319         Change utils_- and jm_-prefixed variables, too.
69320         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69321         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69322         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69323
69324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69325         Don't emit trailing blanks.
69326         Also rename jm_-prefixed variables to have gl_ prefix.
69327
69328         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69329         Also rename jm_-prefixed variables to have gl_ prefix.
69330
69331         * m4/jm-macros.m4: Reflect the renamings.
69332         * m4/prereq.m4: Likewise.
69333
69334 2004-04-20  Jim Meyering  <jim@meyering.net>
69335
69336         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69337         memory.
69338
69339 2004-04-20  Jim Meyering  <jim@meyering.net>
69340             Bruno Haible  <bruno@clisp.org>
69341
69342         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69343         memory when realloc fails.
69344
69345 2004-04-19  Jim Meyering  <jim@meyering.net>
69346
69347         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69348         now that readutmp.c may call `free (0)'.
69349
69350 2004-04-19  Bruno Haible  <bruno@clisp.org>
69351
69352         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69353         * m4/inttypes_h.m4: Likewise.
69354         * m4/stdint_h.m4: Likewise.
69355         * m4/intmax_t.m4: Likewise.
69356         * m4/uintmax_t.m4: Likewise.
69357
69358 2004-04-18  Jim Meyering  <jim@meyering.net>
69359
69360         * m4/prereq.m4: Don't forbid jm_ prefix.
69361
69362         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69363         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69364         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69365         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69366         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69367         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69368         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69369         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69370         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69371         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69372         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69373         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69374         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69375         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69376         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69377         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69378         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69379         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69380         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69381
69382 2004-04-18  Jim Meyering  <jim@meyering.net>
69383
69384         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69385         failure, don't leak memory and do call END_UTMP_ENT.
69386
69387 2004-04-16  Jim Meyering  <jim@meyering.net>
69388
69389         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69390         coreutils' stat program.
69391         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69392
69393 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69394
69395         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69396         C89.
69397         (CHAR_BIT): Remove, since we assume C89.
69398         Include <stdint.h> if available, as per current Autoconf CVS advice.
69399
69400 2004-03-31  Jim Meyering  <jim@meyering.net>
69401
69402         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69403         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69404         * m4/xalloc.m4: Likewise.
69405
69406 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69407
69408         Merge from coreutils.
69409
69410         * m4/inttostr.m4: New file.
69411         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69412         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69413         Require gl_CLOCK_TIME.
69414         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69415
69416 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69417
69418         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69419         not bool, to be more consistent with Unix conventions.
69420         Suggested by Bruno Haible.
69421
69422         Merge from coreutils.
69423
69424         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69425         * lib/umaxtostr.c: New files.
69426
69427         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69428         the usual <time.h> dance.
69429         (get_date): Change signature to support fractional time stamps.
69430         All callers changed.
69431         * lib/getdate.y: Include "getdate.h" first, as we can now
69432         assume C89 and don't need to worry about 'const'.
69433         Similarly, include "unlocked-io.h" near start, not in middle.
69434         Include <limits.h>.
69435         (textint.value): Use long int rather than int.
69436         (textint.digits): Use size_t rather than int.
69437         (BILLION, LOG10_BILLION): New constants.
69438         (parser_control): New member rel_ns.  Members day_ordinal,
69439         time_zone, month, day, hour, minutes, rel_year, rel_month,
69440         rel_day, rel_hour, rel_minutes, rel_seconds
69441         are now long int, not int.  Member seconds is now struct timespec,
69442         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69443         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69444         not int.
69445         (%union.intval): Now long int, not int.
69446         New member timespec.
69447         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69448         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69449         (spec): Now is a timespec or an item list.
69450         (timespec, items): New nonterminals.
69451         (time, rel, relunit, number, get_date):
69452         Add support for fractional seconds.
69453         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69454         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69455         (to_hour): First arg is now long int, not int.
69456         (to_year): Returns long int, not int.
69457         Don't treat year -70 like 70.
69458         (tm_diff): Returns long int, not int.
69459         (lookup_word): Use bool instead of int when appropriate.
69460         (yylex): Use size_t for count, not int.
69461         Detect overflow when parsing large integer constants.
69462         Add support for fractions.
69463         (get_date): Make pointers 'const' if possible.
69464         Use more-portable code to detect integer overflow.
69465         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69466         Don't use ctime; it's not reliable if the year has >4 digits.
69467
69468         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69469         This is for compatibility with BSD.
69470
69471         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69472         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69473         From coreutils' system.h.
69474
69475         * lib/userspec.c: Don't include "posixver.h".
69476         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69477         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69478         compatible extension.  Simplify code by removing a boolean int
69479         that was always nonzero if a string was nonnull.
69480
69481 2004-03-30  Jim Meyering  <jim@meyering.net>
69482
69483         Merge from coreutils.
69484
69485         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69486         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69487         on some systems one must include <grp.h> before it.
69488         Reported by Christian Krackowizer.
69489
69490 2004-03-30  Jim Meyering  <jim@meyering.net>
69491
69492         Merge from coreutils.
69493
69494         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69495
69496         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69497         an empty input stream.
69498
69499         * lib/readtokens.c: Include <stdbool.h>.
69500         (readtoken): Use `size_t' rather than int/long.
69501         All callers adjusted.
69502         Use `bool' rather than `int' where appropriate.
69503         Use memset rather than an explicit loop.
69504         Use x2nrealloc rather than xrealloc.
69505         Allow the use of `\0' as a delimiter.
69506         (readtokens): Likewise.
69507         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69508
69509 2004-03-30  Jim Meyering  <jim@meyering.net>
69510
69511         * m4/realloc.m4: Remove file, since now it does no more than
69512         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69513         the `configure.ac' section of module/realloc.
69514         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69515
69516 2004-03-30  Bruno Haible  <bruno@clisp.org>
69517
69518         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69519         nonnull.
69520
69521 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69522
69523         Merge changes to getloadavg.c from coreutils and Emacs.
69524
69525         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69526         Define to an expression, not to the empty string.
69527         Include cloexec.h and xalloc.h.
69528         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69529         Use set_cloexec_flag rather than rolling our own.
69530         * lib/cloexec.c, lib/cloexec.h: New files.
69531
69532 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69533
69534         * m4/cloexec.m4: New file.
69535
69536 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69537
69538         * lib/getopt.h: Sync with libc CVS.
69539
69540 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69541             Bruno Haible  <bruno@clisp.org>
69542
69543         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69544         mbswidth.
69545
69546 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69547             Bruno Haible  <bruno@clisp.org>
69548
69549         * lib/mbswidth.h: Include <wchar.h> only if
69550         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69551         <wchar.h>.
69552         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69553
69554 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69555
69556         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69557         Sync with libc CVS.
69558         * lib/getopt_int.h: New file, also synced from libc.
69559
69560 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69561
69562         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69563         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69564         Bring back getopt.c, getopt.h, getopt1.c.
69565
69566 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69567
69568         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69569         All uses changed.  Check for sa_sigaction member; this fixes
69570         a bug first reported by Jason Andrade in
69571         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69572
69573 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69574
69575         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69576         '#if' expressions.  Unlike the code it replaces, it does not
69577         depend on (defined _SC_PAGESIZE).  However, it does depend on
69578         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69579         first reported by Jason Andrade in
69580         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69581
69582 2004-02-25  Simon Josefsson  <jas@extundo.com>
69583
69584         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69585
69586 2004-02-25  Simon Josefsson  <jas@extundo.com>
69587
69588         * lib/strdup.h: New file.
69589         * lib/strdup.c: Include it.
69590         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69591         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69592
69593 2004-02-23  Karl Berry  <karl@gnu.org>
69594
69595         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69596         (from fencepost.gnu.org:/gd/gnuorg).
69597
69598 2004-02-23  Karl Berry  <karl@gnu.org>
69599
69600         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69601         * config/srclist.txt: add maintain/standards documents.
69602
69603 2004-02-18  Bruno Haible  <bruno@clisp.org>
69604
69605         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69606         Reported by Derek Robert Price <derek@ximbiot.com>.
69607
69608 2004-02-16  Karl Berry  <karl@gnu.org>
69609
69610         * config/mkinstalldirs, install-sh: update from automake.
69611
69612 2004-02-06  Karl Berry  <karl@gnu.org>
69613
69614         * m4/po.m4: update from gettext 0.14.1.
69615
69616 2004-02-06  Karl Berry  <karl@gnu.org>
69617
69618         * lib/config.charset: update from gettext 0.14.1.
69619
69620 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69621
69622         Add comments and code, prompted by suggestions from Bruno Haible
69623         for sh-quote.
69624         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69625         describing the enum quoting_style values.
69626         * lib/quotearg.c (quotearg_alloc): New function.
69627         (quotearg_buffer_restyled): Treat lone { and } as special.
69628         Treat = as special.  Work around bug with older shells
69629         that "see" a '\' that is really the 2nd byte of a multibyte char.
69630         Quote empty string with shell_quoting_style.
69631
69632 2004-02-03  Bruno Haible  <bruno@clisp.org>
69633
69634         * m4/pipe.m4: New file, from GNU gettext.
69635
69636 2004-02-03  Bruno Haible  <bruno@clisp.org>
69637
69638         * lib/pipe.h: New file, from GNU gettext.
69639         * lib/pipe.c: New file, from GNU gettext.
69640
69641 2004-01-27  Bruno Haible  <bruno@clisp.org>
69642
69643         * m4/execute.m4: New file, from GNU gettext.
69644
69645 2004-01-27  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/execute.h: New file, from GNU gettext.
69648         * lib/execute.c: New file, from GNU gettext.
69649         * lib/w32spawn.h: New file, from GNU gettext.
69650
69651 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69652
69653         Merge from diffutils.
69654
69655         * lib/file-type.c (file_type): Add typed memory objects.
69656         * lib/file-type.h (S_TYPEISTMO): New macro.
69657
69658         * lib/c-stack.h (c_stack_action): Remove argv argument.
69659         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69660         (die): Don't calculate message unless segv_action returns.
69661         (get_stack_location, min_address_from_argv, max_address_from_argv,
69662         volatile stack_base, volatile_stack_size): Remove.
69663         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69664         that every segmentation violation is a stack overflow.  (Ouch!)
69665         See Debian bug 136249 (still outstanding) for more info about why
69666         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69667
69668 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69669
69670         Exit-status fix from coreutils.
69671
69672         Use exit_failure consistently in place of EXIT_FAILURE,
69673         so that program exit statuses are consistent on failure.
69674
69675         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69676         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69677         * lib/argmatch.h: Comment fix to match the above.
69678         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69679         Now a macro referring to exit_failure, instead of a separate
69680         variable.  Include "exitfail.h" to get it.
69681         * lib/xstrtol.h: Include "exitfail.h".
69682         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69683
69684         * lib/long-options.c (parse_long_options): Use prototype
69685         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69686         for clarity.
69687
69688 2004-01-21  Jim Meyering  <jim@meyering.net>
69689
69690         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69691         so as not to conflict with a different-sized __mktime_internal
69692         function in GNU libc.
69693         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69694         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69695
69696 2004-01-20  Karl Berry  <karl@gnu.org>
69697
69698         * config/config.guess: update from config.
69699
69700         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69701
69702 2004-01-20  Bruno Haible  <bruno@clisp.org>
69703
69704         Safer stack allocation.
69705         * lib/setenv.c: Include allocsa.h.
69706         (alloca): Remove fallback definition.
69707         (freea): Remove macro.
69708         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69709         instead of freea.
69710
69711 2004-01-20  Bruno Haible  <bruno@clisp.org>
69712
69713         * m4/eealloc.m4: New file, from GNU gettext.
69714
69715 2004-01-20  Bruno Haible  <bruno@clisp.org>
69716
69717         * m4/allocsa.m4: New file, from GNU gettext.
69718
69719 2004-01-20  Bruno Haible  <bruno@clisp.org>
69720
69721         * lib/xallocsa.h: New file, from GNU gettext.
69722         * lib/xallocsa.c: New file, from GNU gettext.
69723
69724 2004-01-20  Bruno Haible  <bruno@clisp.org>
69725
69726         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69727
69728 2004-01-20  Bruno Haible  <bruno@clisp.org>
69729
69730         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69731         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69732         specially.
69733
69734 2004-01-20  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69737         patch.
69738
69739 2004-01-20  Bruno Haible  <bruno@clisp.org>
69740
69741         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69742
69743 2004-01-20  Bruno Haible  <bruno@clisp.org>
69744
69745         * lib/eealloc.h: New file.
69746
69747 2004-01-20  Bruno Haible  <bruno@clisp.org>
69748
69749         * lib/binary-io.h: Avoid warnings on Cygwin.
69750
69751 2004-01-20  Bruno Haible  <bruno@clisp.org>
69752
69753         * lib/allocsa.h: New file, from GNU gettext.
69754         * lib/allocsa.c: New file, from GNU gettext.
69755
69756 2004-01-18  Karl Berry  <karl@gnu.org>
69757
69758         * doc/gpl.texi, doc/lgpl.texi: new files.
69759
69760 2004-01-18  Karl Berry  <karl@gnu.org>
69761
69762         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69763         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69764
69765 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69766
69767         Merge from coreutils.
69768
69769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69770         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69771         (gl_DEFAULT_POSIX2_VERSION): Move
69772         the documentation from 'configure' into 'config.hin',
69773         so that 'configure --help' isn't burdened by it and
69774         we don't have to worry about its formatting there.
69775         Reword the documentation so that it's more succinct
69776         and can be run together into a single paragraph.
69777         * m4/same.m4 (gl_SAME): Check for pathconf.
69778
69779 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69780
69781         Merge from coreutils.
69782
69783         * lib/posixver.c: Include posixver.h.
69784
69785         * lib/same.c: Include <stdbool.h>, <limits.h>.
69786         (_POSIX_NAME_MAX): Define if not defined.
69787         (MIN): New macro.
69788         (same_name): If file names are silently truncated, report
69789         that the file names are the same if they are the same after
69790         the silent truncation.
69791
69792         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69793         conversion function.
69794         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69795         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69796         longer needed.
69797
69798 2004-01-15  Jim Meyering  <jim@meyering.net>
69799
69800         Merge from coreutils.
69801
69802         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69803         if no library is required.
69804         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69805         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69806         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69807         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69808         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69809         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69810         value, $ac_cv_search_crypt, if it's "none required".
69811         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69812         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69813         not gl_FUNC_GETLOADAVG.
69814         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69815         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69816
69817 2004-01-15  Jim Meyering  <jim@meyering.net>
69818
69819         Merge from coreutils.
69820
69821         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69822         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69823         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69824
69825         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69826         optional configure-time default.
69827
69828         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69829
69830         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69831
69832 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69833
69834         Merge from coreutils.
69835
69836         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69837         value, $ac_cv_search_nanosleep, if it's "none required".
69838
69839 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69840
69841         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69842         with like-named macro in fnmatch.c.
69843         (EXT): Use an internal constant instead.
69844
69845         Merge fnmatch patches from glibc.
69846         * lib/fnmatch.c (mbsinit): Remove define.
69847         Add libc_hidden_ver (__fnmatch, fnmatch).
69848         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69849         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69850
69851 2004-01-14  Karl Berry  <karl@gnu.org>
69852
69853         * config/install-sh: update from automake.
69854
69855 2004-01-13  Karl Berry  <karl@gnu.org>
69856
69857         * config/install-sh: update from automake.
69858
69859 2004-01-09  Karl Berry  <karl@gnu.org>
69860
69861         * config/install-sh: update from automake.
69862
69863 2004-01-05  Karl Berry  <karl@gnu.org>
69864
69865         * config/config.{sub,guess}: update from config.
69866
69867 2003-12-31  Karl Berry  <karl@gnu.org>
69868
69869         * config/depcomp: update from automake.
69870
69871 2003-12-14  Karl Berry  <karl@gnu.org>
69872
69873         * lib/config.charset: update from gettext-runtime.
69874
69875 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69876
69877         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69878         Bug reported by Alfred M. Szmidt.
69879
69880 2003-12-03  Bruno Haible  <bruno@clisp.org>
69881
69882         * m4/gettext.m4: Upgrade from gettext-0.13.
69883         * m4/po.m4: Upgrade from gettext-0.13.
69884         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69885         * m4/intmax.m4: New file, from gettext-0.13.
69886         * m4/printf-posix.m4: New file, from gettext-0.13.
69887
69888 2003-11-29  Karl Berry  <karl@gnu.org>
69889
69890         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69891
69892 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69893             Bruno Haible  <bruno@clisp.org>
69894
69895         * lib/printf-parse.h: Don't include sys/types.h.
69896         (ARG_NONE): New macro.
69897         (char_directive): Change type of *arg_index fields to size_t.
69898         * lib/printf-parse.c: Don't include sys/types.h.
69899         (SSIZE_MAX): Remove macro.
69900         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69901         Remove unnecessary overflow check.
69902         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69903         fields.
69904
69905 2003-11-25  Bruno Haible  <bruno@clisp.org>
69906
69907         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69908
69909 2003-11-25  Bruno Haible  <bruno@clisp.org>
69910
69911         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69912         gt_TYPE_SSIZE_T.
69913
69914 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69915
69916         * modules/alloca: Remove dependency on xalloc.
69917
69918 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69919
69920         * lib/alloca.c: Remove dependency on xalloc module.
69921         (xalloc_die): Remove.
69922         (memory_full) [!defined emacs]: New macro.
69923         [!defined emacs]: Don't include xalloc.h.
69924         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69925         address arithmetic overflows.  Change datatypes a bit to avoid
69926         unnecessary casts.
69927
69928 2003-11-22  Jim Meyering  <jim@meyering.net>
69929
69930         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69931         s/size/size_t/.
69932
69933 2003-11-21  Karl Berry  <karl@gnu.org>
69934
69935         * config/config.{sub,guess}: update from config.
69936
69937 2003-11-18  Karl Berry  <karl@gnu.org>
69938
69939         * config/config.{sub,guess}: update from config.
69940
69941         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69942
69943 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69944
69945         * README: Mention that S+T cannot overflow if S is the size of
69946         an existing object and T is sufficiently small.
69947
69948 2003-11-17  Jim Meyering  <jim@meyering.net>
69949
69950         On systems without utime and without a utimes function capable of
69951         dealing with a NULL struct utimbuf* argument, this utime replacement
69952         could -- in unusual circumstances -- leak a file descriptor.
69953         * lib/utime.c: Include <unistd.h> and <errno.h>.
69954         (utime_null): Be sure to close `fd' and to preserve errno.
69955         Reported by Geoff Collyer via Arnold Robbins.
69956
69957 2003-11-17  Bruno Haible  <bruno@clisp.org>
69958
69959         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69960         (Depends-on): Add xsize.
69961
69962 2003-11-17  Bruno Haible  <bruno@clisp.org>
69963
69964         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69965
69966 2003-11-17  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/vasnprintf.c (alloca): Remove fallback definition.
69969         (freea): Remove definition.
69970         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69971         Reported by Paul Eggert.
69972
69973 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69974             Bruno Haible  <bruno@clisp.org>
69975
69976         Protect against address arithmetic overflow.
69977         * lib/printf-args.h: Include stddef.h.
69978         (arguments): Change type of field 'count' to size_t.
69979         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69980         'unsigned int' where appropriate.
69981         * lib/printf-parse.h: Include sys/types.h.
69982         (char_directive): Change type of *arg_index fields to ssize_t.
69983         (char_directives): Change type of fields 'count', max_*_length to
69984         size_t.
69985         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69986         (SSIZE_MAX): Define fallback value.
69987         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69988         instead of 'int' where appropriate. Check a_allocated, d_allocated
69989         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69990         * lib/vasnprintf.c: Include xsize.h.
69991         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69992         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69993         overflow. Avoid wraparound when converting a width or precision from
69994         decimal to binary.
69995
69996 2003-11-16  Bruno Haible  <bruno@clisp.org>
69997
69998         Update from GNU gettext.
69999         * lib/printf-parse.c: Generalize to it can be compiled for wide
70000         strings.
70001         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70002         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70003         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70004         SNPRINTF): New macros.
70005         Don't include <alloca.h> if the file is used inside libintl.
70006         (local_wcslen): New function, for Solaris 2.5.1.
70007         (VASNPRINTF): Use it instead of wcslen.
70008
70009 2003-11-16  Bruno Haible  <bruno@clisp.org>
70010
70011         * lib/xsize.h (xmax): New function.
70012         (xsum, xsum3, xsum4): Declare as "pure" functions.
70013
70014 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70015
70016         * modules/xalloc (Files): Undo latest change, since xalloc.h
70017         no longer needs SIZE_MAX or PTRDIFF_MAX.
70018
70019 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70020
70021         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70022         gl_PTRDIFF_MAX.
70023
70024 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70025
70026         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70027         "return", to pacify some unknown compiler.  Problem reported
70028         by Joerg Schilling.
70029
70030 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70031
70032         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70033         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70034         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70035         heuristic is just as accurate as far as we know, and it removes a
70036         dependency on size_max.m4 and ptrdiff_max.m4.
70037
70038 2003-11-11  Bruno Haible  <bruno@clisp.org>
70039
70040         * modules/xsize (Files): Add m4/size_max.m4.
70041         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70042
70043 2003-11-11  Bruno Haible  <bruno@clisp.org>
70044
70045         * m4/size_max.m4: New file.
70046         * m4/ptrdiff_max.m4: New file.
70047         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70048         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70049         (gl_XALLOC): Invoke it.
70050
70051 2003-11-11  Bruno Haible  <bruno@clisp.org>
70052
70053         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70054         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70055         defined.
70056
70057 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70058
70059         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70060         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70061         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70062         From Bruno Haible.
70063         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70064         not (size_t) -1, since it's defined here.
70065
70066 2003-11-09  Karl Berry  <karl@gnu.org>
70067
70068         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70069
70070 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70071
70072         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70073         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70074         Reject sizes of exactly SIZE_MAX bytes.
70075         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70076         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70077
70078 2003-11-05  Bruno Haible  <bruno@clisp.org>
70079
70080         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70081         SIZE_MAX defined in <limits.h> on Solaris.
70082
70083 2003-11-04  Jim Meyering  <jim@meyering.net>
70084
70085         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70086         variable names, rather than @VAR@.
70087         * modules/poll: Likewise.
70088
70089 2003-11-04  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/xsize: New file.
70092         * modules/linebreak: Depend on xsize.
70093         * MODULES.html.sh (func_all_modules): Add xsize.
70094
70095 2003-11-04  Bruno Haible  <bruno@clisp.org>
70096
70097         * m4/xsize.m4: New file.
70098
70099 2003-11-04  Bruno Haible  <bruno@clisp.org>
70100
70101         * lib/xsize.h: New file.
70102         * lib/linebreak.c: Include xsize.h.
70103         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70104         argument for overflow.
70105         Suggested by Paul Eggert.
70106
70107 2003-11-03  Karl Berry  <karl@gnu.org>
70108
70109         * config/config.{guess,sub}: update from config.
70110
70111 2003-11-03  Jim Meyering  <jim@meyering.net>
70112
70113         * modules/userspec (lib_SOURCES): Add userspec.h.
70114         (Include): Add "userspec.h".
70115         Improve description.
70116
70117 2003-11-03  Jim Meyering  <jim@meyering.net>
70118
70119         * lib/userspec.c: Include "userspec.h".
70120         * lib/userspec.h: New file.
70121
70122 2003-11-03  Bruno Haible  <bruno@clisp.org>
70123
70124         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70125
70126 2003-11-03  Bruno Haible  <bruno@clisp.org>
70127
70128         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70129         available, to avoid (extremely rare) race condition.
70130         Suggested by Paul Eggert.
70131
70132 2003-11-02  Karl Berry  <karl@gnu.org>
70133
70134         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70135
70136 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70137
70138         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70139         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70140         (read_filesystem_list): Set and use me_type_malloced.
70141         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70142         whatever the type happens to be), for brevity and consistency.
70143         Check for size calculation overflow on Alphas running OSF/1.
70144
70145 2003-10-31  Jim Meyering  <jim@meyering.net>
70146
70147         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70148
70149         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70150
70151 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70152             Bruno Haible  <bruno@clisp.org>
70153
70154         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70155         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70156
70157 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70160         netbsd*-gnu*.  Suggested by Robert Millan.
70161
70162 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70163
70164         * modules/group-member: Depend on stdbool.
70165
70166 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70167
70168         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70169
70170 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70171
70172         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70173         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70174         after the 'gnu' in these cases.  This fixes some bugs in the
70175         previous change, and is based on suggestions by Robert Millan.
70176
70177 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70178
70179         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70180         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70181         no longer needed.
70182         * lib/quotearg.c (quotearg_n_options): Use it.
70183         * lib/group-member.c: Include <stdbool.h>.
70184         (free_group_info): Arg is now const *; don't free arg.
70185         (get_group_info): Now returns bool and accepts struct group_info *,
70186         rather than returning a malloc'ed struct group_info *.
70187         All uses changed.  Check for overflow in internal size calculation.
70188
70189         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70190         rather than xmalloc/xrealloc.
70191         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70192         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70193         conformance bug: the old code used a pointer after freeing the
70194         storage that it addressed.
70195         * lib/hash.c (hash_initialize): Simplify the code by using
70196         xalloc_oversized rather than doing it by hand.
70197         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70198         the buffer preserved.  Use free and xmalloc instead.
70199         * lib/quotearg.c (quotearg_n_options): Likewise.
70200         Use a simpler test for size overflow.  Don't use xalloc_oversized
70201         because unsigned int might be wider than size_t (!); this suggests
70202         that we should switch from unsigned int to size_t for slot numbers.
70203
70204 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70205
70206         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70207         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70208         NetBSD kernels.  Requested by Richard Stallman.
70209
70210 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70211
70212         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70213         to allocate the returned structure.  Do not allocate a subarray,
70214         as x2nrealloc will do that.
70215         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70216         instead of xnrealloc.
70217         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70218
70219 2003-10-27  Bruno Haible  <bruno@clisp.org>
70220
70221         * lib/stdbool_.h: Better support for BeOS.
70222
70223 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70224
70225         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70226         now uses inline.
70227
70228 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70229
70230         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70231         callers that want to do their own size-overflow checking.  Include
70232         <stdbool.h>, since xalloc_oversized returns bool.
70233         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70234         to use xalloc_oversized.
70235
70236         Add two functions x2realloc, x2nrealloc, for programs that grow
70237         arrays dynamically by doubling their sizes.
70238         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70239         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70240         New functions.
70241
70242         Port to C99 semantics for 'inline' of external functions.
70243         Bug reported by Bruno Haible.
70244         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70245         with the old contents of xnmalloc.
70246         (xnmalloc, xmalloc): Use it.
70247         (xnrealloc_inline): New static inline function,
70248         with the old contents of xnrealloc.
70249         (xnrealloc, xrealloc): Use it.
70250
70251         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70252         that.
70253
70254 2003-10-26  Karl Berry  <karl@gnu.org>
70255
70256         * config/srclist.txt (COPYING.DOC): no longer available from
70257         /gd/gnuorg; don't know where the ultimate source is.
70258
70259 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70260
70261         Fix several address-calculation bugs in the hash modules,
70262         plus some minor code cleanup.
70263
70264         * lib/hash.h: Include <stdbool.h>, for bool.
70265         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70266         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70267         hash_get_n_entries, hash_get_max_bucket_length,
70268         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70269         hash_rehash): Use size_t rather than unsigned.
70270         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70271         hash_get_n_buckets_used, hash_get_n_entries,
70272         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70273         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70274         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70275         Likewise.
70276         (SIZE_MAX): Define if not defined.
70277         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70278         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70279         hash_print):
70280         Use const * when possible.
70281         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70282         (check_tuning): Fix bug: if tuning parameters were very close to
70283         0 or 1, rounding errors could have caused subscript violations.
70284         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70285         (hash_initialize): Add 'fail:' label
70286         to free table and return NULL, and use it to simplify code.
70287         Use calloc rather than clearing the storage ourself.
70288         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70289         buffer size calculations.
70290         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70291         Include <stddef.h>, for size_t.
70292         * lib/hash-pjw.c (hash_pjw): Likewise.
70293         Switch to method described by Bruno Haible.
70294         Include <limits.h>, for CHAR_BIT.
70295         (SIZE_BITS): New macro.
70296
70297 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70298
70299         * m4/getline.m4 (AM_FUNC_GETLINE):
70300         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70301         hosts.  Problem reported by Derek Robert Price in
70302         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70303         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70304         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70305
70306 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70307
70308         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70309         ceiling the allocation at NMAX bytes rather than silently
70310         discarding input bytes before NMAX is reached.  This makes
70311         a difference only if NMAX exceeds SIZE_MAX / 2.
70312
70313         * lib/obstack.c: Merge from glibc.
70314         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70315         Add libc_hidden_def (_obstack_newchunk).
70316         (_obstack_free) [! defined _LIBC]: Remove.
70317         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70318         a clone of the function body.
70319         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70320         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70321
70322         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70323         glibc.
70324         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70325         arg to memcpy.
70326
70327         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70328         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70329         Don't use lvalue casts, as GCC plans to remove support for them
70330         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70331         was also present in the non-GCC version, indicating that this
70332         code had always been buggy and had never been widely used.
70333         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70334         Use the fast variant of each macro, rather than copying the
70335         definiens of the fast variant; that way, we'll be more likely to
70336         catch future bugs in the fast variants.
70337
70338 2003-10-20  Bruno Haible  <bruno@clisp.org>
70339
70340         * modules/wait-process: New file.
70341         * MODULES.html.sh (func_all_modules): Add wait-process.
70342
70343 2003-10-20  Bruno Haible  <bruno@clisp.org>
70344
70345         * m4/wait-process.m4: New file.
70346
70347 2003-10-20  Bruno Haible  <bruno@clisp.org>
70348
70349         * lib/wait-process.h: New file, from GNU gettext.
70350         * lib/wait-process.c: New file, from GNU gettext.
70351
70352 2003-10-19  Jim Meyering  <jim@meyering.net>
70353
70354         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70355         HPUX 10.20.
70356
70357 2003-10-18  Karl Berry  <karl@gnu.org>
70358
70359         * config/config.guess: update from config.
70360
70361 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70362
70363         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70364         (getgroups): First arg is int, not size_t.
70365         Don't let 'free' mangle errno.
70366
70367 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70368
70369         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70370
70371 2003-10-16  Karl Berry  <karl@gnu.org>
70372
70373         * config/config.{guess,sub}: update from config.
70374
70375 2003-10-16  Jim Meyering  <jim@meyering.net>
70376
70377         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70378         memcpy.
70379
70380 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70381
70382         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70383         (SIZE_MAX): Remove.
70384         (new_exclude, add_exclude_file): Initial size no longer needs to
70385         be a power of 2.
70386         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70387         our own address arithmetic overflow checking.
70388
70389         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70390         (fnmatch): Do not alloca more than 2000 wide characters;
70391         instead, use malloc for large buffers.
70392         Check for address arithmetic overflow, and return -1
70393         with errno set to ENOMEM in that case.
70394         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70395         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70396         instead, return -1.  Check for address arithmetic overflow.
70397
70398 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70399
70400         Handle invalid suffixes and overflow independently, so that
70401         callers can treat them independently as needed.  Fix some bugs in
70402         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70403         suffix for a human-readable blocksize.  The major caller-visible
70404         change is the addition of a new
70405         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70406         that both overflow and suffix chars were found.
70407
70408         * lib/human.c (humblock): Don't check separately for invalid suffix
70409         char; that is xstrtoumax's job (now that its bug is fixed).
70410         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70411         INTMAX_MAX]: New macros.
70412         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70413         TYPE_MAXIMUM): New macros.
70414         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70415         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70416         if overflow occurs, as it's what __strtol does and it's more useful
70417         in practice.
70418         (__xstrtol): If __strtol reports some error other than ERANGE,
70419         reflect it to the caller as LONGINT_INVALID.  If it reports
70420         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70421         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70422         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70423         value.
70424         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70425         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70426         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70427         [defined UINTMAX_MAX]: New macros.
70428
70429 2003-10-14  Bruno Haible  <bruno@clisp.org>
70430
70431         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70432
70433 2003-10-14  Bruno Haible  <bruno@clisp.org>
70434
70435         * m4/sig_atomic_t: New file, from GNU gettext.
70436         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70437
70438 2003-10-14  Bruno Haible  <bruno@clisp.org>
70439
70440         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70441         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70442         Also use volatile where needed.
70443
70444 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70445
70446         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70447         Change maintainer from Bruno Haible to 'all'.
70448
70449 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70450
70451         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70452
70453 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70454
70455         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70456         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70457         and define in terms of the other primitives.
70458         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70459         (SIZE_MAX): Define if not already defined.
70460         (array_size_overflow): New function.
70461         (xalloc_die): Abort instead of exiting if 'error' returns.
70462         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70463         (xmalloc, xrealloc): Use them.
70464         (xcalloc): Check for address arithmetic overflow.
70465         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70466         a bit faster than strcpy.
70467
70468 2003-10-10  Simon Josefsson  <jas@extundo.com>
70469
70470         * modules/argp (Depends-on): Add restrict and strcase.
70471
70472 2003-10-10  Simon Josefsson  <jas@extundo.com>
70473
70474         * m4/argp.m4: Add AC_C_INLINE.
70475
70476 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70477
70478         Merge getpass from libc, plus a few fixes.
70479
70480         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70481         Include <stdbool.h>.
70482         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70483         __fsetlocking to empty.
70484         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70485         do include <bits/libc-lock.h>.
70486         Do not include <fcntl.h>; not needed.
70487         [_LIBC]: Include <wchar.h>.
70488         (NOTCANCEL_MODE): New macro.
70489         (flockfile, funlockfile) [_LIBC]: New macros.
70490         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70491         [!_LIBC]: New macros.
70492         (call_fclose): New function.
70493         (getpass): Use it.  Save tty stream separately; this simplifies the
70494         code and makes it more reliable if stdin happens to equal stdout.
70495         Invoke __fsetlocking on tty.
70496         Handle thread cancellation if needed.
70497         Namespace cleanup (use __tcgetattr, __getline).
70498         Use bool for Booleans.
70499         [USE_IN_LIBIO]: Handle wide streams.
70500         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70501         stream might go where.
70502
70503         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70504         doesn't have to include <stdio.h> before us.
70505         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70506         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70507         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70508         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70509         if not declared, so that we can use getpass.c code from libc without
70510         rewriting it.
70511         (flockfile, ftrylockfile, funlockfile): New macros.
70512
70513 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70514
70515         * modules/getpass: Depend on stdbool.
70516
70517 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70518
70519         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70520
70521 2003-10-07  Karl Berry  <karl@gnu.org>
70522
70523         * config/config.{guess,sub}: update from config.
70524
70525 2003-10-06  Jim Meyering  <jim@meyering.net>
70526             Bruno Haible  <bruno@clisp.org>
70527
70528         This lets translators provide better translations for the
70529         "Written by ..." part of --version output.
70530         * lib/version-etc.h: Include stdarg.h.
70531         (version_etc_copyright): Declare as readonly.
70532         (version_etc): Make this function variadic with a NULL-terminated list
70533         of author name strings.
70534         (version_etc_va): New declaration.
70535         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70536         (version_etc_copyright): Declare as readonly.
70537         (version_etc_va): New function. Provide a different translatable string
70538         for each possible number of authors < 10. Abbreviate when there are 10
70539         authors or more.
70540         (version_etc): Make this function variadic. Call version_etc_va.
70541         Suggestion from Gary V. Vaughan.
70542
70543         * lib/long-options.h (parse_long_options): Change prototype: the
70544         authors string is moved to the end and becomes variadic.
70545         * lib/long-options.c: Include stdarg.h.
70546         (parse_long_options): Make this function variadic, too.
70547         Call version_etc_va, not version_etc.
70548
70549 2003-10-06  Bruno Haible  <bruno@clisp.org>
70550
70551         * modules/version-etc-2: Remove file.
70552         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70553
70554 2003-10-06  Bruno Haible  <bruno@clisp.org>
70555
70556         * modules/fatal-signal: New file.
70557         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70558
70559 2003-10-06  Bruno Haible  <bruno@clisp.org>
70560
70561         * m4/fatal-signal.m4: New file.
70562         * m4/signalblocking.m4: New file, from GNU gettext.
70563
70564 2003-10-06  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/version-etc-2.h: Remove file.
70567         * lib/version-etc-2.c: Remove file.
70568
70569 2003-10-06  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/fatal-signal.h: New file, from GNU gettext.
70572         * lib/fatal-signal.c: New file, from GNU gettext.
70573
70574 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70575
70576         * README: Rework advice for preventing empty .o files.
70577         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70578         not <sys/types.h>.
70579
70580 2003-10-04  Karl Berry  <karl@gnu.org>
70581
70582         * lib/argp*: update from libc.
70583
70584 2003-10-04  Karl Berry  <karl@gnu.org>
70585
70586         * config/config.{guess,sub}: update from config.
70587
70588 2003-10-02  Bruno Haible  <bruno@clisp.org>
70589
70590         * modules/lchown (Include): Add lchown.h.
70591         * modules/time_r (Include): Use "..." syntax.
70592         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70593
70594 2003-10-01  Simon Josefsson  <jas@extundo.com>
70595
70596         * MODULES.html.sh (func_all_modules): Move gethostname from section
70597         'based on' to section 'lacking' POSIX:2001.
70598
70599 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70600
70601         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70602         to output mode on the same stream.
70603
70604 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70605
70606         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70607         Fix arg typo in previous patch.
70608
70609 2003-09-28  Jim Meyering  <jim@meyering.net>
70610
70611         * lib/error.c: Correct cpp indentation.
70612
70613 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70614
70615         * modules/free: New file.
70616
70617 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70618
70619         * m4/free.m4: New file.
70620
70621 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70622
70623         * lib/minmax.h (MIN, MAX)
70624         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70625         Omit the special code that used __typeof__, since we worry that
70626         it could be more trouble than it's worth.  See:
70627         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70628         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70629
70630         * lib/free.c: New file.
70631
70632 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70633
70634         Trivial fixes to Makefile.am parts of module listings.
70635         * modules/strstr: Append strstr.h to lib_SOURCES.
70636         * modules/strcase: Likewise, for strcase.h.
70637
70638 2003-09-27  Karl Berry  <karl@gnu.org>
70639
70640         * config/mkinstalldirs: update from automake.
70641
70642 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70643
70644         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70645         (error_tail): Do not loop, reallocating temporary buffer, since
70646         the output cannot contain more wide characters than the input
70647         contains bytes, the size must be big enough already.  This avoids
70648         one potential size overflow calculation.  Check for size overflow
70649         when calculating temporary buffer size.  Free temporary buffer
70650         when done, if it was allocated with malloc; this plugs a memory
70651         leak.  Remove casts from void * to pointers, that are no longer
70652         needed now that we're assuming C89 or better.
70653
70654         Merge error changes from glibc.
70655
70656         * lib/error.c, error.h: Update copyright notice header to match glibc.
70657         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70658         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70659         Disable cancellation while printing error.
70660         * lib/error.h: Prepend __ to parameter names.
70661
70662 2003-09-26  Jim Meyering  <jim@meyering.net>
70663
70664         * lib/error.c (error_tail): Move some declarations
70665         into inner scope where the local variables are used.
70666
70667 2003-09-26  Bruno Haible  <bruno@clisp.org>
70668
70669         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70670         stpncpy().
70671         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70672
70673 2003-09-26  Bruno Haible  <bruno@clisp.org>
70674
70675         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70676         (stpncpy): Define as alias for gnu_stpncpy.
70677         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70678
70679 2003-09-25  Simon Josefsson  <jas@extundo.com>
70680
70681         * lib/xgetdomainname.h: New file.
70682         * lib/xgetdomainname.c: New file.
70683
70684 2003-09-25  Simon Josefsson  <jas@extundo.com>
70685             Bruno Haible  <bruno@clisp.org>
70686
70687         * modules/getdomainname: New file.
70688         * modules/xgetdomainname: New file.
70689         * MODULES.html.sh (func_all_modules): Add getdomainname,
70690         xgetdomainname.
70691
70692 2003-09-25  Simon Josefsson  <jas@extundo.com>
70693             Bruno Haible  <bruno@clisp.org>
70694
70695         * m4/getdomainname.m4: New file.
70696
70697 2003-09-25  Simon Josefsson  <jas@extundo.com>
70698             Bruno Haible  <bruno@clisp.org>
70699
70700         * lib/getdomainname.h: New file.
70701         * lib/getdomainname.c: New file.
70702
70703 2003-09-25  Karl Berry  <karl@gnu.org>
70704
70705         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70706
70707 2003-09-25  Karl Berry  <karl@gnu.org>
70708
70709         * config/install-sh: update from automake.
70710
70711 2003-09-25  Bruno Haible  <bruno@clisp.org>
70712
70713         * modules/version-etc-2: New file, from modules/version-etc with
70714         modifications.
70715         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70716
70717 2003-09-25  Bruno Haible  <bruno@clisp.org>
70718
70719         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70720         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70721
70722 2003-09-24  Simon Josefsson  <jas@extundo.com>
70723
70724         * modules/xgethostname: Add xgethostname.h.
70725
70726 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70727
70728         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70729         the buffer associated with the argument.  Bug reported by
70730         Simon Josefsson.
70731
70732 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70733
70734         * README: Document assumptions that 'int' is at least 32 bits
70735         wide, that integer arithmetic is 2's complement without overflow,
70736         that there are no holes in integer values, that adding sizes of
70737         two nonoverlapping objects can't overflow, and that all-bits-zero
70738         yields scalar zero.  Fix spelling and capitalization typos.
70739
70740 2003-09-19  Karl Berry  <karl@gnu.org>
70741
70742         * lib/argp.h: update from libc.
70743
70744 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70745
70746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70747         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70748         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70749
70750 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70751
70752         * gnulib-tool: Use "test -h", not "test -L", for portability
70753         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70754         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70755         (sed_extract_prog): Issue s commands one-by-one, rather than
70756         using \| in one s command.
70757
70758 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70759
70760         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70761         input error, instead of returning NULL the next time we are called
70762         (and therefore losing track of errno).
70763
70764 2003-09-16  Bruno Haible  <bruno@clisp.org>
70765
70766         * gnulib-tool (func_create_testdir): Warn about duplicated
70767         dependencies.
70768
70769 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70770
70771         * modules/argmatch, modules/fatal, modules/obstack,
70772         modules/xalloc, modules/xgethostname: Sort dependencies by
70773         importance, not alphabetically.
70774
70775 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70776
70777         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70778         fails, so that the caller gets the proper errno.
70779
70780         * lib/readutmp.c (read_utmp): Likewise.
70781         Check for fstat error.  Close stream and free storage
70782         when failing.
70783
70784 2003-09-14  Karl Berry  <karl@gnu.org>
70785
70786         * config/srclist.txt (strdup.c): disable for c89 changes.
70787
70788 2003-09-14  Jim Meyering  <jim@meyering.net>
70789
70790         * lib/getloadavg.c: Correct cpp indentation.
70791         * lib/strdup.c: Likewise.
70792         * lib/vasnprintf.c: Likewise.
70793
70794 2003-09-14  Bruno Haible  <bruno@clisp.org>
70795
70796         * modules/fwriteerror: New file.
70797         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70798
70799 2003-09-14  Bruno Haible  <bruno@clisp.org>
70800
70801         * lib/fwriteerror.h: New file.
70802         * lib/fwriteerror.c: New file.
70803
70804 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70805
70806         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70807         modules/xgethostname, modules/xalloc: Depend on exit.
70808
70809 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70810
70811         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70812
70813         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70814         and AC_MINIX, too, so that their extensions are available.
70815
70816         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70817         This macro has been superseded by gl_BACKUPFILE.
70818
70819         More patches to assume C89 or better.
70820
70821         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70822
70823         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70824         unconditionally.
70825         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70826         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70827         Include <string.h>, <stdlib.h> unconditionally.
70828         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70829         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70830         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70831         headers or for string.h.
70832         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70833         or strtoul.
70834
70835         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70836         headers.
70837         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70838         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70839         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70840         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70841         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70842         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70843         memcpy, memset.
70844         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70845         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70846         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70847         strtol.
70848         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70849         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70851         strtoul.
70852
70853 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70854
70855         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70856         * lib/obstack.c [!defined _LIBC]: Likewise.
70857         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70858         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70859         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70860
70861         More changes to assume C89 or better.
70862
70863         * lib/error.c (error_tail): Assume vprintf.
70864
70865         * lib/argmatch.c (getenv): Remove decl.
70866         * lib/progreloc.c (get_full_program_name): Define via prototype.
70867         * lib/setenv.c (clearenv): Likewise.
70868         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70869         needed.
70870         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70871         (malloc, memcpy): Remove decls.
70872         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70873         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70874         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70875         (memcpy): Remove macro.
70876         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70877         (__P): Remove.  All uses removed.
70878         (PTR): Remove.  All uses changed to void *.
70879         (CHAR_BIT, NULL): Remove.
70880         (spaces, zeros, memset_space, memset_zero)
70881         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70882         Remove.
70883         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70884         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70885         Define with prototype.
70886         Remove now-unnecessary prototype decl.
70887         (extra_args_spec): Assume ANSI C.  All uses changed.
70888         (extra_args_spec_iso): Remove.
70889         (my_strftime, emacs_strftimeu): Define via prototype.
70890         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70891         unconditionally.
70892         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70893         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70894         (strtoul, strtol): Remove decls.
70895         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70896         LONG_MAX): Remove.
70897         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70898         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70899         (LOCALE_PARAM_PROTO): New macro.
70900         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70901         (INTERNAL (strtol), strtol): Define with a prototype.
70902         (PARAMS): Remove.  All uses removed.
70903         * lib/tempname.c: Include <string.h> unconditionally.
70904         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70905         * lib/xgethostname.c (main): Define with a prototype.
70906         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70907         Include <stdlib.h> unconditionally.
70908         (calloc, malloc, realloc, free): Remove decls.
70909         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70910         Include <stdlib.h> unconditionally.  Sort include file names.
70911         (strtod): Remove.
70912         (xstrtod): Define with a prototype.
70913         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70914         (strtol, strtoul): Remove decls.
70915
70916 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70917
70918         More patches to assume C89 or better.
70919         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70920         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70921         string.h, memchr, STDC_HEADERS.
70922
70923 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70924
70925         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70926         Include <stdlib.h>, <string.h> unconditionally.
70927         Remove now-unnecessary cast to char *.
70928         * lib/strnlen.c: Include <string.h> unconditionally.
70929         * lib/yesno.c (yesno): Define with a prototype.
70930
70931 2003-09-11  Bruno Haible  <bruno@clisp.org>
70932
70933         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70934
70935 2003-09-10  Jim Meyering  <jim@meyering.net>
70936
70937         * lib/error.c: Correct indentation of cpp directives.
70938
70939 2003-09-10  Bruno Haible  <bruno@clisp.org>
70940
70941         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70942         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70943         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70944         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70945         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70946         <stdlib.h> and <string.h> checks.
70947         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70948         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70949
70950 2003-09-10  Bruno Haible  <bruno@clisp.org>
70951
70952         * lib/strcspn.c: Include <string.h> unconditionally.
70953         * lib/strpbrk.c: Include <string.h> unconditionally.
70954         * lib/strstr.c: Include <string.h> unconditionally.
70955         * lib/unicodeio.c: Include <string.h> unconditionally.
70956         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70957         * lib/unsetenv.c: Likewise.
70958         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70959         * lib/yesno.c: Include <stdlib.h> unconditionally.
70960         (rpmatch): Add prototype.
70961
70962 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70963
70964         More patches to assume C89 or better.
70965         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70966         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70967         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70968         or for string.h.
70969         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70970         stdlib.h.
70971         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70972         C headers.
70973         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70974         string.h.
70975         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70976         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70977         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70978         or for string.h.
70979         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70980         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70981         C headers.
70982         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70983         memcpy.
70984         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70985         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70986         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70987         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70988         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70989         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70990         string.h, free.
70991         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70992         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70993         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70994         C headers, or for string.h.
70995         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70996         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70997         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70998         headers, memory.h, stdlib.h, string.h, strings.h.
70999         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71000         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71001         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71002         strchr.
71003         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71004         headers, memory.h, string.h.
71005         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71006         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71007         free.
71008         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71009         headers.
71010         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71011         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71012         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71013         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71014         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71015
71016 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71017
71018         More K&R removal.
71019
71020         * lib/acosl.c (main): Use a prototype.
71021         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71022         tanl.c: Likewise.
71023
71024         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71025
71026         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71027         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71028         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71029         with a prototype.
71030         * lib/getopt.c (const): Remove macro.
71031         Include <string.h> unconditionally.
71032         (my_index): Remove; all uses changed to strchr.
71033         (strlen): Remove decl.
71034         (exchange): Remove forward decl; no longer needed.
71035         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71036         Define with prototype.
71037         * lib/getopt1.c (const): Remove macro.
71038         (getopt_long, getopt_long_only, main): Define with prototype.
71039
71040         * lib/getugroups.c: Include <string.h> unconditionally.
71041
71042         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71043         (getusershell, setusershell, endusershell, readname, main):
71044         Define with prototypes.
71045
71046         * lib/group-member.c: Include group-member.h first.
71047         Include <stdlib.h> unconditionally.
71048
71049         * lib/hard-locale.c: Include hard-locale.h first.
71050         Include <stdlib.h>, <string.h> unconditionally.
71051
71052         * lib/hash.c (free, malloc): Remove decls.
71053         Include <stdlib.h> unconditionally.
71054
71055         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71056         (getenv): Do not declare.
71057
71058         * lib/idcache.c: Include <string.h> unconditionally.
71059
71060         * lib/long-options.c: Include long-options.h first, to test interface.
71061         Include <stdlib.h> unconditionally.
71062
71063         * lib/makepath.c: Include makepath.h first, to test interface.
71064         Include <stdlib.h> and <string.h> unconditionally.
71065
71066         * lib/linebuffer.c: Include <stdlib.h>.
71067         (free): Remove decl.
71068
71069         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71070         stddef.h. rpl_malloc returns void *, not char *.
71071         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71072         prototype.
71073
71074         * lib/md5.h: Include <limits.h> unconditionally.
71075         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71076         (__P): Remove; all uses removed.
71077         * lib/md5.c: Include "md5.h" first.
71078         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71079         md5_buffer, md5_process_bytes, md5_process_block):
71080         Define with prototypes.
71081         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71082         * lib/sha.c: Include "sha.h" first.
71083         Include <stdlib.h>, <string.h> unconditionally.
71084
71085         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71086         * lib/memcmp.c (__ptr_t): Likewise.
71087         * lib/memrchr.c (__ptr_t): Likewise.
71088         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71089         Include <string.h> unconditionally.
71090         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71091         * lib/memchr.c: Include <stdlib.h> unconditionally.
71092         * lib/memchr.c (LONG_MAX): Remove.
71093         * lib/memrchr.c (LONG_MAX): Likewise.
71094         * lib/memchr.c (__memchr): Define via a prototype.
71095         * lib/memrchr.c (__memrchr): Likewise.
71096         * lib/memcmp.c (__P): Remove, and remove all uses.
71097         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71098         Remove forward decls; no longer needed.
71099         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71100         Use types required by C89 in prototype.
71101
71102         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71103         * lib/savedir.c: Likewise.
71104         * lib/mkdir.c (free): Remove decl.
71105         * lib/rmdir.c (rmdir): Define with a prototype.
71106         * lib/savedir.c: Include savedir.h first, to test interface.
71107
71108         * lib/mktime.c (STDC_HEADERS): Remove.
71109         Include <stdlib.h>, <string.h> unconditionally.
71110
71111         * lib/modechange.c: Include <stdlib.h> unconditionally.
71112         (malloc): Remove decl.
71113
71114         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71115         (free): Remove decl.
71116
71117         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71118         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71119         (This type really should be intptr_t, but that's a C99ism.)
71120         (_obstack_memcpy): Remove: all uses changed to memcpy.
71121         Include <string.h> unconditionally.
71122         (struct obstack): Assume __STDC__ for types of members
71123         chunkfun, freefun, extra_arg.
71124         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71125         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71126         obstack_begin, obstack_specify_allocation,
71127         obstack_specify_allocation_with_arg, obstack_chunkfun,
71128         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71129         Remove unprototyped decls and the macros that use them.
71130         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71131         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71132         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71133         (defined __STDC__ && __STDC__)]:
71134         Remove nonprototyped code.
71135         Include <stdlib.h> unconditionally.
71136         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71137         _obstack_allocated_p, _obstack_free, obstack_free,
71138         _obstack_memory_used, print_and_abort):
71139         Define using prototypes.
71140         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71141         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71142         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71143         obstack_next_free, obstack_object_size, obstack_room) [0]:
71144         Remove unused, unprototyped code.
71145
71146         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71147
71148         * lib/physmem.c (physmem_total, physmem_available, main): Define
71149         with prototypes.
71150
71151         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71152         (main): Define with a prototype.
71153
71154         * lib/posixver.c (getenv): Remove decl.
71155
71156         * lib/putenv.c (malloc): Returns void *, not char *.
71157         Include <string.h> unconditionally.
71158         (strchr, memcpy, NULL): Do not define.
71159
71160         * lib/readtokens.c: Include readtokens.h first, to test interface.
71161         Include <stdlib.h>, <string.h> unconditionally.
71162         (init_tokenbuffer): Define with a prototype.
71163
71164         * lib/regex.c (PARAMS): Remove.  All uses removed.
71165         All uses of _RE_ARGS removed, too.
71166         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71167         unconditionally.
71168         (bzero): Assume memset exists.
71169         (memcmp, memcpy, NULL): Remove.
71170         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71171         char, or assignments to local vars of type signed char.
71172         (init_syntax_once, PREFIX(extract_number_and_incr),
71173         PREFIX(print_partial_compiled_pattern),
71174         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71175         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71176         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71177         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71178         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71179         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71180         wcs_compile_range, byte_compile_range, truncate_wchar,
71181         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71182         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71183         count_mbs_length, wcs_re_match_2_internal,
71184         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71185         PREFIX(alt_match_null_string_p),
71186         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71187         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71188         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71189         now-unnecessary declaration, if any.
71190         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71191         regcomp, regexec):
71192         Remove now-unnecessary casts among pointer types.
71193         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71194
71195         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71196         (free): Remove decl.
71197
71198         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71199
71200         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71201         (free): Remove decl.
71202
71203         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71204         * lib/xgetcwd.c: Likewise.
71205
71206         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71207         (free): Remove decl.
71208
71209         * lib/strchrnul.c (strchrnul): Define with a prototype.
71210         Fix bug: c_in was not converted to char before searching.
71211
71212         The following changes are not K&R related:
71213
71214         * lib/group-member.h: Include <sys/types.h>, so that this file is
71215         self-contained.
71216         * lib/makepath.h: Likewise.
71217
71218         * lib/getusershell.c (readname, default_index, line_size, readname):
71219         Use size_t, not int, for sizes.
71220         (readname): If the size overflows, report an error instead of
71221         looping forever.
71222
71223 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71224
71225         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71226         libc.
71227
71228 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71229
71230         * README: New section: portability guidelines.
71231
71232 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71233
71234         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71235         C89 spec.
71236
71237 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71238
71239         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71240
71241 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71242
71243         Assume C89 or better; remove K&R cruft.
71244         A few of these changes were first proposed by Derek Robert Price
71245         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71246
71247         * lib/addext.c: Include <string.h> unconditionally.
71248         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71249         Don't declare getenv or malloc.
71250
71251         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71252         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71253         (NULL): Remove.
71254         (find_stack_direction, alloca): Use prototypes.
71255
71256         * lib/atexit.c (atexit): Define using a prototype.
71257
71258         * lib/basename.c, dirname.c, stripslash.c:
71259         Include <string.h> unconditionally.
71260
71261         * lib/bcopy.c: Include <stddef.h>.
71262         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71263
71264         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71265
71266         * lib/error.h (error, error_at_line, error_print_progname)
71267         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71268         * lib/error.c: Include error.h first, to check interface.
71269         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71270         (VA_START): Remove; all uses changeed to va_start.
71271         (exit, strerror): Remove decls.
71272         (error_print_progname): Prototype uncondionally.
71273         Don't include <errno.h>; no longer needed.
71274         (private_strerror): Remove.
71275         (error_tail): Always define.
71276         (error, error_at_line): Assume C89 or better; always use prototypes.
71277         * lib/fatal.c: Include "fatal.h" first, to test interface.
71278         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71279         (VA_START): Remove; all uses changed to va_start.
71280         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71281         this case.
71282         (exit): Remove decl.
71283         (fatal): Prototype unconditionally.  Assume va_start works.
71284         Abort at end, to pacify gcc.
71285
71286         * lib/euidaccess.c (main): Define with a prototype.
71287
71288         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71289
71290         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71291
71292         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71293         prototypes.
71294         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71295         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71296         (getenv): Remove decl.
71297         (fnmatch): Define using a prototype.
71298         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71299         (FCT): Define using a prototype.
71300
71301         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71302
71303         * lib/gethostname.c: Include <stddef.h>.
71304         (gethostname): Define with prototype.  Length is size_t, not int.
71305
71306 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71307
71308         Assume C89 or better; remove K&R cruft.
71309         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71310         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71311         string.h, getenv, malloc.
71312         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71313         headers.
71314         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71315         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71316         do not check for strerror.
71317         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71318         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71319         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71320         do not check for doprnt or vprintf.
71321         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71322         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71323
71324 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71325
71326         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71327         getversion.c should have been removed then, but was accidentally
71328         preserved.
71329
71330         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71331         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71332
71333 2003-09-08  Karl Berry  <karl@gnu.org>
71334
71335         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71336                 config, forget about prep.
71337
71338         * config/depcomp, missing: update from automake.
71339
71340 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71341
71342         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71344
71345 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71346
71347         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71348         copy_tm_result.  Bug reported by Simon Josefsson in
71349         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71350
71351 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71352
71353         * m4/time_r.m4: New file.
71354         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71356         is. Check for timegm declaration.
71357         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71358         Do not check for gmtime_r.
71359         Replace mktime if __mktime_internal does not exist and if mktime
71360         hasn't been replaced already.
71361
71362 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71363
71364         * lib/time_r.c, lib/time_r.h: New files.
71365
71366         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71367         __localtime_r.
71368         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71369         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71370
71371         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71372         __gmtime_r.
71373         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71374         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71375         Include <time_r.h>.
71376
71377         * lib/timegm.c: Switch to glibc implementation, with the following
71378         changes:
71379         [defined HAVE_CONFIG_H]: Include <config.h>.
71380         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71381         (__mktime_internal) [!defined _LIBC]: New decl.
71382         (__gmtime_r) [!defined _LIBC]: New macro and function.
71383         (timegm): Use a prototype, since gnulib assumes C89.
71384         Do not bother declaring tmp to be const, as it's not really usefu.
71385         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71386         (timegm): Declare only if HAVE_DECL_TIMEGM.
71387
71388 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71389
71390         * MODULES.html.sh (func_all_modules): Add time_r.
71391         * modules/time_r: New file.
71392         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71393         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71394
71395 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71396
71397         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71398         Bug reported by Lute Kamstra in
71399         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71400
71401         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71402         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71403         course with correspondingly smaller numbers for tomorrow and
71404         yesterday.  From Tadayoshi Funaba.  Originally installed into
71405         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71406         coreutils merge?).
71407
71408 2003-08-31  Simon Josefsson  <jas@extundo.com>
71409
71410         * modules/timegm: New file.
71411         * MODULES.html.sh (func_all_modules): Add timegm.
71412
71413 2003-08-31  Simon Josefsson  <jas@extundo.com>
71414
71415         * m4/timegm.m4: New file.
71416
71417 2003-08-31  Simon Josefsson  <jas@extundo.com>
71418
71419         * lib/timegm.h: New file.
71420         * lib/timegm.c: New file.  Based on
71421         wget-1.8.2/src/http.c:mktime_from_utc.
71422
71423 2003-08-31  Karl Berry  <karl@gnu.org>
71424
71425         * lib/argp.h: update from libc.
71426
71427 2003-08-28  Bruno Haible  <bruno@clisp.org>
71428
71429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71430         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71431         followed by '#define fnmatch fnmatch_posix' gives an error.
71432
71433 2003-08-28  Bruno Haible  <bruno@clisp.org>
71434
71435         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71436         warning on QNX, which defines O_BINARY to 000000.
71437
71438 2003-08-27  Jim Meyering  <jim@meyering.net>
71439
71440         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71441         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71442         would fail after 32.  Reported by Danny Levinson.  Details here:
71443         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71444
71445 2003-08-24  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71448         MSVC7 <stdio.h> is included later.
71449
71450 2003-08-22  Simon Josefsson  <jas@extundo.com>
71451
71452         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71453
71454 2003-08-20  Karl Berry  <karl@gnu.org>
71455
71456         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71457
71458 2003-08-20  Bruno Haible  <bruno@clisp.org>
71459
71460         * modules/progname: New file.
71461         * MODULES.html.sh (func_all_modules): Add progname.
71462
71463 2003-08-20  Bruno Haible  <bruno@clisp.org>
71464
71465         * lib/progname.h: New file, from GNU gettext.
71466         * lib/progname.c: New file, from GNU gettext.
71467         * lib/progreloc.c: New file, from GNU gettext.
71468
71469 2003-08-19  Jim Meyering  <jim@meyering.net>
71470
71471         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71472         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71473
71474 2003-08-19  Bruno Haible  <bruno@clisp.org>
71475
71476         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71477         more.
71478
71479 2003-08-19  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/xstrdup.c: Assume <string.h> exists.
71482
71483 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71484
71485         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71486         in makefile rules.
71487
71488 2003-08-18  Jim Meyering  <jim@meyering.net>
71489
71490         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71491         * m4/lib-ld.m4: Likewise.
71492
71493 2003-08-18  Jim Meyering  <jim@meyering.net>
71494
71495         * lib/setenv.h: Indent nested cpp directive.
71496         * lib/vasnprintf.c: Remove trailing blanks.
71497
71498 2003-08-17  Simon Josefsson  <jas@extundo.com>
71499
71500         * modules/xstrndup: New file.
71501         * MODULES.html.sh (func_all_modules): Add xstrndup.
71502
71503 2003-08-17  Simon Josefsson  <jas@extundo.com>
71504
71505         * modules/argp: Fix autoconf macro name. Add more dependencies.
71506
71507 2003-08-17  Simon Josefsson  <jas@extundo.com>
71508
71509         * m4/xstrndup.m4: New file.
71510
71511 2003-08-17  Simon Josefsson  <jas@extundo.com>
71512
71513         * m4/argp.m4: New file.
71514
71515 2003-08-17  Simon Josefsson  <jas@extundo.com>
71516             Bruno Haible  <bruno@clisp.org>
71517
71518         * lib/xstrndup.h: New file.
71519         * lib/xstrndup.c: New file.
71520
71521 2003-08-17  Bruno Haible  <bruno@clisp.org>
71522
71523         * modules/strndup (Files, Include): Add lib/strndup.h.
71524
71525 2003-08-17  Bruno Haible  <bruno@clisp.org>
71526
71527         * modules/euidaccess (Files): Add lib/euidaccess.h.
71528
71529 2003-08-17  Bruno Haible  <bruno@clisp.org>
71530
71531         * lib/strndup.h: New file.
71532
71533 2003-08-17  Bruno Haible  <bruno@clisp.org>
71534
71535         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71536         like AC_GNU_SOURCE.
71537         * modules/extensions (configure.ac): Comment out the invocation of
71538         gl_USE_SYSTEM_EXTENSIONS.
71539
71540 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71541
71542         Merges from coreutils, etc.
71543         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71544         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71545         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71546         fixing a typo.
71547         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71548         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71549
71550 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71551
71552         Document merge from coreutils.
71553         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71554         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71555         * modules/utime: Add m4/utimes-null.m4.
71556
71557 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71558
71559         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71560         space, undoing this 2003-08-12 change:
71561         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71562
71563 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71564
71565         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71566         strtoul.c from libc, undoing this 2003-08-12 change:
71567         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71568
71569 2003-08-16  Jim Meyering  <jim@meyering.net>
71570
71571         Merges from coreutils.
71572         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71573         prefix.  Adjust cache variables similarly.  Create 500 rather than
71574         just 300 files, to exercise bug on Darwin6.5, too.
71575         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71576         $missing_dir.
71577         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71578         AM_SYS_POSIX_TERMIOS.
71579         Reported by mkc@mathdogs.com.
71580         Also change use of $am_cv_sys_posix_termios
71581         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71582         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71583         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71584         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71585         in /proc/mounts until it finds one with matching device number.  This
71586         is unnecessary when the FILE argument *is* a mount point.  No stat call
71587         is necessary in that case.  So, disable the statvfs-testing code on
71588         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71589         as RedHat bug# 84846.
71590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71591         to 1MB, so as not to render systems with no stack size limit (e.g.,
71592         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71593         Include <unistd.h>.  On some systems,
71594         it is required for the definition of _SC_PAGESIZE.
71595
71596 2003-08-16  Jim Meyering  <jim@meyering.net>
71597
71598         Merge from coreutils.
71599         * lib/xstrtoimax.c: #else #if -> #elif.
71600         * lib/xstrtoumax.c: Likewise.
71601
71602 2003-08-16  Jim Meyering  <jim@meyering.net>
71603
71604         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71605         * m4/utimes.m4: Removed.
71606         * m4/utimes-null.m4: Renamed from utimes.m4.
71607
71608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71609         to 1MB, so as not to render systems with no stack size limit (e.g.,
71610         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71611         Include <unistd.h>.  On some systems,
71612         it is required for the definition of _SC_PAGESIZE.
71613
71614 2003-08-16  Jim Meyering  <jim@meyering.net>
71615         and Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         Merges from coreutils, etc.
71618
71619         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71620         using the latest version from cvs.  This avoids problems with #line
71621         directives using a vendor (Sun) compiler.
71622         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71623         Don't set GETGROUPS_LIB here; now it's
71624         done via getgroups.m4's wrapper function.
71625         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71626         rather than just in sh-util/configure.in, so that the
71627         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71628         same.
71629         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71630         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71631         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71632         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71633         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71634         Remove code that is now done by the newly-required macros.
71635         Append $(EXEEXT) to DF_PROG.
71636         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71637         Do not invoke or require the following here,
71638         since prereq.m4 or some gnulib .m4 now does this for us:
71639         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71640         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71641         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71642         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71643         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71644         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71645         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71646         AC_FUNC_OBSTACK.
71647         Do not replace the following functions, as this is now the job
71648         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71649         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71650         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71651         atexit getpass, strdup, getpagesize.
71652         Replace 'raise'.
71653         Do not check for the following functions, as this is now the job
71654         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71655         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71656         setregid.
71657         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71658         Check for sys/sysctl.h.
71659         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71660         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71661         of checking for ssize_t ourselves.
71662
71663         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71664         Require every macro that gnulib/modules/* suggests for us.
71665         (jm_PREREQ_ADDEXT): New macro.
71666         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71667         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71668
71669         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71670         (gl_PHYSMEM): Use it.
71671         Also check for `table' function.
71672         Check for new headers and functions.
71673         Add check for sys/sysmp.h.
71674         With suggestions from Kaveh Ghazi.
71675         Ignore headers that are present but cannot be compiled.  This
71676         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71677         C 5.4.
71678
71679 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71680
71681         Document merge from coreutils.
71682         * modules/userspec: Depend on posixver.
71683         * modules/strftime: Depend on tzset.
71684
71685 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71686
71687         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71688         rather than tab, after '#' in shell-script copyright notices.
71689         Suggested by Bruno Haible.
71690
71691 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71692
71693         * config/srclist-update: Use three spaces, rather than tab, after '#'
71694         in shell-script copyright notices.  Suggested by Bruno Haible.
71695         Remove unnecessary parenthesization in regular expression.
71696
71697 2003-08-15  Jim Meyering  <jim@meyering.net>
71698
71699         Merge from coreutils.
71700         * lib/xgethostname.c: Include <stdlib.h>.
71701         (xghostname): Don't exit for anything other than memory-related
71702         failure; just return NULL.
71703         * lib/userspec.c: Include "posixver.h".
71704         (parse_user_spec): Accept `.' as a separator only
71705         in pre-POSIX-200112 mode.
71706         * lib/strtoimax.c: Use #elif rather than #else #if.
71707         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71708         Remove function, now that we can rely on a working tzset function.
71709         [!_LIBC]: Ensure that the required autoconf test has been run.
71710         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71711         Use underlying_strftime for %r.
71712         * lib/sha.c: Merge in some clean-up and optimization changes from
71713         glibc.
71714         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71715         Ensure that it is a multiple of 64.
71716         Rearrange loop exit tests so as to avoid performing an
71717         additional fread after encountering an error or EOF.
71718         * lib/realloc.c: Update copyright date.
71719
71720 2003-08-15  Jim Meyering  <jim@meyering.net>
71721         and Paul Eggert  <eggert@twinsun.com>
71722
71723         Merge from coreutils.
71724         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71725         member but strut utmpx does not.  Needed for AIX 4.3.3.
71726         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71727
71728 2003-08-15  Jim Meyering  <jim@meyering.net>
71729         and Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         Merges from coreutils, etc.
71732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71733         Require gl_FUNC_TZSET_CLOBBER.
71734         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71735         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71736         members.
71737
71738 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71739
71740         Help the merge from coreutils.
71741         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71742         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71743         * m4/tzset.m4: Use it too.
71744
71745 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71746
71747         * modules/tzset: New file.
71748
71749 2003-08-14  Jim Meyering  <jim@meyering.net>
71750
71751         Merges from coreutils.
71752         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71753         variable names, rather than @FNMATCH_H@.
71754         * modules/alloca: Likewise for $(ALLOCA_H).
71755
71756         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71757         the three copies of the literal target, `fnmatch.h'.
71758         * modules/alloca (alloca.h): Likewise.
71759
71760 2003-08-14  Jim Meyering  <jim@meyering.net>
71761
71762         Merge from coreutils.
71763         * m4/tzset.m4: New file.
71764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71765         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71766         otherwise, AIX 5.1 systems would end up using the latter.
71767         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71768         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71769         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71770         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71771
71772 2003-08-14  Jim Meyering  <jim@meyering.net>
71773
71774         Merge from coreutils.
71775         * lib/obstack.h: Whitespace changes.
71776         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71777         and xcalloc return values.
71778         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71779         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71780         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71781         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71782         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71783         error from mntctl.
71784         Use mntctl's return value to drive the entry-processing loop, since
71785         we can't rely on the value of the vmt_length member in the last
71786         entry.  On some systems doing so could result in exhausting
71787         virtual memory.  Based in part on a patch from Mike Jetzer.
71788
71789 2003-08-14  Jim Meyering  <jim@meyering.net>
71790         and Paul Eggert  <eggert@twinsun.com>
71791
71792         Merges from coreutils, plus other fixes.
71793         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71794         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71795         for credits and details.  Thanks to Kaveh Ghazi for helping
71796         to keep these files in sync.
71797         (ARRAY_SIZE): Define it.
71798         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71799         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71800         (memcasecmp): Don't assume size_t fits in unsigned int.
71801         Remove casts and duplicate code.
71802         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71803         (memcpy): Remove definition.
71804         Merge in some clean-up and optimization changes from glibc.
71805         [BLOCKSIZE]: Move definition to top of file.
71806         Ensure that it is a multiple of 64.
71807         Rearrange loop exit tests so as to avoid performing an
71808         additional fread after encountering an error or EOF.
71809         * lib/md5.h (md5_uintptr): Define.
71810         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71811         return to the initial working directory.  Preserve errno
71812         for caller.
71813         * lib/idcache.c: Include "xalloc.h".
71814         (xmalloc, xrealloc): Remove decls.
71815         (getuser): Remove casts no longer required in C89.
71816         * lib/human.c: Include stdio.h, for sprintf.
71817         * lib/group-member.c: Include "xalloc.h".
71818         (xmalloc, xrealloc): Remove decls.
71819         (get_group_info): Remove casts no longer required in C89.
71820         * lib/getusershell.c (readname): Remove casts no longer required in
71821         C89.
71822         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71823         * lib/getline.c: Whitespace fix, from coreutils.
71824
71825 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71826
71827         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71828         Check for isascii.
71829
71830         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71831         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71832         Undo previous (whitespace-only) change.
71833
71834 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71835
71836         * lib/exclude.c: Include <ctype.h>
71837         (IN_CTYPE_DOMAIN): New macro.
71838         (is_space): New fn.
71839         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71840         and empty lines.
71841
71842         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71843         Undo previous (whitespace-only) change.
71844
71845 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71846
71847         * config/srclist-update: Change update back to the old behavior,
71848         leaving whitespace alone.  Use one 'sed' command rather than a
71849         pipeline.
71850         (fixlicense): Now a variable, not a function.
71851         (remove_trailing_blanks): Remove.
71852         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71853         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71854         Undo previous (whitespace-only) change.
71855
71856 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71857
71858         Merge from coreutils.
71859         * modules/euidaccess: Add lib_SOURCES, include for new
71860         file euidaccess.h
71861
71862 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71863
71864         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71865         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71866         Normalize leading white space and remove trailing white space.
71867
71868         Merge from coreutils
71869         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71870
71871         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71872         0.12.1.  These files are now being upgraded automatically by
71873         ../config/srclist-update.
71874
71875 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71876
71877         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71878         Normalize leading white space and remove trailing white space.
71879         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71880         notice, as per ../config/srclist-update.
71881
71882         Merge from coreutils.
71883         * lib/euidaccess.h: New file.
71884         * lib/euidaccess.c: Include it.
71885         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71886         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71887         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71888
71889 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71890
71891         * config/srclist-update: Add copyright notice.
71892         (remove_id_lines, remove_trailing_blanks): New constants.
71893         (fixfile): Use them to normalize spacing a bit in copied files.
71894         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71895         Normalize leading white space and remove trailing white space.
71896
71897         * config/texinfo.tex: Sync with texinfo.
71898
71899         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71900         strtoul.c from libc, to merge coreutils whitespace changes.
71901
71902         * config/srclist.txt: Get the following m4 files from gettext:
71903         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71904         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71905         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71906         wint_t.m4.
71907
71908 2003-08-12  Karl Berry  <karl@gnu.org>
71909
71910         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71911         been made.
71912
71913 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71914
71915         * modules/gnu-source, m4/gnu-source.m4:
71916         Remove; we're assuming Autoconf 2.54 or later now.
71917         Suggested by Bruno Haible.
71918         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71919
71920 2003-08-11  Bruno Haible  <bruno@clisp.org>
71921
71922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71923
71924 2003-08-11  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71927         (vasnprintf): Use it instead of wcslen.
71928
71929 2003-08-11  Bruno Haible  <bruno@clisp.org>
71930
71931         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71932         value to ensure that _Bool promotes to int. Use #define for _Bool when
71933         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71934
71935 2003-08-10  Karl Berry  <karl@gnu.org>
71936
71937         * lib/regex.h: update from libc (whitespace fix).
71938
71939 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71940
71941         Merge some files from coreutils.  These changes were
71942         originally made by Jim Meyering.
71943         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71944         many older Unixes require this.
71945         * lib/alloca.c (alloca): Remove cast to argument of free;
71946         no longer needed in C89.
71947         * lib/alloca_.h, regex.h: Fix white space to match
71948         what GNU indent does.
71949
71950 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71951
71952         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71953         apparently Emacs's Unicode mode got confused before my 2003-08-05
71954         checkin.
71955
71956 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71957
71958         * m4/extensions.m4: New file.
71959         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71960         Require gl_USE_SYSTEM_EXTENSIONS.
71961         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71962         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71963
71964 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71965
71966         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71967         * modules/extensions, modules/gnu-source: New files.
71968         * modules/timespec, modules/unlocked-io: Depend on extensions.
71969
71970 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71971
71972         * modules/restrict: New file.
71973         * MODULES.html.sh (func_all_modules): Add restrict.
71974         * modules/regex: Depend on restrict.
71975
71976 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71977
71978         * m4/restrict.m4: New file.
71979         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71980
71981 2003-08-07  Bruno Haible  <bruno@clisp.org>
71982
71983         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71984         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71985
71986 2003-08-07  Bruno Haible  <bruno@clisp.org>
71987
71988         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71989         makes the module 'getndelim2' compatible with the module 'getline'.
71990
71991 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71992
71993         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71994         byte with "\201" to avoid glitches when editing that source file
71995         with multi-gnome-terminal.
71996
71997 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71998
71999         * lib/bumpalloc.h: Remove.
72000
72001 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72002
72003         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72004         * modules/bumpalloc: Remove.
72005
72006 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72007
72008         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72009         GNU coding style.
72010
72011         Merge from coreutils.
72012         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72013         1. From glibc.
72014         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72015         from Karl Berry, implemented by Jim Meyering.
72016         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72017         from Dmitry V. Levin.
72018         Remove anachronistic cast of xrealloc.
72019         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72020         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72021         type. Otherwise, it wouldn't compile with at least /bin/cc on
72022         ymp-cray-unicos9.0.2.X.
72023         Combine two mostly-identical uses of alloca into one.
72024         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72025
72026 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72027
72028         [From Emacs.]
72029
72030         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72031         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72032         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72033         obsolete NLIST_NAME_UNION.
72034         [__GNU__]: Undef BSD and FSCALE.
72035         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72036
72037 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72038
72039         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72040         an enum type, so that it's guaranteed to promote to int.  See:
72041         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72042
72043 2003-08-03  Karl Berry  <karl@gnu.org>
72044
72045         * config/depcomp: update from automake.
72046
72047 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72048
72049         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72050         (strerror): Don't assume that a printable int fits in 14 bytes.
72051
72052 2003-07-31  Bruno Haible  <bruno@clisp.org>
72053
72054         * modules/getpass-gnu: New file.
72055         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72056
72057 2003-07-31  Bruno Haible  <bruno@clisp.org>
72058
72059         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72060
72061 2003-07-24  Karl Berry  <karl@gnu.org>
72062
72063         * config/missing: update from automake.
72064
72065 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72066             Bruno Haible  <bruno@clisp.org>
72067
72068         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72069         * lib/getline.c (getline, getdelim): Likewise.
72070         Remove _GNU_SOURCE define; now it's defined in config.h through
72071         m4/getline.m4.
72072
72073 2003-07-23  Karl Berry  <karl@gnu.org>
72074
72075         * config/config.sub: update from prep.
72076
72077 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72078
72079         * modules/xalloc (Depends-on): Add exitfail.
72080         * modules/xmemcoll: Likewise.
72081
72082 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72083
72084         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72085         over-parenthesization in macros.
72086
72087         Sync with coreutils.
72088
72089         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72090         required by C99.
72091
72092         Use `exit_failure' for xalloc and xmemcoll instead of their own
72093         private exit-failure variables.
72094         * lib/xalloc.h (xalloc_exit_failure): Remove.
72095         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72096         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72097         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72098         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72099         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72100
72101 2003-07-20  Jim Meyering  <jim@meyering.net>
72102
72103         * modules/closeout (Depends-on): Add exitfail.
72104         Suggestion from Bruno Haible.
72105
72106 2003-07-19  Karl Berry  <karl@gnu.org>
72107
72108         * config/config.sub: update from prep.
72109
72110 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72111
72112         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72113         Remove.
72114         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72115         to test that it can stand by itself.  Include "exitfail.h".
72116         Clients should set exit_failure instead.
72117         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72118
72119 2003-07-18  Bruno Haible  <bruno@clisp.org>
72120
72121         * modules/getndelim2: New file.
72122         * modules/getline: Share files with module getndelim2.
72123         * modules/getnline: Depend on getndelim2 instead of sharing files with
72124         it. Add getnline.c to lib_SOURCES.
72125         * MODULES.html.sh (func_all_modules): Add getndelim2.
72126
72127 2003-07-18  Bruno Haible  <bruno@clisp.org>
72128
72129         * m4/getndelim2.m4: New file.
72130         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72131         invoke gl_PREREQ_GETNDELIM2.
72132         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72133         gl_PREREQ_GETNDELIM2.
72134         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72135         gl_GETNDELIM2.
72136
72137 2003-07-18  Bruno Haible  <bruno@clisp.org>
72138
72139         * lib/getndelim2.h: New file.
72140         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72141         getndelim2.h.
72142         (getndelim2): Make non-static. Change return type to ssize_t.
72143         * lib/getline.h: Change argument names.
72144         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72145         * lib/getnline.c: Include getndelim2.h.
72146
72147 2003-07-18  Andreas Schwab  <schwab@suse.de>
72148
72149         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72150
72151 2003-07-17  Karl Berry  <karl@gnu.org>
72152
72153         * config/config.sub: update from prep.
72154
72155 2003-07-17  Bruno Haible  <bruno@clisp.org>
72156
72157         * modules/getnline: New file.
72158         * modules/getline: Add lib/getndelim2.c to source file list.
72159         * MODULES.html.sh (func_all_modules): Add getnline.
72160
72161 2003-07-17  Bruno Haible  <bruno@clisp.org>
72162
72163         * m4/getnline.m4: New file.
72164
72165 2003-07-17  Bruno Haible  <bruno@clisp.org>
72166
72167         * m4/Makefile.am.in: Remove file.
72168         * m4/Makefile.am: Remove file.
72169         * m4/Makefile.in: Remove file.
72170
72171 2003-07-17  Bruno Haible  <bruno@clisp.org>
72172
72173         * lib/getnline.h: New file.
72174         * lib/getnline.c: New file.
72175         * lib/getndelim2.c: New file, extracted from getline.c.
72176         (getndelim2): Renamed from getdelim2, with added nmax argument.
72177         * lib/getline.c: Include getndelim2.c.
72178         (getdelim2): Moved out to getndelim2.c.
72179         (getline, getdelim): Update.
72180
72181 2003-07-17  Bruno Haible  <bruno@clisp.org>
72182
72183         * lib/Makefile.am: Remove file.
72184         * lib/Makefile.in: Remove file.
72185
72186 2003-07-17  Bruno Haible  <bruno@clisp.org>
72187
72188         * configure.in: Remove file.
72189         * Makefile.in: Remove file.
72190
72191 2003-07-17  Bruno Haible  <bruno@clisp.org>
72192
72193         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72194
72195 2003-07-16  Karl Berry  <karl@gnu.org>
72196
72197         * config/srclist-update: was running fixlicense twice, which caused
72198                 texinfo.tex to be nullified for some reason.  Simplify,
72199                 $gplsrc is no longer needed as far as I can see?
72200
72201 2003-07-16  Jim Meyering  <jim@meyering.net>
72202
72203         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72204
72205 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72206
72207         * config/srclist.txt: Get the following files from gettext-runtime/intl
72208         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72209         ref-del.sin.  From Bruno Haible.
72210         * config/srclist-update (fixfile): Change grep pattern again, since the
72211         previous fix didn't work (there was another trailing $).  Use
72212         '[$]' to escape the $s.
72213
72214 2003-07-15  Karl Berry  <karl@gnu.org>
72215
72216         * lib/vasnprintf.c: update from gettext.
72217
72218 2003-07-15  Karl Berry  <karl@gnu.org>
72219
72220         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72221         gets expanded when surrounded by '$'.
72222
72223 2003-07-15  Jim Meyering  <jim@meyering.net>
72224
72225         * modules/save-cwd: Don't depend on error.  From Derek Price.
72226
72227 2003-07-15  Jim Meyering  <jim@meyering.net>
72228
72229         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72230
72231 2003-07-14  Simon Josefsson  <jas@extundo.com>
72232
72233         * modules/mempcpy: New file.
72234         * MODULES.html.sh (func_all_modules): Add mempcpy.
72235
72236 2003-07-14  Simon Josefsson  <jas@extundo.com>
72237
72238         * m4/mempcpy.m4: New file.
72239
72240 2003-07-14  Simon Josefsson  <jas@extundo.com>
72241
72242         * lib/mempcpy.h: New file.
72243         * lib/mempcpy.c: New file.
72244
72245 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72246
72247         * modules/getdate, modules/posixtm: Depend on mktime.
72248
72249 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72250
72251         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72252         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72253         unicodeio.c, unicodeio.h, unlocked-io.h:
72254         Switch from LGPL to GPL.
72255
72256 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72257
72258         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72259         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72260         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72261         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72262         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72263         updated automatically by ../config/srclist-update.  This changes
72264         their license from LPGL to GPL.
72265
72266 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72267
72268         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72269         assumed to refer to the root of the most recent stable gettext version.
72270         * config/srclistvars.sh: Add defaults for eggert.
72271         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72272         Match "This program" as well as "The program".  This is needed
72273         for gettext.
72274
72275 2003-07-14  Jim Meyering  <jim@meyering.net>
72276
72277         Don't emit diagnostics.  Let callers do that.
72278         * lib/save-cwd.c: Don't include "error.h".
72279         (save_cwd): Don't call error.  Ensure that errno is valid
72280         when returning nonzero.
72281
72282         * lib/save-cwd.h (restore_cwd): Update prototype.
72283         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72284         Simplify.  Don't call error upon failure.  Let callers do that.
72285         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72286         when auditing is enabled.  But don't bother updating the #if.
72287
72288 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72289
72290         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72291         it breaks C++ compilation.
72292         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72293
72294 2003-07-10  Simon Josefsson  <jas@extundo.com>
72295
72296         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72297
72298 2003-07-10  Jim Meyering  <jim@meyering.net>
72299
72300         * m4/clock_time.m4: Remove trailing blank.
72301         * m4/intmax_t.m4: Likewise.
72302
72303 2003-07-10  Jim Meyering  <jim@meyering.net>
72304
72305         * lib/vasnprintf.c: Remove trailing blanks.
72306         Make cpp indentation consistent.
72307
72308 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72309
72310         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72311         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72312         Switch from LGPL to GPL.
72313
72314 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72315
72316         * config/srclist.txt: Sort sublists.  Add
72317         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72318         that differ from gnulib for one reason or another; we'd like this list
72319         to be smaller but for now let's document what we have.
72320
72321 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72322
72323         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72324         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72325         and sweeter "eval x=$x".
72326         * config/srclist.txt: Get lib/argp* from glibc.
72327
72328 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72329
72330         * lib/mktime.c: Fix some boundary cases and remove need for floating
72331         point.
72332
72333         Issue a compile-time diagnostic if time_t is floating point, or if
72334         two's complement arithmetic is not in effect, or if arithmetic
72335         right shift does not propagate the sign.  These assumptions were
72336         all in the original code but they weren't checked.
72337
72338         (TIME_T_MIDPOINT, verify): New macros.
72339         (__isleap): Remove; it has integer overflow problems.
72340         (leapyear): New function, without those problems.
72341         (ydhms_tm_diff): Remove; splitting into two parts.
72342         (ydhms_diff): New function, containing the arithmetic part of
72343         the old ydhms_tm_diff function.  Issue a compile-time
72344         diagnostic if we are not using C99 integer division.
72345         Avoid casts when possible.
72346         (guess_time_tm): New function, containing the checking part of
72347         the old ydhms_tm_diff function.  Return the new value, rather than
72348         the difference between it and the old.  Accept a new argument T
72349         so that *T specifies the old value.  Check for overflow in the result.
72350
72351         (__mktime_internal): Use a time_t offset, not a long int offset.
72352         This undoes the 2003-06-04 change, which is no longer needed now
72353         that we have better overflow checking.
72354         (localtime_offset): Likewise.
72355
72356         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72357         and long are 64-bit but int is only 32-bit.
72358         (ydhms_diff): Use long int to store year1 and yday1.
72359         Issue a compile-time diagnostic if long int is not wide enough.
72360
72361         (__mktime_internal): Use long int to store adjusted year and yday.
72362         Use plain C rather than preprocessor commands, if that doesn't
72363         affect efficiency.
72364         Check for overflow (and try to repair) after each probe
72365         rather than checking only at the very end.  This avoids some bugs
72366         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72367         does not equal GMT offset at maximum time).
72368         Use integer to check for overflow rather than floating point; this
72369         is more portable to non-IEEE hosts, and is a tad faster.
72370         When we detect that we are oscillating between two values,
72371         don't check whether tm_isdst has the requested value, since
72372         we already know the answer.  When tm_isdst has the wrong value,
72373         use a different heuristic to find the right one, based on the
72374         extreme values actually observed in practice in tz2003a,
72375         rather than the (overly optimistic) "previous 3 calendar quarters".
72376
72377         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72378         "T const" to accommodate glibc style.
72379         (check_result): Use less-confusing report format.  "long" -> "long int.
72380         (main): Likewise.
72381         Don't loop if the iteration overflows time_t.
72382         Allow a negative step in the iteration.
72383
72384 2003-07-06  Karl Berry  <karl@gnu.org>
72385
72386         * config/depcomp: update from automake.
72387         * config/config.sub: update from prep.
72388
72389 2003-07-03  Karl Berry  <karl@gnu.org>
72390
72391         * config/config.guess: update from prep.
72392
72393 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72394
72395         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72396         xreadlink.c now includes it unconditionally.
72397
72398 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72399
72400         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72401         having it depend on HAVE_SYS_TYPES_H.
72402
72403 2003-07-01  Bruno Haible  <bruno@clisp.org>
72404
72405         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72406         <sys/types.h> should be sufficient.
72407         Reported by Paul Eggert.
72408
72409 2003-06-26  Karl Berry  <karl@gnu.org>
72410
72411         * config/depcomp: update from automake.
72412
72413 2003-06-26  Bruno Haible  <bruno@clisp.org>
72414
72415         * modules/human: Depend on module stdbool.
72416
72417 2003-06-25  Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/readlink: New file.
72420         * modules/xreadlink: Depend on it.
72421         * MODULES.html.sh (func_all_modules): Add readlink.
72422
72423 2003-06-25  Bruno Haible  <bruno@clisp.org>
72424
72425         * m4/readlink.m4: New file.
72426
72427 2003-06-25  Bruno Haible  <bruno@clisp.org>
72428
72429         * lib/readlink.c: New file.
72430
72431 2003-06-22  Karl Berry  <karl@gnu.org>
72432
72433         * config/srclist.txt: update mkinstalldirs from automake.
72434         * config/mkinstalldirs: update.
72435
72436 2003-06-22  Bruno Haible  <bruno@clisp.org>
72437
72438         Portability to mingw32.
72439         * m4/ssize_t.m4: New file, from GNU gettext.
72440         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72441         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72442
72443 2003-06-22  Bruno Haible  <bruno@clisp.org>
72444
72445         * modules/safe-read: Add m4/ssize_t.m4.
72446         * modules/xreadlink: Add m4/ssize_t.m4.
72447
72448 2003-06-20  Bruno Haible  <bruno@clisp.org>
72449
72450         Assume C89, so PARAMS isn't needed.
72451         * lib/unicodeio.h (PARAMS): Remove.
72452         * lib/unicodeio.c: Don't use PARAMS.
72453
72454 2003-06-18  Karl Berry  <karl@gnu.org>
72455
72456         * config/config.{guess,sub}: update from prep.
72457
72458 2003-06-18  Jim Meyering  <jim@meyering.net>
72459
72460         Merge changes from coreutils.
72461         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72462         Remove explicit declarations of xmalloc and realloc.
72463         Include xalloc.h.
72464         (read_utmp): Remove anachronistic cast of xmalloc.
72465
72466 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72467
72468         Assume C89, so PARAMS isn't needed.
72469         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72470         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72471         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72472         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72473         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72474         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72475         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72476         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72477         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72478         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72479         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72480         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72481         no longer needed. Anyway, config.h should always be included before any
72482         other file.
72483
72484 2003-06-11  Simon Josefsson  <jas@extundo.com>
72485
72486         * modules/sysexits: New file.
72487         * MODULES.html.sh (func_all_modules): Add sysexits.
72488
72489 2003-06-11  Simon Josefsson  <jas@extundo.com>
72490
72491         * lib/sysexit_.h: New file.
72492
72493 2003-06-11  Derek Price  <derek@ximbiot.com>
72494
72495         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72496         necessary.
72497
72498 2003-06-11  Bruno Haible  <bruno@clisp.org>
72499
72500         * m4/sysexits.m4: New file.
72501
72502 2003-06-10  Simon Josefsson  <jas@extundo.com>
72503
72504         * lib/argp.h: New file, from glibc.
72505         * lib/argp-ba.c: New file, from glibc.
72506         * lib/argp-eexst.c: New file, from glibc.
72507         * lib/argp-fmtstream.c: New file, from glibc.
72508         * lib/argp-fmtstream.h: New file, from glibc.
72509         * lib/argp-fs-xinl.c: New file, from glibc.
72510         * lib/argp-help.c: New file, from glibc.
72511         * lib/argp-namefrob.h: New file, from glibc.
72512         * lib/argp-parse.c: New file, from glibc.
72513         * lib/argp-pv.c: New file, from glibc.
72514         * lib/argp-pvh.c: New file, from glibc.
72515         * lib/argp-xinl.c: New file, from glibc.
72516
72517 2003-06-10  Simon Josefsson  <jas@extundo.com>
72518
72519         * modules/strchrnul: New file.
72520
72521 2003-06-10  Simon Josefsson  <jas@extundo.com>
72522
72523         * modules/argp: New file.
72524
72525 2003-06-10  Simon Josefsson  <jas@extundo.com>
72526
72527         * m4/strchrnul.m4: New file.
72528
72529 2003-06-10  Simon Josefsson  <jas@extundo.com>
72530
72531         * lib/strchrnul.h: New file.
72532         * lib/strchrnul.c: New file.
72533
72534 2003-06-10  Bruno Haible  <bruno@clisp.org>
72535
72536         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72537
72538 2003-06-07  Karl Berry  <karl@gnu.org>
72539
72540         * config/config.{guess,sub}: update from prep.
72541
72542 2003-06-07  Jim Meyering  <jim@meyering.net>
72543
72544         * modules/strtod: Use $(...) notation, not @...@ for
72545         AC_REPLACE'd variables.
72546         * modules/localcharset: Likewise.
72547
72548 2003-06-07  Jim Meyering  <jim@meyering.net>
72549
72550         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72551         in place of my name in the copyright comment.
72552         Remove definition and uses of __P.
72553
72554         From coreutils.
72555         * lib/stat.c: Don't declare xmalloc explicitly.
72556         Instead, include "xalloc.h".
72557         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72558         xrealloc, and xcalloc return values.
72559         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72560         Improve comment.
72561         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72562
72563 2003-06-07  Bruno Haible  <bruno@clisp.org>
72564
72565         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72566         avoid AC_CONFIG_LINKS.
72567         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72568         fnmatch.h, to avoid AC_CONFIG_LINKS.
72569         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72570
72571 2003-06-07  Bruno Haible  <bruno@clisp.org>
72572
72573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72574         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72575         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72576         directory.
72577         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72578         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72579         directory.
72580
72581 2003-06-06  Jim Meyering  <jim@meyering.net>
72582
72583         Merge from coreutils.
72584         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72585         Consolidate declarations and initializations of *_base* locals.
72586
72587         Merge from coreutils.
72588         This avoids a core dump on systems without GNU putenv,
72589         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72590         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72591         (unsetenv): New static function, from GNU libc.
72592         (rpl_putenv): Use it.
72593
72594         * lib/modechange.c: Remove trailing blanks.
72595
72596         Merge from coreutils.
72597         * lib/fsusage.c: Remove declaration of statfs.
72598         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72599
72600         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72601
72602 2003-06-06  Jim Meyering  <jim@meyering.net>
72603
72604         * lib/stdbool_.h: Renamed from stdbool.h.in.
72605
72606 2003-06-06  Jim Meyering  <jim@meyering.net>
72607             Bruno Haible  <bruno@clisp.org>
72608
72609         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72610         Adjust Makefile.am snippet not to redirect directly to target.
72611         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72612
72613 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72614
72615         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72616         mismatch, look in future quarters as well as past.  This fixes a
72617         bug when processing fall-backwards gaps immediately after a long
72618         period of daylight-saving time.
72619
72620         * lib/mktime.c: Assume freestanding C89 or better.
72621         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72622         (__P): Remove; not used.
72623         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72624         (mktime, not_equal_tm, print_tm, check_result,
72625         main): Use prototypes.  Use const * where appropriate.
72626         (main): Fix typo in testing code that uncovered by above changes.
72627         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72628
72629 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72630
72631         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72632         locale.h, localeconv.  This merges changes from coreutils.
72633
72634         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72635         It can be removed after the next Autoconf is released.
72636         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72637         needed.
72638
72639 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72640
72641         * lib/mktime.c: Fix Debian bug 177940
72642         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72643         (localtime_offset): Now long int, not time_t, because we want it
72644         to be guaranteed to be signed.  All uses changed.
72645         (__mktime_internal): If overflow would occur when adding offset,
72646         don't add it.
72647
72648         Merge 'human' changes from coreutils.  Rewrite to support
72649         locale-specific notations like thousands separators.
72650         * lib/human.c: Simplify authorship notice.
72651         Include human.h immediately after config.h.
72652         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72653         <limits.h>: Do not include, since human.h does.
72654         (SIZE_MAX, UINTMAX_MAX): New macros.
72655         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72656         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72657         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72658         (power_letter): Renamed from suffixes.
72659         (generate_suffix_backwards): Remove.
72660         (adjust_value): Now takes int style (because of human.h changes)
72661         and long double value (for greater precision on some platforms).
72662         (group_number): New function.
72663         (human_readable): Use it.  Use integer options, not enum.
72664         Put the options before the sizes in the arg list.
72665         Support all the new options.
72666         The old human_readable function has been removed;
72667         use inttostr.h instead.
72668         (human_readable, default_block_size, humblock):
72669         Use uintmax_t, not int, for block sizes.
72670         (human_readable_inexact, block_size_types): Remove.
72671         (block_size_opts): New constant.
72672         (human_options): Renamed from human_block_size, with new signature
72673         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72674         * lib/human.h: Add copyright and authorship notice.
72675         Include <limits.h> and <stdbool.h> unconditionally.
72676         (PARAMS): Remove.  All uses removed.
72677         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72678         (enum human_inexact_style): Remove tag; now a nameless enum.
72679         (human_floor, human_ceiling, human_round_to_even): Now have
72680         values 2, 0, 1 rather than -1, 1, 0.
72681         (human_group_digits, human_suppress_point_zero, human_autoscale,
72682         human_base_1024, human_SI, human_B): New constants.
72683         (human_readable_inexact, human_block_size): Remove.
72684         (human_readable): Size args are now uintmax_t, not int.
72685         (human_options): New decl.
72686
72687         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72688         unnecessary now that we assume C89 or better.  This change
72689         imported from coreutils.
72690
72691         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72692         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72693         in the 2003-05-30 sync from glibc.
72694
72695         .h files should stand alone, but we shouldn't include <sys/types.h>
72696         if we can get away with just <stddef.h>.
72697
72698         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72699         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72700         rather than <sys/types.h>, as we merely need size_t.
72701         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72702         to get size_t.
72703         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72704         Include <stdio.h>, to get FILE.
72705         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72706         memcasecmp.h has included <stddef.h> and all we need is size_t.
72707         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72708         our interface, instead of including <sys/types.h>
72709
72710 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72711
72712         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72713         now, as glibc mktime is buggy on non-glibc systems.
72714
72715 2003-06-03  Karl Berry  <karl@gnu.org>
72716
72717         * config/config.sub: update from prep.
72718
72719 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72720
72721         [from coreutils]
72722         Fix some minor time-related bugs with POSIX time arguments.
72723         Some valid time stamps were being rejected (notably -1, and
72724         time stamps before 1900 on 64-bit hosts).  And some invalid
72725         time stamps were being accepted, e.g. September 31.
72726
72727         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72728         that we can return (time_t) -1 successfully.
72729         * lib/posixtm.c: Likewise.
72730         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72731         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72732         (t): Remove static var.
72733         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72734         of static var.  All uses changed.
72735         (year): Do not reject years before 1900; they can occur with
72736         64-bit time_t.
72737         (posix_time_parse): Do not check for out-of-range components;
72738         that is now the caller's responsibility, since our checks were
72739         only approximations.
72740         (posixtime): Use mktime to check for out-of-range components,
72741         since it knows them exactly.
72742         If mktime returns (time_t) -1, check whether an error actually occurred
72743         by invoking localtime on -1.
72744         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72745         posixtime failures better.
72746         Improve the test data (in comments only).
72747
72748 2003-06-02  Karl Berry  <karl@gnu.org>
72749
72750         * config/mkinstalldirs (version): new variable.
72751         (--version): new option.
72752         (usage): improve message.
72753
72754 2003-05-30  Karl Berry  <karl@gnu.org>
72755
72756         * lib/mktime.c: update from libc.
72757
72758 2003-05-30  Bruno Haible  <bruno@clisp.org>
72759
72760         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72761         * config/config.rpath: Upgrade to gettext-0.12.1.
72762
72763 2003-05-30  Bruno Haible  <bruno@clisp.org>
72764
72765         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72766         * m4/nls.m4: New file, from gettext-0.12.1.
72767         * m4/po.m4: New file, from gettext-0.12.1.
72768         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72769
72770 2003-05-30  Bruno Haible  <bruno@clisp.org>
72771
72772         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72773         * lib/localcharset.h: Likewise.
72774         * lib/localcharset.c: Likewise.
72775
72776 2003-05-29  Karl Berry  <karl@gnu.org>
72777
72778         * config/config.rpath: update from gettext.
72779
72780 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72781
72782         Assume the headers required for C89 freestanding compilers.
72783         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72784         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72785         * m4/human.m4 (gl_HUMAN): Likewise.
72786         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72787         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72788         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72789         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72791         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72792
72793 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72794
72795         Assume the headers required for C89 freestanding compilers.
72796         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72797         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72798         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72799         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72800         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72801         define, since <limits.h> is guaranteed to do that.
72802         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72803         * lib/exclude.c: Include <stdbool.h> unconditionally.
72804         * lib/tempname.c: Include <stddef.h> unconditionally.
72805         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72806         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72807         <stddef.h> does that.
72808         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72809         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72810         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72811         needed.
72812         * lib/xstrtol.c: Likewise.
72813         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72814         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72815
72816         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72817         warnings on some platforms.
72818
72819         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72820         arbitrarily.
72821
72822 2003-05-26  Jim Meyering  <jim@meyering.net>
72823
72824         Merge in a change from coreutils:
72825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72826         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72827         that condition, rather than `-1' which is slightly misleading.
72828         Change the name of the cache variable to have the gl_ prefix.
72829         Prompted by a patch from Richard Dawe for DJGPP.
72830
72831 2003-05-24  Karl Berry  <karl@gnu.org>
72832
72833         * config/config.guess: update from prep.
72834
72835 2003-05-22  Karl Berry  <karl@gnu.org>
72836
72837         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72838
72839 2003-05-20  Karl Berry  <karl@gnu.org>
72840
72841         * config/config.guess: update from prep.
72842
72843 2003-05-18  Karl Berry  <karl@gnu.org>
72844
72845         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72846         might actually be set by the user.
72847
72848         * config/depcomp, install-sh, mdate-sh: update from automake.
72849
72850 2003-05-17  Bruno Haible  <bruno@clisp.org>
72851
72852         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72853         invalid expansion for AC_EGREP_CPP.
72854         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72855         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72856         Suggested by Akim Demaille <akim@epita.fr> in
72857         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72858
72859 2003-05-12  Jim Meyering  <jim@meyering.net>
72860
72861         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72862         the space-padded-by-default conversion specifiers, %e, %k, %l.
72863
72864 2003-05-12  Bruno Haible  <bruno@clisp.org>
72865
72866         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72867         the string is longer than 4 KB.
72868
72869 2003-05-11  Karl Berry  <karl@gnu.org>
72870
72871         * config/config.{guess,sub}: update from prep.
72872
72873 2003-05-09  Bruno Haible  <bruno@clisp.org>
72874
72875         * modules/error: Add m4/strerror_r.m4 to file list.
72876
72877 2003-05-03  Bruno Haible  <bruno@clisp.org>
72878
72879         Upgrade to Unicode-4.0.
72880         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72881         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72882         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72883         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72884         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72885         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72886         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72887         Change width of U+E0100..U+E01EF from 1 to 0.
72888
72889 2003-04-25  Jim Meyering  <jim@meyering.net>
72890
72891         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72892         of type size_t, not int.
72893
72894 2003-04-25  Bruno Haible  <bruno@clisp.org>
72895
72896         * lib/copy-file.c: Include <stddef.h>, for size_t.
72897
72898 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72899
72900         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72901         code which expansion is under static control.  Patch imported from
72902         Akim Demaille's patch to Bison; see
72903         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72904
72905 2003-04-14  Bruno Haible  <bruno@clisp.org>
72906
72907         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72908
72909 2003-04-11  Jim Meyering  <jim@meyering.net>
72910
72911         Merge changes from Coreutils.
72912
72913         2003-03-22  Jim Meyering  <jim@meyering.net>
72914
72915         * lib/strftime.c (widen): Cast alloca return value to proper type.
72916
72917         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72918
72919         From GNU libc.
72920         * lib/strftime.c (my_strftime): Handle very large width
72921         specifications for numeric values correctly.  Improve checks for
72922         overflow.
72923
72924         2003-01-19  Jim Meyering  <jim@meyering.net>
72925
72926         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72927         definitions.
72928         (nl_get_alt_digit) [! defined my_strftime]: Define.
72929         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72930         _nl_get_alt_digit and _nl_get_walt_digit.
72931
72932         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72933         libc. These changes have no effect outside of _LIBC.
72934
72935 2003-04-10  Bruno Haible  <bruno@clisp.org>
72936
72937         * modules/findprog: New file.
72938         * MODULES.html.sh (func_all_modules): Add it.
72939
72940 2003-04-10  Bruno Haible  <bruno@clisp.org>
72941
72942         * m4/findprog.m4: New file.
72943         * m4/eaccess.m4: New file.
72944
72945 2003-04-10  Bruno Haible  <bruno@clisp.org>
72946
72947         * lib/findprog.h: New file, from GNU gettext.
72948         * lib/findprog.c: New file, from GNU gettext.
72949
72950 2003-04-05  Jim Meyering  <jim@meyering.net>
72951
72952         Merge changes from Coreutils.
72953
72954         * lib/exclude.h (PARAMS): Remove definition and uses.
72955         * lib/exclude.c: Remove uses of `PARAMS'.
72956
72957         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72958         Add test-cases for DOS filenames. Declare program_name.
72959         (main): Set up program_name.  Patch by Rich Dawe.
72960
72961         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72962         error from mntctl.
72963         Use mntctl's return value to drive the entry-processing loop, since
72964         we can't rely on the value of the vmt_length member in the last
72965         entry.  On some systems doing so could result in exhausting
72966         virtual memory.  Based in part on a patch from Mike Jetzer.
72967
72968 2003-04-04  Bruno Haible  <bruno@clisp.org>
72969
72970         * modules/linebreak: New file.
72971         * MODULES.html.sh (func_all_modules): Add it.
72972
72973 2003-04-04  Bruno Haible  <bruno@clisp.org>
72974
72975         * m4/linebreak.m4: New file.
72976
72977 2003-04-04  Bruno Haible  <bruno@clisp.org>
72978
72979         * lib/linebreak.h: New file, from GNU gettext.
72980         * lib/linebreak.c: New file, from GNU gettext with slight
72981         modifications.
72982         * lib/lbrkprop.h: New file, from GNU gettext.
72983
72984 2003-04-03  Bruno Haible  <bruno@clisp.org>
72985
72986         * modules/utf8-ucs4: New file.
72987         * modules/utf16-ucs4: New file.
72988         * modules/ucs4-utf8: New file.
72989         * modules/ucs4-utf16: New file.
72990         * MODULES.html.sh (func_all_modules): Add them.
72991
72992 2003-04-03  Bruno Haible  <bruno@clisp.org>
72993
72994         * m4/utf-ucs4.m4: New file.
72995         * m4/ucs4-utf.m4: New file.
72996
72997 2003-04-03  Bruno Haible  <bruno@clisp.org>
72998
72999         * lib/utf8-ucs4.h: New file, from GNU gettext.
73000         * lib/utf16-ucs4.h: New file, from GNU gettext.
73001         * lib/ucs4-utf8.h: New file, from GNU gettext.
73002         * lib/ucs4-utf16.h: New file, from GNU gettext.
73003
73004 2003-04-02  Bruno Haible  <bruno@clisp.org>
73005
73006         * modules/binary-io: New file.
73007         * MODULES.html.sh (func_all_modules): Add it.
73008
73009 2003-04-02  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/binary-io.h: New file, from GNU gettext.
73012
73013 2003-04-01  Bruno Haible  <bruno@clisp.org>
73014
73015         * modules/pathname: New file.
73016         * MODULES.html.sh (func_all_modules): Add it.
73017
73018 2003-04-01  Bruno Haible  <bruno@clisp.org>
73019
73020         * lib/pathname.h: New file, from GNU gettext.
73021         * lib/concatpath.c: New file, from GNU gettext.
73022
73023 2003-03-30  Bruno Haible  <bruno@clisp.org>
73024
73025         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73026
73027 2003-03-30  Bruno Haible  <bruno@clisp.org>
73028
73029         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73030         function chown() doesn't exist.
73031
73032 2003-03-28  Bruno Haible  <bruno@clisp.org>
73033
73034         * modules/copy-file: New file.
73035         * MODULES.html.sh (func_all_modules): Add it.
73036
73037 2003-03-28  Bruno Haible  <bruno@clisp.org>
73038
73039         * m4/copy-file.m4: New file.
73040
73041 2003-03-28  Bruno Haible  <bruno@clisp.org>
73042
73043         * lib/copy-file.h: New file, from GNU gettext.
73044         * lib/copy-file.c: New file, from GNU gettext.
73045
73046 2003-03-18  Jim Meyering  <jim@meyering.net>
73047
73048         * lib/quote.c (quote_n): Fix typo in comment.
73049
73050 2003-03-18  Bruno Haible  <bruno@clisp.org>
73051
73052         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73053         checking.
73054         * m4/onceonly_2_57.m4: Likewise.
73055
73056 2003-03-17  Bruno Haible  <bruno@clisp.org>
73057
73058         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73059         (m4_quote): Remove macro.
73060         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73061
73062 2003-03-14  Jim Meyering  <jim@meyering.net>
73063
73064         Merge changes from Coreutils.
73065         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73066         to be const, in order to avoid warnings.
73067         (obstack_room): Likewise.
73068         (obstack_empty_p): Likewise.
73069
73070 2003-03-14  Bruno Haible  <bruno@clisp.org>
73071
73072         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73073         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73074
73075 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73076
73077         Merge changes from Bison.
73078         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73079         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73080         when compiling Bison 1.875's `bitset bset = obstack_alloc
73081         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73082         * lib/hash.c: Include <stdbool.h> unconditionally.
73083
73084 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73085
73086         * m4/onceonly.m4 (m4_quote): New macro.
73087         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73088         Quote AC_FOREACH variable-expansions properly.
73089
73090 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73091
73092         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73093
73094 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73095
73096         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73097         Reported by Bruce Becker; see:
73098         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73099
73100 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73101             Bruno Haible  <bruno@clisp.org>
73102
73103         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73104         Reported by John Hughes, see
73105         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73106
73107 2003-02-20  Bruno Haible  <bruno@clisp.org>
73108
73109         * MODULES.html.sh (func_all_modules): Add poll.
73110
73111 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73112
73113         * modules/poll: New file.
73114
73115 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73116
73117         * lib/poll_.h: New file.
73118         * lib/poll.c: New file.
73119
73120 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73121
73122         * m4/poll.m4: New file.
73123
73124 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73125
73126         * modules/mathl: New file.
73127
73128 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73129
73130         * lib/mathl.h: New file.
73131         * lib/acosl.c: New file.
73132         * lib/asinl.c: New file.
73133         * lib/atanl.c: New file.
73134         * lib/ceill.c: New file.
73135         * lib/cosl.c: New file.
73136         * lib/expl.c: New file.
73137         * lib/floorl.c: New file.
73138         * lib/frexpl.c: New file.
73139         * lib/ldexpl.c: New file.
73140         * lib/logl.c: New file.
73141         * lib/sincosl.c: New file.
73142         * lib/sinl.c: New file.
73143         * lib/sqrtl.c: New file.
73144         * lib/tanl.c: New file.
73145         * lib/trigl.c: New file.
73146         * lib/trigl.h: New file.
73147
73148 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73149
73150         * m4/mathl.m4: New file.
73151
73152 2003-02-18  Bruno Haible  <bruno@clisp.org>
73153
73154         * MODULES.html.sh (func_all_modules): Add mathl.
73155
73156 2003-02-17  Bruno Haible  <bruno@clisp.org>
73157
73158         * modules/mkdtemp: New module.
73159         * MODULES.html.sh (func_all_modules): Add it.
73160
73161 2003-02-17  Bruno Haible  <bruno@clisp.org>
73162
73163         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73164
73165 2003-02-17  Bruno Haible  <bruno@clisp.org>
73166
73167         * lib/mkdtemp.h: New file, from GNU gettext.
73168         * lib/mkdtemp.c: New file, from GNU gettext.
73169
73170 2003-02-02  Jim Meyering  <jim@meyering.net>
73171
73172         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73173         e.g. glibc-2.2.93.
73174
73175 2003-01-31  Bruno Haible  <bruno@clisp.org>
73176
73177         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73178         'rpl_rename'.
73179         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73180         'rpl_strnlen'.
73181         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73182         'rpl_strtod'.
73183         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73184         'rpl_utime'.
73185
73186 2003-01-31  Bruno Haible  <bruno@clisp.org>
73187
73188         * lib/rename.c: #undef rename before defining rpl_rename.
73189         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73190
73191 2003-01-30  Bruno Haible  <bruno@clisp.org>
73192
73193         * modules/vasnprintf, modules/vasprintf: New modules.
73194         * MODULES.html.sh (func_all_modules): Add them.
73195
73196 2003-01-30  Bruno Haible  <bruno@clisp.org>
73197
73198         * m4/signed.m4: New file, from GNU gettext.
73199         * m4/longdouble.m4: New file, from GNU gettext.
73200         * m4/wchar_t.m4: New file, from GNU gettext.
73201         * m4/wint_t.m4: New file, from GNU gettext.
73202         * m4/vasnprintf.m4: New file.
73203         * m4/vasprintf.m4: New file.
73204
73205 2003-01-30  Bruno Haible  <bruno@clisp.org>
73206
73207         * lib/printf-args.h: New file, from GNU gettext.
73208         * lib/printf-args.c: New file, from GNU gettext.
73209         * lib/printf-parse.h: New file, from GNU gettext.
73210         * lib/printf-parse.c: New file, from GNU gettext.
73211         * lib/vasnprintf.h: New file, from GNU gettext.
73212         * lib/vasnprintf.c: New file, from GNU gettext.
73213         * lib/asnprintf.c: New file, from GNU gettext.
73214         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73215         * lib/vasprintf.c: New file, from GNU gettext.
73216         * lib/asprintf.c: New file, from GNU gettext.
73217
73218 2003-01-29  Bruno Haible  <bruno@clisp.org>
73219
73220         * modules/stpncpy: New module.
73221         * MODULES.html.sh (func_all_modules): Add it.
73222
73223 2003-01-29  Bruno Haible  <bruno@clisp.org>
73224
73225         * m4/stpncpy.m4: New file.
73226
73227 2003-01-29  Bruno Haible  <bruno@clisp.org>
73228
73229         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73230         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73231
73232 2003-01-28  Bruno Haible  <bruno@clisp.org>
73233
73234         * modules/c-ctype: New module.
73235         * MODULES.html.sh (func_all_modules): Add it.
73236
73237 2003-01-28  Bruno Haible  <bruno@clisp.org>
73238
73239         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73240         Paul Eggert.
73241         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73242         Paul Eggert.
73243
73244 2003-01-27  Bruno Haible  <bruno@clisp.org>
73245
73246         * modules/xsetenv: New module.
73247         * MODULES.html.sh (func_all_modules): Add it.
73248
73249 2003-01-27  Bruno Haible  <bruno@clisp.org>
73250
73251         * lib/xsetenv.h: New file, from GNU gettext.
73252         * lib/xsetenv.c: New file, from GNU gettext.
73253
73254 2003-01-23  Jim Meyering  <jim@meyering.net>
73255
73256         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73257         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73258
73259 2003-01-23  Bruno Haible  <bruno@clisp.org>
73260
73261         * modules/minmax: New module.
73262         * MODULES.html.sh (func_all_modules): Add it.
73263
73264 2003-01-23  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73267         Eggert.
73268
73269 2003-01-22  Bruno Haible  <bruno@clisp.org>
73270
73271         * modules/exit: New module.
73272         * MODULES.html.sh (func_all_modules): Add it.
73273
73274 2003-01-22  Bruno Haible  <bruno@clisp.org>
73275
73276         * lib/exit.h: New file, from GNU gettext.
73277
73278 2003-01-19  Bruno Haible  <bruno@clisp.org>
73279
73280         * gnulib-tool: Recognize option --extract-maintainer.
73281         (func_get_maintainer): New function.
73282         * modules/*: Add Maintainer entry.
73283
73284 2003-01-16  Jim Meyering  <jim@meyering.net>
73285
73286         * m4/regex.m4: The `regex' struct is both input and output.
73287         Initialize it before each use.  Patch by Tim Waugh.
73288
73289 2003-01-16  Bruno Haible  <bruno@clisp.org>
73290
73291         * MODULES.html.sh: Add a table of contents. Add the module name as
73292         leftmost column. Add hyperlinks.
73293
73294 2003-01-15  Bruno Haible  <bruno@clisp.org>
73295
73296         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73297
73298 2003-01-15  Bruno Haible  <bruno@clisp.org>
73299
73300         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73301         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73302         suffix.
73303
73304 2003-01-15  Bruno Haible  <bruno@clisp.org>
73305
73306         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73307
73308 2003-01-15  Bruno Haible  <bruno@clisp.org>
73309
73310         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73311         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73312
73313 2003-01-14  Jim Meyering  <jim@meyering.net>
73314
73315         * lib/same.c (same_name): Tweak a comment.
73316
73317 2003-01-14  Bruno Haible  <bruno@clisp.org>
73318
73319         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73320         when a string comparison is sufficient.
73321
73322 2003-01-14  Bruno Haible  <bruno@clisp.org>
73323
73324         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73325         'unsigned int'.
73326
73327 2003-01-14  Bruno Haible  <bruno@clisp.org>
73328
73329         * lib/hash-pjw.c: Add comment about low quality of this function.
73330
73331 2003-01-13  Bruno Haible  <bruno@clisp.org>
73332
73333         * modules/stpcpy: Distribute lib/stpcpy.h.
73334         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73335
73336 2003-01-13  Bruno Haible  <bruno@clisp.org>
73337
73338         * modules/*: Add a description.
73339         * modules/strpbrk: Fix Makefile.am snippet.
73340         * modules/strtoimax: Fix dependencies.
73341         * modules/strtoumax: Likewise.
73342
73343 2003-01-13  Bruno Haible  <bruno@clisp.org>
73344
73345         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73346         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73347         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73348
73349 2003-01-13  Bruno Haible  <bruno@clisp.org>
73350
73351         * gnulib-tool (func_create_testdir): Store config/* files in the main
73352         directory.
73353         * config.rpath: Move to ...
73354         * config/config.rpath: ... here.
73355         * modules/gettext: Contains config/config.rpath, not config.rpath.
73356         * modules/iconv: Likewise.
73357
73358 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73359
73360         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73361         to avoid collisions with libcurses and libreadline.
73362
73363         * m4/getstr.m4: Remove.
73364         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73365
73366 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73367
73368         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73369         to avoid collisions with libcurses and libreadline.
73370
73371         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73372         * lib/getstr.h, getstr.c: Remove.
73373         * lib/getline.c: Include "getline.h", to check interface.
73374         Move body of old getstr.c here: this defines MIN_CHUNK and
73375         declares getdelim2, which is renamed from getstr.
73376         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73377
73378         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73379         All uses changed.
73380         * lib/linebuffer.h: Likewise.
73381         (readline): Remove backward-compatibility macro.
73382
73383 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73384
73385         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73386         to avoid collisions with libcurses and libreadline.
73387         * getstr: Remove.
73388         * MODULES.html.sh: Remove getstr.
73389         * modules/getline: Depend on unlocked-io, not getstr.
73390
73391 2003-01-12  Jim Meyering  <jim@meyering.net>
73392
73393         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73394
73395 2003-01-10  Bruno Haible  <bruno@clisp.org>
73396
73397         * modules/alloca: Change Makefile.am requirements. Simplify Include
73398         requirements. Add lib/alloca_.h to file list.
73399
73400 2003-01-10  Bruno Haible  <bruno@clisp.org>
73401
73402         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73403
73404 2003-01-10  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/alloca_.h: New file.
73407         * lib/getdate.y: Unconditionally include alloca.h.
73408         * lib/makepath.c: Likewise.
73409         * lib/setenv.c: Likewise.
73410         * lib/userspec.c: Likewise.
73411
73412 2003-01-09  Karl Berry  <karl@gnu.org>
73413
73414         * MODULES.html.sh: include `dirname $0` in PATH, to find
73415         gnulib-tool.
73416
73417 2003-01-09  Bruno Haible  <bruno@clisp.org>
73418
73419         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73420         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73421
73422 2003-01-09  Bruno Haible  <bruno@clisp.org>
73423
73424         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73425
73426 2003-01-09  Bruno Haible  <bruno@clisp.org>
73427
73428         * lib/stdbool.h.in: New file.
73429
73430 2003-01-09  Bruno Haible  <bruno@clisp.org>
73431
73432         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73433         * MODULES.html.sh: Likewise.
73434
73435 2003-01-08  Jim Meyering  <jim@meyering.net>
73436
73437         * lib/full-write.c: Undefine and define-away `const' after inclusion
73438         of errno.h, not before.  Suggestion from Bruno Haible.
73439
73440 2003-01-08  Bruno Haible  <bruno@clisp.org>
73441
73442         * modules/full-read: Depend on full-write.
73443
73444 2003-01-08  Bruno Haible  <bruno@clisp.org>
73445
73446         * lib/safe-read.c: Include specification header first, to ensure its
73447         selfcontainedness.
73448         * lib/full-write.c: Likewise.
73449
73450 2003-01-07  Jim Meyering  <jim@meyering.net>
73451
73452         * lib/full-write.c: Rework so that it may serve to define full_read,
73453         too.
73454         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73455
73456 2003-01-07  Bruno Haible  <bruno@clisp.org>
73457
73458         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73459         <inttypes.h>.
73460         * lib/xstrtol.h: Likewise.
73461         * lib/xstrtoimax.c: Likewise.
73462         * lib/xstrtoumax.c: Likewise.
73463         * lib/human.h: Likewise.
73464
73465         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73466         on systems that have <inttypes.h> but not <stdint.h>.
73467
73468 2003-01-07  Bruno Haible  <bruno@clisp.org>
73469
73470         * MODULES.html.sh: Add copyright notice.
73471         (missed_files): Omit CVS directory entries.
73472         (func_module): Make it work with sed-3.02.
73473         * MODULES.txt: Remove file.
73474
73475 2003-01-06  Jim Meyering  <jim@meyering.net>
73476
73477         * lib/version-etc.c: Update year in translatable copyright string.
73478
73479 2003-01-03  Karl Berry  <karl@gnu.org>
73480
73481         * config/config.{guess,sub}: update from prep.
73482
73483 2003-01-02  Karl Berry  <karl@gnu.org>
73484
73485         * doc/COPYING.DOC: belatedly updated to 1.2.
73486
73487 2003-01-01  Karl Berry  <karl@gnu.org>
73488
73489         * gnulib-tool (func_verify_module): report module name $module in
73490         error message, not $1.
73491         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73492         be created, only if it doesn't exist.
73493         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73494
73495 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73496
73497         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73498
73499 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73500
73501         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73502         memcmp if strcoll doesn't work.
73503
73504 2002-12-31  Bruno Haible  <bruno@clisp.org>
73505
73506         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73507         nonempty.
73508
73509 2002-12-31  Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/memcoll.c (STRCOLL): New macro.
73512         (memcoll): Use it.
73513
73514 2002-12-31  Bruno Haible  <bruno@clisp.org>
73515
73516         * lib/localcharset.h: New file.
73517         * lib/localcharset.c: Include it.
73518         * lib/unicodeio.c: Likewise.
73519
73520 2002-12-31  Bruno Haible  <bruno@clisp.org>
73521
73522         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73523         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73524
73525 2002-12-31  Bruno Haible  <bruno@clisp.org>
73526
73527         * lib/getline.h: Include <stddef.h>, for size_t.
73528
73529         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73530         * lib/unicodeio.c: Don't include <stddef.h>.
73531
73532 2002-12-31  Bruno Haible  <bruno@clisp.org>
73533
73534         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73535         HAVE_TM_ZONE.
73536
73537 2002-12-24  Karl Berry  <karl@gnu.org>
73538
73539         * config/config.guess: update from prep.
73540
73541 2002-12-24  Bruno Haible  <bruno@clisp.org>
73542
73543         General infrasructure.
73544         * m4/README: Rewritten.
73545         * m4/onceonly.m4: New file.
73546         * m4/onceonly_2_57.m4: New file.
73547
73548         Module atexit.
73549         * m4/atexit.m4: New file.
73550
73551         Module strtod.
73552         * m4/strtod.m4: New file.
73553
73554         Module strtol.
73555         * m4/strtol.m4: New file.
73556
73557         Module strtoul.
73558         * m4/strtoul.m4: New file.
73559
73560         Module memchr.
73561         * m4/memchr.m4: New file.
73562
73563         Module memcmp.
73564         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73565         (jm_FUNC_MEMCMP): Invoke it.
73566
73567         Module memcpy.
73568         * m4/memcpy.m4: New file.
73569
73570         Module memmove.
73571         * m4/memmove.m4: New file.
73572
73573         Module memset.
73574         * m4/memset.m4: New file.
73575
73576         Module strcspn.
73577         * m4/strcspn.m4: New file.
73578
73579         Module strpbrk.
73580         * m4/strpbrk.m4: New file.
73581
73582         Module strstr.
73583         * m4/strstr.m4: New file.
73584
73585         Module strerror.
73586         * m4/strerror.m4: New file.
73587
73588         Module mktime.
73589         * m4/mktime.m4: Renamed from jm-mktime.m4.
73590         (gl_PREREQ_MKTIME): New macro.
73591         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73592
73593         Module malloc.
73594         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73595         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73596         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73597
73598         Module realloc.
73599         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73600         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73601         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73602
73603         Module strftime.
73604         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73605         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73606         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73607         gl_TM_GMTOFF.
73608         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73609
73610         Module xalloc.
73611         * m4/xalloc.m4: New file.
73612
73613         Module alloca.
73614         * m4/alloca.m4: New file.
73615
73616         Module putenv.
73617         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73618         (jm_FUNC_PUTENV): Invoke it.
73619
73620         Module setenv.
73621         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73622         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73623         when invoked twice.
73624         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73625         gt_FUNC_SETENV.
73626
73627         Module memrchr.
73628         * m4/memrchr.m4: New file.
73629
73630         Module stpcpy.
73631         * m4/stpcpy.m4: New file.
73632
73633         Module strcase.
73634         * m4/strcase.m4: New file.
73635
73636         Module strdup.
73637         * m4/strdup.m4: New file.
73638
73639         Module strnlen.
73640         * m4/strnlen.m4: New file.
73641
73642         Module strndup.
73643         * m4/strndup.m4: New file.
73644
73645         Module xstrtod.
73646         * m4/xstrtod.m4: New file.
73647
73648         Module xstrtol.
73649         * m4/xstrtol.m4: New file.
73650
73651         Module getdate.
73652         * m4/getdate.m4: New file.
73653
73654         Module unlocked-io.
73655         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73656         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73657         * m4/jm-glibc-io.m4n: Remove file.
73658
73659         Module long-options.
73660         * m4/long-options.m4: New file.
73661
73662         Module md5.
73663         * m4/md5.m4: New file.
73664
73665         Module sha.
73666         * m4/sha.m4: New file.
73667
73668         Module getstr.
73669         * m4/getstr.m4: New file.
73670
73671         Module getline.
73672         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73673         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73674         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73675         simply getline. Infoke gl_PREREQ_GETLINE.
73676
73677         Module obstack.
73678         * m4/obstack.m4: New file.
73679
73680         Module hash.
73681         * m4/hash.m4: New file.
73682
73683         Module readtokens.
73684         * m4/readtokens.m4: New file.
73685
73686         Module strverscmp.
73687         * m4/strverscmp.m4: New file.
73688
73689         Module stdbool.
73690         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73691         OSF/1.
73692
73693         Module strtoll.
73694         * m4/strtoll.m4: New file.
73695
73696         Module strtoull.
73697         * m4/strtoull.m4: New file.
73698
73699         Module strtoimax.
73700         * m4/strtoimax.m4: New file.
73701
73702         Module strtoumax.
73703         * m4/strtoumax.m4: New file.
73704
73705         Module xstrtoimax.
73706         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73707         jm_AC_PREREQ_XSTRTOIMAX.
73708         Moved the strtol prerequisites to strtol.m4.
73709         Moved the strtoll prerequisites to strtoll.m4.
73710         Moved the strtoimax prerequisites to strtoimax.m4.
73711
73712         Module xstrtoumax.
73713         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73714         jm_AC_PREREQ_XSTRTOUMAX.
73715         Moved the strtoul prerequisites to strtoul.m4.
73716         Moved the strtoull prerequisites to strtoull.m4.
73717         Moved the strtoumax prerequisites to strtoumax.m4.
73718
73719         Module chown.
73720         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73721         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73722
73723         Module dup2.
73724         * m4/dup2.m4: New file.
73725
73726         Module ftruncate.
73727         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73728         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73729
73730         Module getgroups.
73731         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73732         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73733
73734         Module gettimeofday.
73735         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73736         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73737         gl_PREREQ_GETTIMEOFDAY.
73738
73739         Module mkdir.
73740         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73741         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73742
73743         Module mkstemp.
73744         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73745         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73746         jm_AC_TYPE_UINTMAX_T.
73747         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73748
73749         Module stat.
73750         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73751         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73752
73753         Module lstat.
73754         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73755         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73756
73757         Module timespec.
73758         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73759         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73760         * m4/st_mtim.m4: Indentation.
73761
73762         Module nanosleep.
73763         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73764         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73765         gl_PREREQ_NANOSLEEP.
73766
73767         Module regex.
73768         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73769         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73770         (gl_REGEX): New macro.
73771
73772         Module rename.
73773         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73774         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73775
73776         Module rmdir.
73777         * m4/rmdir.m4: New file.
73778
73779         Module utime.
73780         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73781         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73782         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73783
73784         Module dirname.
73785         * m4/dirname.m4: New file.
73786
73787         Module getopt.
73788         * m4/getopt.m4: New file.
73789
73790         Module unistd-safer.
73791         * m4/unistd-safer.m4: New file.
73792
73793         Module fnmatch.
73794         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73795         declaration.
73796         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73797         (gl_FUNC_FNMATCH_POSIX): New macro.
73798         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73799         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73800         simply fnmatch.
73801
73802         Module exclude.
73803         * m4/exclude.m4: New file.
73804
73805         Module human.
73806         * m4/human.m4: New file.
73807
73808         Module acl.
73809         * m4/acl.m4: Nop.
73810
73811         Module backupfile.
73812         * m4/backupfile.m4: New file.
73813         * m4/d-ino.m4: Indentation.
73814
73815         Module fsusage.
73816         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73817         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73818         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73819
73820         Module dirfd.
73821         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73822         requirements.
73823
73824         Module euidaccess.
73825         * m4/euidaccess.m4: New file.
73826
73827         Module file-type.
73828         * m4/file-type.m4: New file.
73829
73830         Module fileblocks.
73831         * m4/fileblocks.m4: New file.
73832
73833         Module filemode.
73834         * m4/filemode.m4: New file.
73835
73836         Module isdir.
73837         * m4/isdir.m4: New file.
73838
73839         Module lchown.
73840         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73841         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73842
73843         Module makepath.
73844         * m4/makepath.m4: New file.
73845
73846         Module modechange.
73847         * m4/modechange.m4: New file.
73848
73849         Module mountlist.
73850         * m4/mountlist.m4: New file.
73851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73852         Indentation.
73853
73854         Module path-concat.
73855         * m4/path-concat.m4: New file.
73856
73857         Module pathmax.
73858         * m4/pathmax.m4: New file.
73859
73860         Module same.
73861         * m4/same.m4: New file.
73862
73863         Module save-cwd.
73864         * m4/save-cwd.m4: New file.
73865
73866         Module savedir.
73867         * m4/savedir.m4: New file.
73868
73869         Module xgetcwd.
73870         * m4/xgetcwd.m4: New file.
73871         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73872
73873         Module xreadlink.
73874         * m4/xreadlink.m4: New file.
73875
73876         Module safe-read.
73877         * m4/safe-read.m4: New file.
73878
73879         Module safe-write.
73880         * m4/safe-write.m4: New file.
73881
73882         Module closeout.
73883         * m4/closeout.m4: New file.
73884
73885         Module stdio-safer.
73886         * m4/stdio-safer.m4: New file.
73887
73888         Module getpass.
73889         * m4/getpass.m4: New file.
73890
73891         Module getugroups.
73892         * m4/getugroups.m4: New file.
73893
73894         Module group-member.
73895         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73896         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73897
73898         Module idcache.
73899         * m4/idcache.m4: New file.
73900
73901         Module userspec.
73902         * m4/userspec.m4: New file.
73903
73904         Module gettime.
73905         * m4/clock_time.m4: New file.
73906         * m4/gettime.m4: New file.
73907
73908         Module settime.
73909         * m4/settime.m4: New file.
73910
73911         Module posixtm.
73912         * m4/posixtm.m4: New file.
73913
73914         Module gethostname.
73915         * m4/gethostname.m4: New file.
73916
73917         Module canon-host.
73918         * m4/canon-host.m4: New file.
73919
73920         Module gettext.
73921         * m4/codeset.m4: New file, from gettext-0.11.5.
73922         * m4/gettext.m4: New file, from gettext-0.11.5.
73923         * m4/glibc21.m4: New file, from gettext-0.11.5.
73924         * m4/iconv.m4: New file, from gettext-0.11.5.
73925         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73926         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73927         * m4/inttypes.m4: New file, from gettext-0.11.5.
73928         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73929         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73930         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73931         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73932         * m4/lib-link.m4: New file, from gettext-0.11.5.
73933         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73934         * m4/progtest.m4: New file, from gettext-0.11.5.
73935         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73936         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73937         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73938
73939         Module localcharset.
73940         * m4/localcharset.m4: New file.
73941
73942         Module hard-locale.
73943         * m4/hard-locale.m4: New file.
73944
73945         Module mbswidth.
73946         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73947         onceonly macros.
73948         * m4/mbrtowc.m4: Add comment.
73949
73950         Module memcasecmp.
73951         * m4/memcasecmp.m4: New file.
73952
73953         Module memcoll.
73954         * m4/memcoll.m4: New file.
73955
73956         Module unicodeio.
73957         * m4/unicodeio.m4: New file.
73958
73959         Module rpmatch.
73960         * m4/rpmatch.m4: New file.
73961
73962         Module yesno.
73963         * m4/yesno.m4: New file.
73964
73965         Module exitfail.
73966         * m4/exitfail.m4: New file.
73967
73968         Module c-stack.
73969         * m4/c-stack.m4 (gl_C_STACK): New macro.
73970         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73971
73972         Module error.
73973         * m4/error.m4 (gl_ERROR): New macro.
73974         (jm_PREREQ_ERROR): Use onceonly macros.
73975
73976         Module fatal.
73977         * m4/fatal.m4: New file.
73978
73979         Module getloadavg.
73980         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73981         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73982
73983         Module getpagesize.
73984         * m4/getpagesize.m4: New file.
73985
73986         Module getusershell.
73987         * m4/getusershell.m4: New file.
73988
73989         Module physmem.
73990         * m4/physmem.m4: New file.
73991
73992         Module posixver.
73993         * m4/posixver.m4: New file.
73994
73995         Module quotearg.
73996         * m4/quotearg.m4: New file.
73997
73998         Module quote.
73999         * m4/quote.m4: New file.
74000
74001         Module readutmp.
74002         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74003
74004         Module sig2str.
74005         * m4/sig2str.m4: New file.
74006
74007         Other.
74008         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74009         ulonglong.m4.
74010         * m4/intmax_t.m4: New file.
74011         * m4/d-type.m4: Indentation.
74012         * m4/jm-macros.m4: Update.
74013         * m4/prereq.m4 (jm_PREREQ): Update.
74014         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74015         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74016         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74017         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74018         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74019         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74020         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74021         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74022         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74023         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74024         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74025         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74026         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74027         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74028         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74029         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74030         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74031         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74032         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74033
74034 2002-12-24  Bruno Haible  <bruno@clisp.org>
74035
74036         * MODULES.txt: Update according to m4/ changes.
74037
74038         Module gettext.
74039         * config.rpath: New file, from gettext-0.11.5.
74040
74041         * modules/*: New module descriptions.
74042         * gnulib-tool: New file.
74043         * MODULES.html.sh: New file.
74044
74045 2002-12-21  Karl Berry  <karl@gnu.org>
74046
74047         * doc/fdl.texi: update to version 1.2.
74048
74049 2002-12-19  Karl Berry  <karl@gnu.org>
74050
74051         * config/config.guess: update from prep.
74052
74053 2002-12-18  Bruno Haible  <bruno@clisp.org>
74054
74055         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74056         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74057
74058 2002-12-17  Bruno Haible  <bruno@clisp.org>
74059
74060         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74061         stdlib.h, string.h.
74062
74063 2002-12-17  Bruno Haible  <bruno@clisp.org>
74064
74065         * lib/canon-host.c (strdup): Remove unused declaration.
74066
74067         * lib/fsusage.c: Include full_read.h.
74068         (get_fs_usage): Use full_read instead of safe_read.
74069
74070         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74071
74072 2002-12-12  Karl Berry  <karl@gnu.org>
74073
74074         * config/config.guess: update from prep.
74075
74076 2002-12-11  Bruno Haible  <bruno@clisp.org>
74077
74078         * m4/setenv.m4: New file, from gettext-0.11.5.
74079
74080 2002-12-11  Bruno Haible  <bruno@clisp.org>
74081
74082         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74083         not unsetenv().
74084         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74085         modifications:
74086
74087         2002-12-11  Bruno Haible  <bruno@clisp.org>
74088
74089                 * setenv.c (alloca): Fall back to malloc.
74090                 (freea): New macro.
74091                 (setenv): Use freea() to free memory allocated with alloca().
74092
74093         2002-11-13  Bruno Haible  <bruno@clisp.org>
74094
74095                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74096                 function declarations.
74097                 * unsetenv.c (unsetenv): Likewise.
74098
74099         2002-03-04  Bruno Haible  <bruno@clisp.org>
74100
74101                 Portability to AIX 4.3.3.
74102                 * unsetenv.c: New file, extracted from setenv.c.
74103                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74104
74105         2001-12-20  Bruno Haible  <bruno@clisp.org>
74106
74107                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74108                 use malloc instead. For SunOS 4.
74109
74110         2001-12-11  Bruno Haible  <bruno@clisp.org>
74111
74112                 * setenv.c: Declare alloca.
74113                 (compar_fn_t): New typedef.
74114                 (KNOWN_VALUE, STORE_VALUE): Use it.
74115
74116         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74117         setenv.h.
74118
74119 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74120
74121         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74122         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74123         Choose values that are less likely to collide with system fnmatch
74124         options.
74125         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74126         defined (e.g., a pure POSIX system).
74127         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74128         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74129
74130 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74131
74132         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74133         a pain in practice to deal with generated m4 files.  This change
74134         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74135
74136         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74137         and jm-glibc-io.m4, as they are no longer a special case.
74138         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74139         kludge and the auto-generation stuff.  Check only whether the
74140         functions are declared, not whether they exist, since older hosts
74141         that don't declare the functions can't use the optimization anyway.
74142
74143 2002-12-06  Jim Meyering  <jim@meyering.net>
74144
74145         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74146
74147         Merge in changes from libc's misc/error.c, in preparation
74148         for the merge of gnulib's changes back into libc.
74149
74150         * lib/error.c (_): Define only if not already defined.
74151         Move definition to follow all #include directives.
74152         Include unlocked-io.h only if !_LIBC.
74153         [_LIBC]: Include <libio/libioP.h>.
74154         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74155         (fflush): Tweak definition to use INTUSE.
74156         (putc): Define.
74157
74158 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74159
74160         * lib/alloca.c [defined emacs]: Include "lisp.h".
74161         (xalloc_die) [defined emacs]: New macro.
74162         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74163         [! defined emacs]: Include <xalloc.h>.
74164         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74165         (pointer): Typedef to POINTER_TYPE *.
74166         (malloc): Remove decl; we now always use xmalloc.
74167         (alloca): Use old-style definition, since Emacs needs this.
74168         Check for arithmetic overflow when computing combined size.
74169
74170 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74171
74172         Do not generate unlocked-io.h automatically, since it's easier to
74173         maintain it by hand.
74174
74175         * lib/unlocked-io.h: New file, from GNU diffutils,
74176         but with proper copyright notice and attribution.
74177         * lib/gen-uio: Remove.
74178         * lib/Makefile.am: Add copyright notice.
74179         (libfetish_a_SOURCES): Add unlocked-io.h.
74180         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74181         (DISTCLEANFILES, io_functions): Remove macros.
74182         (EXTRA_DIST): Remove gen_uio.
74183         (unlocked-io.h): Remove rule.
74184
74185 2002-12-04  Jim Meyering  <jim@meyering.net>
74186
74187         Reflect the fact that stat.c and lstat.c are no longer generated.
74188         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74189         (DISTCLEANFILES): Likewise.
74190         (EXTRA_DIST): Likewise.
74191         (all_local): Don't depend on stat.c or lstat.c.
74192         (stat.c, lstat.c): Remove rules.
74193         (EXTRA_DIST): Remove xstat.in.
74194
74195         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74196         * lib/stat.c: New file.  Contents mostly from xstat.in.
74197         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74198         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74199
74200         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74201         too.
74202         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74203
74204 2002-12-03  Jim Meyering  <jim@meyering.net>
74205
74206         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74207         but not semantics, to minimize the differences between these two files.
74208         (safe_read): Change comment to mention SAFE_READ_ERROR.
74209
74210         * lib/safe-read.c (IS_EINTR): Define.
74211         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74212
74213 2002-12-02  Jim Meyering  <jim@meyering.net>
74214
74215         * lib/safe-read.c (EINTR): Define.
74216         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74217         (INT_MAX): Provide fallback.
74218         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74219
74220         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74221
74222 2002-12-02  Bruno Haible  <bruno@clisp.org>
74223
74224         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74225         Define, taken from safe-read.c.
74226         (INT_MAX): Provide fallback.
74227         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74228         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74229
74230         * lib/safe-read.c (EINTR): Remove definition.
74231         (safe_read): Don't use EINTR if it is absent.
74232
74233 2002-12-01  Jim Meyering  <jim@meyering.net>
74234
74235         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74236         zero.
74237         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74238
74239 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74240
74241         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74242         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74243         with `if (! (value < limit)) abort ();', for readability.
74244
74245 2002-11-26  Karl Berry  <karl@gnu.org>
74246
74247         * lib/strdup.c: copy from libc again, with jim's ok.
74248         * lib/.cppi-disable: re-add strdup.c
74249
74250 2002-11-25  Karl Berry  <karl@gnu.org>
74251
74252         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74253         instead of "strtol.c".
74254
74255 2002-11-25  Karl Berry  <karl@gnu.org>
74256
74257         * config/install-sh: update from automake for variable quoting, $0 in
74258         error msgs, etc.
74259
74260         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74261         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74262         entry.
74263
74264 2002-11-25  Jim Meyering  <jim@meyering.net>
74265
74266         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74267
74268 2002-11-24  Karl Berry  <karl@gnu.org>
74269
74270         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74271         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74272
74273 2002-11-24  Jim Meyering  <jim@meyering.net>
74274
74275         Update from coreutils:
74276
74277         * lib/mktime.c: Merge in changes from libc.
74278
74279         Avoid a link-time failure on some Linux systems.
74280         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74281         (otherwise).
74282         (__mon_yday): Declare with the STATIC attribute.
74283         (__mktime_internal): Likewise.
74284         Based on a report from Greg Schafer.
74285
74286 2002-11-23  Jim Meyering  <jim@meyering.net>
74287
74288         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74289         Use `unsigned', not `int', as type of index.
74290
74291         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74292
74293         * lib/fsusage.c: Remove unneeded parentheses around operands of
74294         `defined'.
74295
74296 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74297
74298         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74299         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74300         so that we can be included first.
74301         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74302         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74303         No need to include stddef.h or sys/types.h any more.
74304         Surround local include files with "", not "<>".
74305         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74306         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74307         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74308         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74309         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74310         (ISPRINT): Remove; no longer needed now that we assume C89.
74311
74312         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74313         Preserve errno.
74314
74315         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74316         quotearg_char): Use SIZE_MAX rather than
74317         (size_t) -1 when we are talking about "infinity".
74318
74319         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74320
74321 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74322
74323         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74324         hint that one should use `if (! x) abort ();' rather than `assert
74325         (x);', and anyway it's one less thing to worry about configuring.
74326         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74327         hash_rehash, hash_insert): Use abort rather than assert.
74328
74329 2002-11-22  Bruno Haible  <bruno@clisp.org>
74330
74331         * lib/safe-read.h: Assume C89. Add comments.
74332         (safe_read): Change return type to size_t.
74333         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74334         byte counts > SSIZE_MAX correctly.
74335         * lib/safe-write.h: New file.
74336         * lib/safe-write.c: New file.
74337         * lib/full-read.h: New file.
74338         * lib/full-read.c: New file.
74339         * lib/full-write.h: Assume C89. Add comments.
74340         * lib/full-write.c: Include safe-write.h.
74341         (full_write): Rewritten to use safe_write.
74342         Suggested by Jim Meyering and Paul Eggert.
74343
74344 2002-11-21  Jim Meyering  <jim@meyering.net>
74345
74346         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74347
74348         Merge in changes from the coreutils.
74349
74350         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74351         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74352         <stdint.h>.
74353         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74354         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74355         int.  Work more efficiently if X is the same width as uintmax_t.
74356         Do not compare X to -1, to avoid bogus compiler warning.
74357         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74358         Don't assume that f_frsize and f_bsize are the same type.
74359
74360         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74361         warning on FreeBSD.
74362
74363         * lib/makepath.c (make_path): Restore umask *before* creating the final
74364         component.
74365         (make_path): Minor reformatting.
74366
74367         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74368         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74369         HAVE_MALLOC/HAVE_REALLOC.
74370
74371         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74372         dummy ones.  At least on GNU/Linux systems, `auto' means something
74373         else.
74374         From Michael Stone.
74375
74376 2002-11-21  Bruno Haible  <bruno@clisp.org>
74377
74378         Remove case insensitive option matching.
74379         * lib/argmatch.h (argcasematch): Remove declaration.
74380         (ARGCASEMATCH): Remove macro.
74381         (__xargmatch_internal): Remove case_sensitive argument.
74382         (XARGMATCH): Update.
74383         (XARGCASEMATCH): Remove macro.
74384         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74385         case_sensitive argument.
74386         (argcasematch): Remove function.
74387         (__xargmatch_internal): Remove case_sensitive argument.
74388         (main): Use XARGMATCH instead of XARGCASEMATCH.
74389
74390         * lib/xmalloc.c: Change compile-time error message. Add comment about
74391         required autoconf version.
74392
74393 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74394
74395         Merge argmatch cleanups from Bison.  Assume C89.
74396
74397         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74398         Include stdlib.h, for EXIT_FAILURE.
74399         Always include <string.h>, since we assume C89.
74400         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74401         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74402         Include <stddef.h> instead, since it's all we need for size_t.
74403         (PARAMS): Remove.  All uses removed.
74404         (ARRAY_CARDINALITY): Do not bother to #undef.
74405         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74406         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74407         Remove unnecessary parentheses.
74408         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74409         Insert necessary parentheses.
74410         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74411         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74412
74413 2002-11-19  Bruno Haible  <bruno@clisp.org>
74414
74415         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74416         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74417
74418         * lib/mbswidth.h (PARAMS): Remove macro.
74419         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74420         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74421
74422         * lib/gcd.h (PARAMS): Remove macro.
74423         (gcd): Use ANSI C function declarations.
74424         * lib/gcd.c (gcd): Likewise.
74425
74426 2002-11-15  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/strcspn.c: Include <stddef.h>.
74429         (strcspn): Use ANSI C function declaration. Change return type to
74430         size_t. Use NULL.
74431         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74432         (strpbrk): Use NULL.
74433         * lib/strpbrk.h (PARAMS): Remove macro.
74434         (strpbrk): Use ANSI C function declaration.
74435         * lib/strstr.c: Don't include <sys/types.h>.
74436         * lib/strstr.h (PARAMS): Remove macro.
74437         (strstr): Use ANSI C function declarations.
74438
74439 2002-11-14  Karl Berry  <karl@gnu.org>
74440
74441         * config/mkinstalldirs: `do' on separate line, instead of
74442         `for var; do'.
74443
74444 2002-11-06  Bruno Haible  <bruno@clisp.org>
74445
74446         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74447         * lib/gcd.c (gcd): Likewise.
74448
74449 2002-11-05  Bruno Haible  <bruno@clisp.org>
74450
74451         * lib/gcd.h: New file, from gettext-0.11.5.
74452         * lib/gcd.c: New file, from gettext-0.11.5.
74453
74454 2002-11-05  Bruno Haible  <bruno@clisp.org>
74455
74456         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74457         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74458         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74459         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74460
74461         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74462         <libintl.h>.
74463         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74464         <libintl.h>.
74465
74466         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74467         * lib/human.c: Include gettext.h instead of <libintl.h>.
74468         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74469         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74470         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74471         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74472         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74473         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74474         (textdomain): Remove definition.
74475         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74476
74477         * lib/long-options.c: Remove include of <libintl.h> and definition of
74478         _.
74479         * lib/same.c: Remove include of <libintl.h> and definition of _.
74480
74481 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74482
74483         * lib/config.charset: A few additions for Solaris.
74484
74485 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74486
74487         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74488         * lib/localcharset.c (locale_charset): Declare as extern "C".
74489
74490 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74491
74492         * lib/config.charset: msdos in uk_UA uses CP1125.
74493
74494 2002-11-04  Bruno Haible  <bruno@clisp.org>
74495
74496         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74497         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74498         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74499         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74500         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74501
74502 2002-11-04  Bruno Haible  <bruno@clisp.org>
74503
74504         * lib/localcharset.c (locale_charset): Don't return an empty string.
74505
74506 2002-11-04  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74509         aliases.
74510
74511 2002-11-04  Bruno Haible  <bruno@clisp.org>
74512
74513         * lib/config.charset: Update for newest glibc. Add canonical names
74514         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74515
74516 2002-11-04  Bruno Haible  <bruno@clisp.org>
74517
74518         * lib/config.charset: Add support for NetBSD.
74519
74520 2002-11-04  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74523
74524 2002-11-01  Bruno Haible  <bruno@clisp.org>
74525
74526         * configure.in: Add AC_CONFIG_AUX_DIR call.
74527         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74528         test/Makefile.
74529         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74530
74531 2002-09-28  Karl Berry  <karl@gnu.org>
74532
74533         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74534         installed automake until the next release, since changes have been
74535         made.
74536
74537 2002-09-25  Karl Berry  <karl@gnu.org>
74538
74539         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74540         * lib/getopt*: copy from libc/posix.
74541         * lib/gettext.h: copy from gettext.
74542         * lib/.cppi-disable: add strdup.c, gettext.h.
74543
74544 2002-09-25  Karl Berry  <karl@gnu.org>
74545
74546         * config/srclist.txt: enable gettext.h check.
74547         * config/config.{guess,sub}: update from prep.
74548         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74549                 from automake 1.6.3.
74550         See srclist*.
74551
74552 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74553
74554         * regex.c (PATFETCH): Remove the translating fetch.
74555         (PATFETCH_RAW): Rename to PATFETCH.
74556         (set_image_of_range): New fun.
74557         (SET_RANGE_TABLE_WORK_AREA): Use it.
74558         (regex_compile): Don't translate the pattern chars so eagerly.
74559         Only do it when inserting an `exactn' bytecode or when handling
74560         a char-range.
74561         (mutually_exclusive_p): Avoid empty statement.
74562
74563 2002-07-06  Jim Meyering  <meyering@lucent.com>
74564
74565         * m4/README: Don't mention Makefile.am.in.
74566         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74567
74568 2002-07-01  Jim Meyering  <meyering@lucent.com>
74569
74570         * lib/c-stack.c: Include sys/time.h.
74571         From Volker Borchert.
74572
74573 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74574
74575         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74576
74577 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74578
74579         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74580         New macro.  Use it uniformly instead of
74581         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74582         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74583         reported by Vin Shelton.
74584
74585 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74586
74587         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74588         Do not assume SA_SIGINFO behavior.
74589         Bug reported by Jim Meyering on NetBSD 1.5.2.
74590
74591 2002-06-22  Jim Meyering  <meyering@lucent.com>
74592
74593         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74594         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74595
74596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74597         now that configure.ac uses AC_GNU_SOURCE.
74598         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74599         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74600
74601         Update to latest tools.  Suggestions from Paul Eggert.
74602         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74603         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74604         * m4/fnmatch.m4: Likewise.
74605         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74606         to AC_HEADER_STDBOOL
74607
74608 2002-06-22  Jim Meyering  <meyering@lucent.com>
74609
74610         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74611         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74612
74613 2002-06-22  Jim Meyering  <meyering@lucent.com>
74614
74615         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74616
74617         * lib/exitfail.c, exitfail.h: Likewise.
74618         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74619
74620         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74621         of fnmatch.h.
74622         (EXTRA_DIST): Add fnmatch_loop.c.
74623         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74624
74625         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74626         * lib/fnmatch.c: Update from diffutils-2.8.2.
74627         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74628         * lib/fnmatch.h: Remove file.
74629
74630 2002-06-21  Jim Meyering  <meyering@lucent.com>
74631
74632         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74633         * m4/mbrtowc.m4: Likewise.
74634
74635         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74636         * m4/mbswidth.m4: Reflect name change:
74637         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74638         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74639
74640         * m4/lib-link.m4: Update from gettext-0.11.2.
74641         * m4/gettext.m4: Likewise.
74642
74643         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74644         From Alfred M. Szmidt.
74645
74646 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74647
74648         * lib/file-type.h: Report an error if neither S_ISREG nor
74649         S_IFREG is defined, instead of using a test specific to glibc
74650         2.2.  This should be safe, since POSIX requires S_ISREG and
74651         Unix Version 7 had S_IFREG.  We don't need to check for
74652         <sys/types.h> since we don't use any symbols that it defines.
74653
74654 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74655
74656         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74657         $@-t, so that each temporary file name is unique and valid in the first
74658         8 characters, for operation under DOS.
74659
74660 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74661
74662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74663
74664 2002-06-15  Jim Meyering  <meyering@lucent.com>
74665
74666         Work even with DJGPP 2.03, which lacks support for symlinks.
74667         From Richard Dawe.
74668         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74669         is defined.
74670         * lib/lchown.c (S_ISLNK): Likewise.
74671
74672 2002-06-15  Jim Meyering  <meyering@lucent.com>
74673
74674         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74675         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74676         have been included before this file.
74677
74678 2002-06-14  Jim Meyering  <meyering@lucent.com>
74679
74680         * lib/file-type.h: Use the version from diffutils-2.8.2.
74681         * lib/file-type.c: Likewise.
74682
74683 2002-06-07  Jim Meyering  <meyering@lucent.com>
74684
74685         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74686         They're needed at least for NetBSD 1.5.2.
74687         ($statxfs_includes): Include those same headers.
74688         ($statxfs_includes): Include sys/vfs.h if available.
74689         ($statxfs_includes): Likewise for sys/statvfs.h.
74690         Check for the following members in both structs statfs and statvfs:
74691         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74692
74693 2002-06-01  Jim Meyering  <meyering@lucent.com>
74694
74695         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74696         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74697
74698 2002-05-28  Jim Meyering  <meyering@lucent.com>
74699
74700         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74701         Reported by Volker Borchert.
74702
74703 2002-05-27  Jim Meyering  <meyering@lucent.com>
74704
74705         Fix a problem seen only on nonconforming systems whereby ls.c's
74706         use of localtime, and then of gettimeofday would cause trouble:
74707         the localtime call used to initialize rpl_gettimeofday's save
74708         mechanism would clobber ls's current local time information so
74709         that in any long listing the first file would always be listed
74710         with date 1970-01-01.  Analysis by Volker Borchert.
74711
74712         * lib/gettimeofday.c (localtime): Undefine.
74713         (rpl_localtime): New function.
74714
74715 2002-05-27  Jim Meyering  <meyering@lucent.com>
74716
74717         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74718         localtime.
74719
74720         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74721         use the replacement function; it wouldn't resolve at link time.
74722         Reported by Volker Borchert.
74723
74724 2002-05-22  Jim Meyering  <meyering@lucent.com>
74725
74726         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74727         file-type.h.
74728         * lib/file-type.h: New file.
74729         * lib/file-type.c (file_type): New file/function.  Extracted from
74730         diffutils.
74731
74732 2002-04-30  Jim Meyering  <meyering@lucent.com>
74733
74734         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74735
74736 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74737
74738         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74739
74740 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74741
74742         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74743         Do not check for alloca.h (no longer used) or stdbool.h (was never
74744         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74745
74746 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74747
74748         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74749
74750 2002-04-29  Jim Meyering  <meyering@lucent.com>
74751
74752         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74753         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74754         Use AC_FUNC_STRNLEN here instead.
74755
74756         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74757         With autoconf-2.53a, it's part of AC_PROG_CC.
74758
74759 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74760
74761         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74762         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74763
74764 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74765
74766         * lib/sig2str.h, lib/sig2str.c: New files.
74767         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74768
74769 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74770
74771         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74772         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74773         of 127, since 64 is the largest conceivable number for ancient
74774         nonstandard hosts.
74775         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74776
74777 2002-04-28  Jim Meyering  <meyering@lucent.com>
74778
74779         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74780
74781 2002-04-24  Jim Meyering  <meyering@lucent.com>
74782
74783         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74784         (jm_PREREQ): Use it.
74785
74786         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74787         mach/mach.h fcntl.h.
74788         Check for this function: setlocale.
74789
74790 2002-04-24  Jim Meyering  <meyering@lucent.com>
74791
74792         * lib/gettext.h: New file, from Gettext.
74793         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74794         (libfetish_a_SOURCES): Add gettext.h.
74795
74796 2002-04-16  Jim Meyering  <meyering@lucent.com>
74797
74798         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74799         ut_pid, ut_id, ut_exit.
74800
74801 2002-04-16  Jim Meyering  <meyering@lucent.com>
74802
74803         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74804         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74805         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74806
74807 2002-04-12  Jim Meyering  <meyering@lucent.com>
74808
74809         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74810         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74811         existence of the getmntinfo function.  Needed for Darwin 5.3.
74812
74813         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74814         This is necessary at least on Darwin 5.3.
74815
74816         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74817         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74818         strnlen.o in the library, and that makes some versions of ranlib
74819         object.
74820
74821 2002-04-12  Jim Meyering  <meyering@lucent.com>
74822
74823         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74824
74825 2002-04-09  Jim Meyering  <meyering@lucent.com>
74826
74827         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74828         to be more precise.  Rather than saying we're checking whether the
74829         function `works', say what we're testing.
74830         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74831         Reported by Bruno Haible.
74832
74833 2002-03-10  Jim Meyering  <meyering@lucent.com>
74834
74835         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74836         Suggestion from Santiago Vila.
74837
74838 2002-03-08  Jim Meyering  <meyering@lucent.com>
74839
74840         * lib/rename.c: Mention that this wrapper is needed also on
74841         mips-dec-ultrix4.4 systems.
74842
74843 2002-03-02  Jim Meyering  <meyering@lucent.com>
74844
74845         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74846         not HAVE_CLOCK_SETTIME.
74847
74848 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74849
74850         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74851         Check for clock_settime.
74852
74853 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74854
74855         * lib/nanosleep.h: Rename to....
74856         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74857
74858         * lib/gettime.c: New file.
74859         * lib/settime.c: New file.
74860         * lib/stime.c: Remove.
74861
74862         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74863         timespec.h.  Remove nanosleep.h.
74864
74865 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74866
74867         * m4/acl.m4: New file.
74868         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74869         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74870
74871 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74872
74873         * lib/acl.c, lib/acl.h: New files.
74874         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74875
74876 2002-02-24  Jim Meyering  <meyering@lucent.com>
74877
74878         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74879         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74880         cause trouble.  Reported by Nelson Beebe.
74881
74882 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74883
74884         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74885         compilers that don't know that xalloc_die never returns.
74886
74887 2002-02-20  Jim Meyering  <meyering@lucent.com>
74888
74889         * lib/getdate.c: Regenerate using bison-1.33.
74890
74891 2002-02-17  Jim Meyering  <meyering@lucent.com>
74892
74893         * config/config.guess (main): Don't use `head -1'; it's no longer
74894         portable. Use `sed 1q' instead.
74895
74896 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74897
74898         * m4/codeset.m4: Upgrade to gettext-0.11.
74899         * m4/gettext.m4: Upgrade to gettext-0.11.
74900         * m4/glibc21.m4: Upgrade to gettext-0.11.
74901         * m4/iconv.m4: Upgrade to gettext-0.11.
74902         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74903         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74904         * m4/lib-ld.m4: New file, from gettext-0.11.
74905         * m4/lib-link.m4: New file, from gettext-0.11.
74906         * m4/lib-prefix.m4: New file, from gettext-0.11.
74907         * m4/progtest.m4: Upgrade to gettext-0.11.
74908
74909 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74910
74911         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74912         (jm_PREREQ): Use it.
74913
74914 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74915
74916         * lib/posixver.c, lib/posixver.h: New files.
74917         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74918
74919 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74920             Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74923         (fwrite_success_callback): New declaration.
74924         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74925         print_unicode_char. Call failure callback instead of error.
74926         (fwrite_success_callback): New function.
74927         (exit_failure_callback): New function.
74928         (fallback_failure_callback): New function.
74929         (print_unicode_char): Call unicode_to_mb.
74930
74931 2002-01-26  Jim Meyering  <meyering@lucent.com>
74932
74933         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74934         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74935
74936 2002-01-26  Jim Meyering  <meyering@lucent.com>
74937
74938         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74939
74940 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74941
74942         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74943
74944 2002-01-22  Jim Meyering  <meyering@lucent.com>
74945
74946         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74947         Otherwise, some versions of automake would omit the rule that makes
74948         Makefile from Makefile.in.
74949
74950 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74951
74952         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74953         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74954         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74955         (memcoll): Set errno to zero if there is no error.
74956
74957         * lib/quotearg.c (quotearg_buffer_restyled):
74958         Fix bug with quoting buffers containing NUL when backslashing escapes.
74959         This bug was exposed by the other changes in this patch.
74960         (quotearg_n_options): New arg ARGSIZE.
74961         All callers changed.
74962         (quoting_options_from_style): New function.
74963         (quotearg_n_style): Use it.
74964         (quotearg_n_style_mem): New function.
74965
74966         * lib/quotearg.h (quotearg_n_style_mem): New function.
74967
74968 2002-01-19  Jim Meyering  <meyering@lucent.com>
74969
74970         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74971         Remove useless quotes: DF_PROG="df".
74972         * m4/strnlen.m4: New file.
74973
74974 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74975
74976         * lib/backupfile.c (ISDIGIT): Comment fix.
74977         * lib/getdate.y (ISDIGIT): Likewise.
74978         * lib/posixtm.c (ISDIGIT, year): Likewise.
74979         * lib/strverscmp.c (ISDIGIT): Likewise.
74980         * lib/userspec.c (ISDIGIT): Likewise.
74981
74982 2002-01-16  Jim Meyering  <meyering@lucent.com>
74983
74984         * lib/getdate.y: Add three semicolons, each just before a closing
74985         brace. Bison (as of version 1.31) no longer papers over that mistake.
74986
74987 2002-01-05  Jim Meyering  <meyering@lucent.com>
74988
74989         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74990
74991 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74992
74993         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74994         not silently exit merely because the output buffer happens to
74995         have nothing pending.
74996
74997 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74998
74999         See the big note in ../ChangeLog.
75000         * lib/human.c (suffixes): Prefer K to k for 1024.
75001         (generate_suffix_backwards): New function.
75002         (human_readable_inexact): Use it.
75003         * lib/xstrtol.c (__xstrtol): If there is no number but there
75004         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75005         Accept 'K' as well as 'k'.
75006
75007 2001-12-15  Jim Meyering  <meyering@lucent.com>
75008
75009         * lib/regex.h (__restrict_arr): Update from libc.
75010
75011         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75012         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75013         (STREQ): Define.
75014
75015 2001-12-14  Jim Meyering  <meyering@lucent.com>
75016
75017         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75018         Suggestion from Bruno Haible.
75019
75020 2001-12-10  Jim Meyering  <meyering@lucent.com>
75021
75022         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75023         xrealloc, Instead, include "xalloc.h".
75024         (initbuffer): Don't cast xmalloc return value to char*.
75025         (readline): Reword comment.
75026         Don't cast xrealloc return value to char*
75027         Return NULL, not 0.
75028
75029 2001-12-09  Jim Meyering  <meyering@lucent.com>
75030
75031         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75032         about `signed and unsigned type in conditional expression'.
75033         * lib/posixtm.c (posix_time_parse): Likewise.
75034
75035         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75036
75037         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75038         to avoid a pedantic warning.
75039
75040         * lib/getstr.c: Don't include assert.h.
75041         (getstr): Remove warning-evoking assertions.
75042         Return -1 if offset parameter is out of bounds.
75043         Change the type of a local from int to size_t.
75044
75045         * lib/strftime.c (my_strftime_localtime_r): Include this function
75046         definition in the `#if ! HAVE_TM_GMTOFF' block.
75047
75048         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75049         Include xalloc.h instead.
75050
75051 2001-12-02  Jim Meyering  <meyering@lucent.com>
75052
75053         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75054         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75055         included.
75056
75057         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75058         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75059
75060 2001-11-30  Akim Demaille  <akim@epita.fr>
75061
75062         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75063         before being defined.
75064
75065 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75066
75067         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75068         First arg is int, not unsigned.
75069         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75070         (SIZE_MAX, UINT_MAX): New macros.
75071         (quotearg_n_options): Abort if N is negative.
75072         Avoid overflow check on hosts where size_t is 64 bits and int
75073         is 32 bits, as overflow is impossible there.
75074         Fix off-by-one typo that caused unnecessary reallocation.
75075
75076 2001-11-27  Jim Meyering  <meyering@lucent.com>
75077
75078         * lib/tempname.c: Merge with version from libc.
75079         * lib/regex.c: Likewise.
75080
75081         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75082         systems for which STDC_HEADERS is 0, it was not included, resulting in
75083         a warning about an integer-to-pointer conversion problem with getenv.
75084         Reported by Volker Borchert.
75085
75086 2001-11-26  Jim Meyering  <meyering@lucent.com>
75087
75088         * lib/gtod.h: Remove file.
75089         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75090         * lib/gettimeofday.c: Don't include gtod.h.
75091         (GTOD_init): Remove function.
75092         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75093         Suggestion from Volker Borchert.
75094
75095 2001-11-23  Jim Meyering  <meyering@lucent.com>
75096
75097         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75098         it.
75099         * lib/hash.c (struct hash_table): Define it here instead.
75100
75101 2001-11-22  Jim Meyering  <meyering@lucent.com>
75102
75103         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75104
75105 2001-11-20  Jim Meyering  <meyering@lucent.com>
75106
75107         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75108         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75109
75110 2001-11-19  Jim Meyering  <meyering@lucent.com>
75111
75112         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75113         directory.  Use "conftestXXXXXX" as the template.
75114         Suggestion from Paul Eggert.
75115
75116         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75117         immediately, so the test doesn't mistakenly hit the max-open-files
75118         limit.
75119
75120 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75121
75122         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75123         (TEMPORARIES): New macro.
75124         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75125         removes an artificial limitation (e.g. HP-UX 10.20, where
75126         TMP_MAX is 17576).
75127
75128 2001-11-18  Jim Meyering  <meyering@lucent.com>
75129
75130         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75131
75132 2001-11-18  Jim Meyering  <meyering@lucent.com>
75133
75134         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75135         on SunOS 4.
75136
75137         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75138         files will be created before anything else.
75139
75140 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75141
75142         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75143         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75144
75145 2001-11-17  Jim Meyering  <meyering@lucent.com>
75146
75147         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75148         Prompted by a report from Bob Proulx.
75149
75150         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75151         Instead, require UTILS_FUNC_MKSTEMP.
75152
75153 2001-11-17  Jim Meyering  <meyering@lucent.com>
75154
75155         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75156         Now, that's done as part of AC_FUNC_STRTOD.
75157
75158 2001-11-17  Jim Meyering  <meyering@lucent.com>
75159
75160         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75161         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75162         rather than group writable.  Patch by Juan F. Codagnone.
75163
75164         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75165         xrealloc, Instead, include "xalloc.h".
75166
75167         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75168         Remove explicit declarations of xmalloc, xrealloc,
75169         and xstrdup.  Instead, include "xalloc.h".
75170
75171         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75172         unlocked-io.h.
75173         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75174         Likewise.
75175         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75176
75177         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75178         Reported by Padraig Brady.
75179
75180         * lib/mkstemp.c: #undef mkstemp.
75181         Include config.h.
75182         (rpl_mkstemp): Rename from mkstemp.
75183         Protoize.
75184
75185 2001-11-16  Jim Meyering  <meyering@lucent.com>
75186
75187         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75188         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75189         determine the amount of total physical memory, use pstat_getstatic.
75190         HPUX-11 doesn't define _SC_PHYS_PAGES.
75191         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75192         If sysconf couldn't be used to determine the amount of available
75193         physical memory, use both pstat_getstatic and pstat_getdynamic.
75194         Based on a patch from Bob Proulx.
75195
75196 2001-11-10  Jim Meyering  <meyering@lucent.com>
75197
75198         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75199         (jm_PREREQ): Use it.
75200
75201 2001-11-09  Jim Meyering  <meyering@lucent.com>
75202
75203         * m4/jm-macros.m4: Require autoconf-2.52f.
75204         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75205         Use these AC_-prefixed names, not the AM_-prefixed ones.
75206
75207         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75208
75209 2001-11-05  Jim Meyering  <meyering@lucent.com>
75210
75211         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75212
75213 2001-11-04  Jim Meyering  <meyering@lucent.com>
75214
75215         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75216         $DEFS.
75217
75218 2001-11-03  Jim Meyering  <meyering@lucent.com>
75219
75220         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75221         of AC_DEFUN.
75222
75223         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75224         know the name of the variable in the macro definition.
75225
75226 2001-11-03  Jim Meyering  <meyering@lucent.com>
75227
75228         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75229         in argmatch_to_argument call.
75230
75231         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75232         argument.
75233
75234         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75235         e.g., a fault due to an attempt to free a NULL pointer.
75236
75237 2001-11-01  Jim Meyering  <meyering@lucent.com>
75238
75239         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75240         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75241
75242 2001-11-01  Jim Meyering  <meyering@lucent.com>
75243
75244         * lib/dirfd.c, lib/dirfd.h: New files.
75245         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75246
75247         * lib/hash.c (hash_print) [TESTING]: Clean up.
75248
75249 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75250
75251         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75252         to avoid a warning if -Wall.
75253
75254 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75255
75256         * README: New file
75257         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75258         (per RMS's instructions, this is now the canonical source)
75259         * lgpl/, gpl/: New directories.
75260
75261 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75262
75263         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75264
75265 2001-10-21  Jim Meyering  <meyering@lucent.com>
75266
75267         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75268         this code would end up calling gettext even in packages built
75269         with --disable-nls.
75270         * lib/getopt.c (_): Likewise.
75271         * lib/regex.c (_): Likewise.
75272
75273 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75274
75275         * m4/error.m4 (jm_PREREQ_ERROR):
75276         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75277         AC_FUNC_STRERROR_R does that.
75278         Check for strerror declaration.
75279
75280         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75281         are supposed to have them these days.
75282         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75283         Merge changes from latest Autoconf CVS.
75284         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75285         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75286         POSIX decided to standardize on the int flavor of strerror_r.
75287
75288 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75289
75290         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75291         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75292         Use strerror_r that is only a macro, even if it is not a function.
75293         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75294         (private_strerror): Use prototypes, not old-style function definition.
75295         (print_errno_message): New function.
75296         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75297         char*-flavored one.
75298         (error_tail, error, error_at_line): Use it.
75299
75300 2001-10-11  Jim Meyering  <meyering@lucent.com>
75301
75302         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75303         and quote_n (1, ... to avoid clobbering a buffer.
75304
75305 2001-10-05  Jim Meyering  <meyering@lucent.com>
75306
75307         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75308         hash-pjw.h.
75309         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75310         * lib/hash-pjw.h: New file.
75311
75312 2001-09-30  Jim Meyering  <meyering@lucent.com>
75313
75314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75315         `struct fsstat' has the `f_fstypename' member.
75316         Use that to define FS_TYPE, which is now used to make
75317         the getfsstat link test tighter.
75318
75319 2001-09-30  Jim Meyering  <meyering@lucent.com>
75320
75321         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75322         Include <sys/ucred.h>, for Apple Darwin.
75323         Include sys/mount.h and sys/fs_types.h only if available.
75324         (FS_TYPE): Define.
75325         (read_filesystem_list): Use FS_TYPE.
75326
75327 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75328
75329         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75330         a boolean context.
75331
75332 2001-09-29  Jim Meyering  <meyering@lucent.com>
75333
75334         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75335         [one-argument getmntent function]): Include stdio.h before mntent.h.
75336         SunOS 4.1.x needs it for the declaration of `FILE'.
75337         Patch by Volker Borchert.
75338
75339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75340         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75341         sys/fs_types.h, and make the link-test for getfsstat guard #include
75342         directives with appropriate #if HAVE_*_H tests so that we can
75343         detect getfsstat on Apple Darwin1.3.7 systems.
75344         Reported by Nelson Beebe.
75345         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
75346
75347 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75348
75349         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75350         #defines strtoimax.  Also treat the other strto* functions
75351         like strtoimax.
75352
75353         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75354         Check for strtoul and strtoumax,
75355         as those declarations are made even in the signed case.
75356         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75357         Likewise, for strtol and strtoimax.
75358
75359 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75360
75361         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75362         #defines strtoimax.  Also treat the other strto* functions
75363         like strtoimax.
75364
75365         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75366         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75367         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75368
75369 2001-09-26  Jim Meyering  <meyering@lucent.com>
75370
75371         Most macros in unlocked-io.h had the wrong number of arguments.
75372         * lib/gen-uio: New script.
75373         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75374         * lib/unlocked-io.hin: Remove file.
75375         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75376         rather than trying to embed it here.
75377         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75378         Reported by Padraig Brady.
75379
75380 2001-09-25  Volker Borchert  <bt@teknon.de>
75381
75382         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75383         `result'.
75384
75385 2001-09-24  Jim Meyering  <meyering@lucent.com>
75386
75387         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75388
75389 2001-09-23  Jim Meyering  <meyering@lucent.com>
75390
75391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75392         instead of the mere test for existence of mntent.h.  The latter
75393         would get a false-positive on AIX 3.4 systems.
75394         In the outer getmntent if-block, don't die if neither of the getmntent
75395         tests succeeds.  Instead, just fall through and continue with the
75396         remaining tests.
75397
75398 2001-09-23  Jim Meyering  <meyering@lucent.com>
75399
75400         * lib/mountlist.c: Remove useless parentheses in #if directives.
75401         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75402         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75403
75404 2001-09-22  Jim Meyering  <meyering@lucent.com>
75405
75406         * m4/gettext.m4: New file.  From gettext.
75407         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75408         * m4/progtest.m4: Likewise
75409         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75410         * m4/glibc21.m4: Likewise.
75411
75412         * m4/libintl.m4: Remove.  No longer used.
75413
75414 2001-09-22  Jim Meyering  <meyering@lucent.com>
75415
75416         * lib/localcharset.c: Update from latest gettext.
75417         * lib/config.charset: Likewise.
75418
75419 2001-09-20  Jim Meyering  <meyering@lucent.com>
75420
75421         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75422         strtoimax.
75423         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75424         strtoumax.
75425
75426 2001-09-20  Jim Meyering  <meyering@lucent.com>
75427
75428         * lib/xstrtol.c (strtoimax): Guard declaration with
75429         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75430         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75431         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75432         (strtoumax): Likewise, for completeness (it wasn't necessary).
75433
75434 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75435
75436         * lib/strtoimax.c (HAVE_LONG_LONG):
75437         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75438         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75439         to work around bug in IBM C compiler.
75440
75441 2001-09-17  Jim Meyering  <meyering@lucent.com>
75442
75443         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75444         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75445         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75446         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75447         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75448         whenever the right hand side need not be expanded by the shell.
75449
75450 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75451
75452         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75453         library.  It's not correct, as some older glibcs are buggy.
75454         fnmatch wasn't fixed until glibc 2.2.
75455
75456         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75457         special shell magic here.
75458
75459 2001-09-16  Jim Meyering  <meyering@lucent.com>
75460
75461         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75462         * m4/jm-macros.m4: Require it.
75463
75464 2001-09-16  Jim Meyering  <meyering@lucent.com>
75465
75466         * lib/mkdir.c: New file.
75467
75468 2001-09-15  Jim Meyering  <meyering@lucent.com>
75469
75470         * m4/jm-macros.m4: Check for help2man.
75471
75472 2001-09-11  Jim Meyering  <meyering@lucent.com>
75473
75474         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75475         The body, by Paul Eggert, was moved here from configure.in.
75476         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75477
75478 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75479
75480         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75481         (jm_PREREQ): Use it.
75482
75483 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75484
75485         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75486         Use ssize_t, not int, to store result of readlink.
75487         Check for ssize_t overflow as well as size_t overflow,
75488         as POSIX says the result of readlink is implementation-defined
75489         when ssize_t overflows.
75490         Remove unnecessary cast to char*.
75491         Use free+malloc instead of realloc, as the storage doesn't need
75492         to be preserved and it's clearer and can be more efficient that way.
75493         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75494         * lib/xreadlink.h (xreadlink): Update prototype.
75495
75496 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75497
75498         * lib/xgetcwd.c: Revert some of the previous change; intead,
75499         fix the HAVE_GETCWD_NULL code to behave more like the
75500         !HAVE_GETCWD_NULL code used to.
75501
75502         Include "xalloc.h".
75503         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75504         invoke xalloc_die.
75505
75506 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75507
75508         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75509         sys/param.h, as pathmax.h includes them.
75510
75511 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75512
75513         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75514         (jm_PREREQ_XGETCWD): New macro.
75515
75516         * m4/getcwd.m4: New file.
75517
75518 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75519
75520         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75521         like the HAVE_GETCWD_NULL code.
75522         Include pathmax.h if not HAVE_GETCWD.
75523         Do not include xalloc.h.
75524         (INITIAL_BUFFER_SIZE): New symbol.
75525         Do not use xmalloc / xrealloc, since the caller is responsible for
75526         handling errors.  Preserve errno around `free' during failure.
75527         Do not overrun buffer when using getwd.
75528
75529 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75530
75531         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75532         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75533         getcwd (NULL, 0).
75534
75535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75536
75537         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75538         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75539         spotted by Jim Meyering.
75540
75541 2001-09-03  Jim Meyering  <meyering@lucent.com>
75542
75543         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75544         failure.
75545
75546 2001-09-02  Jim Meyering  <meyering@lucent.com>
75547
75548         * lib/error.c: Update from GNU libc.
75549
75550 2001-09-01  Jim Meyering  <meyering@lucent.com>
75551
75552         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75553         Used by df.
75554
75555 2001-09-01  Jim Meyering  <meyering@lucent.com>
75556
75557         * lib/xreadlink.c: New file.
75558         * lib/xreadlink.h: New file.
75559         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75560         xreadlink.h.
75561
75562         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75563         doesn't conflict with sparc Solaris 7's definition in
75564         /usr/include/sys/int_types.h.
75565
75566         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75567         files.
75568         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75569         and strncasecmp as r-values.  Unixware didn't have declarations.
75570
75571 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75572
75573         * lib/xstrtol.h: Add copyright notice.
75574         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75575         LONGINT_INVALID_SUFFIX_CHAR.
75576
75577 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75578
75579         * lib/xstrtol.c (strtoimax): New decl.
75580
75581 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75582
75583         * lib/xgetcwd.c: Don't include pathmax.h.
75584         Include stdlib.h and unistd.h if available.
75585         Include xalloc.h.
75586         (xmalloc, xstrdup, free): Remove decls.
75587         (xgetcwd): Don't assume sizes fit in unsigned.
75588         Check for overflow when computing sizes.
75589         Simplify reallocation code.
75590
75591 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75592
75593         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75594         a directory's st_size can have an arbitrary value, so the old
75595         usage could waste an arbitrary amount of memory.  All uses
75596         changed.
75597         * lib/savedir.h: Update prototype.
75598
75599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75600
75601         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75602
75603         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75604         old strtoimax.c.
75605
75606         Also, make the following further changes to make this file's
75607         configuration more similar to that of strtol.c:
75608         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75609         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75610         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75611         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75612         changed to signed values.
75613
75614         And make the following changes as well:
75615         Fix copyright notice, as 1999 was missing.
75616         (verify): New macro.
75617         (strtoimax): Check sizes at compile-time, not run-time.
75618         Prefer strtol to strtoll if both work.
75619         (main): Remove; it was not that useful and was a pain to maintain.
75620
75621         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75622
75623 2001-08-31  Jim Meyering  <meyering@lucent.com>
75624
75625         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75626         Use an initial, malloc'd, buffer of length 128 rather than
75627         a statically allocated one of length 1024.
75628
75629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75630
75631         Simplify code, partly by assuming autoconf 2.52 semantics.
75632
75633         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75634
75635         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75636         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75637         All uses removed.
75638         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75639         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75640         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75641         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75642         jm_AC_HEADER_INTTYPES_H.
75643         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75644
75645         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75646
75647         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75648         Quote first arg of AC_DEFUN.
75649         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75650         since they are needed to parse the include file even if we need
75651         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75653         but with opposite signedness.
75654
75655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75656
75657         Merge 'exclude' changes from tar 1.13.22.
75658         This fixes one or two unlikely storage allocation overflow bugs,
75659         but doesn't change user-visible behavior otherwise.
75660
75661 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75662
75663         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75664         (jm_PREREQ_EXCLUDE): New macro.
75665
75666 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75667
75668         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75669         tm to be declared.
75670
75671 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75672
75673         * lib/hash.c: Remove '2001' from copyright notice.
75674
75675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75676
75677         * lib/full-write.h: New file.
75678         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75679         * lib/full-write.c: Correct credits, as cccp.c no longer
75680         exists and anyway it was so heavily changed from the old cccp
75681         code as to be unrecognizable.  Include full-write.h.
75682         (full_write) Return size_t, with short writes meaning failure.
75683         All callers changed.  This fixes a bug with large buffers
75684         on 64-bit hosts.
75685         * lib/utime.c: Include full-write.h.
75686
75687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75688
75689         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75690         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75691         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75692         Include if available.
75693         (<xalloc.h>): Include
75694         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75695         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75696         collide with FNM macros.
75697         (struct patopts): New struct.
75698         (struct exclude): Use it, as exclude patterns now come with options.
75699         (new_exclude): Support above changes.
75700         (new_exclude, add_exclude_file):
75701         Initial size must now be a power of two to simplify overflow checking.
75702         (free_exclude, fnmatch_no_wildcards): New function.
75703         (excluded_filename): No longer requires options arg, as the options
75704         are determined by add_exclude.  Now returns bool, not int.
75705         (excluded_filename, add_exclude):
75706         Add support for the fancy new exclusion options.
75707         (add_exclude, add_exclude_file): Now takes int options arg.
75708         Check for arithmetic overflow when computing sizes.
75709         (add_exclude_file): xrealloc might modify errno, so don't
75710         realloc until after errno might be used.
75711
75712         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75713         New macros.
75714         (free_exclude): New decl.
75715         (add_exclude, add_exclude_file): Now takes int options arg.
75716         (excluded_filename): No longer requires options arg, as the options
75717         are determined by add_exclude.  Now returns bool, not int.
75718
75719 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75720
75721         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75722
75723 2001-08-27  Jim Meyering  <meyering@lucent.com>
75724
75725         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75726
75727         * lib/version-etc.c (N_): Remove definition.
75728         Revert most of last change.
75729         Instead, simply don't mark the `Copyright...' string for translation.
75730         Based on advice from Paul Eggert.
75731
75732         * lib/strtoxmax.c: Tweak comment.
75733
75734 2001-08-26  Jim Meyering  <meyering@lucent.com>
75735
75736         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75737
75738         * m4/xstrtoimax.m4: New file.
75739         * m4/xstrtoumax.m4: Add comments explaining why we
75740         AC_REPLACE_FUNCS(strtol).
75741
75742 2001-08-26  Jim Meyering  <meyering@lucent.com>
75743
75744         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75745         of copyright with `%s' so translators don't get an untranslated
75746         message in 2002.
75747         (COPYRIGHT_YEAR): Define.
75748         (version_etc): Use fprintf rather than fputs.
75749         Suggestion from Ulrich Drepper.
75750
75751         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75752
75753         * lib/strtoll.c: New file, from GNU libc.
75754         * lib/xstrtoimax.c: New file.
75755
75756         * lib/xstrtol.h: Add xstrtoimax.
75757         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75758         * lib/strtoimax.c: New file.  Likewise, but first define
75759         STRTOUXMAX_SIGNED.
75760
75761         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75762         ...
75763         * lib/strtoxmax.c: ... then renamed to this.
75764
75765 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75766
75767         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75768         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75769         (jm_AC_TYPE_INTMAX_T): New macro.
75770         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75771
75772         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75773
75774         * m4/longlong.m4: Renamed from ulonglong.m4.
75775         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75776         * m4/uintmax_t.m4: Removed.
75777
75778 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75779
75780         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75781         Port to Solaris 8, where 'sed' requires a space after the 'r'
75782         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75783         Redirect output to $tmp just once.
75784
75785 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75786
75787         * lib/addext.c (<errno.h>): Include.
75788         (errno): Declare if not defined.
75789         (addext): Work correctly when pathconf returns -1 and leaves
75790         errno alone because there is no limit.  Also, work even if
75791         pathconf returns a value greater than SIZE_MAX.
75792
75793 2001-08-12  Jim Meyering  <meyering@lucent.com>
75794
75795         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75796         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75797         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75798         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75799         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75800         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75801         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75802         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75803         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75804         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75805         utime.m4, utimes.m4, xstrtoumax.m4:
75806         Quote the first argument in each use of AC_DEFUN.
75807
75808 2001-08-12  Jim Meyering  <meyering@lucent.com>
75809
75810         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75811         Simply `return getcwd (NULL, 0);'.
75812         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75813         Use 1300 as initial value for length, not PATH_MAX.
75814
75815         * lib/pathmax.h: Clean up cpp syntax.
75816
75817 2001-08-12  Jim Meyering  <meyering@lucent.com>
75818
75819         * lib/gettimeofday.c: New file.
75820         * lib/gtod.h: New file.
75821         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75822
75823 2001-08-05  Jim Meyering  <meyering@lucent.com>
75824
75825         * m4/jm-macros.m4: Require autoconf-2.52.
75826
75827 2001-08-04  Jim Meyering  <meyering@lucent.com>
75828
75829         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75830         stmt, to get in sync with glibc.
75831
75832 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75833
75834         The following changes are from gettext 0.10.39 as maintained by
75835         Bruno Haible.
75836
75837         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75838         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75839         with inverted sense.  All uses changed.
75840
75841         * lib/mbswidth.c: Don't include <limits.h>.
75842         Include <stdlib.h> and <string.h> unconditionally.
75843         (iswcntrl, mbsinit, ISCNTRL): New macros.
75844         (mbsnwidth): Use K&R style function declarations.
75845         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75846         can optimize it when MB_CUR_MAX == 1.
75847         The width of control characters is zero, not 1.
75848
75849 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75850
75851         The following changes are from gettext 0.10.39 as maintained by
75852         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75853
75854         * m4/codeset.m4: Upgrade to serial AM1.
75855         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75856         all uses changed.  Quote first arg of AC_DEFUN.
75857         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75858
75859         * m4/iconv.m4: Upgrade to serial AM2.
75860         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75861         Add --with-libconv-prefix.
75862         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75863         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75864         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75865         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75866         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75867
75868         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75869         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75870         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75871         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75872         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75873         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75874         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75875         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75876         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75877
75878         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75879         string.h any more.
75880
75881         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75882         not the default value.
75883
75884         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75885         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75886         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75887         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75888         Also check for iswcntrl, used for wcwidth fallback.
75889         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75890         to Autoconf 2.13.
75891
75892 2001-08-03  Jim Meyering  <meyering@lucent.com>
75893
75894         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75895         as it was in the original.  Reported by Paul Eggert.
75896
75897 2001-07-16  Jim Meyering  <meyering@lucent.com>
75898
75899         * m4/gettimeofday.m4: New file.
75900         Prompted by a report from Bernhard Baehr.
75901
75902 2001-07-15  Jim Meyering  <meyering@lucent.com>
75903
75904         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75905         stuff. Now it's in ../Makefile.cfg.
75906
75907 2001-07-15  Jim Meyering  <meyering@lucent.com>
75908
75909         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75910         (BUILT_SOURCES): Add unlocked-io.h.
75911         (io_functions): Define.
75912         (unlocked-io.h): New rule.
75913         (DISTCLEANFILES): Add unlocked-io.h.
75914         (all-local): Depend on unlocked-io.h, to ensure it is created.
75915
75916         * lib/unlocked-io.hin: New file
75917
75918         * lib/regex.c: Update from glibc.
75919
75920 2001-07-05  Jim Meyering  <meyering@lucent.com>
75921
75922         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75923         recommendation.
75924         (libfetish_a_SOURCES): Put all .h files here instead.
75925         Remove a thus-exposed (better checks in automake) duplicate and
75926         two unnecessary .h files.
75927
75928 2001-07-04  Jim Meyering  <meyering@lucent.com>
75929
75930         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75931         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75932         distcheck failure.
75933
75934 2001-07-02  Jim Meyering  <meyering@lucent.com>
75935
75936         The following changes were prompted by suggestions from Bruno Haible.
75937
75938         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75939         is now generated.
75940         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75941         definition of EXTRA_DIST.
75942         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75943         ensure that the generated file is created/updated whenever the list
75944         of $(unlocked_functions) is changed.
75945         (jm-glibc-io.m4): New rule.
75946         (unlocked-io.h): New rule -- currently unused.
75947
75948 2001-06-24  Jim Meyering  <meyering@lucent.com>
75949
75950         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75951         unmatched right bracket, rather than kludging it with an extra,
75952         falsely-matching quote in a comment.  Patch by Akim Demaille.
75953
75954 2001-06-11  Jim Meyering  <meyering@lucent.com>
75955
75956         * lib/regex.c: Update from GNU libc.
75957
75958 2001-05-27  Jim Meyering  <meyering@lucent.com>
75959
75960         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75961         Check for ut_type in struct utmp.
75962
75963 2001-05-27  Jim Meyering  <meyering@lucent.com>
75964
75965         * lib/readutmp.h (UT_TYPE): Define.
75966
75967 2001-05-24  Jim Meyering  <meyering@lucent.com>
75968
75969         * lib/argmatch.c: Include "quote.h".
75970         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75971         quote function.  Reported by Göran Uddeborg.
75972
75973 2001-05-22  Jim Meyering  <meyering@lucent.com>
75974
75975         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75976         now that we use the package-supplied version unconditionally.
75977         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75978
75979 2001-05-21  Jim Meyering  <meyering@lucent.com>
75980
75981         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75982         shell syntax errors.
75983
75984 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75985
75986         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75987
75988 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75989
75990         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75991         Don't bother to check library strftime, since
75992         we'll be using our own my_strftime function anyway.
75993         Define my_strftime instead of strftime.
75994
75995 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75996
75997         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75998         which is not yet declared.
75999
76000 2001-05-15  Jim Meyering  <meyering@lucent.com>
76001
76002         * m4/regex.m4: Use proper quoting so brackets appear in the test
76003         program.
76004         Reported by, and with help from, Bruno Haible.
76005
76006 2001-05-13  Jim Meyering  <meyering@lucent.com>
76007
76008         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76009         undefined.
76010
76011 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76012
76013         dirname code cleanup.  base_name now behaves more compatibly
76014         with POSIX basename when given file names that have trailing
76015         slashes, and similarly for dir_name.  Add new primitives
76016         base_len and dir_len.  Put the directory-name-related decls
76017         into dirname.h.
76018
76019         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76020         * lib/backupfile.c (base_name): Likewise.
76021         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76022         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76023         * lib/makepath.c (strip_trailing_slashes): Likewise.
76024         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76025         ISSLASH): Likewise.
76026         * lib/rename.c (strip_trailing_slashes): Likewise.
76027         * lib/same.c (base_name): Likewise.
76028         * lib/stripslash.c (ISSLASH): Likewise.
76029
76030         * lib/addext.c: Include <dirname.h> after size_t is defined.
76031         * lib/backupfile.c: Likewise.
76032
76033         * lib/addext.c (addext): Use base_len to trim redundant
76034         trailing slashes instead of doing it ourselves.
76035         But do not trim the last slash if it is not redundant.
76036
76037         * lib/backupfile.c (find_backup_file_name,
76038         max_backup_version): Use base_len instead of rolling it ourselves.
76039         Handle the case of "" and (on DOS) "C:" correctly.
76040
76041         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76042         needed. Include <string.h>, <dirname.h>.
76043         (base_name): Allow file names ending in slashes, other than names
76044         that are all slashes.  In this case, return the basename followed
76045         by the slashes.  This is more general, and can be used in places
76046         where the original base_name purposely had an assertion failure.
76047         (base_len): New function.
76048
76049         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76050         Do not include <assert.h>; no longer needed.
76051         Include xalloc.h.
76052         (memrchr): Remove decl.
76053         (dir_name_r): Remove.
76054         (dir_len): Renamed from dirlen.  All callers changed.
76055         Rewrite in terms of base_name, for simplicity and consistency.
76056         (dir_name): Never return NULL.  All callers changed.
76057         Do not include <stdlib.h> in test program; no longer needed.
76058         return 0; is fine for test program.
76059
76060         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76061         New macros.
76062         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76063
76064         * lib/path-concat.c (path_concat): Use base_len to compute
76065         base length, not strlen; this means we cannot rely on memcpy
76066         to null-terminate.
76067
76068         * lib/same.c (STREQ): Remove.
76069         (same_name): Handle the case where the basename ends in trailing '/'.
76070
76071         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76072         a slash was stripped.  Do not strip the last slash after a
76073         file system prefix.
76074
76075 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76076
76077         * lib/Makefile.am (libfetish_a_SOURCES):
76078         Add strftime.c, since we now compile it on all hosts.
76079
76080         * lib/strftime.c (my_strftime):
76081         Define to nstrftime if emacs, but only if my_strftime is not defined.
76082         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76083         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76084         Add one more extra argument: a nanoseconds value.
76085         All uses changed.
76086         (ns): New macro.
76087         (my_strftime function): Add %N format.
76088         (emacs_strftimeu): Renamed from emacs_strftime,
76089         with extra ut argument.
76090
76091 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76092
76093         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76094
76095 2001-04-21  Jim Meyering  <meyering@lucent.com>
76096
76097         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76098         doesn't interfere.
76099
76100 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76101
76102         * m4/ftruncate.m4: Check for chsize.
76103         Link with ftruncate.o unconditionally if ftruncate is missing.
76104         This was required when cross-compiling to i586-mingw32msvc.
76105
76106 2001-04-08  Jim Meyering  <meyering@lucent.com>
76107
76108         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76109         recomputed; that's necessary when the offset spans a DST transition.
76110         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76111
76112 2001-04-02  Jim Meyering  <meyering@lucent.com>
76113
76114         * lib/regex.h, regex.c: Update from GNU libc.
76115
76116 2001-03-24  Jim Meyering  <meyering@lucent.com>
76117
76118         * m4/jm-macros.m4: Require autoconf-2.49d.
76119
76120 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76121
76122         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76123
76124 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76125
76126         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76127
76128 2001-03-17  Jim Meyering  <meyering@lucent.com>
76129
76130         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76131         now that the version in autoconf is equivalent.
76132         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76133
76134         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76135         Suggestion from Akim Demaille.
76136
76137         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76138         (jm_PREREQ_TEMPNAME): New function.
76139
76140 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76141
76142         * lib/tempname.c (uint64_t): Define to uintmax_t if
76143         not defined, and if UINT64_MAX is not defined.
76144         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76145         Reported by John David Anglin.
76146
76147 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76148
76149         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76150         resolve alias if codeset is empty.
76151         * lib/config.charset (BeOS): Use wildcard syntax.
76152
76153 2001-03-13  Jim Meyering  <meyering@lucent.com>
76154
76155         * lib/path-concat.c (path_concat)
76156         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76157         concatenating e.g., `C:' and `foo'.
76158         From Bruno Haible.
76159
76160 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76161
76162         * lib/localcharset.c (locale_charset): Don't use
76163         setlocale(LC_CTYPE,NULL). Don't return NULL.
76164         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76165
76166 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76167
76168         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76169         support for DOS/DJGPP.
76170
76171 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76172
76173         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76174         lacks mkstemp.  Compile our own tempname.c if we compile our own
76175         mkstemp.c, as mkstemp relies on tempname.
76176
76177 2001-03-01  Jim Meyering  <meyering@lucent.com>
76178
76179         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76180         AH_VERBATIM really does output its argument verbatim.
76181
76182 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76183
76184         * lib/Makefile.am (libfetish_a_SOURCES):
76185         Add dup-safer.c, fopen-safer.c.
76186         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76187
76188         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76189         * lib/unistd-safer.h: New files.
76190
76191 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76192
76193         The mkstemp replacement is taken from glibc 2.2.2, with some
76194         portability fixes for use outside glibc, as follows:
76195
76196         * lib/tempname.c (struct_stat64): New macro.
76197         (direxists, __gen_tempname): Use it.
76198         This avoids a portability problem with Solaris 8.
76199
76200         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76201         (<stddef.h>, <stdint.h>, <string.h>):
76202         Include only if STDC_HEADERS || _LIBC.
76203         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76204         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76205         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76206         (__set_errno): Define this macro if <errno.h> doesn't.
76207         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76208         Define these macros if <stdio.h> doesn't.
76209         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76210         Define these macros if <sys/stat.h>
76211         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76212         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76213         __xstat64): Define if not _LIBC.
76214         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76215         (__gen_tempname): Invoke gettimeofday only if
76216         HAVE_GETTIMEOFDAY || _LIBC;
76217         otherwise, fall back on plain "time".
76218         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76219
76220         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76221
76222         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76223
76224 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76225
76226         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76227
76228 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76229
76230         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76231         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76232         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76233         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76234
76235 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76236
76237         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76238         Remove workaround macros for hosts that have mbrtowc but not
76239         mbstate_t, as we now insist on proper declarations for both
76240         before using mbrtowc.
76241
76242 2001-02-17  Jim Meyering  <meyering@lucent.com>
76243
76244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76245         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76246         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76247         UnixWare 7.1.1.
76248
76249         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76250         rather than AC_CACHE_VAL.
76251
76252 2001-02-17  Jim Meyering  <meyering@lucent.com>
76253
76254         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76255         around included file name.
76256
76257         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76258
76259         * lib/strftime.c: Update from GNU libc (the only changes were to
76260         comments).
76261
76262 2001-02-17  Jim Meyering  <meyering@lucent.com>
76263
76264         * lib/regex.c: Update from libc.
76265
76266 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76267
76268         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76269         clash.
76270
76271 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76272
76273         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76274         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76275         Reported by Mark Hounschell via Paul Eggert.
76276
76277 2001-02-07  Jim Meyering  <meyering@lucent.com>
76278
76279         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76280
76281 2001-02-05  Jim Meyering  <meyering@lucent.com>
76282
76283         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76284         it includes the patch required for `large file' support with at least
76285         HP-UX's 10.20 /bin/cc.
76286
76287 2001-02-03  Jim Meyering  <meyering@lucent.com>
76288
76289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76290         AS_IF, now that it works once again (mysteriously).
76291         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76292
76293 2001-01-30  Jim Meyering  <meyering@lucent.com>
76294
76295         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76296         * m4/chown.m4: Rename conftestchown to conftest.chown.
76297         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76298         s/conftestdir2/conftest.d2/.
76299         * m4/utimes.m4: s/conftestdata/conftest.data/
76300         Inspired by Pavel Roskin's change in autoconf.
76301
76302 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76303
76304         * lib/config.charset: Update for FreeBSD 4.2.
76305
76306 2001-01-27  Jim Meyering  <meyering@lucent.com>
76307
76308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76309         a use of AS_IF.
76310         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76311
76312 2001-01-26  Jim Meyering  <meyering@lucent.com>
76313
76314         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76315         quotearg.c includes it.
76316
76317 2001-01-26  Jim Meyering  <meyering@lucent.com>
76318
76319         * lib/quotearg.c: Include stddef.h.
76320         * lib/quote.c: Include stddef.h.
76321         Reported by Axel Kittenberger.
76322
76323         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76324         line in double quotes so that it evokes a better diagnostic.
76325         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76326         Reported by Axel Kittenberger.
76327
76328 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76329
76330         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76331         as if it was a `charset'.
76332
76333 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76334
76335         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76336         has const.
76337
76338 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76339
76340         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76341         to avoid a warning.  Add back 'const' to inptr.
76342
76343 2001-01-20  Jim Meyering  <meyering@lucent.com>
76344
76345         Be sure that headers are checked before used in code compiled
76346         for the type checks.
76347         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76348         In place of that, invoke jm_CHECK_ALL_TYPES.
76349         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76350         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76351         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76352         The check for ssize_t was mistakenly run before the test for unistd.h.
76353
76354         The configure-time check for stdbool.h was missing.
76355         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76356         (jm_PREREQ_HASH): New function.
76357
76358 2001-01-17  Jim Meyering  <meyering@lucent.com>
76359
76360         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76361         for autoconf-2.49c.
76362         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76363
76364 2001-01-16  Jim Meyering  <meyering@lucent.com>
76365
76366         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76367         From Bruno Haible.
76368
76369 2001-01-14  Jim Meyering  <meyering@lucent.com>
76370
76371         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76372         foo and bar.  Create conftestdir/ in the script, not in the C code.
76373         Remove directories in the script, not in the C code.
76374         Remove conftestdir{,2} before trying to create the directory.
76375         Make the entire configure script fail if the mkdir fails.
76376
76377 2001-01-14  Jim Meyering  <meyering@lucent.com>
76378
76379         * lib/rename.c: New file.  From Volker Borchert.
76380         Include stdlib.h, string.h or strings.h, and xalloc.h.
76381         Use strip_trailing_slashes rather than open-coding it.
76382
76383 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76384
76385         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76386
76387 2001-01-03  Jim Meyering  <meyering@lucent.com>
76388
76389         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76390         of local `inptr' to avoid warning with some system declarations of
76391         iconv.
76392
76393 2001-01-02  Volker Borchert  <bt@teknon.de>
76394
76395         * m4/rename.m4: New file.
76396         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76397
76398 2001-01-01  Jim Meyering  <meyering@lucent.com>
76399
76400         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76401         even on systems with utmpx.h.  It's necessary for the declaration of
76402         utmp's ut_user member.  Reported by Andreas Jaeger.
76403
76404         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76405         available. They are required for the declarations of getgrgid and
76406         getpwuid resp.
76407         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76408         Reported by Andreas Jaeger.
76409
76410 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76411
76412         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76413         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76414         so `make install' also works in VPATH builds.
76415
76416 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76417
76418         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76419         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76420         can be used in subdirectories.
76421
76422 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76423
76424         * lib/modechange.c: Do not assume that mode_t uses the
76425         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76426         the other-execute bit of FOO even if S_IXOTH != 1.
76427
76428         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76429         WOTH, XOTH, ALLM): New macros.
76430         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76431          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76432         Use them.
76433         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76434         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76435         (mode_compile):
76436         No need to use uintmax_t; unsigned long is long enough.
76437         Don't bother to get suffix since we don't use it.
76438
76439 2000-12-26  Jim Meyering  <meyering@lucent.com>
76440
76441         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76442         better with autoheader.
76443
76444 2000-12-24  Jim Meyering  <meyering@lucent.com>
76445
76446         * lib/hash.c (is_prime): Return explicit boolean values.
76447         (hash_get_first): Return NULL to appease Irix5.6's 89.
76448         Reported by Nelson Beebe.
76449
76450 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76451
76452         * lib/localcharset.c (locale_charset): Add support for Win32.
76453
76454 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76455
76456         * lib/physmem.h, lib/physmem.c: New files.
76457
76458         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76459         (noinst_HEADERS): Add physmem.h.
76460
76461         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76462         't' for compatibility with Solaris 8 sort.
76463
76464 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76465
76466         * lib/config.charset: Add support for BeOS.
76467
76468 2000-12-17  Jim Meyering  <meyering@lucent.com>
76469
76470         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76471         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76472
76473 2000-12-16  Jim Meyering  <meyering@lucent.com>
76474
76475         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76476         N and M) would have treated it like `chown N:N FILE'.
76477
76478         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76479
76480 2000-12-16  Jim Meyering  <meyering@lucent.com>
76481
76482         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76483         SHELLS_FILE to a file name that's useful on djgpp systems.
76484         Include stdlib.h.
76485         (ADDITIONAL_DEFAULT_SHELLS): Define.
76486         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76487         Based mostly on a patch from Prashant TR.
76488
76489 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76490
76491         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76492         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76493         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76494
76495 2000-12-08  Andreas Schwab  <schwab@suse.de>
76496
76497         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76498         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76499
76500 2000-12-07  Jim Meyering  <meyering@lucent.com>
76501
76502         * lib/stripslash.c (ISSLASH): Define.
76503         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76504         `/'.
76505         From Prashant TR.
76506
76507         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76508         (dir_name_r): Declare this function as static.
76509         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76510         manifest itself on a name containing a mix of slashes and
76511         backslashes.
76512         Make this function work with names starting with a DOS-style
76513         drive letter and colon prefix.
76514         (dir_name): Append `.' if necessary.
76515         Based mostly on patches from Prashant TR and Eli Zaretskii.
76516
76517         * lib/dirname.h (dir_name_r): Remove prototype.
76518
76519 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76520
76521         * m4/off_t-format.m4: Remove this file.
76522         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76523
76524 2000-12-06  Jim Meyering  <meyering@lucent.com>
76525
76526         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76527         replacement strtoull, we may well need the replacement strtoul, too.
76528         Check for declarations of strtoul and strtoull.
76529         Check for strtol.  Mainly as a cue to cause automake to include
76530         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76531         Check for limits.h -- strtol.c needs it.
76532
76533 2000-12-05  Jim Meyering  <meyering@lucent.com>
76534
76535         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76536
76537 2000-12-04  Jim Meyering  <meyering@lucent.com>
76538
76539         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76540         Also include memory.h, stdlib.h, unistd.h if appropriate.
76541         Reported by Andreas Jaeger (conflicting declaration of malloc).
76542
76543 2000-12-02  Jim Meyering  <meyering@lucent.com>
76544
76545         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76546         * m4/jm-macros.m4 (jm_MACROS): require it.
76547
76548 2000-12-02  Jim Meyering  <meyering@lucent.com>
76549
76550         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76551
76552 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76553
76554         * lib/memrchr.c: Include <config.h> before any system include file.
76555
76556 2000-11-30  Jim Meyering  <meyering@lucent.com>
76557
76558         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76559
76560 2000-11-30  Jim Meyering  <meyering@lucent.com>
76561
76562         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76563
76564 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76565
76566         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76567
76568 2000-11-26  Jim Meyering  <meyering@lucent.com>
76569
76570         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76571
76572 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76573
76574         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76575         size of (size_t) -1; it's not portable.
76576
76577 2000-11-17  Jim Meyering  <meyering@lucent.com>
76578
76579         * lib/strstr.c: Update from GNU libc.
76580
76581 2000-11-17  Akim Demaille  <akim@epita.fr>
76582
76583         * lib/obstack.h: Formatting changes.
76584         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76585         prevent type checking.
76586         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76587         cast the value to (void *): assigning a `foo *' to a `void *'
76588         variable is valid.
76589         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76590
76591 2000-11-16  Jim Meyering  <meyering@lucent.com>
76592
76593         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76594
76595 2000-11-11  Jim Meyering  <meyering@lucent.com>
76596
76597         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76598
76599 2000-11-10  Jim Meyering  <meyering@lucent.com>
76600
76601         * lib/obstack.h: Update from GNU libc.
76602         * lib/obstack.c: Likewise.
76603
76604 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76605
76606         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76607
76608 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76609
76610         * lib/getusershell.c (setusershell): Use rewind rather than
76611         fseek/fseeko, to avoid configuration hassles with fseeko.
76612         Don't bother opening SHELLS_FILE if shellstream is NULL;
76613         it's not necessary.
76614
76615 2000-11-05  Jim Meyering  <meyering@lucent.com>
76616
76617         * lib/makepath.h (make_dir): Declare.
76618         * lib/makepath.c (make_dir): Remove `static' attribute.
76619         Tweak a comment.
76620
76621 2000-11-04  Jim Meyering  <meyering@lucent.com>
76622
76623         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76624
76625 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76626
76627         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76628         last one in a bucket, advance to the next bucket.
76629
76630 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76631
76632         * lib/fnmatch.c: Do not comment out all the code if we are using
76633         the GNU C library, because in some cases we are replacing buggy
76634         code in the GNU C library itself.
76635
76636 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76637
76638         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76639         (regex_compile): Catch bogus \(\1\).
76640
76641 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76642
76643         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76644         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76645         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76646
76647 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76648
76649         * lib/error.h, getline.h, modechange.h:
76650         Remove "2000" from Copyright line, as the file hasn't been
76651         changed this year other than in the copyright notice.
76652
76653         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76654         was changed this year.
76655
76656 2000-10-29  Jim Meyering  <meyering@lucent.com>
76657
76658         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76659         renaming.
76660         * m4/ls-mntd-fs.m4: Likewise
76661
76662 2000-10-29  Jim Meyering  <meyering@lucent.com>
76663
76664         * lib/xstat.in: Fix grammar in comment.
76665
76666 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76667
76668         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76669         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76670         doesn't define __restrict_arr.
76671
76672 2000-10-28  Jim Meyering  <meyering@lucent.com>
76673
76674         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76675         (jm_PREREQ_MEMCHR): New function.
76676
76677 2000-10-28  Jim Meyering  <meyering@lucent.com>
76678
76679         * lib/memchr.c: Update from libc.
76680         Adjust for portability:
76681         [HAVE_STDLIB_H]: Include stdlib.h.
76682         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76683         Undef __memchr, too.
76684         [!weak_alias]: Define __memchr to memchr.
76685
76686         * lib/regex.c: Update from libc.
76687         * lib/regex.h: Likewise.
76688         * lib/getopt1.c: Likewise.
76689         * lib/memcmp.c: Likewise.
76690
76691         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76692         Avoid using fseek, when possible -- it's broken by design.
76693         Patch by Ulrich Drepper.
76694
76695 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76696
76697         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76698         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76699         Giving in to popular pressure to shut up the compiler with casts.
76700
76701 2000-10-26  Jim Meyering  <meyering@lucent.com>
76702
76703         * lib/strftime.c: Update from libc.
76704
76705 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76706
76707         * regex.c: More `unsigned char' -> `re_char' changes.
76708         Also change several `int' into `re_wchar_t'.
76709         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76710         (PUSH_FAILURE_POINTER): Don't cast any more.
76711         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76712         We want GCC to complain, since this piece of code makes
76713         re_match non-reentrant, which *should* be fixed.
76714         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76715         (EXTEND_BUFFER): Use RETALLOC.
76716         (SET_LIST_BIT): Don't cast.
76717         (re_wchar_t): New type.
76718         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76719         that those two functions will always properly return.
76720         (IMMEDIATE_QUIT_CHECK): Cast to void.
76721         (analyse_first): Use recursion rather than an explicit stack.
76722         (re_compile_fastmap): Can't fail anymore.
76723         (re_search_2): Don't check re_compile_fastmap for failure.
76724         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76725         Now also sets the new value (passed in a new argument).
76726         (re_match_2_internal): Use it.
76727         Also, use a new var `reg' of type size_t when looping through regs
76728         rather than reuse the inappropriate `mcnt'.
76729
76730 2000-10-25  Jim Meyering  <meyering@lucent.com>
76731
76732         * lib/obstack.c: Update from libc.
76733
76734 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76735
76736         * regex.c (regex_compile): Change the way of handling a range from
76737         a char less than 256 to a char not less than 256.
76738
76739 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76740
76741         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76742         NT-Emacs only.
76743         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76744         so that re_search functions only quit when callers expect them to.
76745
76746 2000-10-23  Jim Meyering  <meyering@lucent.com>
76747
76748         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76749         wrong.  That set_locale call must not have any side effects.
76750         From Paul Eggert.
76751
76752 2000-10-22  Jim Meyering  <meyering@lucent.com>
76753
76754         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76755         [CYCLIC]: Remove now-unused definition.
76756
76757         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76758         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76759         Suggestion from Ulrich Drepper.
76760
76761 2000-10-21  Jim Meyering  <meyering@lucent.com>
76762
76763         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76764         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76766
76767 2000-10-21  Jim Meyering  <meyering@lucent.com>
76768
76769         * lib/dirname.c (memrchr): Declare if necessary.
76770         (dir_name): Remove the restriction that there be no
76771         trailing slashes.  Now, this code skips past them, effectively
76772         ignoring them.
76773         [TEST_DIRNAME] (main): New unit tests.
76774
76775         * lib/memrchr.c: New file from GNU libc.
76776         Undef __memrchr, too.
76777         [!weak_alias]: Define __memrchr to memrchr.
76778         Guard weak_alias use with `#ifdef weak_alias'.
76779
76780 2000-10-21  Jim Meyering  <meyering@lucent.com>
76781
76782         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76783         (dir_name): Use dir_name_r.
76784         * lib/dirname.h (dir_name_r): Declare it.
76785
76786 2000-10-17  Jim Meyering  <meyering@lucent.com>
76787
76788         * lib/quote.h (PARAMS): Define and use.
76789         Reported by Akim Demaille.
76790
76791         * lib/getopt.c: Update from libc.
76792
76793 2000-10-16  Jim Meyering  <meyering@lucent.com>
76794
76795         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76796         setlocale.
76797         From Jan Fedak.
76798
76799 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76800
76801         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76802
76803 2000-09-25  Jim Meyering  <meyering@lucent.com>
76804
76805         * lib/md5.h (rol): Define (from GnuPG).
76806
76807         * lib/sha.c: Give credit (GnuPG) where due.
76808         (M): Use rol rather than open-coding it.
76809         Add a FIXME comment.
76810
76811 2000-09-21  Jim Meyering  <meyering@lucent.com>
76812
76813         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76814         Reported by Michael Stone.
76815
76816 2000-09-20  Jim Meyering  <meyering@lucent.com>
76817
76818         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76819         (noinst_HEADERS): Add sha.h.
76820         Based on code from Scott G. Miller and from GnuPG.
76821
76822 2000-09-18  Jim Meyering  <meyering@lucent.com>
76823
76824         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76825         LIBS. Otherwise, everyone ends up linking with -lelf for some
76826         configurations.
76827         Reported by Mike Stone.
76828
76829 2000-09-15  Jim Meyering  <meyering@lucent.com>
76830
76831         * lib/regex.c: Update from libc.
76832
76833 2000-09-10  Jim Meyering  <meyering@lucent.com>
76834
76835         * lib/getopt.c (_getopt_internal): Update from glibc.
76836
76837 2000-09-09  Jim Meyering  <meyering@lucent.com>
76838
76839         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76840         think it should be used as a general replacement for isascii.
76841         * lib/fnmatch.c: Likewise.
76842         * lib/mbswidth.c: Likewise
76843         * lib/regex.c: Likewise.
76844
76845         Don't use atoi.
76846         * lib/userspec.c: Include sys/param.h and limits.h.
76847         Include xstrtol.h.
76848         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76849         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76850         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76851         UID, GID.  Check range.
76852
76853 2000-09-06  Jim Meyering  <meyering@lucent.com>
76854
76855         * lib/getopt.c (_getopt_internal): Update from glibc.
76856
76857 2000-08-30  Jim Meyering  <meyering@lucent.com>
76858
76859         * lib/strftime.c: Merge in changes from GNU libc.
76860
76861 2000-08-26  Jim Meyering  <meyering@lucent.com>
76862
76863         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76864         * m4/fpending.m4: New file.
76865
76866 2000-08-26  Jim Meyering  <meyering@lucent.com>
76867
76868         * lib/closeout.c: Include "__fpending.h".
76869         (close_stdout_status): Return right away if there's nothing to flush.
76870
76871         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76872         * lib/__fpending.c: New file.
76873         * lib/__fpending.h: New file.
76874
76875 2000-08-20  Jim Meyering  <meyering@lucent.com>
76876
76877         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76878         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76879         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76880
76881 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76882
76883         Improve fileutils installation on systems where running
76884         programs (like install) can't be unlinked.
76885         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76886         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76887
76888 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76889
76890         Standardize on "memory exhausted" instead of "Memory exhausted"
76891         or "virtual memory exhausted".
76892         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76893         "virtual memory exhausted".
76894         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76895         our own message.
76896         * lib/userspec.c (parse_user_spec): Likewise.
76897         * lib/bumpalloc.h: comment fix
76898         * lib/same.c, userspec.c: Include xalloc.h.
76899
76900         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76901         not char *const and pointing to a constant array.
76902         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76903         (xrealloc): Comment fix.
76904
76905         * lib/userspec.c (parse_user_spec):
76906         Don't translate a message until just before returning,
76907         to avoid unnecessary translation.
76908
76909 2000-08-07  Jim Meyering  <meyering@lucent.com>
76910
76911         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76912         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76913         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76914         getgroups.c, gethostname.c, getopt.h, group-member.c,
76915         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76916         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76917         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76918         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76919         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76920         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76921         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76922         yesno.c: Back out Copyright date changes for each file with no change
76923         this year.  This eases coordination with other programs using the same
76924         source code modules.  From Paul Eggert.
76925
76926 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76927
76928         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76929         not char, for compatibility with glibc 2.1.3 strftime.c.
76930
76931 2000-08-03  Greg McGary  <greg@mcgary.org>
76932
76933         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76934         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76935         (EXTEND_BUFFER): Use them.
76936
76937 2000-08-01  Jim Meyering  <meyering@lucent.com>
76938
76939         * lib/dirname.c (ISSLASH): Define.
76940         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76941         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76942         both `\' and `/' may be use as path separators.
76943         Based on a patch from Prashant TR.
76944
76945 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76946
76947         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76948         slot vector a constant, since it might get modified.
76949
76950 2000-07-31  Jim Meyering  <meyering@lucent.com>
76951
76952         * lib/xmalloc.c: Use `virtual memory exhausted', not
76953         `Memory exhausted'.
76954         * lib/obstack.c (print_and_abort): Likewise.
76955
76956 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76957
76958         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76959         buffer, so that the caller can always quote one small
76960         component of a "memory exhausted" message in slot 0.
76961         From a suggestion by Jim Meyering.
76962
76963 2000-07-30  Jim Meyering  <meyering@lucent.com>
76964
76965         * lib/makepath.c (make_path): Quote the other instance, too.
76966
76967         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76968         (STATIC_BUF_SIZE): Define.
76969         (quotearg_n_options): Use only statically allocated storage when
76970         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76971         than STATIC_BUF_SIZE.
76972
76973 2000-07-29  Jim Meyering  <meyering@lucent.com>
76974
76975         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76976         * lib/dirname.c (dir_name): Likewise.
76977
76978         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76979         `/'.
76980
76981         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76982         (dir_name): Assert that there are no trailing slashes.
76983
76984 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76985
76986         * lib/mbswidth.h (mbswidth): Add a flags argument.
76987         (mbswidth): New declaration.
76988         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76989         * lib/mbswidth.c (mbswidth): Add a flags argument.
76990         (mbsnwidth): New function.
76991
76992 2000-07-24  Jim Meyering  <meyering@lucent.com>
76993
76994         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76995
76996 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76997
76998         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76999
77000 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77001
77002         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77003         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77004         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77005         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77006         invoke multibyte primitives.
77007
77008 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77009
77010         * lib/quotearg.c:
77011         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77012         so that mbstate_t is always defined.
77013
77014         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77015         be 1 in at least one GCC installation, and this configuration
77016         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77017         performance on hosts that have mbrtowc but have only unibyte
77018         locales, but I assume these hosts are rare.
77019
77020 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77021
77022         * lib/mbswidth.c (_XOPEN_SOURCE):
77023         Don't define; this causes problems on Solaris 7.
77024         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77025
77026 2000-07-23  Jim Meyering  <meyering@lucent.com>
77027
77028         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77029         too: getgrgid, getpwuid, getuid.
77030
77031 2000-07-23  Jim Meyering  <meyering@lucent.com>
77032
77033         * lib/basename.c (base_name): Add an assertion.
77034
77035 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77036
77037         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77038         shadow its mbsinit function.
77039
77040 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77041
77042         * lib/mbswidth.h: New file.
77043         * lib/mbswidth.c: New file.
77044         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77045         (noinst_HEADERS): Add mbswidth.h.
77046
77047 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77048
77049         * lib/config.charset: Add support for FreeBSD. Improve support for
77050         HP-UX and IRIX 6.
77051
77052 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77053
77054         * m4/mbswidth.m4: New file.
77055         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77056
77057 2000-07-15  Jim Meyering  <meyering@lucent.com>
77058
77059         * lib/makepath.c: Include quote.h.
77060         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77061         corresponding argument in a `quote (...)' call.
77062         Give better diagnostics.
77063
77064         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77065         (noinst_HEADERS): Add quote.h.
77066
77067         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77068         from tar's src/misc.c.
77069         * lib/quote.h: New file.  Prototypes for same.
77070
77071 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77072
77073         From a suggestion by Bruno Haible.
77074         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77075         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77076         to decide whether to define the BeOS workaround macro;
77077         this adjusts to the change to AC_MBSTATE_T.
77078
77079 2000-07-14  Jim Meyering  <meyering@lucent.com>
77080
77081         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77082         jm_AC_TYPE_UINTMAX_T.
77083
77084 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77085
77086         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77087
77088         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77089         quotearg_buffer_restyled): Add support for
77090         clocale_quoting_style.  Undo previous change to
77091         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77092         and "{RIGHT QUOTATION MARK}" msgids.
77093
77094 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77095
77096         From a suggestion by Bruno Haible.
77097         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77098         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77099         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77100         and mbstate_t, to a single-part test that simply defines mbstate_t.
77101         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77102         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77103
77104 2000-07-10  Jim Meyering  <meyering@lucent.com>
77105
77106         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77107
77108         * m4/gnu-source.m4: Output to confdefs.h directly.
77109         Suggestion from Akim Demaille.
77110
77111 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77112
77113         The old behavior of quoting `like this' doesn't look good with
77114         newer, ISO-style fonts.  See:
77115         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77116
77117         Instead, quote "like this" by default.  Let the translator
77118         tailor the locale-specific quoting behavior by providing
77119         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77120
77121         * lib/quotearg.c (N_): New macro.
77122         (gettext_default): New function.
77123         (quotearg_buffer_restyled): Use
77124         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77125         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77126
77127 2000-07-09  Jim Meyering  <meyering@lucent.com>
77128
77129         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77130         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77131
77132         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77134
77135 2000-07-09  Jim Meyering  <meyering@lucent.com>
77136
77137         * lib/Most files: Update copyright dates to include 2000.
77138
77139 2000-07-08  Jim Meyering  <meyering@lucent.com>
77140
77141         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77142         if not defined.
77143         (xgethostname): Remove now-unnecessary #ifdef.
77144         Move declaration of `err' into loop where it's used.
77145
77146 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77147         and Bruno Haible  <haible@clisp.cons.org>
77148
77149         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77150         only if the test for an object-type mbstate_t fails.  This
77151         prevents us from mistakenly reporting that mbstate_t is a
77152         system object type after we "#define mbstate_t int" to work
77153         around its lack.
77154
77155 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77156         and Bruno Haible  <haible@clisp.cons.org>
77157
77158         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77159
77160 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77161
77162         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77163         to strerror_r.
77164         Include <ctype.h> for use of isalpha.
77165
77166 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77167
77168         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77169         by allocating a larger buffer. Test the gethostname return value for
77170         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77171         returns an error and ENAMETOOLONG isn't defined.
77172
77173 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77174
77175         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77176         dimension.
77177
77178 2000-07-04  Jim Meyering  <meyering@lucent.com>
77179
77180         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77181         of the deprecated AC_CHECKING.
77182
77183 2000-07-04  Jim Meyering  <meyering@lucent.com>
77184
77185         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77186         Reported by Bruno Haible.
77187
77188 2000-07-04  Jim Meyering  <meyering@lucent.com>
77189
77190         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77191         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77192         lacks mbrtowc.
77193
77194 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77195
77196         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77197         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77198
77199 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77200         and Bruno Haible  <haible@clisp.cons.org>
77201
77202         * lib/quotearg.c (mbrtowc):
77203         Assign to *pwc, and return 1 only if result is nonzero.
77204         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77205
77206 2000-07-03  Jim Meyering  <meyering@lucent.com>
77207
77208         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77209
77210 2000-07-03  Jim Meyering  <meyering@lucent.com>
77211
77212         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77213         This is necessary to get a definition of e.g., UTMP_FILE on
77214         HP-UX 10.20.
77215         From Bob Proulx.
77216
77217 2000-07-02  Jim Meyering  <meyering@lucent.com>
77218
77219         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77220
77221         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77222         AC_LIBOBJ(function_name).
77223         * m4/chown.m4: Likewise.
77224         * m4/fnmatch.m4: Likewise.
77225         * m4/ftruncate.m4: Likewise.
77226         * m4/getgroups.m4: Likewise.
77227         * m4/getline.m4: Likewise.
77228         * m4/group-member.m4: Likewise.
77229         * m4/jm-macros.m4: Likewise.
77230         * m4/lstat.m4: Likewise.
77231         * m4/malloc.m4: Likewise.
77232         * m4/memcmp.m4: Likewise.
77233         * m4/nanosleep.m4: Likewise.
77234         * m4/putenv.m4: Likewise.
77235         * m4/realloc.m4: Likewise.
77236         * m4/regex.m4: Likewise.
77237         * m4/stat.m4: Likewise.
77238         * m4/strftime.m4: Likewise.
77239
77240 2000-07-02  Jim Meyering  <meyering@lucent.com>
77241
77242         * lib/quotearg.c (mbstate_t): Don't define here.
77243
77244 2000-07-02  Jim Meyering  <meyering@lucent.com>
77245
77246         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77247
77248 2000-07-01  Jim Meyering  <meyering@lucent.com>
77249
77250         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77251
77252 2000-07-01  Jim Meyering  <meyering@lucent.com>
77253
77254         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77255         problem.
77256
77257 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77258
77259         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77260         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77261
77262 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77263
77264         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77265         per change in ../m4/ls-mntd-fs.m4.
77266         (read_filesystem_list): Ignore symbolic links.
77267
77268 2000-06-29  Jim Meyering  <meyering@lucent.com>
77269
77270         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77271         for declaration of strcmp.
77272
77273         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77274
77275         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77276         Avoid warning by casting result to `char *' to remove `const'.
77277
77278 2000-06-28  Jim Meyering  <meyering@lucent.com>
77279
77280         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77281         included by quotearg.c, for which we perform this test.  From
77282         Bruno Haible.
77283
77284 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77285
77286         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77287         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77288         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77289
77290 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77291
77292         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77293
77294 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77295
77296         savedir now sets errno on failure and invokes xmalloc to get memory.
77297         Fix a couple of other minor bugs while we're at it.
77298
77299         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77300         (NAMLEN): Remove macro.
77301         (malloc, realloc): Remove decls.
77302         (stpcpy): Likewise.
77303         ("xalloc.h"): Include.
77304         (NAME_SIZE_DEFAULT): New macro.
77305         (savedir): Use xmalloc / xrealloc to allocate memory.
77306         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77307         Skip "" directory entries.
77308         Use strlen to calculate directory entry length, since the old method
77309         is rarely used these days and isn't worth supporting.
77310         Don't use a pointer after freeing it.
77311         Check for integer overflow when calculating allocation size.
77312         Use memcpy to copy entries, instead of stpcpy.
77313         Set errno properly when returning NULL.
77314         Check for readdir error.
77315
77316 2000-06-26  Jim Meyering  <meyering@lucent.com>
77317
77318         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77319
77320 2000-06-25  Jim Meyering  <meyering@lucent.com>
77321
77322         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77323         Linux header bug when _XOPEN_SOURCE is defined to 500.
77324
77325 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77326
77327         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77328         deficiency.
77329
77330 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77331
77332         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77333         Include xalloc.h.
77334         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77335
77336 2000-06-24  Jim Meyering  <meyering@lucent.com>
77337
77338         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77339         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77340         for which strerror does return char*, but which lacks a conveniently
77341         accessible declaration of the function.  If the compile-test says
77342         strerror_r doesn't work, then resort to a `run'-test that works on
77343         BeOS and segfaults on DEC Unix.
77344
77345 2000-06-24  Jim Meyering  <meyering@lucent.com>
77346
77347         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77348
77349 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77350
77351         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77352         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77353
77354 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77355
77356         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77357         (mbrtowc, mbstate_t): Define substitutes if
77358         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77359         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77360         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77361
77362 2000-06-23  Jim Meyering  <meyering@lucent.com>
77363
77364         * m4/afs.m4: Add missing AC_MSG_RESULT.
77365         Reported by Bruno Haible.
77366
77367         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77368         Suggestion from Bruno Haible.
77369
77370 2000-06-23  Jim Meyering  <meyering@lucent.com>
77371
77372         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77373
77374 2000-06-21  Jim Meyering  <meyering@lucent.com>
77375
77376         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77377
77378 2000-06-21  Jim Meyering  <meyering@lucent.com>
77379
77380         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77381         (noinst_HEADERS): Add getstr.h.
77382
77383         * lib/getline.c (getstr): Move into a separate file.
77384         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77385         the following changes: new parameter, delim2; both delim[12]
77386         parameters have type `int', not `char'.  The latter would lose
77387         with 8-bit delimiters.
77388         * lib/getstr.h: New file.
77389
77390 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77391
77392         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77393         than 1024, return a memory chunk of least possible size, instead
77394         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77395         Use free/xmalloc instead of xrealloc to avoid copying for very long
77396         paths.
77397
77398 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77399
77400         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77401         the empty string.
77402
77403 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77404
77405         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77406         address, not strdup.  Include <stdlib.h> and don't declare free().
77407
77408 2000-06-19  Jim Meyering  <meyering@lucent.com>
77409
77410         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77411
77412 2000-06-18  Jim Meyering  <meyering@lucent.com>
77413
77414         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77415
77416         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77417         `checking whether...' message to be consistent with that of the
77418         lstat test.
77419
77420 2000-06-18  Jim Meyering  <meyering@lucent.com>
77421
77422         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77423         Besides, these days every porting target provides a mkdir function.
77424
77425         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77426         needed. (this snippet comes from src/system.h).
77427
77428 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77429
77430         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77431
77432 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77433
77434         * lib/human.c (adjust_value): New function.
77435         (human_readable_inexact): Apply rounding style even when
77436         printing approximate values.
77437
77438 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77439
77440         * lib/human.c (human_readable_inexact): Allow an input block
77441         size that is not a multiple of the output block size, and vice versa.
77442         Reported by Piergiorgio Sartor.
77443
77444 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77445
77446         * lib/getdate.y (get_date): Apply relative times after time
77447         zone indicator, not before.  Reported by Todd A. Jacobs.
77448
77449 2000-06-13  Jim Meyering  <meyering@lucent.com>
77450
77451         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77452
77453         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77454
77455 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77456
77457         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77458
77459 2000-06-12  Jim Meyering  <meyering@lucent.com>
77460
77461         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77462         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77463         optional argument.
77464         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77465         the optional argument, `lib'.
77466
77467 2000-06-08  Jim Meyering  <meyering@lucent.com>
77468
77469         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77470
77471 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77472
77473         Rewrite largefile configuration so that we don't need to run
77474         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77475         AC_CANONICAL_HOST in configure.in -- jmm]
77476
77477         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77478         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77479         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77480         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77481         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77482         All uses changed.
77483         Instead of inspecting the output of getconf, try to compile the
77484         test program without and with the macro definition.
77485         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77486         for getconf.  Instead, check for the needed flags by compiling
77487         test programs.
77488
77489 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77490
77491         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77492
77493 2000-06-04  Jim Meyering  <meyering@lucent.com>
77494
77495         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77496         SunOS 4.1.4 for which gid_t is an unsigned type.
77497
77498 2000-06-03  Jim Meyering  <meyering@lucent.com>
77499
77500         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77501         now that autoconf requires that.
77502
77503         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77504         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77505         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77506
77507 2000-06-03  Jim Meyering  <meyering@lucent.com>
77508
77509         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77510
77511 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77512
77513         * m4/glibc21.m4: New file.
77514         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77515
77516 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77517
77518         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77519         newer, don't install charset.alias.
77520         * lib/config.charset: Change the Linux/glibc rules so they become empty
77521         on glibc-2.1 or newer.
77522
77523 2000-06-02  Jim Meyering  <meyering@lucent.com>
77524
77525         * lib/mountlist.c: Back out last change.  Instead, do this...
77526         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77527         me_dummy member using the same `ignore'-testing code.
77528         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77529         fs_type strings.
77530         From Mark D. Roth.
77531
77532 2000-05-29  Jim Meyering  <meyering@lucent.com>
77533
77534         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77535         mounts with the `ignore' attribute.  Based on a patch from
77536         Mark D. Roth.
77537
77538 2000-05-28  Jim Meyering  <meyering@lucent.com>
77539
77540         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77541         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77542         * m4/stat.m4: Likewise.
77543         * m4/lstat.m4: Likewise.
77544         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77545
77546         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77547         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77548
77549 2000-05-26  Jim Meyering  <meyering@lucent.com>
77550
77551         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77552
77553 2000-05-24  Jim Meyering  <meyering@lucent.com>
77554
77555         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77556         autoconf requires that.
77557         * m4/lib-check.m4: Likewise.
77558         * m4/jm-macros.m4: Likewise.
77559         * m4/strftime.m4: Likewise.
77560
77561         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77562         AC_CHECK_DECLS, now that autoconf requires that.
77563
77564 2000-05-22  Jim Meyering  <meyering@lucent.com>
77565
77566         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77567         * m4/lstat.m4: Likewise.
77568
77569 2000-05-22  Jim Meyering  <meyering@lucent.com>
77570
77571         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77572
77573 2000-05-20  Jim Meyering  <meyering@lucent.com>
77574
77575         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77576         (jm_PREREQ): Use it.
77577
77578 2000-05-18  Jim Meyering  <meyering@lucent.com>
77579
77580         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77581         back, too, since it may have been modified by allocate_entry.
77582         (hash_delete): Rewrite to use neither the assignment operator
77583         nor the comma operator in an if-expression.
77584
77585 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77586
77587         * lib/closeout.c:
77588         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77589         Remove; no longer needed.
77590         "quotearg.h": Add include.
77591         (file_name): Do not bother to explicitly initialize to NULL; it's less
77592         efficient on some hosts.
77593         (close_stdout_status): Remove test as to whether stdout was already
77594         closed; it breaks for the case "echo x | sort >&-".
77595         Quote file name colons.
77596         Do not assume that _("write error") lacks format strings.
77597
77598 2000-05-15  Jim Meyering  <meyering@lucent.com>
77599
77600         * lib/version-etc.c (version_etc_copyright): Update the copyright
77601         string used in all --version output.
77602
77603 2000-05-14  Jim Meyering  <meyering@lucent.com>
77604
77605         * lib/closeout.c (close_stdout_set_file_name): New function.
77606         (close_stdout_status): Use new file-scoped global.
77607         Return right away if fstat says the stdout file descriptor is invalid.
77608         * lib/closeout.h (close_stdout_set_file_name): Declare.
77609
77610 2000-05-10  Jim Meyering  <meyering@lucent.com>
77611
77612         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77613         (close_stdout_set_status): New function.
77614         * lib/closeout.h (close_stdout_set_status): Declare.
77615
77616 2000-05-09  Jim Meyering  <meyering@lucent.com>
77617
77618         * m4/gettext.m4: Rename this...
77619         * m4/libintl.m4: ...to this.
77620
77621 2000-05-08  Jim Meyering  <meyering@lucent.com>
77622
77623         * lib/long-options.c: Don't include closeout.h.
77624         (parse_long_options): Don't call close_stdout for --version.
77625
77626 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77627
77628         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77629         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77630         2.1.3 bug.  This avoids a clash when files like regex.c define
77631         _GNU_SOURCE.
77632
77633 2000-05-06  Jim Meyering  <meyering@lucent.com>
77634
77635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77636         (AC_REPLACE_FUNCS): Add strnlen.
77637
77638         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77639         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77640
77641         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77642         AC_SEARCH_LIBS call for nanosleep.
77643         (LIB_NANOSLEEP): Set and AC_SUBST.
77644
77645 2000-05-06  Jim Meyering  <meyering@lucent.com>
77646
77647         * lib/strnlen.c: Undefine __strnlen and strnlen.
77648         [!weak_alias]: Define __strnlen to strnlen.
77649
77650         * lib/atexit.c: New file, from libiberty.
77651
77652 2000-05-06  Jim Meyering  <meyering@lucent.com>
77653
77654         * lib/closeout.c (close_stdout_status): Also check for errors on the
77655         stderr stream.
77656
77657 2000-05-05  Jim Meyering  <meyering@lucent.com>
77658
77659         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77660         AC_SEARCH_LIBS call for clock_gettime.
77661         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77662
77663         * m4/search-libs.m4: Update from autoconf.
77664
77665         su doesn't work on Solaris 2.6.
77666         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77667         <shadow.h>.  Reported by Dragos Harabor.
77668
77669 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77670
77671         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77672         memcpy instead of xmalloc, xrealloc, path_concat.
77673         (locale_charset): Treat empty environment variables as absent.
77674         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77675
77676 2000-05-04  Jim Meyering  <meyering@lucent.com>
77677
77678         * lib/getopt.c: Update from glibc.
77679         * lib/obstack.c: Likewise.
77680         * lib/obstack.h: Likewise.
77681         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77682         file
77683
77684         * lib/regex.h: Likewise.
77685         * lib/strndup.c: Likewise.
77686         * lib/strnlen.c: New file, from glibc.
77687
77688 2000-05-03  Jim Meyering  <meyering@lucent.com>
77689
77690         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77691
77692 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77693
77694         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77695         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77696         compile-time test, rather than inspecting host and OS, to
77697         decide whether to define _LARGEFILE_SOURCE.
77698
77699 2000-05-01  Jim Meyering  <meyering@lucent.com>
77700
77701         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77702
77703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77704         Based on a patch from Bruno Haible.
77705
77706 2000-05-01  Jim Meyering  <meyering@lucent.com>
77707
77708         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77709
77710 2000-04-29  Jim Meyering  <meyering@lucent.com>
77711
77712         * lib/path-concat.c: Declare strdup only if it's not defined.
77713         * lib/canon-host.c: Likewise.
77714
77715 2000-04-28  Jim Meyering  <meyering@lucent.com>
77716
77717         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77718         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77719         is included first, then limits.h is included by locale.h by libintl.h.
77720         From John David Anglin.
77721
77722 2000-04-25  Jim Meyering  <meyering@lucent.com>
77723
77724         * lib/makepath.c (S_IRWXUGO): Define.
77725         (make_path): Always perform explicit chmod if MODE specifies any
77726         of the `special' permission bits.  Prompted by a bug report against
77727         install from Mate Wierdl and Joost van Baal.
77728
77729 2000-04-18  Jim Meyering  <meyering@lucent.com>
77730
77731         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77732         (jm_PREREQ): Use it.
77733
77734 2000-04-18  Jim Meyering  <meyering@lucent.com>
77735
77736         * lib/README: New file.
77737
77738         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77739         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77740
77741 2000-04-17  Jim Meyering  <meyering@lucent.com>
77742
77743         Get it right :-)
77744         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77745         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77746         Suggestion from Akim Demaille.
77747
77748 2000-04-17  Jim Meyering  <meyering@lucent.com>
77749
77750         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77751         the definition of it to rpl_strftime also defined-away the system's
77752         declaration.
77753
77754 2000-04-15  Jim Meyering  <meyering@lucent.com>
77755
77756         Use `C' to denote so-called `contiguous' files, the same way
77757         that tar does.
77758         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77759         (ftypelet): Use S_ISCTG.
77760         From Michael Deutschmann.
77761
77762 2000-04-14  Jim Meyering  <meyering@lucent.com>
77763
77764         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77765         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77766         clobbered.
77767
77768 2000-04-14  Jim Meyering  <meyering@lucent.com>
77769
77770         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77771
77772 2000-04-13  Jim Meyering  <meyering@lucent.com>
77773
77774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77775         AH_VERBATIM to insert required #ifndef into config.h.in.
77776         Suggestion from Akim Demaille.
77777
77778 2000-04-12  Jim Meyering  <meyering@lucent.com>
77779
77780         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77781         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77782         Christian Krackowizer.
77783
77784         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77785         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77786         (AC_SYS_LARGEFILE): Require.
77787         (AM_C_PROTOTYPES): Require.
77788
77789 2000-04-08  Jim Meyering  <meyering@lucent.com>
77790
77791         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77792         names don't conflict.  Reported by Eli Zaretskii.
77793
77794 2000-04-07  Jim Meyering  <meyering@lucent.com>
77795
77796         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77797         sys/types.h, to work around system header problems on AIX 3.2.5.
77798         From Bruno Haible.
77799
77800 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77801
77802         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77803         bug.  Deal with the different error behavior of Irix iconv.
77804
77805 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77806
77807         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77808         IRIX if the installer said otherwise.
77809
77810 2000-04-05  Jim Meyering  <meyering@lucent.com>
77811
77812         Portability tweaks required for ultrix4.3.
77813         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77814         (jm_CHECK_DECLS): Add getutent to the list of functions.
77815         (_jm_DECL_HEADERS): Add utmpx.h.
77816         From John David Anglin.
77817
77818         * m4/strftime.m4: Back out the 2000-04-02 change.
77819         Instead of that change, simply undefine putenv in the test program.
77820
77821 2000-04-05  Jim Meyering  <meyering@lucent.com>
77822
77823         Portability tweaks required for ultrix4.3.
77824         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77825         getutent.
77826         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77827         * lib/canon-host.c: Declare strdup.
77828         * lib/path-concat.c: Likewise.
77829         From John David Anglin.
77830
77831 2000-04-04  Jim Meyering  <meyering@lucent.com>
77832
77833         Be more DOS 8.3-friendly.
77834         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77835         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77836         * lib/Makefile.am: Reflect renaming.
77837         Reported by Eli Zaretskii.
77838
77839         Use a temporary file name that won't clash with `charset.alias'
77840         in the DOS 8.3 name space.
77841         * lib/Makefile.am (charset_tmp): Define.
77842         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77843         (uninstall-local): Likewise.
77844         Reported by Eli Zaretskii.
77845
77846 2000-04-03  Jim Meyering  <meyering@lucent.com>
77847
77848         * m4/gettext.m4: Fix typo in comment.
77849
77850         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77851         textutils/configure.in).  Suggestion from Paul Eggert.
77852         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77853
77854 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77855
77856         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77857         variable in the shell rather than using putenv, which isn't
77858         portable.  This avoids the configure-time inter-test dependency
77859         on the potentially-renamed putenv function.
77860
77861 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77862
77863         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77864         before checking struct stat.st_blksize, so that
77865         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77866
77867 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77868
77869         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77870         since strftime.c uses HAVE_STRFTIME to decide whether to use
77871         the underlying strftime.
77872
77873 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77874
77875         * lib/time/strftime.c (my_strftime): Make sure we call the system
77876         strftime, not ourselves, when invoking the underlying strftime.
77877
77878 2000-03-24  Jim Meyering  <meyering@lucent.com>
77879
77880         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77881         (charset_alias): Define.
77882         (install-exec-local): Factor out common code.
77883         (uninstall-local): Split lines longer than 80.
77884         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77885         (SUFFIXES): Define.
77886         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77887         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77888
77889 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77890
77891         * lib/config.charset: Output a line containing "Packages using this
77892         file".
77893         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77894         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77895         ref-del.sed): New rules.
77896
77897 2000-03-17  Jim Meyering  <meyering@lucent.com>
77898
77899         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77900         Otherwise, include <strings.h>
77901
77902 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77903
77904         * lib/unicodeio.c (utf8_wctomb): New function.
77905         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77906         format instead of in UCS-4 with platform dependent endianness.
77907
77908 2000-03-10  Jim Meyering  <meyering@lucent.com>
77909
77910         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77911         From Marco Franzen.
77912
77913 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77914
77915         * lib/savedir.c (savedir): Work even if directory size is
77916         negative; this can happen with some screwy NFS configurations.
77917
77918 2000-03-06  Jim Meyering  <meyering@lucent.com>
77919
77920         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77921         if it's NULL (because we ran out of memory).  From Bruno Haible.
77922
77923 2000-03-05  Jim Meyering  <meyering@lucent.com>
77924
77925         * lib/localcharset.c ("path-concat.h"): Include.
77926         (get_charset_aliases): Use path_concat instead of ANSI string
77927         concatenation.
77928
77929         * lib/unicodeio.h (PARAMS): Define.
77930         Use it to guard prototype.
77931
77932 2000-03-04  Jim Meyering  <meyering@lucent.com>
77933
77934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77935         for lib/localcharset.c.
77936
77937 2000-03-04  Jim Meyering  <meyering@lucent.com>
77938
77939         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77940         installing into it.
77941         (uninstall-local): Uncomment this rule so `make distcheck' works
77942         once again.
77943
77944         * lib/unicodeio.c (<errno.h>): Include it.
77945         (errno): Declare if not defined.
77946
77947         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77948
77949         * lib/config.charset: New version, incorporating remarks from a linux
77950         i18n mailing list.  From Bruno Haible.
77951
77952 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77953
77954         * m4/codeset.m4: New file.
77955         * m4/iconv.m4: New file.
77956         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77957
77958 2000-03-03  Jim Meyering  <meyering@lucent.com>
77959
77960         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77961
77962 2000-03-02  Jim Meyering  <meyering@lucent.com>
77963
77964         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77965         the messages come out on separate lines.
77966
77967         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77968         rather than jm_CHECK_DECLARATIONS.
77969         * m4/decl.m4: Remove now-unused file.
77970
77971         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77972         geteuid.
77973
77974 2000-03-02  Jim Meyering  <meyering@lucent.com>
77975
77976         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77977
77978 2000-03-01  Jim Meyering  <meyering@lucent.com>
77979
77980         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77981         * lib/unicodeio.c: Likewise.
77982
77983 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77984
77985         * lib/config.charset: New file.
77986         * lib/localcharset.c: New file.
77987         * lib/unicodeio.h, lib/unicodeio.c: New files.
77988         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77989         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77990         (noinst_HEADERS): Add unicodeio.h.
77991         (all-local, install-exec-local, charset.alias): New targets.
77992
77993 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77994
77995         * lib/quotearg.c (ALERT_CHAR): New macro.
77996         (quotearg_buffer_restyled): Use it.
77997
77998 2000-02-27  Jim Meyering  <meyering@lucent.com>
77999
78000         * m4/check-decl.m4: Add getenv to the list.
78001
78002 2000-02-27  Jim Meyering  <meyering@lucent.com>
78003
78004         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78005         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78006
78007         * lib/backupfile.c: Guard inclusion of stdlib.h with
78008         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78009         Declare malloc if needed.
78010
78011         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78012         `#ifndef HAVE_DECL..'
78013         now that autoconf always defines the HAVE_DECL_ symbols.
78014         * lib/human.c: Likewise.
78015         * lib/same.c: Likewise.
78016         * lib/strtoumax.c: Likewise.
78017
78018         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78019         declaration check was not run.
78020         * lib/hash.c: Likewise.
78021         * lib/human.c: Likewise.
78022         * lib/same.c: Likewise.
78023         * lib/strtoumax.c: Likewise.
78024
78025         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78026         `.', then first look up the entire `.'-containing string as a login
78027         name.
78028
78029 2000-02-23  Jim Meyering  <meyering@lucent.com>
78030
78031         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78032         in place of my hack.
78033
78034 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78035
78036         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78037         (textint): New typedef.
78038         (parser_control): Member year changed from int to textint.
78039         All uses changed.
78040         (YYSTYPE): Removed; replaced by %union with int and textint members.
78041         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78042         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78043         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78044         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78045         (date, number, to_year): Use width of number in digits, not its value,
78046         to determine whether it's a 2-digit year, or a 2-digit time.
78047         (yylex): Store number of digits of numeric tokens.
78048         Reported by John Kendall.
78049
78050         (parser_control): Changed from struct parser_control to typedef (for
78051         consistency).  All uses changed.
78052
78053         (tID): Removed; not used.
78054         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78055
78056 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78057
78058         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78059         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78060
78061 2000-02-12  Jim Meyering  <meyering@lucent.com>
78062
78063         * lib/userspec.c (ISDIGIT): Define it.
78064         (isdigit): Remove definition.
78065         (is_number): Use ISDIGIT, not isdigit.
78066         <libintl.h>: Include.
78067         (_ and N_): Define.
78068         (parse_user_spec): Mark translatable strings.
78069
78070 2000-02-10  Jim Meyering  <meyering@lucent.com>
78071
78072         With these changes, nanosleep.[ch] are finally enough like the other
78073         lib/* replacement files to compile on a few more losing systems.
78074
78075         * lib/nanosleep.h: Don't include config.h.
78076         Remove prototype from declaration of nanosleep.
78077         (PARAMS): Remove now-unneeded definition.
78078         * lib/nanosleep.c: #undef nanosleep.
78079         (rpl_nanosleep): Rename from nanosleep.
78080
78081 2000-02-10  Jim Meyering  <meyering@lucent.com>
78082
78083         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78084         gnu_nanosleep to rpl_nanosleep.
78085
78086 2000-02-09  Jim Meyering  <meyering@lucent.com>
78087
78088         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78089         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78090
78091 2000-02-08  Akim Demaille  <akim@epita.fr>
78092
78093         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78094         `[' and `]' and remove uses of `changequote'.
78095         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78096         (AC_SYS_LARGEFILE): Likewise.
78097         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78098         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78099         of changequote.
78100         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78101         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78102         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78103         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78104
78105 2000-02-05  Jim Meyering  <meyering@lucent.com>
78106
78107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78108         Remove explicit use of AC_HEADER_TIME.  It is required by
78109         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78110         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78111         in autoconf whereby the expansion of the latter ended up preceding
78112         the expansion of its prerequisite, AC_HEADER_TIME.
78113         Reported by Volker Borchert.
78114
78115 2000-02-03  Jim Meyering  <meyering@lucent.com>
78116
78117         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78118
78119 2000-02-03  Jim Meyering  <meyering@lucent.com>
78120
78121         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78122         rather than with `#if HAVE_UTMPNAME'.
78123
78124 2000-02-02  Jim Meyering  <meyering@lucent.com>
78125
78126         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78127         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78128         Reported by Eli Zaretskii.
78129
78130 2000-02-01  Jim Meyering  <meyering@lucent.com>
78131
78132         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78133
78134 2000-01-31  Jim Meyering  <meyering@lucent.com>
78135
78136         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78137         functions.  Add the time.h and sys/time.h headers along with the
78138         AC_REQUIRE'ment of AC_HEADER_TIME.
78139
78140 2000-01-31  Jim Meyering  <meyering@lucent.com>
78141
78142         * lib/nanosleep.h (nanosleep): Guard declaration with
78143         `#if ! HAVE_DECL_NANOSLEEP'.
78144         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78145         the declaration in that vendor's sys/timers.h.
78146         Reported by Christian Krackowizer.
78147
78148         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78149         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78150         (ISPRINT): Likewise.
78151         Reported by Tom Tromey.
78152
78153 2000-01-30  Jim Meyering  <meyering@lucent.com>
78154
78155         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78156
78157         * m4/prereq.m4 (utmp_includes): Define.
78158         Check for ut_user and ut_name members in both struct utmpx
78159         and struct utmp.
78160
78161 2000-01-30  Jim Meyering  <meyering@lucent.com>
78162
78163         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78164         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78165         header files where only utmpx.ut_user is declared.
78166
78167         * lib/readutmp.h (UT_USER): Define.
78168
78169 2000-01-29  Jim Meyering  <meyering@lucent.com>
78170
78171         * m4/lib-check.m4: New file containing library-related checks from
78172         fileutils and sh-utils (textutils had none).
78173
78174 2000-01-28  Jim Meyering  <meyering@lucent.com>
78175
78176         * m4/perl.m4: Change format of warning message to look more like that
78177         from the missing script.  Suggestion from François Pinard.
78178
78179 2000-01-25  Jim Meyering  <meyering@lucent.com>
78180
78181         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78182         well as time.h in the compile check.
78183         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78184         Fix typo in cross-compiling case: s/yes/no/.
78185
78186 2000-01-23  Jim Meyering  <meyering@lucent.com>
78187
78188         * m4/jm-macros.m4: Move df-related tests here from
78189         fileutils/configure.in
78190
78191         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78192         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78193
78194         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78195         s/space/ac_fsusage_space/.
78196         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78197
78198         * m4/ftruncate.m4: New file (derived from part of
78199         fileutils/configure.in).
78200         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78201         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78202
78203         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78204         AC_SUBST these here, rather than just in sh-util/configure.in, so
78205         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78206         all the same.
78207         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78208         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78209         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78210         (AC_SUBST(POW_LIBM)): Likewise.
78211         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78212
78213 2000-01-23  Jim Meyering  <meyering@lucent.com>
78214
78215         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78216         obstack.c.
78217
78218 2000-01-22  Jim Meyering  <meyering@lucent.com>
78219
78220         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78221
78222         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78223
78224         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78225         configure.in
78226         (AC_CHECK_HEADERS): Likewise for sh-utils.
78227         (AC_CHECK_HEADERS): Likewise for textutils.
78228         Merge the three lists of headers.
78229
78230         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78231         from fileutils' configure.in.
78232
78233         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78234         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78235         check-decl.m4.
78236
78237         * m4/check-decl.m4: Use #if rather than #ifdef.
78238         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78239         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78240         (_jm_DECL_HEADERS): Define new function.
78241         (jm_CHECK_DECLARATIONS): Require it.
78242
78243 2000-01-22  Jim Meyering  <meyering@lucent.com>
78244
78245         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78246         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78247         Required for some AIX systems.  Reported by Christian Krackowizer.
78248         [TESTING] (main): New function.
78249
78250         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78251         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78252         letters.
78253
78254         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78255         iswprint.
78256
78257         * lib/strverscmp.c (ISDIGIT): Define.
78258         (strverscmp): Use ISDIGIT, not isdigit.
78259
78260 2000-01-19  Jim Meyering  <meyering@lucent.com>
78261
78262         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78263         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78264         defines `struct timespec' in <sys/time.h>
78265
78266         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78267         Thanks to Akim for explaining.
78268
78269 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78270
78271         * lib/nanosleep.c (nanosleep):
78272         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78273         POSIX.1 doesn't require SA_INTERRUPT and some systems
78274         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78275         it's been part of POSIX.1 since day 1 (in 1988).
78276
78277 2000-01-17  Jim Meyering  <meyering@lucent.com>
78278
78279         * lib/interlock: Remove unused file.  Reported by François Pinard.
78280
78281 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78282
78283         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78284         alert, backslash, formfeed, and vertical tab unnecessarily in
78285         shell quoting style.
78286
78287 2000-01-16  Jim Meyering  <meyering@lucent.com>
78288
78289         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78290         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78291         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78292         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78293
78294 2000-01-16  Jim Meyering  <meyering@lucent.com>
78295
78296         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78297         because the latter didn't work.
78298
78299 2000-01-15  Jim Meyering  <meyering@lucent.com>
78300
78301         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78302         (AC_REPLACE_FUNCS): Add memcpy and memset.
78303         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78304         Add strpbrk.
78305         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78306
78307 2000-01-12  Jim Meyering  <meyering@lucent.com>
78308
78309         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78310         (jm_PREREQ): Use it.
78311         (jm_PREREQ_READUTMP): New macro.
78312         (jm_PREREQ): Use it.
78313
78314 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78315
78316         Quote multibyte characters correctly.
78317         * m4/c-bs-a.m4: New file.
78318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78319         (jm_PREREQ): Use it.
78320
78321 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78322
78323         * m4/uintmax_t.m4: Port to autoconf 2.13.
78324
78325 2000-01-08  Jim Meyering  <meyering@ascend.com>
78326
78327         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78328         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78329
78330 2000-01-04  Jim Meyering  <meyering@ascend.com>
78331
78332         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78333         jm_STRUCT_DIRENT_D_TYPE.
78334         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78335         jm_STRUCT_DIRENT_D_INO.
78336         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78337         jm_STRUCT_UTIMBUF.
78338         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78339         renamings.
78340         * m4/utime.m4: Likewise.
78341
78342         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78343         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78344
78345 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78346
78347         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78348         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78349
78350 2000-01-02  Jim Meyering  <meyering@ascend.com>
78351
78352         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78353         remember if this is necessary.
78354
78355 1999-12-26  Jim Meyering  <meyering@ascend.com>
78356
78357         * m4/jm-macros.m4: Use it here.
78358         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78359
78360 1999-12-23  Jim Meyering  <meyering@ascend.com>
78361
78362         * m4/jm-macros.m4: Check for clock_gettime (moved from
78363         fileutils/configure.in)
78364         Check for gettimeofday.
78365
78366 1999-12-20  Jim Meyering  <meyering@ascend.com>
78367
78368         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78369         autoconf-2.14a-1999-12-20.
78370
78371 1999-12-19  Jim Meyering  <meyering@ascend.com>
78372
78373         * m4/lstat-slash.m4: New file.
78374         * m4/jm-macros.m4: Use the new macro:
78375         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78376
78377 1999-12-07  Jim Meyering  <meyering@ascend.com>
78378
78379         * m4/perl.m4: Require that File::Compare be available, too.
78380         Too many systems seem to lack it.
78381
78382         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78383         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78384
78385 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78386
78387         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78388         problem with the QNX 4.25 shell, which doesn't propagate exit
78389         status of failed commands inside shell assignments.
78390
78391 1999-11-17  Jim Meyering  <meyering@ascend.com>
78392
78393         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78394
78395 1999-11-07  Jim Meyering  <meyering@ascend.com>
78396
78397         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78398
78399 1999-11-06  Jim Meyering  <meyering@ascend.com>
78400
78401         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78402         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78403
78404 1999-11-05  Jim Meyering  <meyering@ascend.com>
78405
78406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78407         configure.in of textutils, fileutils, and sh-utils into this one
78408         (shared between those packages) file.
78409         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78410         AC_STRUCT_ST_BLKSIZE.
78411
78412 1999-11-03  Jim Meyering  <meyering@ascend.com>
78413
78414         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78415         of AC_CHECK_TYPE checks includes unistd.h.
78416         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78417         Suggestion from Akim Demaille.
78418
78419 1999-10-30  Jim Meyering  <meyering@ascend.com>
78420
78421         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78422         m4-quoted string.
78423         * m4/ls-mntd-fs.m4: Likewise.
78424         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78425         * m4/jm-winsz1.m4: Likewise.
78426
78427         * m4/const.m4: Remove file, since the fix made it into the experimental
78428         version of autoconf.
78429         * m4/mktime.m4: Likewise.
78430
78431         * m4/check-type.m4: Remove file, now that the latest version of
78432         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78433
78434         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78435         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78436         AC_CHECK_TYPE.
78437
78438 1999-10-04  Jim Meyering  <meyering@ascend.com>
78439
78440         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78441
78442 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78443
78444         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78445         2.95.1 bug with HP-UX 10.20.
78446
78447 1999-09-17  Jim Meyering  <meyering@ascend.com>
78448
78449         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78450         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78451         due to missing strdup (against sh-utils-2.0).
78452
78453 1999-08-29  Jim Meyering  <meyering@ascend.com>
78454
78455         * m4/jm-macros.m4: Require jm_BISON.
78456         * m4/bison.m4: New file.
78457
78458 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78459
78460         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78461         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78462
78463 1999-08-05  Jim Meyering  <meyering@ascend.com>
78464
78465         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78466         to avoid conflicts with `conftest' on 8+3 filesystems.
78467         Suggestion from Eli Zaretskii.
78468
78469 1999-08-04  Jim Meyering  <meyering@ascend.com>
78470
78471         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78472         fileutils and sh-utils (textutils's getline test was inadequate).
78473         (AM_FUNC_GETLINE): Run this test.
78474         (AC_CHECK_FUNCS): Check for getdelim.
78475         Reported by Bob Proulx.
78476
78477 1999-08-02  Jim Meyering  <meyering@ascend.com>
78478
78479         * m4/jm-macros.m4: Add a comment.
78480
78481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78482
78483         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78484         <inttypes.h> defines strtoumax as a macro (and not as a
78485         function).
78486
78487 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78488
78489         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78490         that we can shift, multiply and divide unsigned long long
78491         values; Ultrix cc can't do it.
78492
78493 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78494
78495         * m4/mktime.m4: New file, which is a preview of what should appear
78496         in the next public autoconf release.
78497
78498 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78499
78500         * m4/lfs.m4: Remove this file.
78501         * m4/largefile.m4: New file.  It contains the old contents of
78502         lfs.m4, except that all names with prefix AC_LFS have been
78503         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78504         compatible with future autoconf versions.  Also, some minor m4
78505         quoting problems have been fixed.
78506
78507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78508
78509         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78510         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78511         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78512         and simplify the shell code.
78513
78514 1999-08-01  Jim Meyering  <meyering@ascend.com>
78515
78516         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78517         m4.
78518
78519 1999-07-20  Jim Meyering  <meyering@ascend.com>
78520
78521         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78522
78523 1999-07-15  Jim Meyering  <meyering@ascend.com>
78524
78525         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78526
78527 1999-05-22  Jim Meyering  <meyering@ascend.com>
78528
78529         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78530
78531 1999-05-20  Jim Meyering  <meyering@ascend.com>
78532
78533         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78534         Add a colon after each `then' in case $4 is empty.
78535
78536 1999-05-16  Jim Meyering  <meyering@ascend.com>
78537
78538         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78539
78540 1999-05-10  Jim Meyering  <meyering@ascend.com>
78541
78542         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78543
78544         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78545         AC_FUNC_MKTIME.
78546
78547 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78548
78549         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78550
78551 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78552
78553         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78554         not CPPFLAGS, so that linking works correctly in IRIX.
78555
78556 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78557
78558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78559
78560 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78561
78562         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78563         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78565         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78566         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78567
78568         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78569
78570 1999-04-20  Jim Meyering  <meyering@ascend.com>
78571
78572         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78573         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78574         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78575
78576 1999-04-18  Jim Meyering  <meyering@ascend.com>
78577
78578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78579         * m4/jm-macros.m4: Use it.
78580
78581 1999-04-06  Jim Meyering  <meyering@ascend.com>
78582
78583         * m4/strftime.m4: Remove test for %f.
78584
78585 1999-03-29  Jim Meyering  <meyering@ascend.com>
78586
78587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78588         superset of the AC_TYPE_* checks in the textutils, fileutils,
78589         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78590         AC_TYPE_PID_T.
78591
78592 1999-03-28  Jim Meyering  <meyering@ascend.com>
78593
78594         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78595         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78596         replaced e.g., in the *.sh files of the sh-utils.
78597
78598 1999-03-20  Jim Meyering  <meyering@ascend.com>
78599
78600         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78601         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78602         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78603
78604 1999-03-19  Jim Meyering  <meyering@ascend.com>
78605
78606         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78607
78608 1999-03-12  Jim Meyering  <meyering@ascend.com>
78609
78610         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78611
78612 1999-03-07  Jim Meyering  <meyering@ascend.com>
78613
78614         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78615         declared.
78616
78617 1999-02-17  Jim Meyering  <meyering@ascend.com>
78618
78619         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78620         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78621
78622 1999-02-07  Jim Meyering  <meyering@ascend.com>
78623
78624         * m4/group-member.m4: New file -- extracted from sh-utils'
78625         configure.in.
78626
78627         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78628         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78629
78630 1999-02-06  Jim Meyering  <meyering@ascend.com>
78631
78632         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78633         * m4/fnmatch.m4: Likewise.
78634         * m4/getgroups.m4: Likewise.
78635         * m4/lstat.m4: Likewise.
78636         * m4/malloc.m4: Likewise.
78637         * m4/putenv.m4: Likewise.
78638         * m4/realloc.m4: Likewise.
78639         * m4/regex.m4: Likewise.
78640         * m4/stat.m4: Likewise.
78641         * m4/strftime.m4: Likewise.
78642         Suggestion from Alain Magloire.
78643
78644         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78645         * m4/fnmatch.m4: Likewise.
78646         * m4/getgroups.m4: Likewise.
78647         * m4/getline.m4: Likewise.
78648         * m4/lstat.m4: Likewise.
78649         * m4/malloc.m4: Likewise.
78650         * m4/memcmp.m4: Likewise.
78651         * m4/putenv.m4: Likewise.
78652         * m4/realloc.m4: Likewise.
78653         * m4/regex.m4: Likewise.
78654         * m4/stat.m4: Likewise.
78655         * m4/strftime.m4: Likewise.
78656         Suggestion from Alain Magloire.
78657
78658         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78659         an argument.
78660
78661         * m4/regex.m4: Add a run-time Test for proper operation of
78662         re_compile_pattern.
78663
78664 1999-01-31  Jim Meyering  <meyering@ascend.com>
78665
78666         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78667
78668 1999-01-30  Jim Meyering  <meyering@ascend.com>
78669
78670         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78671
78672         * m4/jm-mktime.m4: Make this a wrapper around the official
78673         AM_FUNC_MKTIME rather than my private copy, now that the official one
78674         is up to date.
78675         * m4/mktime.m4: Remove file.
78676
78677         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78678         * m4/uptime.m4: Likewise.
78679         * m4/uintmax_t.m4: Likewise.
78680
78681 1999-01-28  Jim Meyering  <meyering@ascend.com>
78682
78683         * m4/jm-macros.m4: Use jm_AFS.
78684         * m4/afs.m4: New file (from fileutils' configure.in).
78685
78686         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78687         * m4/chown.m4: Likewise.
78688         * m4/d-ino.m4: Likewise.
78689         * m4/d-type.m4: Likewise.
78690         * m4/fnmatch.m4: Likewise.
78691         * m4/getgroups.m4: Likewise.
78692         * m4/gettext.m4: Likewise.
78693         * m4/jm-mktime.m4: Likewise.
78694         * m4/jm-winsz2.m4: Likewise.
78695         * m4/lcmessage.m4: Likewise.
78696         * m4/ls-mntd-fs.m4: Likewise.
78697         * m4/malloc.m4: Likewise.
78698         * m4/memcmp.m4: Likewise.
78699         * m4/putenv.m4: Likewise.
78700         * m4/realloc.m4: Likewise.
78701         * m4/st_mtim.m4: Likewise.
78702         * m4/strftime.m4: Likewise.
78703
78704 1999-01-16  Jim Meyering  <meyering@ascend.com>
78705
78706         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78707         (ARGMATCH_DIE_DECL): Define.
78708
78709 1999-01-12  Jim Meyering  <meyering@ascend.com>
78710
78711         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78712         Reported by Lars Hecking.
78713
78714 1999-01-10  Jim Meyering  <meyering@ascend.com>
78715
78716         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78717         gross kludge.
78718         * m4/inttypes_h.m4: Likewise.
78719         * m4/lstat.m4: Likewise.
78720         * m4/malloc.m4: Likewise.
78721         * m4/readdir.m4: Likewise.
78722         * m4/realloc.m4: Likewise.
78723         * m4/st_dm_mode.m4: Likewise.
78724         * m4/stat.m4: Likewise.
78725         * m4/utimbuf.m4: Likewise.
78726         * m4/utimes.m4: Likewise.
78727
78728         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78729         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78730         comments in config.h.in are meaningful.
78731
78732         * m4/jm-macros.m4: Require autoconf-2.13 here.
78733
78734         * m4/regex.m4: By default, don't use the included regex.c on systems
78735         with glibc 2.  Suggestion from Uli Drepper.
78736
78737 1999-01-02  Jim Meyering  <meyering@ascend.com>
78738
78739         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78740
78741 1998-12-18  Jim Meyering  <meyering@ascend.com>
78742
78743         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78744         Based on a suggestion from Lars Hecking.
78745
78746 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78747
78748         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78749
78750 1998-11-16  Jim Meyering  <meyering@ascend.com>
78751
78752         * m4/lfs.m4: Double-quote the `uname...` expression.
78753
78754 1998-11-14  Jim Meyering  <meyering@ascend.com>
78755
78756         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78757         * m4/stat.m4: Likewise.
78758
78759 1998-11-03  Jim Meyering  <meyering@ascend.com>
78760
78761         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78762         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78763
78764 1998-10-18  Jim Meyering  <meyering@ascend.com>
78765
78766         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78767
78768 1998-10-17  Jim Meyering  <meyering@ascend.com>
78769
78770         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78771         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78772         calls for those previously hard-coded headers.  Instead, take a new
78773         parameter.
78774         (jm_CHECK_DECLARATIONS): Reflect interface change.
78775         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78776         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78777
78778         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78779
78780 1998-10-14  Jim Meyering  <meyering@ascend.com>
78781
78782         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78783         instead of "TZ=America/Vancouver".  From Paul Eggert.
78784
78785 1998-10-11  Jim Meyering  <meyering@ascend.com>
78786
78787         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78788         This adds a test for a recently added compatibility fix for mktime.c.
78789         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78790
78791 1998-09-27  Jim Meyering  <meyering@ascend.com>
78792
78793         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78794
78795         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78796         ../configure.in, including a change from Gordon Matzigkeit to allow
78797         cross-compiling for the Hurd.
78798
78799         * m4/glibc.m4: New file/macro to test for the GNU C Library
78800         versions 1 and 2.  From Gordon Matzigkeit.
78801         Indent.
78802
78803 1998-09-21  Jim Meyering  <meyering@ascend.com>
78804
78805         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78806
78807 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78808
78809         Port nanosecond-resolution times to UnixWare 2.1.2 and
78810         pedantic Solaris 2.6.
78811
78812         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78813         AC_STRUCT_ST_MTIM.
78814         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78815         Generate name of ns member, instead of just 1 or undef.
78816         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78817
78818 1998-08-15  Jim Meyering  <meyering@ascend.com>
78819
78820         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78821         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78822         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78823         instead of jm_TYPE_SSIZE_T.
78824
78825 1998-08-12  Jim Meyering  <meyering@ascend.com>
78826
78827         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78828
78829 1998-08-02  Jim Meyering  <meyering@ascend.com>
78830
78831         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78832         in acconfig.h manually.
78833
78834 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78835
78836         * m4/st_mtim.m4: New file.
78837
78838 1998-07-28  Jim Meyering  <meyering@ascend.com>
78839
78840         * m4/utimes.m4: Undef stat.
78841
78842 1998-07-25  Jim Meyering  <meyering@ascend.com>
78843
78844         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78845         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78846
78847 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78848
78849         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78850         uid and gid actually remain unchanged.
78851
78852 1998-07-07  Jim Meyering  <meyering@ascend.com>
78853
78854         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78855
78856 1998-07-04  Jim Meyering  <meyering@ascend.com>
78857
78858         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78859         to prove that this macro can be used in packages without regex.c.
78860
78861 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78862
78863         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78864         is to be used.
78865
78866 1998-07-03  Jim Meyering  <meyering@ascend.com>
78867
78868         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78869
78870         * m4/gettext.m4: New file -- from gettext-0.10.35.
78871         * m4/lcmessage.m4: Likewise.
78872         * m4/progtest.m4: Likewise.
78873
78874         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78875         * m4/jm-macros.m4: Require the new macro.
78876
78877 1998-06-29  Jim Meyering  <meyering@ascend.com>
78878
78879         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78880         for the definition of NGROUPS (used in a system header included
78881         by sys/mount.h).
78882
78883 1998-06-28  Jim Meyering  <meyering@ascend.com>
78884
78885         * m4/ls-mntd-fs.m4: New file.
78886         * m4/fstypename.m4: New file.
78887
78888         * m4/jm-macros.m4: Require the new macro.
78889         * m4/jm-glibc-io.m4: New file.
78890
78891 1998-05-19  Jim Meyering  <meyering@ascend.com>
78892
78893         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78894         * m4/lchown.m4: New file.
78895
78896         * m4/Makefile.am.in: New file.
78897         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78898
78899 1998-05-14  Jim Meyering  <meyering@ascend.com>
78900
78901         * m4/Makefile.am (EXTRA_DIST): Add them.
78902         * m4/jm-macros.m4: New file.
78903         * m4/utimbuf.m4: New file.
78904
78905 1998-05-12  Jim Meyering  <meyering@ascend.com>
78906
78907         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78908
78909 1998-05-11  Jim Meyering  <meyering@ascend.com>
78910
78911         * m4/isc-posix.m4: New file.
78912
78913 1998-05-10  Jim Meyering  <meyering@ascend.com>
78914
78915         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78916
78917 1998-05-09  Jim Meyering  <meyering@ascend.com>
78918
78919         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78920         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78921         with automake.
78922
78923         * m4/ssize_t.m4: New file.
78924         * m4/mktime.m4: Remove file -- the new automake has this now.
78925
78926 1998-04-26  Jim Meyering  <meyering@ascend.com>
78927
78928         * m4/assert.m4: New file.
78929         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78930
78931 1998-04-05  Jim Meyering  <meyering@ascend.com>
78932
78933         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78934         (jm_PREREQ): Use it here.
78935
78936 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78937
78938         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78939         in acconfig.h.
78940
78941 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78942
78943         * m4/prereq.m4: New file.
78944         * m4/error.m4: New file.
78945         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78946
78947 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78948
78949         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78950         cache-check for the same variable -- that defeated the purpose of
78951         the test; the test program was never run.  This was a problem only
78952         on systems with losing getline functions -- HP-UX 10.20 is one.
78953         Reported by Bjorn Helgaas.
78954
78955 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78956
78957         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78958
78959 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78960
78961         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78962
78963         * m4/const.m4: New file.  Use an initializer in this declaration
78964         typedef int charset[2]; const charset x;
78965         Reported by Bob Glickstein.
78966
78967 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78968
78969         * m4/chown.m4: Fix reversed types on -1 args to chown.
78970         From Kaveh Ghazi.
78971
78972 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78973
78974         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78975         Add lseek and memchr.
78976
78977         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78978         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78979         have a 20-character limit on names.
78980
78981 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78982
78983         * m4/inttypes_h.m4: New file.
78984         * m4/uintmax_t.m4: New file.
78985         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78986
78987
78988         -----
78989
78990         Local Variables:
78991         coding: utf-8
78992         End:
78993
78994         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78995
78996         Copying and distribution of this file, with or without
78997         modification, are permitted provided the copyright notice
78998         and this notice are preserved.